all.vue 23 KB

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