detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <scroll-view scroll-y="true" class="scroll-view">
  6. <view class="list-scroll-view">
  7. <view class="one_1">
  8. <banner :goodsInfo="info.goods" :goodsColect="goodsColect" @toGoodscolect="toGoodscolect">
  9. </banner>
  10. </view>
  11. <view class="one_2">
  12. <text class="money_1"
  13. v-if="infospecs.leader_price"><text>团长价¥</text>{{infospecs.leader_price||0}}</text>
  14. <text class="money" v-if="infospecs.price"><text>特价¥</text>{{infospecs.price||0}}</text>
  15. <text class="money"
  16. v-if="!infospecs.price&&!infospecs.leader_price"><text>¥</text>{{infospecs.sell_money||0}}</text>
  17. <text class="money"><text>¥</text>{{infospecs.flow_money||0}}</text>
  18. </view>
  19. <view class="one_3" v-if="discount">
  20. <text v-if="discount.full_decrement&&discount.full_decrement.length>0" class="act"
  21. v-for="(item,index) in discount.full_decrement" :key="index">{{item}}</text>
  22. <text v-if="discount.full_fold&&discount.full_decrement.length>0" class="act"
  23. v-for="(item,index) in discount.full_fold" :key="index">{{item}}</text>
  24. </view>
  25. <view class="one_4">
  26. <text class="num">已售{{info.goods&&info.goods.sell_num||0}}件</text>
  27. </view>
  28. <view class="one_5">
  29. <view class="name">
  30. {{info.goods&&info.goods.name}}
  31. </view>
  32. <view class="brief">
  33. {{info.goods&&info.goods.shot_brief||''}}
  34. </view>
  35. <view class="money">
  36. <!-- <text>运费{{infospecs.freight||'包邮'}}元</text> -->
  37. <text>{{info.goods&&info.goods.send_time}}内发货</text>
  38. </view>
  39. </view>
  40. <view class="one_6" @tap="toActivity">
  41. <view class="l">
  42. <text>{{info.act&&info.act.length>0?`活动`:`暂无活动`}}</text>
  43. </view>
  44. <view class="r">
  45. <text class="iconfont icon-jiantouyou"></text>
  46. </view>
  47. </view>
  48. <view class="one_6" @tap="toSpec">
  49. <view class="l">
  50. 选择规格
  51. </view>
  52. <view class="r">
  53. <text class="iconfont icon-jiantouyou"></text>
  54. </view>
  55. </view>
  56. <view class="one_6" @tap="toEvaluate">
  57. <view class="l">
  58. <text>{{evaluate_num>0?`商品评价(${evaluate_num})`:`暂无评价`}}</text>
  59. </view>
  60. <view class="r">
  61. <text class="iconfont icon-jiantouyou"></text>
  62. </view>
  63. </view>
  64. <view class="one_7" v-if="info.sets&&info.sets.length>0" @tap="toSets">
  65. <view class="one_7_1">
  66. 优惠套装<text>({{info.sets.length||0}})</text>
  67. </view>
  68. <view class="one_7_2">
  69. <view class="image" v-for="(set,index) in info.sets[0].set" :key="index">
  70. <image class="image" :src="set.file&&set.file.length>0?set.file[0].url:''"
  71. mode="aspectFit">
  72. </image>
  73. </view>
  74. <view class="money">
  75. <view class="money_1">共{{info.sets[0].goods_total}}件</view>
  76. <view class="money_2">¥{{info.sets[0].sell_money}}</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="one_8">
  81. <view class="one_8_1">
  82. <view class="shop_1">
  83. <image class="image"
  84. :src="info.shop&&info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''"
  85. mode="aspectFit"></image>
  86. </view>
  87. <view class="shop_2">
  88. <view class="name">{{info.shop&&info.shop.name}}</view>
  89. <view class="num"><text>宝贝数:</text>{{info.shop&&info.shop.goods_num||0}}</view>
  90. </view>
  91. </view>
  92. <view class="one_8_2">
  93. <view class="score_1">
  94. <text>商品:</text>
  95. <text>{{info.shop&&info.shop.goods_score||5}}</text>
  96. <text>|</text>
  97. </view>
  98. <view class="score_1">
  99. <text>发货:</text>
  100. <text>{{info.shop&&info.shop.send_score||5}}</text>
  101. <text>|</text>
  102. </view>
  103. <view class="score_1">
  104. <text>服务:</text>
  105. <text>{{info.shop&&info.shop.service_score||5}}</text>
  106. </view>
  107. </view>
  108. <view class="one_8_3">
  109. <view class="btn">
  110. <button size="mini" @tap="toShop">进入店铺</button>
  111. </view>
  112. <view class="btn">
  113. <button size="mini" @tap="toShopcolect">{{shopColect==true?'已关注':'关注'}}</button>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="one_9">
  118. <rich-text :nodes="info.goods&&info.goods.brief"></rich-text>
  119. </view>
  120. </view>
  121. </scroll-view>
  122. </view>
  123. <view class="two">
  124. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft"
  125. @buttonClick="toNavright" />
  126. </view>
  127. </view>
  128. <!-- 跳转菜单 -->
  129. <view class="bar_1">
  130. <text @tap="toMenubar" class="iconfont icon-gengduo"></text>
  131. </view>
  132. <view class="bar_2" v-if="is_menu">
  133. <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'"
  134. @click="toPath(item)">
  135. <image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
  136. <text class="name"> {{item.name}}</text>
  137. </view>
  138. </view>
  139. <!-- 规格 -->
  140. <specs_1></specs_1>
  141. </mobile-frame>
  142. </template>
  143. <script>
  144. import banner from './components/banner_1.vue';
  145. import specs_1 from './components/specs_1.vue';
  146. export default {
  147. components: {
  148. banner
  149. },
  150. data() {
  151. return {
  152. // 系统设置
  153. config: {},
  154. // 商品id
  155. id: '',
  156. // 分享人id
  157. inviter: '',
  158. // 当前用户信息
  159. user: {},
  160. // 是否关注商品
  161. goodsColect: false,
  162. // 是否关注店铺
  163. shopColect: false,
  164. // 评价数
  165. evaluate_num: 0,
  166. // 商品详情
  167. info: {},
  168. // 规格
  169. infospecs: {},
  170. // 优惠
  171. discount: {},
  172. // 底部菜单
  173. options: [{
  174. icon: 'shop',
  175. text: '店铺',
  176. type: 'shop',
  177. route: 'pagesHome/shop/index',
  178. },
  179. {
  180. icon: 'cart',
  181. text: '购物车',
  182. type: 'market',
  183. route: 'pages/market/index',
  184. },
  185. ],
  186. buttonGroup: [{
  187. text: '加入购物车',
  188. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  189. color: '#fff',
  190. type: '0'
  191. },
  192. {
  193. text: '立即购买',
  194. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  195. color: '#fff',
  196. type: '1'
  197. }
  198. ],
  199. // 系统菜单
  200. barList: [],
  201. is_menu: false,
  202. // 规格弹框
  203. popupShow: '1',
  204. // 规格信息
  205. is_specs: 0,
  206. btn_type: '1',
  207. specsInfo: {},
  208. // 是否零库存
  209. is_zero: false,
  210. // 商品设置
  211. group_config: [],
  212. // 限制说明
  213. buyList: [],
  214. // 购买数量
  215. buy_num: 1,
  216. // 规格弹出框
  217. dialog: {
  218. show: false,
  219. type: '1'
  220. },
  221. };
  222. },
  223. onLoad: async function(e) {
  224. const that = this;
  225. that.$set(that, `id`, e.id || '');
  226. that.$set(that, `inviter`, e.inviter || '');
  227. await that.searchConfig();
  228. await that.search();
  229. await that.configShare();
  230. },
  231. onShow: async function() {
  232. const that = this;
  233. await that.watchLogin();
  234. },
  235. onUnload: function() {
  236. // 页面卸载,重新部署分享内容
  237. const that = this;
  238. if (that.config) {
  239. // 赋值默认值
  240. that.$config.share = {
  241. title: that.config.title,
  242. path: '/pages/index/index',
  243. imageUrl: that.config.config.share[0].url
  244. }
  245. }
  246. },
  247. methods: {
  248. // 查询系统设置
  249. searchConfig() {
  250. const that = this;
  251. uni.getStorage({
  252. key: 'config',
  253. success: function(res) {
  254. let data = res.data;
  255. that.$set(that, `config`, data);
  256. if (data.bottom_menu && data.bottom_menu.list.length > 0) {
  257. let list = data.bottom_menu.list.sort((a, b) => {
  258. return a.sort - b.sort
  259. });
  260. that.$set(that, `barList`, list)
  261. }
  262. }
  263. })
  264. },
  265. // 查询用户信息
  266. watchLogin() {
  267. const that = this;
  268. uni.getStorage({
  269. key: 'token',
  270. success: async function(res) {
  271. let user = that.$jwt(res.data);
  272. if (user) that.$set(that, `user`, user);
  273. },
  274. fail: function(err) {
  275. console.log('暂无用户信息');
  276. }
  277. })
  278. },
  279. // 查询其他信息
  280. async searchOther() {
  281. const that = this;
  282. let user = that.user;
  283. let res;
  284. // 是否关注商品
  285. res = await that.$api(`/storeGoods/check`, `GET`, {
  286. customer: user._id,
  287. goods: that.id
  288. });
  289. if (res.errcode == '0') that.$set(that, `goodsColect`, res.data);
  290. // 是否关注店铺
  291. res = await that.$api(`/storeShop/check`, `GET`, {
  292. customer: user._id,
  293. shop: that.info?.shop?._id
  294. });
  295. if (res.errcode == '0') that.$set(that, `shopColect`, res.data);
  296. // 商品设置
  297. res = await that.$api(`/goodsConfig`, `GET`, {
  298. goods: that.id,
  299. shop: that.info?.shop?._id
  300. }, 'group');
  301. if (res.errcode == '0' && res.total > 0) that.$set(that, `group_config`, res.data);
  302. // 限制说明
  303. res = await that.$api(`/dictData`, 'GET', {
  304. code: "buy_limit"
  305. });
  306. if (res.errcode == '0') that.$set(that, `buyList`, res.data)
  307. },
  308. // 查询商品信息
  309. async search() {
  310. const that = this;
  311. let id = that.id;
  312. if (id) {
  313. let res;
  314. res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  315. id: id
  316. });
  317. if (res.errcode == '0') {
  318. let data = res.data;
  319. if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
  320. '<img class="rich-img"');
  321. // 特价
  322. let act;
  323. act = data.act.find(i => i.type == '3')
  324. if (act) {
  325. for (let val of act.list) {
  326. for (let [index, arr] of data.specs.entries()) {
  327. if (val.spec == arr._id) arr.price = val.price
  328. }
  329. }
  330. }
  331. // 显示最低价格的规格信息,不考虑库存问题
  332. if (data.specs && data.specs.length > 0) {
  333. // 规格排序
  334. let indexSpecs = data.specs.sort(function(a, b) {
  335. let i, j;
  336. if (a.price) i = 'price'
  337. else i = 'sell_money'
  338. if (b.price) j = 'price'
  339. else j = 'sell_money'
  340. return a[i] - b[j];
  341. })
  342. that.$set(that, `infospecs`, indexSpecs[0])
  343. }
  344. that.$set(that, `info`, data);
  345. // 优惠
  346. act = data.act.find(i => i.type == '5')
  347. if (act) that.$set(that.discount, `full_decrement`, act.text.split(';'));
  348. act = data.act.find(i => i.type == '6')
  349. if (act) that.$set(that.discount, `full_fold`, act.text.split(';'));
  350. await that.searchOther();
  351. // 查询规格
  352. await that.searchSpecs(data.specs);
  353. // 查询评价数
  354. await that.searchRate(data);
  355. }
  356. } else {
  357. uni.showToast({
  358. title: '暂无商品信息',
  359. icon: 'none'
  360. })
  361. }
  362. },
  363. // 查询规格
  364. searchSpecs(e) {
  365. const that = this;
  366. if (e.length > 0) {
  367. let data = e.find(i => i.num > 0);
  368. let dataIndex = e.findIndex(i => i._id == data._id);
  369. if (data) {
  370. let specsInfo = that.group_config.find(i => i.spec._id == data._id)
  371. if (specsInfo?._id && that.user.is_leader == '0') data.can_group = '0'
  372. else data.can_group = '1'
  373. let limit = that.buyList.find((i) => i.value == data.buy_limit);
  374. if (limit) data.buy_name = limit.label
  375. that.$set(that, `specsInfo`, data);
  376. that.$set(that, `is_specs`, dataIndex);
  377. }
  378. }
  379. },
  380. // 查询评价数
  381. async searchRate(e) {
  382. const that = this;
  383. let res = await that.$api(`/goodsRate`, `GET`, {
  384. limit: 1,
  385. goods: e.goods._id
  386. })
  387. if (res.errcode == '0') that.$set(that, `evaluate_num`, res.total);
  388. },
  389. // 关注商品
  390. async toGoodscolect() {
  391. const that = this;
  392. let user = that.user;
  393. if (user && user._id) {
  394. let res = await that.$api(`/storeGoods`, `POST`, {
  395. customer: user._id,
  396. goods: that.id
  397. });
  398. if (res.errcode == '0') {
  399. uni.showToast({
  400. title: res.data.msg,
  401. icon: 'none'
  402. })
  403. that.$set(that, `goodsColect`, res.data.result)
  404. }
  405. } else {
  406. uni.showToast({
  407. title: '暂无账号,无法收藏商品',
  408. icon: 'none'
  409. })
  410. }
  411. },
  412. // 活动说明
  413. toActivity() {
  414. const that = this;
  415. if (that.info.act.length > 0) {
  416. that.$set(that, `popupShow`, '2')
  417. that.$refs.specShow.open();
  418. }
  419. },
  420. // 活动说明
  421. toActivity() {
  422. const that = this;
  423. if (that.info.act.length > 0) {
  424. that.$set(that, `popupShow`, '2')
  425. that.$refs.specShow.open();
  426. }
  427. },
  428. // 选择规格
  429. toSpec() {
  430. const that = this;
  431. this.$set(that, `popupShow`, '1')
  432. that.$refs.specShow.open();
  433. },
  434. // 选择规格
  435. toSpecs(e) {
  436. const that = this;
  437. let specs = that.info.specs;
  438. let dataIndex = specs.findIndex(i => i._id == e._id);
  439. that.$set(that, `is_specs`, dataIndex);
  440. let specsInfo = that.group_config.find(i => i.spec._id == e._id)
  441. if (specsInfo?._id && that.user.is_leader == '0') e.can_group = '0'
  442. else e.can_group = '1'
  443. let limit = that.buyList.find((i) => i.value == e.buy_limit);
  444. if (limit) e.buy_name = limit.label
  445. that.$set(that, `specsInfo`, e)
  446. that.$set(that, `buy_num`, 1);
  447. if (e.num <= 0) that.$set(that, `is_zero`, true)
  448. else that.$set(that, `is_zero`, false)
  449. },
  450. // 评价
  451. toEvaluate() {
  452. const that = this;
  453. uni.navigateTo({
  454. url: `/pagesHome/order/appraise?id=${that.info.goods._id}`
  455. })
  456. },
  457. // 查看套装
  458. toSets() {
  459. const that = this;
  460. if (that.info.sets.length > 0) {
  461. that.$set(that, `popupShow`, '3')
  462. that.$refs.specShow.open();
  463. }
  464. },
  465. // 套装详情
  466. toDeatil(e) {
  467. const that = this;
  468. uni.navigateTo({
  469. url: `/pagesHome/order/detail?id=${e.goods}`
  470. })
  471. },
  472. // 进入店铺
  473. toShop() {
  474. const that = this;
  475. let info = that.info;
  476. uni.navigateTo({
  477. url: `/pagesHome/shop/index?id=${info.shop._id}`
  478. })
  479. },
  480. // 关注店铺
  481. async toShopcolect() {
  482. const that = this;
  483. let user = that.user;
  484. if (user && user._id) {
  485. let res = await that.$api(`/storeShop`, `POST`, {
  486. customer: user._id,
  487. shop: that.info.shop._id
  488. });
  489. if (res.errcode == '0') {
  490. uni.showToast({
  491. title: res.data.msg,
  492. icon: 'none'
  493. })
  494. that.$set(that, `shopColect`, res.data.result)
  495. }
  496. } else {
  497. uni.showToast({
  498. title: '暂无账号,无法关注商铺',
  499. icon: 'none'
  500. })
  501. }
  502. },
  503. // 关闭弹框
  504. toClose() {
  505. const that = this;
  506. that.$set(that, `btn_type`, '1');
  507. that.$refs.specShow.close();
  508. },
  509. // 规格预览
  510. diaView() {
  511. const that = this;
  512. that.$set(that, `dialog`, {
  513. show: true,
  514. type: '1'
  515. })
  516. },
  517. // 计数器
  518. toCount(e) {
  519. const that = this;
  520. that.$set(that, `buy_num`, e)
  521. },
  522. // 立即购买
  523. async toBuy() {
  524. const that = this;
  525. let user = that.user;
  526. let info = that.info;
  527. let specsInfo = that.specsInfo;
  528. let act = that.info.act.map(item => {
  529. return item._id
  530. })
  531. if (user && user._id) {
  532. let obj = [{
  533. customer: user._id,
  534. shop: info.shop._id,
  535. goods: info.goods._id,
  536. goodsSpec: specsInfo._id,
  537. num: that.buy_num,
  538. inviter: that.inviter,
  539. act
  540. }]
  541. let res = await that.$api(`/util/checkCanBuy`, 'POST', obj)
  542. if (res.errcode == '0') {
  543. if (res.data.result == true) {
  544. uni.navigateTo({
  545. url: `/pagesHome/order/order?key=${res.data.key}`
  546. })
  547. } else {
  548. uni.showToast({
  549. title: res.data.msg,
  550. icon: 'none',
  551. duration: 5000
  552. })
  553. }
  554. } else {
  555. uni.showToast({
  556. title: res.errmsg,
  557. icon: 'none'
  558. })
  559. }
  560. } else {
  561. uni.navigateTo({
  562. url: `/pages/login/index`
  563. })
  564. }
  565. },
  566. // 店铺,购物车
  567. toNavleft(e) {
  568. const that = this;
  569. if (e.content.type == 'shop') {
  570. that.toShop();
  571. } else if (e.content.type == 'market') {
  572. let obj = {
  573. route: e.content.route
  574. }
  575. that.toPath(obj)
  576. }
  577. },
  578. // 加入购物车,立即购买
  579. toNavright(e) {
  580. const that = this;
  581. that.$set(that, `popupShow`, '1');
  582. that.$set(that, `btn_type`, e.content.type);
  583. that.$refs.specShow.open();
  584. },
  585. // 配置分享内容
  586. configShare() {
  587. const that = this;
  588. let id = that.id;
  589. let inviter = that.user && that.user._id ? that.user._id : '';
  590. let title = that.info && that.info.goods ? that.info.goods.name : '';
  591. let imageUrl = that.info && that.info.goods ? that.info.goods.file[0].url : '';
  592. that.$config.share = {
  593. title: title,
  594. path: `/pagesHome/order/detail?id=${id}&inviter=${inviter}`,
  595. imageUrl: imageUrl
  596. }
  597. },
  598. // 右侧菜单
  599. toMenubar() {
  600. const that = this;
  601. that.$set(that, `is_menu`, that.is_menu ? false : true)
  602. },
  603. toPath(e) {
  604. let url = `/${e.route}`;
  605. uni.reLaunch({
  606. url
  607. })
  608. },
  609. }
  610. }
  611. </script>
  612. <style lang="scss">
  613. .main {
  614. display: flex;
  615. flex-direction: column;
  616. width: 100vw;
  617. height: 100vh;
  618. .one {
  619. position: relative;
  620. flex-grow: 1;
  621. .one_2 {
  622. border-bottom: 0.5vw solid var(--f9Color);
  623. padding: 2vw;
  624. .money_1 {
  625. color: #23B67A;
  626. font-size: 20px;
  627. padding: 0 1vw 0 0;
  628. font-weight: bold;
  629. text {
  630. font-size: 14px;
  631. }
  632. }
  633. .money {
  634. font-size: 20px;
  635. padding: 0 1vw 0 0;
  636. color: #ff0000;
  637. font-weight: bold;
  638. text {
  639. font-size: 14px;
  640. }
  641. }
  642. .money:last-child {
  643. font-size: 16px;
  644. color: #858585;
  645. text-decoration: line-through;
  646. }
  647. }
  648. .one_3 {
  649. display: flex;
  650. flex-wrap: wrap;
  651. padding: 1vw;
  652. border-bottom: 0.5vw solid var(--f9Color);
  653. .act {
  654. font-size: 12px;
  655. border: 1px solid var(--fFB1Color);
  656. margin: 0 1vw 1vw 0;
  657. color: var(--fFB1Color);
  658. border-radius: 6px;
  659. padding: 0 1vw;
  660. }
  661. .num {
  662. font-size: 12px;
  663. color: #858585;
  664. }
  665. }
  666. .one_4 {
  667. display: flex;
  668. flex-wrap: wrap;
  669. padding: 1vw;
  670. border-bottom: 0.5vw solid var(--f9Color);
  671. .num {
  672. font-size: 12px;
  673. color: #858585;
  674. }
  675. }
  676. .one_5 {
  677. border-bottom: 0.5vw solid var(--f9Color);
  678. padding: 2vw;
  679. .name {
  680. font-size: 17px;
  681. font-weight: bold;
  682. margin: 0 0 2vw 0;
  683. }
  684. .brief {
  685. font-size: 14px;
  686. color: #858585;
  687. margin: 0 0 1vw 0;
  688. }
  689. .money {
  690. font-size: 13px;
  691. color: #858585;
  692. text {
  693. padding: 0 2vw 0 0;
  694. }
  695. }
  696. }
  697. .one_6 {
  698. display: flex;
  699. justify-content: space-between;
  700. padding: 2vw;
  701. border-bottom: 0.5vw solid var(--f9Color);
  702. font-size: 14px;
  703. }
  704. .one_7 {
  705. padding: 2vw;
  706. border-bottom: 2vw solid var(--f9Color);
  707. border-top: 1vw solid var(--f9Color);
  708. .one_7_1 {
  709. padding: 2vw 0;
  710. font-size: 14px;
  711. text {
  712. padding: 0 0 0 1vw;
  713. font-size: 12px;
  714. color: #858585;
  715. }
  716. }
  717. .one_7_2 {
  718. display: flex;
  719. justify-content: space-between;
  720. align-items: center;
  721. padding: 2vw;
  722. border-radius: 5px;
  723. background-color: var(--f9Color);
  724. .image {
  725. width: 20vw;
  726. height: 20vw;
  727. .image {
  728. width: 100%;
  729. height: 100%;
  730. border-radius: 5px;
  731. background-color: #fff;
  732. }
  733. }
  734. .money {
  735. text-align: center;
  736. .money_1 {
  737. font-size: 12px;
  738. color: #858585;
  739. }
  740. .money_2 {
  741. font-size: 12px;
  742. color: #ff0000;
  743. }
  744. }
  745. }
  746. }
  747. .one_8 {
  748. padding: 2vw;
  749. border-bottom: 0.5vw solid var(--f9Color);
  750. .one_8_1 {
  751. margin: 0 0 1vw 0;
  752. display: flex;
  753. .shop_1 {
  754. width: 15vw;
  755. height: 15vw;
  756. border: 1px solid #f1f1f1;
  757. .image {
  758. width: 100%;
  759. height: 100%;
  760. }
  761. }
  762. .shop_2 {
  763. width: 78vw;
  764. padding: 0 0 0 2vw;
  765. .name {
  766. font-size: 14px;
  767. margin: 0 0 1vw 0;
  768. }
  769. .num {
  770. font-size: 12px;
  771. color: #858585;
  772. text:last-child {
  773. color: #000;
  774. }
  775. }
  776. }
  777. }
  778. .one_8_2 {
  779. margin: 0 0 2vw 0;
  780. display: flex;
  781. justify-content: space-between;
  782. padding: 2vw 0;
  783. .score_1 {
  784. width: 33vw;
  785. text-align: center;
  786. font-size: 14px;
  787. color: #858585;
  788. text:nth-child(2) {
  789. color: #ff0000;
  790. }
  791. text:nth-child(3) {
  792. float: right;
  793. }
  794. }
  795. }
  796. .one_8_3 {
  797. display: flex;
  798. justify-content: space-around;
  799. .btn {
  800. width: 40vw;
  801. button {
  802. width: 100%;
  803. font-size: 15px;
  804. }
  805. }
  806. }
  807. }
  808. .one_9 {
  809. padding: 2vw;
  810. .rich-img {
  811. width: 100% !important;
  812. display: block;
  813. }
  814. }
  815. }
  816. .two {
  817. width: 100vw;
  818. height: 8vh;
  819. overflow: hidden;
  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. .bar_1 {
  834. position: fixed;
  835. right: 2vw;
  836. bottom: 20vw;
  837. text {
  838. background-color: #858585;
  839. border-radius: 90px;
  840. font-size: 30px;
  841. }
  842. }
  843. .bar_2 {
  844. position: fixed;
  845. right: 2vw;
  846. bottom: 28vw;
  847. width: 27vw;
  848. background: #ffffff;
  849. padding: 0 2vw;
  850. box-shadow: 0 0 5px #858585;
  851. .list {
  852. display: flex;
  853. border-bottom: 1px solid #f1f1f1;
  854. padding: 1vw 0;
  855. .image {
  856. width: 8vw;
  857. height: 8vw;
  858. }
  859. .name {
  860. font-size: 14px;
  861. position: relative;
  862. top: 2vw;
  863. left: 2vw;
  864. }
  865. }
  866. .list:last-child {
  867. border-bottom: none;
  868. }
  869. }
  870. </style>