all.vue 23 KB

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