all.vue 23 KB

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