index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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. let res = await that.$api(`/room`, `GET`, form, 'chat');
  337. if (res.errcode == '0') {
  338. if (res.data && e.shop) {
  339. uni.navigateTo({
  340. url: `/pagesMessage/message/info?id=${res.data._id}&name=${e.shop.name}`
  341. })
  342. }
  343. }
  344. },
  345. // 输入框
  346. toInput(e) {
  347. const that = this;
  348. if (that.searchInfo.goods) that.$set(that.searchInfo, `goods`, e.detail.value)
  349. else that.$set(that, `searchInfo`, {})
  350. that.clearPage();
  351. that.search();
  352. },
  353. // 订单详细信息
  354. toInfo(item) {
  355. const that = this;
  356. that.clearPage();
  357. uni.navigateTo({
  358. url: `/pagesMy/order/info?id=${item._id}&status=${item.status}`
  359. })
  360. },
  361. // 取消订单-未支付
  362. toCancel(e) {
  363. const that = this;
  364. uni.showModal({
  365. title: '提示',
  366. content: '确定取消订单吗?',
  367. success: async function(res) {
  368. if (res.confirm) {
  369. const arr = await that.$api(`/order/cancel`, 'POST', {
  370. order_id: e._id
  371. });
  372. if (arr.errcode == '0') {
  373. uni.showToast({
  374. title: '申请取消订单完成',
  375. icon: 'none'
  376. })
  377. that.clearPage();
  378. that.search();
  379. } else {
  380. uni.showToast({
  381. title: arr.errmsg,
  382. icon: 'none'
  383. })
  384. }
  385. }
  386. }
  387. });
  388. },
  389. // 支付
  390. async toPay(e) {
  391. const that = this;
  392. let system = that.system;
  393. if (system.uniPlatform == "mp-weixin") {
  394. uni.showLoading({
  395. title: '加载中'
  396. })
  397. // 支付信息
  398. let p2 = await that.$api('/pay/toPayOrder', 'POST', {
  399. order_id: e,
  400. type: '0'
  401. })
  402. if (p2.errcode == '0' && p2.data.paySign) {
  403. uni.requestPayment({
  404. "provider": "wxpay",
  405. ...p2.data,
  406. success: function(res) {
  407. uni.showToast({
  408. title: '支付成功',
  409. icon: 'none'
  410. })
  411. },
  412. fail: function(err) {
  413. that.$set(that, `disabled`, false)
  414. uni.showToast({
  415. title: `支付失败`,
  416. icon: 'none'
  417. })
  418. },
  419. complete: function() {
  420. uni.hideLoading();
  421. that.clearPage();
  422. that.search();
  423. }
  424. })
  425. } else {
  426. uni.showToast({
  427. title: p2.errmsg || '错误信息',
  428. icon: 'none'
  429. })
  430. }
  431. } else if (res.data.uniPlatform == "app") {
  432. // app支付
  433. uni.requestPayment({
  434. provider: 'alipay',
  435. orderInfo: 'orderInfo',
  436. success: function(res) {
  437. console.log('success:' + JSON.stringify(res));
  438. },
  439. fail: function(err) {
  440. console.log('fail:' + JSON.stringify(err));
  441. }
  442. });
  443. } else {
  444. uni.showToast({
  445. title: `平台不支持支付`,
  446. icon: 'none'
  447. })
  448. }
  449. },
  450. // 取消订单-已支付
  451. toCancels(e) {
  452. const that = this;
  453. uni.showModal({
  454. title: '提示',
  455. content: '确定取消订单吗?',
  456. success: async function(res) {
  457. if (res.confirm) {
  458. let arr = await that.$api(`/afterSale`, 'POST', {
  459. order_detail: e._id,
  460. type: '4'
  461. })
  462. if (arr.errcode == '0') {
  463. uni.showToast({
  464. title: '申请取消订单完成',
  465. icon: 'none'
  466. })
  467. that.clearPage();
  468. that.search();
  469. } else {
  470. uni.showToast({
  471. title: arr.errmsg,
  472. icon: 'none'
  473. })
  474. }
  475. }
  476. }
  477. });
  478. },
  479. // 查看物流
  480. toLogi(e) {
  481. const that = this;
  482. that.clearPage();
  483. uni.navigateTo({
  484. url: `/pagesMy/logistics/index?id=${e._id}&type=${'order'}`
  485. })
  486. },
  487. // 确认收货
  488. async toConfirm(e) {
  489. const that = this;
  490. uni.showModal({
  491. title: '提示',
  492. content: '确定确认收货吗?',
  493. success: async function(res) {
  494. if (res.confirm) {
  495. const arr = await that.$api(`/orderDetail/${e._id}`, 'POST', {
  496. status: '3'
  497. });
  498. if (arr.errcode == '0') {
  499. uni.showToast({
  500. title: '确认收货成功',
  501. icon: 'none'
  502. })
  503. that.clearPage();
  504. that.search();
  505. } else {
  506. uni.showToast({
  507. title: arr.errmsg,
  508. icon: 'none'
  509. })
  510. }
  511. }
  512. }
  513. });
  514. },
  515. // 拒收
  516. async toReject(e) {
  517. const that = this;
  518. uni.showModal({
  519. title: '提示',
  520. content: '确定拒收快递吗?',
  521. success: async function(res) {
  522. if (res.confirm) {
  523. let arr = await that.$api(`/afterSale`, 'POST', {
  524. order_detail: e._id,
  525. type: '5'
  526. })
  527. if (arr.errcode == '0') {
  528. uni.showToast({
  529. title: '拒收申请完成',
  530. icon: 'none'
  531. })
  532. that.clearPage();
  533. that.search();
  534. } else {
  535. uni.showToast({
  536. title: arr.errmsg,
  537. icon: 'none'
  538. })
  539. }
  540. }
  541. }
  542. });
  543. },
  544. // 立即评价
  545. toAppraise(e) {
  546. const that = this;
  547. that.clearPage();
  548. uni.navigateTo({
  549. url: `/pagesMy/order/appraise?id=${e._id}&status=${'0'}`
  550. })
  551. },
  552. // 申请售后
  553. toAfter(e) {
  554. const that = this;
  555. that.clearPage();
  556. uni.navigateTo({
  557. url: `/pagesMy/order/service?id=${e._id}&status=${e.status}`
  558. })
  559. },
  560. // 查询其他信息
  561. async searchOther() {
  562. const that = this;
  563. let res;
  564. // 查询状态
  565. res = await that.$api(`/dictData`, 'GET', {
  566. code: 'order_process'
  567. })
  568. if (res.errcode == '0') {
  569. that.$set(that, `statusList`, res.data);
  570. var menu = res.data.map((item) => {
  571. return {
  572. title: item.label,
  573. active: item.value
  574. }
  575. })
  576. that.$set(that.tabs, `menu`, menu)
  577. }
  578. },
  579. // 选择选项卡
  580. tabsChange(e) {
  581. const that = this;
  582. that.$set(that.tabs, `active`, e.active)
  583. that.$set(that, `status`, e.active);
  584. that.clearPage();
  585. that.search()
  586. },
  587. // 清空列表
  588. clearPage() {
  589. const that = this;
  590. that.$set(that, `list`, [])
  591. that.$set(that, `skip`, 0)
  592. that.$set(that, `limit`, 6)
  593. that.$set(that, `page`, 0)
  594. }
  595. },
  596. }
  597. </script>
  598. <style lang="scss">
  599. .main {
  600. display: flex;
  601. flex-direction: column;
  602. width: 100vw;
  603. height: 100vh;
  604. .one {
  605. padding: 2vw;
  606. input {
  607. padding: 2vw;
  608. background-color: var(--f1Color);
  609. font-size: var(--font14Size);
  610. border-radius: 5px;
  611. }
  612. }
  613. .two {
  614. position: relative;
  615. flex-grow: 1;
  616. background-color: var(--f9Color);
  617. .tabsList {
  618. position: relative;
  619. width: 100vw;
  620. height: 82vh;
  621. .list {
  622. background-color: #fff;
  623. border: 1px solid var(--f5Color);
  624. padding: 2vw;
  625. margin: 0 2vw 2vw 2vw;
  626. border-radius: 5px;
  627. .list_1 {
  628. .goods {
  629. .goodsList {
  630. border-bottom: 1px solid #f1f1f1;
  631. .shopname {
  632. display: flex;
  633. justify-content: space-between;
  634. margin: 0 0 2vw 0;
  635. .shop {
  636. text:last-child {
  637. padding: 0 0 0 2vw;
  638. }
  639. .r {
  640. .set {
  641. margin: 0 1vw 0 0;
  642. font-size: 12px;
  643. border-radius: 5px;
  644. padding: 0 1vw;
  645. color: #ffffff;
  646. background-color: #FF6347;
  647. border: 1px solid #FFA500;
  648. }
  649. }
  650. }
  651. .status {
  652. text-align: right;
  653. color: var(--ff0Color);
  654. margin: 0 0 1vw 0;
  655. }
  656. }
  657. .goodsList_1 {
  658. .market {
  659. display: flex;
  660. padding: 0 0 2vw 0;
  661. .market_1 {
  662. width: 20vw;
  663. height: 20vw;
  664. .image {
  665. width: 100%;
  666. height: 100%;
  667. border-radius: 5px;
  668. }
  669. }
  670. .market_2 {
  671. width: 55vw;
  672. padding: 0 0 0 2vw;
  673. .goodsname {
  674. font-size: 16px;
  675. margin: 0 0 1vw 0;
  676. }
  677. .specs {
  678. font-size: 14px;
  679. color: #858585;
  680. }
  681. .gift {
  682. margin: 0 1vw 0 0;
  683. font-size: 12px;
  684. color: #FFA500;
  685. border: 1px solid #FFA500;
  686. border-radius: 5px;
  687. padding: 0 1vw;
  688. }
  689. .act {
  690. font-size: 12px;
  691. border: 1px solid var(--fFB1Color);
  692. color: var(--fFB1Color);
  693. border-radius: 5px;
  694. padding: 0 1vw;
  695. }
  696. }
  697. .market_3 {
  698. width: 15vw;
  699. text-align: right;
  700. .price {
  701. color: #ff0000;
  702. }
  703. }
  704. }
  705. }
  706. }
  707. }
  708. .other {
  709. padding: 0 0 2vw 0;
  710. margin: 2vw 0;
  711. text-align: right;
  712. border-bottom: 1px solid #f1f1f1;
  713. text {
  714. font-size: 14px;
  715. padding: 0 0 0 2vw;
  716. }
  717. }
  718. }
  719. .list_2 {
  720. .list_2_1 {
  721. display: flex;
  722. justify-content: space-between;
  723. margin: 0 0 2vw 0;
  724. .shopname {
  725. text:last-child {
  726. padding: 0 0 0 2vw;
  727. }
  728. .r {
  729. .set {
  730. margin: 0 1vw 0 0;
  731. font-size: 12px;
  732. border-radius: 5px;
  733. padding: 0 1vw;
  734. color: #ffffff;
  735. background-color: #FF6347;
  736. border: 1px solid #FFA500;
  737. }
  738. }
  739. }
  740. .status {
  741. color: var(--ff0Color);
  742. }
  743. }
  744. .list_2_2 {
  745. border-bottom: 1px solid #f1f1f1;
  746. padding-top: 1vw;
  747. .goods {
  748. display: flex;
  749. padding: 0 0 2vw 0;
  750. .goods_1 {
  751. width: 20vw;
  752. height: 20vw;
  753. .image {
  754. width: 100%;
  755. height: 100%;
  756. border-radius: 5px;
  757. }
  758. }
  759. .goods_2 {
  760. width: 55vw;
  761. padding: 0 0 0 2vw;
  762. .goodsname {
  763. font-size: 16px;
  764. margin: 0 0 1vw 0;
  765. }
  766. .specs {
  767. font-size: 14px;
  768. color: #858585;
  769. }
  770. .gift {
  771. margin: 0 1vw 0 0;
  772. font-size: 12px;
  773. color: #FFA500;
  774. border: 1px solid #FFA500;
  775. border-radius: 5px;
  776. padding: 0 1vw;
  777. }
  778. .act {
  779. font-size: 12px;
  780. border: 1px solid var(--fFB1Color);
  781. color: var(--fFB1Color);
  782. border-radius: 5px;
  783. padding: 0 1vw;
  784. }
  785. }
  786. .goods_3 {
  787. width: 15vw;
  788. text-align: right;
  789. .price {
  790. color: #ff0000;
  791. }
  792. }
  793. }
  794. .set {
  795. display: flex;
  796. padding: 2vw 0;
  797. justify-content: space-between;
  798. color: #ff0000;
  799. }
  800. }
  801. .other {
  802. padding: 0 0 2vw 0;
  803. margin: 2vw 0;
  804. text-align: right;
  805. border-bottom: 1px solid #f1f1f1;
  806. text {
  807. font-size: 14px;
  808. padding: 0 0 0 2vw;
  809. }
  810. }
  811. }
  812. .btn {
  813. text-align: right;
  814. button {
  815. margin: 0 2vw 0 0;
  816. }
  817. }
  818. }
  819. }
  820. }
  821. }
  822. .scroll-view {
  823. position: absolute;
  824. top: 0;
  825. left: 0;
  826. right: 0;
  827. bottom: 0;
  828. .list-scroll-view {
  829. display: flex;
  830. flex-direction: column;
  831. }
  832. }
  833. .is_bottom {
  834. text-align: center;
  835. text {
  836. padding: 2vw 0;
  837. display: inline-block;
  838. color: #858585;
  839. font-size: 14px;
  840. }
  841. }
  842. </style>