index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  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" 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&&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. "order": e && e._id,
  337. "status": e && e.status,
  338. }
  339. // 查询该用户与该店铺是否有房间
  340. let arr = await that.$api(`/room`, `GET`, form, 'chat');
  341. if (arr.errcode == '0' && arr.total > 0) { //有直接进入
  342. if (arr.data) {
  343. uni.navigateTo({
  344. url: `/pagesMessage/message/info?id=${arr.data[0]._id}&order=${form.order}&status=${form.status}`
  345. })
  346. }
  347. } else { //没有创建进入
  348. uni.navigateTo({
  349. url: `/pagesMessage/message/info?shop=${form.shop}&order=${form.order}&status=${form.status}`
  350. })
  351. }
  352. },
  353. // 输入框
  354. toInput(e) {
  355. const that = this;
  356. if (that.searchInfo.goods) that.$set(that.searchInfo, `goods`, e.detail.value)
  357. else that.$set(that, `searchInfo`, {})
  358. that.clearPage();
  359. that.search();
  360. },
  361. // 订单详细信息
  362. toInfo(item) {
  363. const that = this;
  364. that.clearPage();
  365. uni.navigateTo({
  366. url: `/pagesMy/order/info?id=${item._id}&status=${item.status}`
  367. })
  368. },
  369. // 取消订单-未支付
  370. toCancel(e) {
  371. const that = this;
  372. uni.showModal({
  373. title: '提示',
  374. content: '确定取消订单吗?',
  375. success: async function(res) {
  376. if (res.confirm) {
  377. const arr = await that.$api(`/order/cancel`, 'POST', {
  378. order_id: e._id
  379. });
  380. if (arr.errcode == '0') {
  381. uni.showToast({
  382. title: '申请取消订单完成',
  383. icon: 'none'
  384. })
  385. that.clearPage();
  386. that.search();
  387. } else {
  388. uni.showToast({
  389. title: arr.errmsg,
  390. icon: 'none'
  391. })
  392. }
  393. }
  394. }
  395. });
  396. },
  397. // 支付
  398. async toPay(e) {
  399. const that = this;
  400. let system = that.system;
  401. if (system.uniPlatform == "mp-weixin") {
  402. uni.showLoading({
  403. title: '加载中'
  404. })
  405. // 支付信息
  406. let p2 = await that.$api('/pay/toPayOrder', 'POST', {
  407. order_id: e,
  408. type: '0'
  409. })
  410. if (p2.errcode == '0' && p2.data.paySign) {
  411. uni.requestPayment({
  412. "provider": "wxpay",
  413. ...p2.data,
  414. success: function(res) {
  415. uni.showToast({
  416. title: '支付成功',
  417. icon: 'none'
  418. })
  419. },
  420. fail: function(err) {
  421. that.$set(that, `disabled`, false)
  422. uni.showToast({
  423. title: `支付失败`,
  424. icon: 'none'
  425. })
  426. },
  427. complete: function() {
  428. uni.hideLoading();
  429. that.clearPage();
  430. that.search();
  431. }
  432. })
  433. } else {
  434. uni.showToast({
  435. title: p2.errmsg || '错误信息',
  436. icon: 'none'
  437. })
  438. }
  439. } else if (res.data.uniPlatform == "app") {
  440. // app支付
  441. uni.requestPayment({
  442. provider: 'alipay',
  443. orderInfo: 'orderInfo',
  444. success: function(res) {
  445. console.log('success:' + JSON.stringify(res));
  446. },
  447. fail: function(err) {
  448. console.log('fail:' + JSON.stringify(err));
  449. }
  450. });
  451. } else {
  452. uni.showToast({
  453. title: `平台不支持支付`,
  454. icon: 'none'
  455. })
  456. }
  457. },
  458. // 取消订单-已支付
  459. toCancels(e) {
  460. const that = this;
  461. uni.showModal({
  462. title: '提示',
  463. content: '确定取消订单吗?',
  464. success: async function(res) {
  465. if (res.confirm) {
  466. let arr = await that.$api(`/afterSale`, 'POST', {
  467. order_detail: e._id,
  468. type: '4'
  469. })
  470. if (arr.errcode == '0') {
  471. uni.showToast({
  472. title: '申请取消订单完成',
  473. icon: 'none'
  474. })
  475. that.clearPage();
  476. that.search();
  477. } else {
  478. uni.showToast({
  479. title: arr.errmsg,
  480. icon: 'none'
  481. })
  482. }
  483. }
  484. }
  485. });
  486. },
  487. // 查看物流
  488. toLogi(e) {
  489. const that = this;
  490. that.clearPage();
  491. uni.navigateTo({
  492. url: `/pagesMy/logistics/index?id=${e._id}&type=${'order'}`
  493. })
  494. },
  495. // 确认收货
  496. async toConfirm(e) {
  497. const that = this;
  498. uni.showModal({
  499. title: '提示',
  500. content: '确定确认收货吗?',
  501. success: async function(res) {
  502. if (res.confirm) {
  503. const arr = await that.$api(`/orderDetail/${e._id}`, 'POST', {
  504. status: '3'
  505. });
  506. if (arr.errcode == '0') {
  507. uni.showToast({
  508. title: '确认收货成功',
  509. icon: 'none'
  510. })
  511. that.clearPage();
  512. that.search();
  513. } else {
  514. uni.showToast({
  515. title: arr.errmsg,
  516. icon: 'none'
  517. })
  518. }
  519. }
  520. }
  521. });
  522. },
  523. // 拒收
  524. async toReject(e) {
  525. const that = this;
  526. uni.showModal({
  527. title: '提示',
  528. content: '确定拒收快递吗?',
  529. success: async function(res) {
  530. if (res.confirm) {
  531. let arr = await that.$api(`/afterSale`, 'POST', {
  532. order_detail: e._id,
  533. type: '5'
  534. })
  535. if (arr.errcode == '0') {
  536. uni.showToast({
  537. title: '拒收申请完成',
  538. icon: 'none'
  539. })
  540. that.clearPage();
  541. that.search();
  542. } else {
  543. uni.showToast({
  544. title: arr.errmsg,
  545. icon: 'none'
  546. })
  547. }
  548. }
  549. }
  550. });
  551. },
  552. // 立即评价
  553. toAppraise(e) {
  554. const that = this;
  555. that.clearPage();
  556. uni.navigateTo({
  557. url: `/pagesMy/order/appraise?id=${e._id}&status=${'0'}`
  558. })
  559. },
  560. // 申请售后
  561. toAfter(e) {
  562. const that = this;
  563. that.clearPage();
  564. uni.navigateTo({
  565. url: `/pagesMy/order/service?id=${e._id}&status=${e.status}`
  566. })
  567. },
  568. // 查询其他信息
  569. async searchOther() {
  570. const that = this;
  571. let res;
  572. // 查询状态
  573. res = await that.$api(`/dictData`, 'GET', {
  574. code: 'order_process'
  575. })
  576. if (res.errcode == '0') {
  577. that.$set(that, `statusList`, res.data);
  578. let status = res.data.filter((i) => {
  579. return i.value != '-2' && i.value != '-3';
  580. });
  581. var menu = status.map((item) => {
  582. return {
  583. title: item.label,
  584. active: item.value
  585. }
  586. })
  587. that.$set(that.tabs, `menu`, menu)
  588. }
  589. },
  590. // 选择选项卡
  591. tabsChange(e) {
  592. const that = this;
  593. that.$set(that.tabs, `active`, e.active)
  594. that.$set(that, `status`, e.active);
  595. that.clearPage();
  596. that.search()
  597. },
  598. // 清空列表
  599. clearPage() {
  600. const that = this;
  601. that.$set(that, `list`, [])
  602. that.$set(that, `skip`, 0)
  603. that.$set(that, `limit`, 6)
  604. that.$set(that, `page`, 0)
  605. }
  606. },
  607. }
  608. </script>
  609. <style lang="scss">
  610. .main {
  611. display: flex;
  612. flex-direction: column;
  613. width: 100vw;
  614. height: 100vh;
  615. .one {
  616. padding: 2vw;
  617. input {
  618. padding: 2vw;
  619. background-color: var(--f1Color);
  620. font-size: var(--font14Size);
  621. border-radius: 5px;
  622. }
  623. }
  624. .two {
  625. position: relative;
  626. flex-grow: 1;
  627. background-color: var(--f9Color);
  628. .tabsList {
  629. position: relative;
  630. width: 100vw;
  631. height: 82vh;
  632. .list {
  633. background-color: #fff;
  634. border: 1px solid var(--f5Color);
  635. padding: 2vw;
  636. margin: 0 2vw 2vw 2vw;
  637. border-radius: 5px;
  638. .list_1 {
  639. .goods {
  640. .goodsList {
  641. border-bottom: 1px solid #f1f1f1;
  642. .shopname {
  643. display: flex;
  644. justify-content: space-between;
  645. margin: 0 0 2vw 0;
  646. .shop {
  647. text:last-child {
  648. padding: 0 0 0 2vw;
  649. }
  650. .r {
  651. .set {
  652. margin: 0 1vw 0 0;
  653. font-size: 12px;
  654. border-radius: 5px;
  655. padding: 0 1vw;
  656. color: #ffffff;
  657. background-color: #FF6347;
  658. border: 1px solid #FFA500;
  659. }
  660. }
  661. }
  662. .status {
  663. text-align: right;
  664. color: var(--fFB1Color);
  665. margin: 0 0 1vw 0;
  666. }
  667. }
  668. .goodsList_1 {
  669. .market {
  670. display: flex;
  671. padding: 0 0 2vw 0;
  672. .market_1 {
  673. width: 20vw;
  674. height: 20vw;
  675. .image {
  676. width: 100%;
  677. height: 100%;
  678. border-radius: 5px;
  679. }
  680. }
  681. .market_2 {
  682. width: 55vw;
  683. padding: 0 0 0 2vw;
  684. .goodsname {
  685. font-size: 16px;
  686. margin: 0 0 1vw 0;
  687. }
  688. .specs {
  689. font-size: 14px;
  690. color: #858585;
  691. }
  692. .gift {
  693. margin: 0 1vw 0 0;
  694. font-size: 12px;
  695. color: #FFA500;
  696. border: 1px solid #FFA500;
  697. border-radius: 5px;
  698. padding: 0 1vw;
  699. }
  700. .act {
  701. font-size: 12px;
  702. border: 1px solid var(--fFB1Color);
  703. color: var(--fFB1Color);
  704. border-radius: 5px;
  705. padding: 0 1vw;
  706. }
  707. }
  708. .market_3 {
  709. width: 15vw;
  710. text-align: right;
  711. .price {
  712. color: var(--fFB1Color);
  713. }
  714. }
  715. }
  716. }
  717. }
  718. }
  719. .other {
  720. padding: 0 0 2vw 0;
  721. margin: 2vw 0;
  722. text-align: right;
  723. border-bottom: 1px solid #f1f1f1;
  724. text {
  725. font-size: 14px;
  726. padding: 0 0 0 2vw;
  727. }
  728. }
  729. }
  730. .list_2 {
  731. .list_2_1 {
  732. display: flex;
  733. justify-content: space-between;
  734. margin: 0 0 2vw 0;
  735. .shopname {
  736. text:last-child {
  737. padding: 0 0 0 2vw;
  738. }
  739. .r {
  740. .set {
  741. margin: 0 1vw 0 0;
  742. font-size: 12px;
  743. border-radius: 5px;
  744. padding: 0 1vw;
  745. color: #ffffff;
  746. background-color: #FF6347;
  747. border: 1px solid #FFA500;
  748. }
  749. }
  750. }
  751. .status {
  752. color: var(--fFB1Color);
  753. }
  754. }
  755. .list_2_2 {
  756. border-bottom: 1px solid #f1f1f1;
  757. padding-top: 1vw;
  758. .goods {
  759. display: flex;
  760. padding: 0 0 2vw 0;
  761. .goods_1 {
  762. width: 20vw;
  763. height: 20vw;
  764. .image {
  765. width: 100%;
  766. height: 100%;
  767. border-radius: 5px;
  768. }
  769. }
  770. .goods_2 {
  771. width: 55vw;
  772. padding: 0 0 0 2vw;
  773. .goodsname {
  774. font-size: 16px;
  775. margin: 0 0 1vw 0;
  776. }
  777. .specs {
  778. font-size: 14px;
  779. color: #858585;
  780. }
  781. .gift {
  782. margin: 0 1vw 0 0;
  783. font-size: 12px;
  784. color: #FFA500;
  785. border: 1px solid #FFA500;
  786. border-radius: 5px;
  787. padding: 0 1vw;
  788. }
  789. .act {
  790. font-size: 12px;
  791. border: 1px solid var(--fFB1Color);
  792. color: var(--fFB1Color);
  793. border-radius: 5px;
  794. padding: 0 1vw;
  795. }
  796. }
  797. .goods_3 {
  798. width: 15vw;
  799. text-align: right;
  800. .price {
  801. color: var(--fFB1Color);
  802. }
  803. }
  804. }
  805. .set {
  806. display: flex;
  807. padding: 2vw 0;
  808. justify-content: space-between;
  809. color: var(--fFB1Color);
  810. }
  811. }
  812. .other {
  813. padding: 0 0 2vw 0;
  814. margin: 2vw 0;
  815. text-align: right;
  816. border-bottom: 1px solid #f1f1f1;
  817. text {
  818. font-size: 14px;
  819. padding: 0 0 0 2vw;
  820. }
  821. }
  822. }
  823. .btn {
  824. text-align: right;
  825. button {
  826. margin: 0 2vw 0 0;
  827. }
  828. }
  829. }
  830. }
  831. }
  832. }
  833. .scroll-view {
  834. position: absolute;
  835. top: 0;
  836. left: 0;
  837. right: 0;
  838. bottom: 0;
  839. .list-scroll-view {
  840. display: flex;
  841. flex-direction: column;
  842. }
  843. }
  844. .is_bottom {
  845. text-align: center;
  846. text {
  847. padding: 2vw 0;
  848. display: inline-block;
  849. color: #858585;
  850. font-size: 14px;
  851. }
  852. }
  853. </style>