index.vue 23 KB

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