all.vue 24 KB

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