index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <input type="text" v-model="searchInfo.goods" @input="toInput" placeholder="搜索商品">
  6. </view>
  7. <view class="two">
  8. <tabs :tabs="tabs" @tabsChange="tabsChange">
  9. <view class="tabsList">
  10. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
  11. <view class="list-scroll-view">
  12. <view class="list" v-for="(item,index) in list" :key="index" @tap="toInfo(item)">
  13. <view class="list_1" v-if="tabs.active=='0'">
  14. <view class="goods">
  15. <view class="goodsList" v-for="(tag,indexs) in item.goods" :key="indexs">
  16. <view class="shopname">
  17. <view class="shop" v-if="tag.is_set=='0'">
  18. <view class="r">
  19. <text class="set">套装</text> {{tag.name}}
  20. </view>
  21. </view>
  22. <view class="shop" v-else>
  23. <text class="iconfont icon-shangdian"></text>
  24. <text>{{tag.shop_name}}</text>
  25. </view>
  26. <view class="status">
  27. {{item.zhStatus}}
  28. </view>
  29. </view>
  30. <view class="goodsList_1">
  31. <view class="market" v-for="(tags,indexss) in tag.goods"
  32. :key="indexss">
  33. <view class="market_1">
  34. <image class="image"
  35. :src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''"
  36. mode=""></image>
  37. </view>
  38. <view class="market_2">
  39. <view class="goodsname textOver">
  40. {{tags.goods.name}}
  41. </view>
  42. <view class="specs" v-if="tag.is_set=='0'">
  43. {{tags.spec_name}}
  44. </view>
  45. <view class="specs" v-else>
  46. {{tags.name}}
  47. </view>
  48. <text v-if="tags.gift.length>0" class="gift">赠品</text>
  49. <text v-if="tags.sp_price" class="act">特价</text>
  50. </view>
  51. <view class="market_3" v-if="tag.is_set=='0'">
  52. <view class="price">{{tags.set_num}}件/套x{{tags.set_num}}
  53. </view>
  54. </view>
  55. <view class="market_3" v-else>
  56. <view v-if="item.type=='0'" class="price">
  57. ¥{{tags.price||tags.sell_money}}
  58. </view>
  59. <view v-else class="price">
  60. ¥{{tags.group_config.money}}
  61. </view>
  62. <view class="num">
  63. ×{{tags.buy_num}}
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="other">
  71. <text>共{{item.buy_num_total}}件商品</text>
  72. <text>实付款¥{{item.real_pay}}</text>
  73. </view>
  74. </view>
  75. <view class="list_2" v-else>
  76. <view class="list_2_1">
  77. <view class="shopname" v-if="item.is_set=='0'">
  78. <view class="r">
  79. <text class="set">套装</text> {{tag.name}}
  80. </view>
  81. </view>
  82. <view class="shopname" v-else>
  83. <text class="iconfont icon-shangdian"></text>
  84. <text>{{item.shop.name}}</text>
  85. </view>
  86. <view class="status">
  87. {{item.zhStatus}}
  88. </view>
  89. </view>
  90. <view class="list_2_2" v-for="(tag,indexs) in item.goods" :key="indexs">
  91. <view v-if="tag.is_set=='0'">
  92. <view class="goods" v-for="(tags,indexss) in tag.goods" :key="indexss">
  93. <view class="goods_1">
  94. <image class="image"
  95. :src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''"
  96. mode=""></image>
  97. </view>
  98. <view class="goods_2">
  99. <view class="goodsname textOver">
  100. {{tags.goods.name}}
  101. </view>
  102. <view class="specs">
  103. {{tags.spec_name}}
  104. </view>
  105. </view>
  106. <view class="goods_3">
  107. <view class="price">{{tags.set_num}}件/套x{{tags.set_num}}
  108. </view>
  109. </view>
  110. </view>
  111. <view class="set">
  112. <view class="set_1">套装价:¥{{tag.sell_money}}</view>
  113. <view class="set_2">数量:×{{tag.buy_num}}</view>
  114. </view>
  115. </view>
  116. <view v-else>
  117. <view class="goods">
  118. <view class="goods_1">
  119. <image class="image" :src="tag.url" mode=""></image>
  120. </view>
  121. <view class="goods_2">
  122. <view class="goodsname textOver">
  123. {{tag.goods.name}}
  124. </view>
  125. <view class="specs">
  126. {{tag.name}}
  127. </view>
  128. <text v-if="tag.gift.length>0" class="gift">赠品</text>
  129. <text v-if="tag.sp_price" class="act">特价</text>
  130. </view>
  131. <view class="goods_3">
  132. <view v-if="item.type=='0'" class="price">
  133. ¥{{tag.price||tag.sell_money}}
  134. </view>
  135. <view v-else class="price">
  136. ¥{{tag.group_config.money}}
  137. </view>
  138. <view class="num">
  139. ×{{tag.buy_num}}
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="other">
  146. <text>共{{item.buy_num_total||0}}件商品</text>
  147. <text>实付款¥{{item.real_pay}}</text>
  148. </view>
  149. </view>
  150. <view class="btn">
  151. <button size="mini" @tap.stop="toNotice(item)">客服</button>
  152. <button v-if="item.status=='0'" size="mini"
  153. @tap.stop="toCancel(item)">取消订单</button>
  154. <button v-if="item.status=='0'" :disabled="disabled" size="mini"
  155. @tap.stop="toPay(item)">支付</button>
  156. <button v-if="item.status=='1'&&item.is_afterSale!=true" size="mini"
  157. @tap.stop="toCancels(item)">取消订单</button>
  158. <button v-if="item.status=='2'||item.status=='3'||item.status=='2-'" size="mini"
  159. @tap.stop="toLogi(item)">查看物流</button>
  160. <button v-if="item.status=='2'&&item.is_afterSale!=true" size="mini"
  161. @tap.stop="toConfirm(item)">确认收货</button>
  162. <button v-if="item.status=='2'||item.status=='2-'&&item.is_afterSale!=true"
  163. size="mini" @tap.stop="toReject(item)">拒收</button>
  164. <button v-if="item.status=='3'" size="mini"
  165. @tap.stop="toAfter(item)">申请售后</button>
  166. <button v-if="item.status=='3'" type="default" size="mini"
  167. @tap.stop="toAppraise(item)">{{item.rate?'追加评价':'立即评价'}}</button>
  168. </view>
  169. </view>
  170. <view class="is_bottom" v-if="is_bottom">
  171. <text>{{config.bottom_title}}</text>
  172. </view>
  173. </view>
  174. </scroll-view>
  175. </view>
  176. </tabs>
  177. </view>
  178. </view>
  179. </mobile-frame>
  180. </template>
  181. <script>
  182. import tabs from '@/components/tabs/index.vue';
  183. export default {
  184. components: {
  185. tabs
  186. },
  187. data() {
  188. return {
  189. // 系统设置
  190. config: {},
  191. // 设备信息
  192. system: {},
  193. user: {},
  194. status: '',
  195. searchInfo: {},
  196. tabs: {
  197. active: '0',
  198. menu: []
  199. },
  200. list: [],
  201. total: 0,
  202. skip: 0,
  203. limit: 6,
  204. page: 0,
  205. // 数据是否触底
  206. is_bottom: false,
  207. scrollTop: 0,
  208. // 字典表
  209. statusList: [],
  210. disabled: false
  211. };
  212. },
  213. onLoad: function(e) {
  214. const that = this;
  215. that.$set(that, `status`, e.status || '');
  216. that.$set(that.tabs, `active`, e.status || '');
  217. that.searchConfig();
  218. },
  219. onShow: async function(e) {
  220. const that = this;
  221. await that.searchOther();
  222. await that.watchlogin();
  223. },
  224. onPullDownRefresh: async function() {
  225. const that = this;
  226. that.clearPage();
  227. await that.search();
  228. uni.stopPullDownRefresh();
  229. },
  230. methods: {
  231. // 查询基本设置
  232. searchConfig() {
  233. const that = this;
  234. uni.getStorage({
  235. key: 'config',
  236. success: function(res) {
  237. if (res.data) that.$set(that, `config`, res.data)
  238. // 设备平台信息
  239. let config = that.$config;
  240. that.$set(that, `system`, config.system);
  241. },
  242. fail: function(err) {
  243. console.log(err);
  244. }
  245. })
  246. },
  247. // 监听用户是否登录
  248. watchlogin() {
  249. const that = this;
  250. uni.getStorage({
  251. key: 'token',
  252. success: function(res) {
  253. let user = that.$jwt(res.data);
  254. if (user) {
  255. that.$set(that, `user`, user)
  256. that.clearPage();
  257. that.search();
  258. }
  259. }
  260. })
  261. },
  262. async search() {
  263. const that = this;
  264. let user = that.user;
  265. let status = that.status;
  266. let info = {
  267. skip: that.skip,
  268. limit: that.limit,
  269. customer: user._id,
  270. status: status
  271. }
  272. let res;
  273. if (status == '0') {
  274. res = await that.$api(`/order`, 'GET', {
  275. ...info,
  276. ...that.searchInfo
  277. });
  278. } else {
  279. res = await that.$api(`/orderDetail`, 'GET', {
  280. ...info,
  281. ...that.searchInfo
  282. });
  283. }
  284. if (res.errcode == '0') {
  285. let list = [...that.list, ...res.data];
  286. for (let val of list) {
  287. val.zhStatus = that.searchStatus(val.status)
  288. }
  289. that.$set(that, `list`, list);
  290. that.$set(that, `total`, res.total)
  291. } else {
  292. uni.showToast({
  293. title: res.errmsg,
  294. icon: 'none'
  295. })
  296. }
  297. },
  298. // 查询状态
  299. searchStatus(e) {
  300. const that = this;
  301. let data = that.statusList.find((i) => i.value == e);
  302. if (data) return data.label
  303. else return '暂无'
  304. },
  305. // 分页
  306. toPage(e) {
  307. const that = this;
  308. let list = that.list;
  309. let limit = that.limit;
  310. if (that.total > list.length) {
  311. uni.showLoading({
  312. title: '加载中',
  313. mask: true
  314. })
  315. let page = that.page + 1;
  316. that.$set(that, `page`, page)
  317. let skip = page * limit;
  318. that.$set(that, `skip`, skip)
  319. that.search();
  320. uni.hideLoading();
  321. } else that.$set(that, `is_bottom`, true)
  322. },
  323. toScroll(e) {
  324. const that = this;
  325. let up = that.scrollTop;
  326. that.$set(that, `scrollTop`, e.detail.scrollTop);
  327. let num = Math.sign(up - e.detail.scrollTop);
  328. if (num == 1) that.$set(that, `is_bottom`, false);
  329. },
  330. // 联系客服
  331. async toNotice(e) {
  332. const that = this;
  333. let form = {
  334. "customer": e.customer && e.customer._id,
  335. "shop": e.shop && e.shop._id || e.goods && e.goods[0].shop
  336. }
  337. // 查询该用户与该店铺是否有房间
  338. let arr = await that.$api(`/room`, `GET`, form, 'chat');
  339. if (arr.errcode == '0' && arr.total > 0) { //有直接进入
  340. if (arr.data) {
  341. uni.navigateTo({
  342. url: `/pagesMessage/message/info?id=${arr.data[0]._id}`
  343. })
  344. }
  345. } else { //没有创建进入
  346. uni.navigateTo({
  347. url: `/pagesMessage/message/info?shop=${form.shop}`
  348. })
  349. }
  350. },
  351. // 输入框
  352. toInput(e) {
  353. const that = this;
  354. if (that.searchInfo.goods) that.$set(that.searchInfo, `goods`, e.detail.value)
  355. else that.$set(that, `searchInfo`, {})
  356. that.clearPage();
  357. that.search();
  358. },
  359. // 订单详细信息
  360. toInfo(item) {
  361. const that = this;
  362. that.clearPage();
  363. uni.navigateTo({
  364. url: `/pagesMy/order/info?id=${item._id}&status=${item.status}`
  365. })
  366. },
  367. // 取消订单-未支付
  368. toCancel(e) {
  369. const that = this;
  370. uni.showModal({
  371. title: '提示',
  372. content: '确定取消订单吗?',
  373. success: async function(res) {
  374. if (res.confirm) {
  375. const arr = await that.$api(`/order/cancel`, 'POST', {
  376. order_id: e._id
  377. });
  378. if (arr.errcode == '0') {
  379. uni.showToast({
  380. title: '申请取消订单完成',
  381. icon: 'none'
  382. })
  383. that.clearPage();
  384. that.search();
  385. } else {
  386. uni.showToast({
  387. title: arr.errmsg,
  388. icon: 'none'
  389. })
  390. }
  391. }
  392. }
  393. });
  394. },
  395. // 支付
  396. async toPay(e) {
  397. const that = this;
  398. let system = that.system;
  399. if (system.uniPlatform == "mp-weixin") {
  400. uni.showLoading({
  401. title: '加载中'
  402. })
  403. // 支付信息
  404. let p2 = await that.$api('/pay/toPayOrder', 'POST', {
  405. order_id: e,
  406. type: '0'
  407. })
  408. if (p2.errcode == '0' && p2.data.paySign) {
  409. uni.requestPayment({
  410. "provider": "wxpay",
  411. ...p2.data,
  412. success: function(res) {
  413. uni.showToast({
  414. title: '支付成功',
  415. icon: 'none'
  416. })
  417. },
  418. fail: function(err) {
  419. that.$set(that, `disabled`, false)
  420. uni.showToast({
  421. title: `支付失败`,
  422. icon: 'none'
  423. })
  424. },
  425. complete: function() {
  426. uni.hideLoading();
  427. that.clearPage();
  428. that.search();
  429. }
  430. })
  431. } else {
  432. uni.showToast({
  433. title: p2.errmsg || '错误信息',
  434. icon: 'none'
  435. })
  436. }
  437. } else if (res.data.uniPlatform == "app") {
  438. // app支付
  439. uni.requestPayment({
  440. provider: 'alipay',
  441. orderInfo: 'orderInfo',
  442. success: function(res) {
  443. console.log('success:' + JSON.stringify(res));
  444. },
  445. fail: function(err) {
  446. console.log('fail:' + JSON.stringify(err));
  447. }
  448. });
  449. } else {
  450. uni.showToast({
  451. title: `平台不支持支付`,
  452. icon: 'none'
  453. })
  454. }
  455. },
  456. // 取消订单-已支付
  457. toCancels(e) {
  458. const that = this;
  459. uni.showModal({
  460. title: '提示',
  461. content: '确定取消订单吗?',
  462. success: async function(res) {
  463. if (res.confirm) {
  464. let arr = await that.$api(`/afterSale`, 'POST', {
  465. order_detail: e._id,
  466. type: '4'
  467. })
  468. if (arr.errcode == '0') {
  469. uni.showToast({
  470. title: '申请取消订单完成',
  471. icon: 'none'
  472. })
  473. that.clearPage();
  474. that.search();
  475. } else {
  476. uni.showToast({
  477. title: arr.errmsg,
  478. icon: 'none'
  479. })
  480. }
  481. }
  482. }
  483. });
  484. },
  485. // 查看物流
  486. toLogi(e) {
  487. const that = this;
  488. that.clearPage();
  489. uni.navigateTo({
  490. url: `/pagesMy/logistics/index?id=${e._id}&type=${'order'}`
  491. })
  492. },
  493. // 确认收货
  494. async toConfirm(e) {
  495. const that = this;
  496. uni.showModal({
  497. title: '提示',
  498. content: '确定确认收货吗?',
  499. success: async function(res) {
  500. if (res.confirm) {
  501. const arr = await that.$api(`/orderDetail/${e._id}`, 'POST', {
  502. status: '3'
  503. });
  504. if (arr.errcode == '0') {
  505. uni.showToast({
  506. title: '确认收货成功',
  507. icon: 'none'
  508. })
  509. that.clearPage();
  510. that.search();
  511. } else {
  512. uni.showToast({
  513. title: arr.errmsg,
  514. icon: 'none'
  515. })
  516. }
  517. }
  518. }
  519. });
  520. },
  521. // 拒收
  522. async toReject(e) {
  523. const that = this;
  524. uni.showModal({
  525. title: '提示',
  526. content: '确定拒收快递吗?',
  527. success: async function(res) {
  528. if (res.confirm) {
  529. let arr = await that.$api(`/afterSale`, 'POST', {
  530. order_detail: e._id,
  531. type: '5'
  532. })
  533. if (arr.errcode == '0') {
  534. uni.showToast({
  535. title: '拒收申请完成',
  536. icon: 'none'
  537. })
  538. that.clearPage();
  539. that.search();
  540. } else {
  541. uni.showToast({
  542. title: arr.errmsg,
  543. icon: 'none'
  544. })
  545. }
  546. }
  547. }
  548. });
  549. },
  550. // 立即评价
  551. toAppraise(e) {
  552. const that = this;
  553. that.clearPage();
  554. uni.navigateTo({
  555. url: `/pagesMy/order/appraise?id=${e._id}&status=${'0'}`
  556. })
  557. },
  558. // 申请售后
  559. toAfter(e) {
  560. const that = this;
  561. that.clearPage();
  562. uni.navigateTo({
  563. url: `/pagesMy/order/service?id=${e._id}&status=${e.status}`
  564. })
  565. },
  566. // 查询其他信息
  567. async searchOther() {
  568. const that = this;
  569. let res;
  570. // 查询状态
  571. res = await that.$api(`/dictData`, 'GET', {
  572. code: 'order_process'
  573. })
  574. if (res.errcode == '0') {
  575. that.$set(that, `statusList`, res.data);
  576. let status = res.data.filter((i) => {
  577. return i.value != '-2' && i.value != '-3';
  578. });
  579. var menu = status.map((item) => {
  580. return {
  581. title: item.label,
  582. active: item.value
  583. }
  584. })
  585. that.$set(that.tabs, `menu`, menu)
  586. }
  587. },
  588. // 选择选项卡
  589. tabsChange(e) {
  590. const that = this;
  591. that.$set(that.tabs, `active`, e.active)
  592. that.$set(that, `status`, e.active);
  593. that.clearPage();
  594. that.search()
  595. },
  596. // 清空列表
  597. clearPage() {
  598. const that = this;
  599. that.$set(that, `list`, [])
  600. that.$set(that, `skip`, 0)
  601. that.$set(that, `limit`, 6)
  602. that.$set(that, `page`, 0)
  603. }
  604. },
  605. }
  606. </script>
  607. <style lang="scss">
  608. .main {
  609. display: flex;
  610. flex-direction: column;
  611. width: 100vw;
  612. height: 100vh;
  613. .one {
  614. padding: 2vw;
  615. input {
  616. padding: 2vw;
  617. background-color: var(--f1Color);
  618. font-size: var(--font14Size);
  619. border-radius: 5px;
  620. }
  621. }
  622. .two {
  623. position: relative;
  624. flex-grow: 1;
  625. background-color: var(--f9Color);
  626. .tabsList {
  627. position: relative;
  628. width: 100vw;
  629. height: 82vh;
  630. .list {
  631. background-color: #fff;
  632. border: 1px solid var(--f5Color);
  633. padding: 2vw;
  634. margin: 0 2vw 2vw 2vw;
  635. border-radius: 5px;
  636. .list_1 {
  637. .goods {
  638. .goodsList {
  639. border-bottom: 1px solid #f1f1f1;
  640. .shopname {
  641. display: flex;
  642. justify-content: space-between;
  643. margin: 0 0 2vw 0;
  644. .shop {
  645. text:last-child {
  646. padding: 0 0 0 2vw;
  647. }
  648. .r {
  649. .set {
  650. margin: 0 1vw 0 0;
  651. font-size: 12px;
  652. border-radius: 5px;
  653. padding: 0 1vw;
  654. color: #ffffff;
  655. background-color: #FF6347;
  656. border: 1px solid #FFA500;
  657. }
  658. }
  659. }
  660. .status {
  661. text-align: right;
  662. color: var(--ff0Color);
  663. margin: 0 0 1vw 0;
  664. }
  665. }
  666. .goodsList_1 {
  667. .market {
  668. display: flex;
  669. padding: 0 0 2vw 0;
  670. .market_1 {
  671. width: 20vw;
  672. height: 20vw;
  673. .image {
  674. width: 100%;
  675. height: 100%;
  676. border-radius: 5px;
  677. }
  678. }
  679. .market_2 {
  680. width: 55vw;
  681. padding: 0 0 0 2vw;
  682. .goodsname {
  683. font-size: 16px;
  684. margin: 0 0 1vw 0;
  685. }
  686. .specs {
  687. font-size: 14px;
  688. color: #858585;
  689. }
  690. .gift {
  691. margin: 0 1vw 0 0;
  692. font-size: 12px;
  693. color: #FFA500;
  694. border: 1px solid #FFA500;
  695. border-radius: 5px;
  696. padding: 0 1vw;
  697. }
  698. .act {
  699. font-size: 12px;
  700. border: 1px solid var(--fFB1Color);
  701. color: var(--fFB1Color);
  702. border-radius: 5px;
  703. padding: 0 1vw;
  704. }
  705. }
  706. .market_3 {
  707. width: 15vw;
  708. text-align: right;
  709. .price {
  710. color: #ff0000;
  711. }
  712. }
  713. }
  714. }
  715. }
  716. }
  717. .other {
  718. padding: 0 0 2vw 0;
  719. margin: 2vw 0;
  720. text-align: right;
  721. border-bottom: 1px solid #f1f1f1;
  722. text {
  723. font-size: 14px;
  724. padding: 0 0 0 2vw;
  725. }
  726. }
  727. }
  728. .list_2 {
  729. .list_2_1 {
  730. display: flex;
  731. justify-content: space-between;
  732. margin: 0 0 2vw 0;
  733. .shopname {
  734. text:last-child {
  735. padding: 0 0 0 2vw;
  736. }
  737. .r {
  738. .set {
  739. margin: 0 1vw 0 0;
  740. font-size: 12px;
  741. border-radius: 5px;
  742. padding: 0 1vw;
  743. color: #ffffff;
  744. background-color: #FF6347;
  745. border: 1px solid #FFA500;
  746. }
  747. }
  748. }
  749. .status {
  750. color: var(--ff0Color);
  751. }
  752. }
  753. .list_2_2 {
  754. border-bottom: 1px solid #f1f1f1;
  755. padding-top: 1vw;
  756. .goods {
  757. display: flex;
  758. padding: 0 0 2vw 0;
  759. .goods_1 {
  760. width: 20vw;
  761. height: 20vw;
  762. .image {
  763. width: 100%;
  764. height: 100%;
  765. border-radius: 5px;
  766. }
  767. }
  768. .goods_2 {
  769. width: 55vw;
  770. padding: 0 0 0 2vw;
  771. .goodsname {
  772. font-size: 16px;
  773. margin: 0 0 1vw 0;
  774. }
  775. .specs {
  776. font-size: 14px;
  777. color: #858585;
  778. }
  779. .gift {
  780. margin: 0 1vw 0 0;
  781. font-size: 12px;
  782. color: #FFA500;
  783. border: 1px solid #FFA500;
  784. border-radius: 5px;
  785. padding: 0 1vw;
  786. }
  787. .act {
  788. font-size: 12px;
  789. border: 1px solid var(--fFB1Color);
  790. color: var(--fFB1Color);
  791. border-radius: 5px;
  792. padding: 0 1vw;
  793. }
  794. }
  795. .goods_3 {
  796. width: 15vw;
  797. text-align: right;
  798. .price {
  799. color: #ff0000;
  800. }
  801. }
  802. }
  803. .set {
  804. display: flex;
  805. padding: 2vw 0;
  806. justify-content: space-between;
  807. color: #ff0000;
  808. }
  809. }
  810. .other {
  811. padding: 0 0 2vw 0;
  812. margin: 2vw 0;
  813. text-align: right;
  814. border-bottom: 1px solid #f1f1f1;
  815. text {
  816. font-size: 14px;
  817. padding: 0 0 0 2vw;
  818. }
  819. }
  820. }
  821. .btn {
  822. text-align: right;
  823. button {
  824. margin: 0 2vw 0 0;
  825. }
  826. }
  827. }
  828. }
  829. }
  830. }
  831. .scroll-view {
  832. position: absolute;
  833. top: 0;
  834. left: 0;
  835. right: 0;
  836. bottom: 0;
  837. .list-scroll-view {
  838. display: flex;
  839. flex-direction: column;
  840. }
  841. }
  842. .is_bottom {
  843. text-align: center;
  844. text {
  845. padding: 2vw 0;
  846. display: inline-block;
  847. color: #858585;
  848. font-size: 14px;
  849. }
  850. }
  851. </style>