all.vue 23 KB

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