index.vue 22 KB

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