detail.vue 24 KB

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