detail.vue 23 KB

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