all.vue 25 KB

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