index.vue 23 KB

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