index.vue 22 KB

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