detail copy.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620
  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" :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 class="acttags" v-if="info.goods.act_tags&&info.goods.act_tags.length>0">
  21. <text v-for="i in info.goods.act_tags" :key="i">{{i.label}}</text>
  22. </view>
  23. </view>
  24. <view class="one_2">
  25. <text class="money_1"
  26. v-if="infospecs.leader_price"><text>会员价¥</text>{{infospecs.leader_price||0}}</text>
  27. <text class="money" v-if="infospecs.price"><text>特价¥</text>{{infospecs.price||0}}</text>
  28. <text class="money"
  29. v-if="!infospecs.price&&!infospecs.leader_price"><text>¥</text>{{infospecs.sell_money||0}}</text>
  30. <text class="money"><text>¥</text>{{infospecs.flow_money||0}}</text>
  31. </view>
  32. <view class="one_3" v-if="discount">
  33. <text v-if="discount.full_decrement" class="act"
  34. v-for="(item,index) in discount.full_decrement" :key="index">{{item}}</text>
  35. <text v-if="discount.full_fold" class="act" v-for="(item,index) in discount.full_fold"
  36. :key="index">{{item}}</text>
  37. </view>
  38. <view class="one_3">
  39. <text class="num">已售{{info.goods.sell_num||0}}件</text>
  40. </view>
  41. <view class="one_4">
  42. <view class="name">
  43. {{info.goods.name}}
  44. </view>
  45. <view class="brief">
  46. {{info.goods.shot_brief||''}}
  47. </view>
  48. <view class="money">
  49. <!-- <text>运费{{infospecs.freight||'包邮'}}元</text> -->
  50. <text>{{info.goods.send_time}}内发货</text>
  51. </view>
  52. </view>
  53. <view class="one_5" @tap="toActivity">
  54. <view class="l">
  55. <text>{{info.act.length>0?`活动`:`暂无活动`}}</text>
  56. </view>
  57. <view class="r">
  58. <text class="iconfont icon-jiantouyou"></text>
  59. </view>
  60. </view>
  61. <view class="one_5" @tap="toSpec">
  62. <view class="l">
  63. 选择规格
  64. </view>
  65. <view class="r">
  66. <text class="iconfont icon-jiantouyou"></text>
  67. </view>
  68. </view>
  69. <view class="one_6" @tap="toEvaluate">
  70. <view class="l">
  71. <text>{{evaluate_num>0?`商品评价(${evaluate_num})`:`暂无评价`}}</text>
  72. </view>
  73. <view class="r">
  74. <text class="iconfont icon-jiantouyou"></text>
  75. </view>
  76. </view>
  77. <view class="one_7" v-if="info.sets.length>0" @tap="toSets">
  78. <view class="one_7_1">
  79. 优惠套装<text>({{info.sets.length||0}})</text>
  80. </view>
  81. <view class="one_7_2">
  82. <view class="image" v-for="(set,index) in info.sets[0].set" :key="index">
  83. <image class="image" :src="set.file&&set.file.length>0?set.file[0].url:''"
  84. mode="aspectFit">
  85. </image>
  86. </view>
  87. <view class="money">
  88. <view class="money_1">共{{info.sets[0].goods_total}}件</view>
  89. <view class="money_2">¥{{info.sets[0].sell_money}}</view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="one_8">
  94. <view class="one_8_1">
  95. <view class="shop_1">
  96. <image class="image"
  97. :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''"
  98. mode="aspectFit"></image>
  99. </view>
  100. <view class="shop_2">
  101. <view class="name">{{info.shop.name}}</view>
  102. <view class="num"><text>宝贝数:</text>{{info.shop.goods_num||0}}</view>
  103. </view>
  104. </view>
  105. <view class="one_8_2">
  106. <view class="score_1">
  107. <text>商品:</text>
  108. <text>{{info.shop.goods_score||5}}</text>
  109. <text>|</text>
  110. </view>
  111. <view class="score_1">
  112. <text>发货:</text>
  113. <text>{{info.shop.send_score||5}}</text>
  114. <text>|</text>
  115. </view>
  116. <view class="score_1">
  117. <text>服务:</text>
  118. <text>{{info.shop.service_score||5}}</text>
  119. </view>
  120. </view>
  121. <view class="one_8_3">
  122. <view class="btn">
  123. <button size="mini" @tap="toShop">进入店铺</button>
  124. </view>
  125. <view class="btn">
  126. <button size="mini" @tap="toShopcolect">{{shopColect==true?'已关注':'关注'}}</button>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="one_9">
  131. <rich-text :nodes="info.goods.brief"></rich-text>
  132. </view>
  133. </view>
  134. </scroll-view>
  135. </view>
  136. <view class="two">
  137. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft"
  138. @buttonClick="toNavright" />
  139. </view>
  140. </view>
  141. <!-- 跳转菜单 -->
  142. <view class="bar_1">
  143. <text @tap="toMenubar" class="iconfont icon-gengduo"></text>
  144. </view>
  145. <view class="bar_2" v-if="is_menu">
  146. <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'"
  147. @click="toPath(item)">
  148. <image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
  149. <text class="name"> {{item.name}}</text>
  150. </view>
  151. </view>
  152. <!-- 规格 -->
  153. <uni-popup ref="specShow" background-color="#fff" type="bottom" :is-mask-click="false">
  154. <view class="popup">
  155. <view class="close">
  156. <text @click="toClose" class="iconfont icon-shanchu"></text>
  157. </view>
  158. <view class="info_1" v-if="popupShow=='1'">
  159. <view class="info_1">
  160. <scroll-view scroll-y="true" class="scroll-view">
  161. <view class="list-scroll-view">
  162. <view class="one">
  163. <view class="one_1">
  164. <view class="l">
  165. <image class="image"
  166. :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url"
  167. mode="aspectFill" @tap="diaView"></image>
  168. </view>
  169. <view class="r">
  170. <view class="money">
  171. <text v-if="specsInfo.leader_price"
  172. class="money_2"><text>会员价¥</text>{{specsInfo.leader_price}}</text>
  173. <text v-if="specsInfo.price"
  174. class="money_1"><text>特价¥</text>{{specsInfo.price}}</text>
  175. <text v-if="!specsInfo.price&&!specsInfo.leader_price"
  176. class="money_1"><text>¥</text>{{specsInfo.sell_money}}</text>
  177. <text class="money_1"><text>¥</text>{{specsInfo.flow_money}}</text>
  178. </view>
  179. <view class="other_1">
  180. <text>已选:</text>
  181. <text>{{specsInfo.name}}</text>
  182. </view>
  183. <view class="other_1">
  184. <text>运费:</text>
  185. <text>{{specsInfo.freight===0?'包邮':specsInfo.freight+'元'}}</text>
  186. </view>
  187. </view>
  188. </view>
  189. <view class="one_2">
  190. <view class="one_2_1">
  191. 规格
  192. </view>
  193. <view class="one_2_2">
  194. <view
  195. :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']"
  196. v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
  197. <text>{{item.name}}</text>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="one_3">
  202. <view class="one_3_1">
  203. <text>数量</text>
  204. </view>
  205. <view class="one_3_1">
  206. <uni-number-box v-model="buy_num" @change="toCount" :min="1"
  207. :max="specsInfo.num">
  208. </uni-number-box>
  209. </view>
  210. <view class="one_3_1">
  211. <text>库存{{specsInfo.num||0}}</text><text class="limit"
  212. v-if="specsInfo.limit_num">({{specsInfo.buy_name||'暂无'}}{{specsInfo.limit_num||0}}个)</text>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </scroll-view>
  218. </view>
  219. <view class="info_2">
  220. <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="btn_type=='0'">
  221. <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toMarket">加入购物车</button>
  222. </view>
  223. <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="btn_type=='1'">
  224. <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toBuy">立即购买</button>
  225. </view>
  226. <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="specsInfo.can_group=='0'">
  227. <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toGroup">我要开团</button>
  228. </view>
  229. </view>
  230. </view>
  231. <view class="info_3" v-else-if="popupShow=='2'">
  232. <scroll-view scroll-y="true" class="scroll-view">
  233. <view class="list" v-for="(item,index) in info.act" :key="index">
  234. <view class="list_1" @tap="toAct(item)">
  235. <view class="title_1">
  236. <view class="l">
  237. <text>{{item.tag||'暂无'}}</text>{{item.act_time.title}}
  238. </view>
  239. <view class="r">
  240. <text class="iconfont icon-jiantouyou"></text>
  241. </view>
  242. </view>
  243. <view class="title_2">
  244. <view class="text" v-if="item.type=='5'||item.type=='6'">{{item.text}}</view>
  245. <view class="time">{{item.config.time_start}}-{{item.config.time_end}}</view>
  246. </view>
  247. <view class="title_2" v-if="item.type=='2'">
  248. <view class="specList" v-for="(tag,indexx) in item.list" :key="indexx">
  249. <view class="name">规格:{{tag.spec_name}}</view>
  250. <view class="giftList" v-for="(tags,indexs) in tag.gift" :key="indexs"
  251. @tap.stop="tags.type=='0' && getDetail(tags)">
  252. <view class="left">
  253. <view class="goods">{{tags.goods_name}}{{tags.spec_name}}</view>
  254. <view class="goods">{{tags.desc}}</view>
  255. <view class="num">×{{tags.num}}</view>
  256. </view>
  257. <view class="right"><text class="iconfont icon-jiantouyou"></text>
  258. </view>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. </view>
  264. </scroll-view>
  265. </view>
  266. <view class="info_4" v-else>
  267. <view class="info_4">
  268. <scroll-view scroll-y="true" class="scroll-view">
  269. <view class="list-scroll-view">
  270. <view class="list" v-for="(item,index) in info.sets" :key="index">
  271. <view class="name"><text class="set">套装</text>{{item.name}}</view>
  272. <view class="set">
  273. <view class="set_1" v-for="(tag,indexx) in item.set" :key="indexx"
  274. @tap="toDeatil(tag)">
  275. <image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''"
  276. mode="aspectFit">
  277. </image>
  278. <view class="goods textOver">{{tag.goods_name}}</view>
  279. <view class="spec textOver">{{tag.spec_name}}</view>
  280. </view>
  281. </view>
  282. <view class="bottom">
  283. <view class="money">
  284. 共{{item.goods_total||0}}件,套装价:<text>¥{{item.sell_money||0}}</text>
  285. </view>
  286. <view class="add">
  287. <button size="mini" @tap="toSetMarket(item)">加入购物车</button>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </scroll-view>
  293. </view>
  294. </view>
  295. </view>
  296. </uni-popup>
  297. <view class="dialog" v-if="dialog.show==true" @tap="dialogClose">
  298. <view class="dialog_1" v-if="dialog.type=='1'">
  299. <swiper class="swiper" circular @change="diaSpecs" :current="is_specs">
  300. <swiper-item class="list" v-for="(item,index) in info.specs" :key="index">
  301. <view class="list_1">
  302. <image class="image" :src="item.file.length>0?item.file[0].url:info.goods.file[0].url"
  303. mode="aspectFit"></image>
  304. </view>
  305. <view class="name">
  306. <text>{{item.name}}</text>
  307. </view>
  308. </swiper-item>
  309. </swiper>
  310. </view>
  311. </view>
  312. </mobile-frame>
  313. </template>
  314. <script>
  315. export default {
  316. data() {
  317. return {
  318. // 系统设置
  319. config: {},
  320. // 商品id
  321. id: '',
  322. // 分享人id
  323. inviter: '',
  324. // 当前用户信息
  325. user: {},
  326. // 是否关注商品
  327. goodsColect: false,
  328. // 是否关注店铺
  329. shopColect: false,
  330. // 评价数
  331. evaluate_num: 2,
  332. // 商品详情
  333. info: {},
  334. infospecs: {},
  335. // 优惠
  336. discount: {},
  337. // 底部菜单
  338. options: [{
  339. icon: 'shop',
  340. text: '店铺',
  341. type: 'shop',
  342. route: 'pagesHome/shop/index',
  343. },
  344. {
  345. icon: 'cart',
  346. text: '购物车',
  347. type: 'market',
  348. route: 'pages/market/index',
  349. },
  350. ],
  351. buttonGroup: [{
  352. text: '加入购物车',
  353. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  354. color: '#fff',
  355. type: '0'
  356. },
  357. {
  358. text: '立即购买',
  359. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  360. color: '#fff',
  361. type: '1'
  362. }
  363. ],
  364. // 系统菜单
  365. barList: [],
  366. is_menu: false,
  367. // 规格弹框
  368. popupShow: '1',
  369. // 规格信息
  370. is_specs: 0,
  371. btn_type: '1',
  372. specsInfo: {},
  373. // 是否零库存
  374. is_zero: false,
  375. // 商品设置
  376. group_config: [],
  377. // 限制说明
  378. buyList: [],
  379. // 购买数量
  380. buy_num: 1,
  381. // 规格弹出框
  382. dialog: {
  383. show: false,
  384. type: '1'
  385. },
  386. };
  387. },
  388. onLoad: async function(e) {
  389. const that = this;
  390. that.$set(that, `id`, e.id || '');
  391. that.$set(that, `inviter`, e.inviter || '');
  392. await that.searchConfig();
  393. await that.search();
  394. await that.configShare();
  395. },
  396. onShow: async function() {
  397. const that = this;
  398. await that.watchLogin();
  399. },
  400. onUnload: function() {
  401. // 页面卸载,重新部署分享内容
  402. const that = this;
  403. if (that.config) {
  404. // 赋值默认值
  405. that.$config.share = {
  406. title: that.config.title,
  407. path: '/pages/index/index',
  408. imageUrl: that.config.config.share[0].url
  409. }
  410. }
  411. },
  412. methods: {
  413. // 查询系统设置
  414. searchConfig() {
  415. const that = this;
  416. uni.getStorage({
  417. key: 'config',
  418. success: function(res) {
  419. let data = res.data;
  420. that.$set(that, `config`, data);
  421. if (data.bottom_menu && data.bottom_menu.list.length > 0) {
  422. let list = data.bottom_menu.list.sort((a, b) => {
  423. return a.sort - b.sort
  424. });
  425. that.$set(that, `barList`, list)
  426. }
  427. }
  428. })
  429. },
  430. // 查询用户信息
  431. watchLogin() {
  432. const that = this;
  433. uni.getStorage({
  434. key: 'token',
  435. success: async function(res) {
  436. let user = that.$jwt(res.data);
  437. if (user) that.$set(that, `user`, user);
  438. },
  439. fail: function(err) {
  440. console.log('暂无用户信息');
  441. }
  442. })
  443. },
  444. // 查询其他信息
  445. async searchOther() {
  446. const that = this;
  447. let user = that.user;
  448. let res;
  449. // 是否关注商品
  450. res = await that.$api(`/storeGoods/check`, `GET`, {
  451. customer: user._id,
  452. goods: that.id
  453. });
  454. if (res.errcode == '0') that.$set(that, `goodsColect`, res.data);
  455. // 是否关注店铺
  456. res = await that.$api(`/storeShop/check`, `GET`, {
  457. customer: user._id,
  458. shop: that.info?.shop?._id
  459. });
  460. if (res.errcode == '0') that.$set(that, `shopColect`, res.data);
  461. // 商品设置
  462. res = await that.$api(`/goodsConfig`, `GET`, {
  463. goods: that.id,
  464. shop: that.info?.shop?._id
  465. }, 'group');
  466. if (res.errcode == '0' && res.total > 0) that.$set(that, `group_config`, res.data);
  467. // 限制说明
  468. res = await that.$api(`/dictData`, 'GET', {
  469. code: "buy_limit"
  470. });
  471. if (res.errcode == '0') that.$set(that, `buyList`, res.data)
  472. },
  473. // 查询商品信息
  474. async search() {
  475. const that = this;
  476. let id = that.id;
  477. if (id) {
  478. let res;
  479. res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  480. id: id
  481. });
  482. if (res.errcode == '0') {
  483. let data = res.data;
  484. if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
  485. '<img class="rich-img"');
  486. // 特价
  487. let act;
  488. act = data.act.find(i => i.type == '3')
  489. if (act) {
  490. for (let val of act.list) {
  491. for (let [index, arr] of data.specs.entries()) {
  492. if (val.spec == arr._id) arr.price = val.price
  493. }
  494. }
  495. }
  496. // 显示最低价格的规格信息,不考虑库存问题
  497. if (data.specs && data.specs.length > 0) {
  498. // 规格排序
  499. let indexSpecs = data.specs.sort(function(a, b) {
  500. let i, j;
  501. if (a.price) i = 'price'
  502. else i = 'sell_money'
  503. if (b.price) j = 'price'
  504. else j = 'sell_money'
  505. return a[i] - b[j];
  506. })
  507. that.$set(that, `infospecs`, indexSpecs[0])
  508. }
  509. that.$set(that, `info`, data);
  510. // 优惠
  511. act = data.act.find(i => i.type == '5')
  512. if (act) that.$set(that.discount, `full_decrement`, act.text.split(';'));
  513. act = data.act.find(i => i.type == '6')
  514. if (act) that.$set(that.discount, `full_fold`, act.text.split(';'));
  515. await that.searchOther();
  516. // 查询规格
  517. await that.searchSpecs(data.specs);
  518. // 查询评价数
  519. await that.searchRate(data);
  520. }
  521. } else {
  522. uni.showToast({
  523. title: '暂无商品信息',
  524. icon: 'none'
  525. })
  526. }
  527. },
  528. // 查询规格
  529. searchSpecs(e) {
  530. const that = this;
  531. if (e.length > 0) {
  532. let data = e.find(i => i.num > 0);
  533. let dataIndex = e.findIndex(i => i._id == data._id);
  534. if (data) {
  535. let specsInfo = that.group_config.find(i => i.spec._id == data._id)
  536. if (specsInfo?._id && that.user.is_leader == '0') data.can_group = '0'
  537. else data.can_group = '1'
  538. let limit = that.buyList.find((i) => i.value == data.buy_limit);
  539. if (limit) data.buy_name = limit.label
  540. that.$set(that, `specsInfo`, data);
  541. that.$set(that, `is_specs`, dataIndex);
  542. }
  543. }
  544. },
  545. // 活动说明
  546. toActivity() {
  547. const that = this;
  548. if (that.info.act.length > 0) {
  549. that.$set(that, `popupShow`, '2')
  550. that.$refs.specShow.open();
  551. }
  552. },
  553. // 查看套装
  554. toSets() {
  555. const that = this;
  556. if (that.info.sets.length > 0) {
  557. that.$set(that, `popupShow`, '3')
  558. that.$refs.specShow.open();
  559. }
  560. },
  561. // 套装详情
  562. toDeatil(e) {
  563. const that = this;
  564. uni.navigateTo({
  565. url: `/pagesHome/order/detail?id=${e.goods}`
  566. })
  567. },
  568. // 套装加入购物车
  569. async toSetMarket(e) {
  570. const that = this;
  571. let user = that.user;
  572. if (user && user._id) {
  573. let obj = {
  574. customer: user._id,
  575. set_id: e._id,
  576. is_set: '0',
  577. num: 1,
  578. }
  579. let res = await that.$api(`/cart`, 'POST', obj)
  580. if (res.errcode == '0') {
  581. uni.showToast({
  582. title: `加入购物车成功`,
  583. icon: 'none'
  584. })
  585. that.toClose();
  586. } else {
  587. uni.showToast({
  588. title: res.errmsg,
  589. icon: 'none'
  590. })
  591. }
  592. } else {
  593. uni.navigateTo({
  594. url: `/pages/login/index`
  595. })
  596. }
  597. },
  598. // 查看正品详情
  599. getDetail(e) {
  600. const that = this;
  601. uni.navigateTo({
  602. url: `/pagesHome/order/detail?id=${e.goods}`
  603. })
  604. },
  605. // 选择规格
  606. toSpecs(e) {
  607. const that = this;
  608. let specs = that.info.specs;
  609. let dataIndex = specs.findIndex(i => i._id == e._id);
  610. that.$set(that, `is_specs`, dataIndex);
  611. let specsInfo = that.group_config.find(i => i.spec._id == e._id)
  612. if (specsInfo?._id && that.user.is_leader == '0') e.can_group = '0'
  613. else e.can_group = '1'
  614. let limit = that.buyList.find((i) => i.value == e.buy_limit);
  615. if (limit) e.buy_name = limit.label
  616. that.$set(that, `specsInfo`, e)
  617. that.$set(that, `buy_num`, 1);
  618. if (e.num <= 0) that.$set(that, `is_zero`, true)
  619. else that.$set(that, `is_zero`, false)
  620. },
  621. // 计数器
  622. toCount(e) {
  623. const that = this;
  624. that.$set(that, `buy_num`, e)
  625. },
  626. // 查询评价数
  627. async searchRate(e) {
  628. const that = this;
  629. let res = await that.$api(`/goodsRate`, `GET`, {
  630. limit: 1,
  631. goods: e.goods._id
  632. })
  633. if (res.errcode == '0') that.$set(that, `evaluate_num`, res.total);
  634. },
  635. // 关注商品
  636. async toGoodscolect() {
  637. const that = this;
  638. let user = that.user;
  639. if (user && user._id) {
  640. let res = await that.$api(`/storeGoods`, `POST`, {
  641. customer: user._id,
  642. goods: that.id
  643. });
  644. if (res.errcode == '0') {
  645. uni.showToast({
  646. title: res.data.msg,
  647. icon: 'none'
  648. })
  649. that.$set(that, `goodsColect`, res.data.result)
  650. }
  651. } else {
  652. uni.showToast({
  653. title: '暂无账号,无法收藏商品',
  654. icon: 'none'
  655. })
  656. }
  657. },
  658. // 选择规格
  659. toSpec() {
  660. const that = this;
  661. this.$set(that, `popupShow`, '1')
  662. that.$refs.specShow.open();
  663. },
  664. // 加入购物车
  665. async toMarket() {
  666. const that = this;
  667. let user = that.user;
  668. let info = that.info;
  669. let specsInfo = that.specsInfo;
  670. if (user && user._id) {
  671. let obj = {
  672. customer: user._id,
  673. shop: info.shop._id,
  674. goods: info.goods._id,
  675. goodsSpec: specsInfo._id,
  676. num: that.buy_num,
  677. inviter: that.inviter
  678. }
  679. let res = await that.$api(`/cart`, 'POST', obj)
  680. if (res.errcode == '0') {
  681. uni.showToast({
  682. title: `加入购物车成功`,
  683. icon: 'none'
  684. })
  685. that.toClose();
  686. } else {
  687. uni.showToast({
  688. title: res.errmsg,
  689. icon: 'none'
  690. })
  691. }
  692. } else {
  693. uni.navigateTo({
  694. url: `/pages/login/index`
  695. })
  696. }
  697. },
  698. // 立即购买
  699. async toBuy() {
  700. const that = this;
  701. let user = that.user;
  702. let info = that.info;
  703. let specsInfo = that.specsInfo;
  704. let act = that.info.act.map(item => {
  705. return item._id
  706. })
  707. if (user && user._id) {
  708. let obj = [{
  709. customer: user._id,
  710. shop: info.shop._id,
  711. goods: info.goods._id,
  712. goodsSpec: specsInfo._id,
  713. num: that.buy_num,
  714. inviter: that.inviter,
  715. act
  716. }]
  717. let res = await that.$api(`/util/checkCanBuy`, 'POST', obj)
  718. if (res.errcode == '0') {
  719. if (res.data.result == true) {
  720. uni.navigateTo({
  721. url: `/pagesHome/order/order?key=${res.data.key}`
  722. })
  723. } else {
  724. uni.showToast({
  725. title: res.data.msg,
  726. icon: 'none',
  727. duration: 5000
  728. })
  729. }
  730. } else {
  731. uni.showToast({
  732. title: res.errmsg,
  733. icon: 'none'
  734. })
  735. }
  736. } else {
  737. uni.navigateTo({
  738. url: `/pages/login/index`
  739. })
  740. }
  741. },
  742. // 开团
  743. toGroup() {
  744. const that = this;
  745. uni.navigateTo({
  746. url: `/pagesHome/group/index?shop=${that.info?.shop?._id}&goods=${that.id}`
  747. })
  748. },
  749. // 关闭弹框
  750. toClose() {
  751. const that = this;
  752. that.$set(that, `btn_type`, '1');
  753. that.$refs.specShow.close();
  754. },
  755. // 评价
  756. toEvaluate() {
  757. const that = this;
  758. uni.navigateTo({
  759. url: `/pagesHome/order/appraise?id=${that.info.goods._id}`
  760. })
  761. },
  762. // 进入店铺
  763. toShop() {
  764. const that = this;
  765. let info = that.info;
  766. uni.navigateTo({
  767. url: `/pagesHome/shop/index?id=${info.shop._id}`
  768. })
  769. },
  770. // 关注店铺
  771. async toShopcolect() {
  772. const that = this;
  773. let user = that.user;
  774. if (user && user._id) {
  775. let res = await that.$api(`/storeShop`, `POST`, {
  776. customer: user._id,
  777. shop: that.info.shop._id
  778. });
  779. if (res.errcode == '0') {
  780. uni.showToast({
  781. title: res.data.msg,
  782. icon: 'none'
  783. })
  784. that.$set(that, `shopColect`, res.data.result)
  785. }
  786. } else {
  787. uni.showToast({
  788. title: '暂无账号,无法关注商铺',
  789. icon: 'none'
  790. })
  791. }
  792. },
  793. // 店铺,购物车
  794. toNavleft(e) {
  795. const that = this;
  796. if (e.content.type == 'shop') {
  797. that.toShop();
  798. } else if (e.content.type == 'market') {
  799. let obj = {
  800. route: e.content.route
  801. }
  802. that.toPath(obj)
  803. }
  804. },
  805. // 加入购物车,立即购买
  806. toNavright(e) {
  807. const that = this;
  808. that.$set(that, `popupShow`, '1');
  809. that.$set(that, `btn_type`, e.content.type);
  810. that.$refs.specShow.open();
  811. },
  812. // 右侧菜单
  813. toMenubar() {
  814. const that = this;
  815. that.$set(that, `is_menu`, that.is_menu ? false : true)
  816. },
  817. toPath(e) {
  818. let url = `/${e.route}`;
  819. uni.reLaunch({
  820. url
  821. })
  822. },
  823. // 配置分享内容
  824. configShare() {
  825. const that = this;
  826. let id = that.id;
  827. let inviter = that.user && that.user._id ? that.user._id : '';
  828. let title = that.info && that.info.goods ? that.info.goods.name : '';
  829. let imageUrl = that.info && that.info.goods ? that.info.goods.file[0].url : '';
  830. that.$config.share = {
  831. title: title,
  832. path: `/pagesHome/order/detail?id=${id}&inviter=${inviter}`,
  833. imageUrl: imageUrl
  834. }
  835. },
  836. // 规格预览
  837. diaView() {
  838. const that = this;
  839. that.$set(that, `dialog`, {
  840. show: true,
  841. type: '1'
  842. })
  843. },
  844. // 查看活动
  845. toAct(item) {
  846. uni.navigateTo({
  847. url: `/pagesRest/activity/info?id=${item._id}`
  848. })
  849. },
  850. // 弹框选择规格
  851. diaSpecs(e) {
  852. const that = this;
  853. let specs = that.info.specs;
  854. let index = e.detail.current;
  855. let data = specs[index];
  856. that.$set(that, `is_specs`, index);
  857. that.$set(that, `specsInfo`, data);
  858. that.$set(that, `buy_num`, 1);
  859. if (data.num <= 0) that.$set(that, `is_zero`, true)
  860. else that.$set(that, `is_zero`, false)
  861. },
  862. // 关闭弹框
  863. dialogClose() {
  864. const that = this;
  865. that.$set(that, `dialog`, {
  866. show: false,
  867. type: '1'
  868. })
  869. }
  870. }
  871. }
  872. </script>
  873. <style lang="scss">
  874. .main {
  875. display: flex;
  876. flex-direction: column;
  877. width: 100vw;
  878. height: 100vh;
  879. .one {
  880. position: relative;
  881. flex-grow: 1;
  882. .one_1 {
  883. border-bottom: 0.5vw solid var(--f9Color);
  884. swiper {
  885. height: 44vh !important;
  886. }
  887. .list {
  888. border-radius: 5px;
  889. .image {
  890. width: 100%;
  891. height: 100%;
  892. border-radius: 5px;
  893. background-color: #fff;
  894. }
  895. }
  896. .goodsColect {
  897. position: fixed;
  898. top: 2vw;
  899. right: 3vw;
  900. z-index: 99;
  901. background-color: #858585;
  902. border-radius: 90px;
  903. text {
  904. font-size: 30px;
  905. }
  906. }
  907. .acttags {
  908. position: absolute;
  909. top: 1vw;
  910. left: 1vw;
  911. width: 97%;
  912. text {
  913. display: inline-block;
  914. background-color: var(--fFB1Color);
  915. color: #fff;
  916. border-radius: 1vw;
  917. padding: 0.5vw;
  918. font-size: 12px;
  919. margin: 0 1vw 0 0;
  920. }
  921. }
  922. }
  923. .one_2 {
  924. border-bottom: 0.5vw solid var(--f9Color);
  925. padding: 2vw;
  926. .money_1 {
  927. color: #23B67A;
  928. font-size: 20px;
  929. padding: 0 1vw 0 0;
  930. font-weight: bold;
  931. text {
  932. font-size: 14px;
  933. }
  934. }
  935. .money {
  936. font-size: 20px;
  937. padding: 0 1vw 0 0;
  938. color: var(--fFB1Color);
  939. font-weight: bold;
  940. text {
  941. font-size: 14px;
  942. }
  943. }
  944. .money:last-child {
  945. font-size: 16px;
  946. color: #858585;
  947. text-decoration: line-through;
  948. }
  949. }
  950. .one_3 {
  951. display: flex;
  952. flex-wrap: wrap;
  953. padding: 1vw;
  954. border-bottom: 0.5vw solid var(--f9Color);
  955. .act {
  956. font-size: 12px;
  957. border: 1px solid var(--fFB1Color);
  958. margin: 0 1vw 1vw 0;
  959. color: var(--fFB1Color);
  960. border-radius: 6px;
  961. padding: 0 1vw;
  962. }
  963. .num {
  964. font-size: 12px;
  965. color: #858585;
  966. }
  967. }
  968. .one_4 {
  969. border-bottom: 0.5vw solid var(--f9Color);
  970. padding: 2vw;
  971. .name {
  972. font-size: 17px;
  973. font-weight: bold;
  974. margin: 0 0 2vw 0;
  975. }
  976. .brief {
  977. font-size: 14px;
  978. color: #858585;
  979. margin: 0 0 1vw 0;
  980. }
  981. .money {
  982. font-size: 13px;
  983. color: #858585;
  984. text {
  985. padding: 0 2vw 0 0;
  986. }
  987. }
  988. }
  989. .one_5 {
  990. display: flex;
  991. justify-content: space-between;
  992. padding: 2vw;
  993. border-bottom: 0.5vw solid var(--f9Color);
  994. font-size: 14px;
  995. }
  996. .one_6 {
  997. display: flex;
  998. justify-content: space-between;
  999. padding: 2vw;
  1000. border-bottom: 0.5vw solid var(--f9Color);
  1001. font-size: 14px;
  1002. }
  1003. .one_7 {
  1004. padding: 2vw;
  1005. border-bottom: 2vw solid var(--f9Color);
  1006. border-top: 1vw solid var(--f9Color);
  1007. .one_7_1 {
  1008. padding: 2vw 0;
  1009. font-size: 14px;
  1010. text {
  1011. padding: 0 0 0 1vw;
  1012. font-size: 12px;
  1013. color: #858585;
  1014. }
  1015. }
  1016. .one_7_2 {
  1017. display: flex;
  1018. justify-content: space-between;
  1019. align-items: center;
  1020. padding: 2vw;
  1021. border-radius: 5px;
  1022. background-color: var(--f9Color);
  1023. .image {
  1024. width: 20vw;
  1025. height: 20vw;
  1026. .image {
  1027. width: 100%;
  1028. height: 100%;
  1029. border-radius: 5px;
  1030. background-color: #fff;
  1031. }
  1032. }
  1033. .money {
  1034. text-align: center;
  1035. .money_1 {
  1036. font-size: 12px;
  1037. color: #858585;
  1038. }
  1039. .money_2 {
  1040. font-size: 12px;
  1041. color: var(--fFB1Color);
  1042. }
  1043. }
  1044. }
  1045. }
  1046. .one_8 {
  1047. padding: 2vw;
  1048. border-bottom: 0.5vw solid var(--f9Color);
  1049. .one_8_1 {
  1050. margin: 0 0 1vw 0;
  1051. display: flex;
  1052. .shop_1 {
  1053. width: 15vw;
  1054. height: 15vw;
  1055. border: 1px solid #f1f1f1;
  1056. .image {
  1057. width: 100%;
  1058. height: 100%;
  1059. }
  1060. }
  1061. .shop_2 {
  1062. width: 78vw;
  1063. padding: 0 0 0 2vw;
  1064. .name {
  1065. font-size: 14px;
  1066. margin: 0 0 1vw 0;
  1067. }
  1068. .num {
  1069. font-size: 12px;
  1070. color: #858585;
  1071. text:last-child {
  1072. color: #000;
  1073. }
  1074. }
  1075. }
  1076. }
  1077. .one_8_2 {
  1078. margin: 0 0 2vw 0;
  1079. display: flex;
  1080. justify-content: space-between;
  1081. padding: 2vw 0;
  1082. .score_1 {
  1083. width: 33vw;
  1084. text-align: center;
  1085. font-size: 14px;
  1086. color: #858585;
  1087. text:nth-child(2) {
  1088. color: var(--fFB1Color);
  1089. }
  1090. text:nth-child(3) {
  1091. float: right;
  1092. }
  1093. }
  1094. }
  1095. .one_8_3 {
  1096. display: flex;
  1097. justify-content: space-around;
  1098. .btn {
  1099. width: 40vw;
  1100. button {
  1101. width: 100%;
  1102. font-size: 15px;
  1103. }
  1104. }
  1105. }
  1106. }
  1107. .one_9 {
  1108. padding: 2vw;
  1109. .rich-img {
  1110. width: 100% !important;
  1111. display: block;
  1112. }
  1113. }
  1114. }
  1115. .two {
  1116. width: 100vw;
  1117. height: 8vh;
  1118. overflow: hidden;
  1119. }
  1120. }
  1121. .scroll-view {
  1122. position: absolute;
  1123. top: 0;
  1124. left: 0;
  1125. right: 0;
  1126. bottom: 0;
  1127. .list-scroll-view {
  1128. display: flex;
  1129. flex-direction: column;
  1130. }
  1131. }
  1132. .bar_1 {
  1133. position: fixed;
  1134. right: 2vw;
  1135. bottom: 20vw;
  1136. text {
  1137. background-color: #858585;
  1138. border-radius: 90px;
  1139. font-size: 30px;
  1140. }
  1141. }
  1142. .bar_2 {
  1143. position: fixed;
  1144. right: 2vw;
  1145. bottom: 28vw;
  1146. width: 27vw;
  1147. background: #ffffff;
  1148. padding: 0 2vw;
  1149. box-shadow: 0 0 5px #858585;
  1150. .list {
  1151. display: flex;
  1152. border-bottom: 1px solid #f1f1f1;
  1153. padding: 1vw 0;
  1154. .image {
  1155. width: 8vw;
  1156. height: 8vw;
  1157. }
  1158. .name {
  1159. font-size: 14px;
  1160. position: relative;
  1161. top: 2vw;
  1162. left: 2vw;
  1163. }
  1164. }
  1165. .list:last-child {
  1166. border-bottom: none;
  1167. }
  1168. }
  1169. .uni-popup {
  1170. z-index: 9999 !important;
  1171. }
  1172. .popup {
  1173. display: flex;
  1174. flex-direction: column;
  1175. width: 100vw;
  1176. height: 60vh;
  1177. .close {
  1178. text-align: right;
  1179. padding: 2vw;
  1180. }
  1181. .info_1 {
  1182. position: relative;
  1183. display: flex;
  1184. flex-direction: column;
  1185. height: 54vh;
  1186. .info_1 {
  1187. position: relative;
  1188. flex-grow: 1;
  1189. .one {
  1190. padding: 2vw;
  1191. .one_1 {
  1192. display: flex;
  1193. margin: 0 0 2vw 0;
  1194. padding: 0 0 2vw 0;
  1195. border-bottom: 0.5vw solid var(--f9Color);
  1196. .l {
  1197. width: 25vw;
  1198. height: 25vw;
  1199. .image {
  1200. width: 100%;
  1201. height: 100%;
  1202. border-radius: 5px;
  1203. }
  1204. }
  1205. .r {
  1206. width: 70vw;
  1207. padding: 0 0 0 2vw;
  1208. .money {
  1209. margin: 0 0 2vw 0;
  1210. .money_2 {
  1211. color: #23B67A;
  1212. font-size: 20px;
  1213. padding: 0 1vw 0 0;
  1214. font-weight: bold;
  1215. text {
  1216. font-size: 14px;
  1217. }
  1218. }
  1219. .money_1 {
  1220. font-size: 20px;
  1221. color: var(--fFB1Color);
  1222. padding: 0 2vw 0 0;
  1223. text {
  1224. font-size: 14px;
  1225. }
  1226. }
  1227. .money_1:last-child {
  1228. font-size: 16px;
  1229. color: #858585;
  1230. text-decoration: line-through;
  1231. }
  1232. }
  1233. .other_1 {
  1234. font-size: 15px;
  1235. color: #858585;
  1236. text:last-child {
  1237. color: #000000;
  1238. }
  1239. }
  1240. }
  1241. }
  1242. .one_2 {
  1243. margin: 0 0 2vw 0;
  1244. border-bottom: 0.5vw solid var(--f9Color);
  1245. .one_2_1 {
  1246. font-size: 14px;
  1247. margin: 0 0 2vw 0;
  1248. }
  1249. .one_2_2 {
  1250. display: flex;
  1251. flex-wrap: wrap;
  1252. .list {
  1253. background-color: #F5F5F5;
  1254. margin: 0 2vw 2vw 0;
  1255. padding: 0.5vw 1vw;
  1256. border-radius: 5px;
  1257. text {
  1258. font-size: 14px;
  1259. color: #000;
  1260. }
  1261. }
  1262. .huilist {
  1263. background-color: #DCDCDC;
  1264. text {
  1265. color: #858585;
  1266. }
  1267. }
  1268. .redlist {
  1269. background-color: var(--fFB1Color);
  1270. text {
  1271. color: #ffffff;
  1272. }
  1273. }
  1274. .huiilist {
  1275. background-color: #808080;
  1276. text {
  1277. color: #cccccc;
  1278. }
  1279. }
  1280. }
  1281. }
  1282. .one_3 {
  1283. display: flex;
  1284. .one_3_1 {
  1285. margin: 0 2vw 0 0;
  1286. text {
  1287. font-size: 14px;
  1288. color: #858585;
  1289. }
  1290. .limit {
  1291. color: var(--fFB1Color);
  1292. padding: 0 0 0 2vw;
  1293. }
  1294. }
  1295. }
  1296. }
  1297. }
  1298. .info_2 {
  1299. display: flex;
  1300. text-align: center;
  1301. justify-content: space-between;
  1302. .btns {
  1303. width: 50vw;
  1304. }
  1305. .btn {
  1306. width: 100vw;
  1307. }
  1308. button {
  1309. width: 100%;
  1310. border-radius: 0;
  1311. background-color: var(--fFB1Color);
  1312. color: #fff;
  1313. border: 1px solid #f1f1f1;
  1314. }
  1315. .btncolor {
  1316. background: #f1f1f1;
  1317. color: #858585;
  1318. }
  1319. }
  1320. }
  1321. .info_3 {
  1322. position: relative;
  1323. flex-grow: 1;
  1324. .list {
  1325. margin: 0 2vw 2vw 2vw;
  1326. border-radius: 10px;
  1327. background-color: #FFF8DC;
  1328. .list_1 {
  1329. padding: 2vw;
  1330. font-size: 14px;
  1331. .title_1 {
  1332. display: flex;
  1333. justify-content: space-between;
  1334. margin: 1vw 0;
  1335. .l {
  1336. text {
  1337. margin: 0 1vw 0 0;
  1338. font-size: 12px;
  1339. border-radius: 5px;
  1340. border: 0.5px solid var(--fFB1Color);
  1341. color: var(--fFB1Color);
  1342. }
  1343. }
  1344. }
  1345. .title_2 {
  1346. .specList {
  1347. .name {
  1348. margin: 0 0 1vw 0;
  1349. }
  1350. .giftList {
  1351. display: flex;
  1352. justify-content: space-between;
  1353. align-items: center;
  1354. margin: 0 0 1vw 0;
  1355. border: 0.5px solid var(--f9Color);
  1356. border-radius: 10px;
  1357. .left {
  1358. width: 85vw;
  1359. }
  1360. }
  1361. }
  1362. .text {
  1363. color: var(--fFB1Color);
  1364. }
  1365. }
  1366. }
  1367. }
  1368. }
  1369. .info_4 {
  1370. position: relative;
  1371. display: flex;
  1372. flex-direction: column;
  1373. height: 54vh;
  1374. .info_4 {
  1375. position: relative;
  1376. flex-grow: 1;
  1377. .list {
  1378. margin: 0 2vw 2vw 2vw;
  1379. border-radius: 10px;
  1380. background-color: var(--f9Color);
  1381. .name {
  1382. display: flex;
  1383. padding: 2vw;
  1384. font-size: 14px;
  1385. .set {
  1386. margin: 0 1vw 0 0;
  1387. font-size: 12px;
  1388. border-radius: 5px;
  1389. padding: 0 1vw;
  1390. color: #ffffff;
  1391. background-color: #FF6347;
  1392. border: 1px solid #FFA500;
  1393. }
  1394. }
  1395. .set {
  1396. display: flex;
  1397. justify-content: space-around;
  1398. flex-wrap: wrap;
  1399. margin: 0 2vw;
  1400. padding: 2vw;
  1401. background-color: #fff;
  1402. border-radius: 5px;
  1403. .set_1 {
  1404. width: 25vw;
  1405. text-align: center;
  1406. font-size: 14px;
  1407. .spec {
  1408. font-size: 12px;
  1409. color: #858585;
  1410. }
  1411. .image {
  1412. width: 20vw;
  1413. height: 20vw;
  1414. border-radius: 5px;
  1415. background-color: #fff;
  1416. }
  1417. }
  1418. }
  1419. .bottom {
  1420. display: flex;
  1421. justify-content: space-between;
  1422. align-items: center;
  1423. padding: 2vw;
  1424. .money {
  1425. font-size: 12px;
  1426. text {
  1427. color: var(--fFB1Color);
  1428. }
  1429. }
  1430. .add {
  1431. button {
  1432. background-color: var(--fFB1Color);
  1433. color: #ffffff;
  1434. border-radius: 5vw;
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. }
  1442. .dialog {
  1443. position: fixed;
  1444. width: 100vw;
  1445. height: 100vh;
  1446. background-color: #000000;
  1447. z-index: 99999;
  1448. display: flex;
  1449. flex-direction: column;
  1450. justify-content: center;
  1451. swiper {
  1452. height: 60vh;
  1453. }
  1454. .list {
  1455. .list_1 {
  1456. padding: 2vw;
  1457. margin: 0 0 5vw 0;
  1458. .image {
  1459. width: 100%;
  1460. height: 40vh;
  1461. }
  1462. }
  1463. .name {
  1464. text-align: center;
  1465. margin: 0 10vw;
  1466. background-color: #6666669f;
  1467. border-radius: 25px;
  1468. padding: 2vw;
  1469. text {
  1470. color: #fff;
  1471. font-size: 15px;
  1472. overflow: hidden;
  1473. text-overflow: ellipsis;
  1474. -webkit-line-clamp: 2;
  1475. word-break: break-all;
  1476. display: -webkit-box;
  1477. -webkit-box-orient: vertical;
  1478. }
  1479. }
  1480. }
  1481. }
  1482. </style>