detail.vue 24 KB

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