detail.vue 21 KB

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