detail.vue 21 KB

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