productDetails.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521
  1. <template>
  2. <view class="content" style="padding-bottom: 144rpx;">
  3. <!-- 商品轮播图片 -->
  4. <view class="shop-banner" @click="showImg()">
  5. <swiper class="swiper" :indicator-dots="false" :circular="true" :autoplay="true" :interval="3000"
  6. :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff"
  7. @change="swiperChange">
  8. <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
  9. <image :src="item" mode="aspectFill"></image>
  10. </swiper-item>
  11. </swiper>
  12. <!-- 底部遮罩 -->
  13. <view class="banner-mask"></view>
  14. <!-- 数量 -->
  15. <view class="num-box">{{ activeBanner }}/{{ banner.length }}</view>
  16. </view>
  17. <!-- 详细信息 -->
  18. <view class="det-info">
  19. <view class="price-box">
  20. <view class="price">
  21. <text class="label" style="color: #FF5C03;">会员价</text>
  22. <text class="unit">¥</text>
  23. <text class="num">{{product.price}}</text>
  24. <text class="label">零售价</text>
  25. <text class="old">¥{{product.otPrice}}</text>
  26. </view>
  27. <view class="share-box">
  28. <text class="text">分享</text>
  29. <image
  30. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/share1.png"
  31. mode=""></image>
  32. <button class="share" data-name="shareBtn" open-type="share">分享</button>
  33. </view>
  34. </view>
  35. <view class="name-box">
  36. <view class="tag" :style="{background:_background(product.productType)}">
  37. {{$getDictLabelName("storeProductType",product.productType)}}</view>
  38. {{product.commonName&&product.commonName!=='-'?product.commonName:product.productName}}
  39. </view>
  40. <u-parse class="intro" v-if="product.productInfo!=null" :content="product.productInfo.replace(/\n/g,'<br>')">
  41. </u-parse>
  42. </view>
  43. <view class="other-box">
  44. <view class="other-box-item">
  45. <view class="label">商品名称</view>
  46. <view class="text">{{product.productName||''}}</view>
  47. </view>
  48. <view class="other-box-item" v-if="!_showTxt">
  49. <view class="label">通用名称</view>
  50. <view class="text">{{product.commonName}}</view>
  51. </view>
  52. <view class="other-box-item">
  53. <view class="label">包装规格</view>
  54. <view class="text">{{product.prescribeSpec||'--'}}</view>
  55. </view>
  56. <view class="other-box-item">
  57. <view class="label">包装单位</view>
  58. <view class="text">{{product.unitName||'--'}}</view>
  59. </view>
  60. <view class="other-box-item">
  61. <view class="label">批准文号</view>
  62. <view class="text">{{product.drugRegCertNo||'--'}}</view>
  63. </view>
  64. <view class="other-box-item" v-if="!_showTxt">
  65. <view class="label">规格</view>
  66. <view class="text">{{product.specification||'--'}}</view>
  67. </view>
  68. <view class="other-box-item">
  69. <view class="label">商品条码</view>
  70. <view class="text">{{product.barCode||'--'}}</view>
  71. </view>
  72. </view>
  73. <!-- 购买人数、库存 -->
  74. <!-- <view class="inventor">
  75. <view class="left">
  76. <view class="head-box">
  77. <view class="head" v-for="(item,j) in 5" :key="j">
  78. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/head.jpg" mode=""></image>
  79. </view>
  80. </view>
  81. <view class="num-box">
  82. 已有 <text class="text">{{product.sales}}</text> 人购买
  83. </view>
  84. </view>
  85. <view class="right">
  86. 库存 <text class="text">{{product.stock}}{{product.unitName}}</text>
  87. </view>
  88. <view class="right">
  89. <text class="text">库存{{product.stock>0?'充足':'售罄'}} </text>
  90. </view>
  91. </view> -->
  92. <!-- 功效 -->
  93. <view class="effect" v-if="product.instructionManual">
  94. <view class="label">{{product.commonName&&product.commonName!=='-'?product.commonName:product.productName}}药品说明书</view>
  95. <view :class="product.productType ==2&&isView==0 ? 'hiddenbox':''" style="margin-top: 20rpx;">
  96. <u-parse :content="product.instructionManual" :style="{display: 'block'}"></u-parse>
  97. </view>
  98. <view class="shadowbox" v-if="product.productType ==2&&isView==0">
  99. <view class="shadowbox-btn x-ac" @click="handleShow">
  100. <text style="margin-right: 10rpx;">点击查看说明书全文</text>
  101. <u-icon name="arrow-down" color="#999" size="14"></u-icon>
  102. </view>
  103. </view>
  104. </view>
  105. <u-popup :show="show" mode="center" :round="10" @close="show=false" :closeOnClickOverlay="false">
  106. <view class="popupbox">
  107. <view class="popupbox-title">如何查看说明书</view>
  108. <view class="popupbox-body">
  109. 需要先问诊获得处方后才能查看说明书,请点<text class="confirm" @click="addCart('buy')">问诊开药</text>开处方!
  110. </view>
  111. <view class="popupbox-footer" @click="show=false">我知道了</view>
  112. </view>
  113. </u-popup>
  114. <!-- 商品评价 -->
  115. <view class="det-box evaluate">
  116. <view class="title">商品评价({{evaluateTotal}})</view>
  117. <view class="evaluate">
  118. <evaluateItem v-for="(item,index) in evaluate" :key="index" :item="item"></evaluateItem>
  119. <view class="footer-desc" v-if="evaluate&&evaluate.length>0">
  120. <text @click="moreEvaluate">查看更多评价</text>
  121. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 图文详情 -->
  126. <view class="det-box">
  127. <view class="title">图文详情</view>
  128. <view class="inner">
  129. <u-parse :content="product.description" :tagStyle="tagStyle"></u-parse>
  130. </view>
  131. <view class="other-box product-other-box" style="margin: 0;padding: 24rpx 0;">
  132. <view v-if="_showTxt&&product.medicalRegCertNo">
  133. <text class="label" style="margin-right: 16rpx;">【医疗器械注册证编号/备案凭证编号】</text>
  134. <text class="text">{{product.medicalRegCertNo}}</text>
  135. </view>
  136. <view v-if="_showTxt&&product.prodLicenseNo">
  137. <text class="label" style="margin-right: 16rpx;">【生产许可证/备案凭证编号】</text>
  138. <text class="text">{{product.prodLicenseNo}}</text>
  139. </view>
  140. <view v-if="_showTxt&&product.prodTechReqNo">
  141. <text class="label" style="margin-right: 16rpx;">【产品技术要求编号】</text>
  142. <text class="text">{{product.prodTechReqNo}}</text>
  143. </view>
  144. <view v-if="_showTxt&&product.productStructure">
  145. <text class="label" style="margin-right: 16rpx;">【结构及组成】</text>
  146. <text class="text">{{product.productStructure}}</text>
  147. </view>
  148. <view v-if="product.dosageForm&&!_showTxt">
  149. <text class="label" style="margin-right: 16rpx;">【剂型】</text>
  150. <text class="text">{{product.dosageForm}}</text>
  151. </view>
  152. <view v-if="product.mah">
  153. <text class="label" style="margin-right: 16rpx;">{{_showTxt?'【注册人/备案人】':'【上市许可证持有人】'}}</text>
  154. <text class="text">{{product.mah}}</text>
  155. </view>
  156. <view v-if="product.mahAddress">
  157. <text class="label" style="margin-right: 16rpx;">{{_showTxt?'【注册人/备案人地址】':'【上市许可证持有人地址】'}}</text>
  158. <text class="text">{{product.mahAddress}}</text>
  159. </view>
  160. <view v-if="product.manufacturer">
  161. <text class="label" style="margin-right: 16rpx;">【生产企业】</text>
  162. <text class="text">{{product.manufacturer}}</text>
  163. </view>
  164. <view v-if="product.manufacturerAddress">
  165. <text class="label" style="margin-right: 16rpx;">【生产企业地址】</text>
  166. <text class="text">{{product.manufacturerAddress}}</text>
  167. </view>
  168. <template v-if="product.productType !=2||isView==1">
  169. <view v-if="product.indications">
  170. <text class="label" style="margin-right: 16rpx;">【功能主治/适用范围】</text>
  171. <text class="text">{{product.indications}}</text>
  172. </view>
  173. <view v-if="product.dosage">
  174. <text class="label" style="margin-right: 16rpx;">【用法用量】</text>
  175. <text class="text">{{product.dosage}}</text>
  176. </view>
  177. <view v-if="product.adverseReactions">
  178. <text class="label" style="margin-right: 16rpx;">【不良反应】</text>
  179. <text class="text">{{product.adverseReactions}}</text>
  180. </view>
  181. <view v-if="product.contraindications">
  182. <text class="label" style="margin-right: 16rpx;">{{_showTxt?'【禁忌症】':'【禁忌】'}}</text>
  183. <text class="text">{{product.contraindications}}</text>
  184. </view>
  185. <view v-if="product.precautions">
  186. <text class="label" style="margin-right: 16rpx;">【注意事项】</text>
  187. <text class="text">{{product.precautions}}</text>
  188. </view>
  189. </template>
  190. </view>
  191. </view>
  192. <view class="storebox" v-if="chooseStore.storeId">
  193. <view class="x-bc">
  194. <view class="x-f">
  195. <image class="logo" :src="chooseStore.logoUrl" mode="aspectFill"></image>
  196. <view class="storebox-r" @click="goStoreDetail(chooseStore)">
  197. <view class="storename ellipsis2">{{chooseStore.storeName||''}}</view>
  198. <!-- <view class="storedesc">24小时营业 销售{{$formatSalesNum(chooseStore.salesCount) }}</view> -->
  199. </view>
  200. </view>
  201. <view class="storebox-btn" @click="goStoreDetail(chooseStore)">进店</view>
  202. </view>
  203. <detail :source="'product'" ref="getStoreInfo" :storeInfo="storeInfo"></detail>
  204. </view>
  205. <!-- 底部按钮 -->
  206. <view class="btn-foot">
  207. <view class="menu-box">
  208. <view class="item" @click="goHome">
  209. <image
  210. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/back_home.png"
  211. mode=""></image>
  212. <text class="label">首页</text>
  213. </view>
  214. <!-- <view class="item" style="position: relative;">
  215. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/consult_small.png" mode=""></image>
  216. <text class="label">咨询</text>
  217. <button class="contact-btn" open-type="contact"></button>
  218. </view> -->
  219. <view class="item" @click="navgetTo('./cart')">
  220. <view class="img-item">
  221. <u-badge type="error" max="99" :value="cartCount" :offset="[-10,-10]"
  222. :absolute="true"></u-badge>
  223. <image
  224. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/fs/20250929/73574822bab04a86ae77b772b4e28952.png"
  225. mode=""></image>
  226. </view>
  227. <text class="label">购物车</text>
  228. </view>
  229. </view>
  230. <view class="btn-box">
  231. <view class="btn cart" @click="addCart('cart')">加入购物车</view>
  232. <view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
  233. </view>
  234. </view>
  235. <!-- 选择药品规格弹窗 -->
  236. <popupBottom ref="popup" :visible.sync="specVisible" title=" " radius="32" maxHeight="1024">
  237. <view class="product-spec">
  238. <!-- 商品信息 -->
  239. <view class="pro-info">
  240. <view class="img-box" @click="showImg(productValueSelect.image)">
  241. <image
  242. :src="productValueSelect.image==null||productValueSelect.image==''?product.image:productValueSelect.image"
  243. mode="aspectFill"></image>
  244. </view>
  245. <view class="info-text">
  246. <view class="price">
  247. <text class="unit">¥</text>
  248. <text class="num">{{ productValueSelect.price.toFixed(2) }}</text>
  249. </view>
  250. <view class="desc-box">
  251. <text class="text">已选:{{ productValueSelect.sku }}</text>
  252. <text class="text">库存{{ productValueSelect.stock?'充足':'售罄' }}</text>
  253. </view>
  254. </view>
  255. </view>
  256. <!-- 规格 -->
  257. <view class="spec-box">
  258. <view v-for="(item,index) in attrs">
  259. <view class="title">{{item.attrName}}</view>
  260. <view class="spec-list">
  261. <view v-for="(subItem,subindex) in item.values" :key="subindex"
  262. :class="subindex==item.index?'item active':'item'" @click="choseSpec(index,subindex)">
  263. {{ subItem }}
  264. </view>
  265. </view>
  266. </view>
  267. </view>
  268. <!-- 数量 -->
  269. <view class="price-num">
  270. <view class="label">数量</view>
  271. <view class="num-box">
  272. <view class="img-box" @click="lessNum()">
  273. <image v-if="specNum <= 1"
  274. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/jian.png"
  275. mode=""></image>
  276. <image v-else
  277. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/jian2.png"
  278. mode=""></image>
  279. </view>
  280. <input type="number" @change="changeNum" v-model="specNum" />
  281. <view class="img-box" @click="addNum()">
  282. <image
  283. src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/add.png"
  284. mode=""></image>
  285. </view>
  286. </view>
  287. </view>
  288. <view class="sub-btn" @click="submit">确定</view>
  289. </view>
  290. </popupBottom>
  291. <view class="loadding" v-if="loadding==true">
  292. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/logo.png"></image>
  293. <text class="text">加载中...</text>
  294. </view>
  295. </view>
  296. </template>
  297. <script>
  298. import detail from '@/components/storeDetail.vue'
  299. import {getCartCount,storeDetail} from '@/api/index.js'
  300. import {getDicts} from '@/api/common.js'
  301. import { getProductDetails, addCart,instructionsViewable } from './api/product.js'
  302. import {selectCommentByUser} from '@/api/myStoreOrder.js'
  303. import popupBottom from '@/components/px-popup-bottom.vue'
  304. import evaluateItem from '@/components/evaluateItem.vue'
  305. export default {
  306. components: {
  307. popupBottom,
  308. evaluateItem,
  309. detail
  310. },
  311. data() {
  312. return {
  313. loadding: true,
  314. buyText: "立即购买",
  315. type: null,
  316. productValueSelect: {
  317. price: 0,
  318. },
  319. banner: [],
  320. productId: null,
  321. attrs: [],
  322. values: [],
  323. product: {
  324. price: 0,
  325. otPrice: 0,
  326. },
  327. // 当前轮播的图片
  328. activeBanner: 1,
  329. // 购物车数量
  330. cartCount: 0,
  331. // 规格弹窗
  332. specVisible: false,
  333. // 规格数量
  334. specNum: 1,
  335. chooseStore: {},
  336. storeList: [],
  337. storeId: '',
  338. evaluateTotal: 0,
  339. evaluate: [],
  340. show: false,
  341. isView: 0,
  342. storeInfo: {},
  343. stockNum: 0,
  344. tagStyle: {
  345. img: 'display: block;'
  346. }
  347. };
  348. },
  349. computed: {
  350. _background() {
  351. //productType: 1:OTC,2:Rx,3:非药品,4:器械
  352. return (productType) => {
  353. switch (productType) {
  354. case 1:
  355. return '#37E2EA' // OTC
  356. case 2:
  357. return 'red' // Rx
  358. case 3:
  359. return '#2583EB' // 非药品
  360. case 4:
  361. return '#999' // 器械
  362. default:
  363. return '#ccc'
  364. }
  365. }
  366. },
  367. _showTxt() {
  368. if(this.product&&this.product.productType) {
  369. const name = this.$getDictLabelName("storeProductType",this.product.productType)
  370. return name.includes('器械');
  371. }else {
  372. return false
  373. }
  374. }
  375. },
  376. onLoad(options) {
  377. if (options.userId != null) {
  378. uni.setStorageSync('tuiUserId', options.userId);
  379. } else if (options.hasOwnProperty('q') && options.q) {
  380. // 通过下面这步解码,可以拿到url的值
  381. const url = decodeURIComponent(options.q)
  382. this.url = url;
  383. // // 对url中携带的参数提取处理
  384. const obj = this.$urlToObj(url)
  385. uni.setStorageSync('tuiUserId', obj.userId);
  386. }
  387. this.storeId = options.storeId || '';
  388. uni.showShareMenu({
  389. withShareTicket: true,
  390. //小程序的原生菜单中显示分享按钮,才能够让发送给朋友与分享到朋友圈两个按钮可以点击
  391. menus: ["shareAppMessage", "shareTimeline"] //不设置默认发送给朋友
  392. })
  393. this.getDicts();
  394. this.productId = options.productId;
  395. this.$isLogin().then(res => {
  396. if (res) {
  397. this.getCartCount();
  398. }
  399. })
  400. },
  401. onShow() {
  402. this.getProductDetails();
  403. },
  404. //发送给朋友
  405. onShareAppMessage(res) {
  406. this.$isLogin().then(res => {
  407. if (res) {
  408. var user = JSON.parse(uni.getStorageSync('userInfo'))
  409. return {
  410. title: this.commonName&&this.product.commonName!=='-'?this.product.commonName:this.product.productName,
  411. path: '/pages_shopping/productDetails?productId=' + this.product.productId + "&userId=" +
  412. user.userId,
  413. }
  414. }
  415. })
  416. },
  417. //分享到朋友圈
  418. onShareTimeline(res) {
  419. this.$isLogin().then(res => {
  420. if (res) {
  421. var user = JSON.parse(uni.getStorageSync('userInfo'))
  422. return {
  423. title: this.commonName&&this.product.commonName!=='-'?this.product.commonName:this.product.productName,
  424. query: 'productId=' + this.product.productId + "&userId=" + user.userId, //页面参数
  425. }
  426. }
  427. })
  428. },
  429. methods: {
  430. getStoreInfo() {
  431. storeDetail(this.storeId).then(res=>{
  432. if(res.code==200) {
  433. this.storeInfo =res.data || {}
  434. this.storeInfo.doctorList = this.storeInfo.doctorList.map(doctor => {
  435. return {
  436. ...doctor,
  437. // 假设images字段是逗号分隔的图片字符串
  438. imagesArray: doctor.practiseImages ?
  439. doctor.practiseImages.split(',').map(img => img.trim()).filter(img => img) : []
  440. };
  441. });
  442. this.$refs.getStoreInfo.getDescHeight()
  443. }
  444. })
  445. },
  446. handleShow() {
  447. uni.showLoading({
  448. title: '加载中',
  449. icon: 'none'
  450. })
  451. instructionsViewable({productId: this.productId}).then(
  452. res => {
  453. uni.hideLoading()
  454. if(res.code==200){
  455. this.isView = res.data ? 1 : 0
  456. this.show = this.isView == 0
  457. }else{
  458. uni.showToast({
  459. icon:'none',
  460. title: "请求失败",
  461. });
  462. }
  463. },
  464. rej => {}
  465. );
  466. },
  467. goStoreDetail(item) {
  468. uni.navigateTo({
  469. url: '/pages_store/storeIndex?storeId=' + item.storeId
  470. })
  471. },
  472. getDicts: function() {
  473. getDicts().then(
  474. res => {
  475. if (res.code == 200) {
  476. uni.setStorageSync('dicts', JSON.stringify(res));
  477. }
  478. },
  479. rej => {}
  480. );
  481. },
  482. showImg(img) {
  483. if (img != null) {
  484. var imgs = [];
  485. imgs.push(img)
  486. //预览图片
  487. uni.previewImage({
  488. urls: imgs,
  489. current: imgs[0]
  490. });
  491. } else {
  492. //预览图片
  493. uni.previewImage({
  494. urls: this.banner,
  495. current: this.banner[0]
  496. });
  497. }
  498. },
  499. doAddCart(type) {
  500. if (this.specNum == 0) {
  501. uni.showToast({
  502. icon: 'none',
  503. title: "库存不足",
  504. });
  505. return;
  506. }
  507. var isBuy = type == "buy" ? 1 : 0;
  508. let data = {
  509. isBuy: isBuy,
  510. cartNum: this.specNum,
  511. productId: this.productValueSelect.productId,
  512. attrValueId: this.productValueSelect.id,
  513. type: 1
  514. };
  515. addCart(data).then(
  516. res => {
  517. if (res.code == 200) {
  518. if (type == "buy") {
  519. const selectCarts = [{
  520. storeId: this.storeId,
  521. data: {
  522. type: this.type,
  523. cartIds: res.id,
  524. }
  525. }]
  526. uni.navigateTo({
  527. url: '/pages_shopping/confirmOrder?type=' + this.type + '&confirmParam=' + encodeURIComponent(JSON.stringify(
  528. selectCarts))
  529. })
  530. } else {
  531. this.getCartCount()
  532. uni.showToast({
  533. icon: 'success',
  534. title: "添加成功",
  535. });
  536. }
  537. } else {
  538. uni.showToast({
  539. icon: 'none',
  540. title: res.msg,
  541. });
  542. this.getProductDetails()
  543. }
  544. },
  545. rej => {}
  546. );
  547. },
  548. getProductDetails() {
  549. let data = {
  550. productId: this.productId
  551. };
  552. getProductDetails(data).then(
  553. res => {
  554. this.loadding = false
  555. if (res.code == 200) {
  556. this.stockNum = res.num || 0;
  557. this.product = res.product;
  558. if (this.product.productType == 1) {
  559. this.buyText = "立即购买"
  560. } else if (this.product.productType == 2) {
  561. this.buyText = "开方购买"
  562. }
  563. this.product.otPrice = this.product.otPrice.toFixed(2);
  564. this.product.price = this.product.price.toFixed(2);
  565. if (this.product.sliderImage != null) {
  566. this.banner = this.product.sliderImage.split(',');
  567. } else {
  568. this.banner = []
  569. }
  570. this.attrs = res.productAttr;
  571. this.attrs.forEach((item, index, arr) => {
  572. item.values = item.attrValues.split(',');
  573. item.index = 0
  574. })
  575. console.log(this.attrs)
  576. this.values = res.productValues;
  577. this.storeId = res.store.storeId || ''
  578. this.storeList = [res.store] || [];
  579. if (this.storeList && this.storeList.length > 0) {
  580. const idx = this.storeList.indexOf(Number(this.storeId || 0));
  581. if (this.storeId && idx > -1) {
  582. this.chooseStore = this.storeList[idx]
  583. } else {
  584. this.chooseStore = this.storeList[0]
  585. }
  586. }
  587. this.choseSpec(0, 0)
  588. this.getCommentByUser()
  589. this.getStoreInfo();
  590. } else {
  591. uni.showToast({
  592. icon: 'none',
  593. title: res.msg,
  594. });
  595. setTimeout(function() {
  596. uni.reLaunch({
  597. url: '/pages/index/index',
  598. })
  599. }, 2000)
  600. }
  601. },
  602. rej => {}
  603. );
  604. },
  605. getCartCount() {
  606. let data = {};
  607. getCartCount(data).then(
  608. cartRes => {
  609. if (cartRes.code == 200) {
  610. this.cartCount = cartRes.data;
  611. }
  612. },
  613. rej => {}
  614. );
  615. },
  616. // swiper变化事件
  617. swiperChange(event) {
  618. this.activeBanner = event.detail.current + 1
  619. },
  620. // 回到首页
  621. goHome() {
  622. uni.switchTab({
  623. url: '/pages/index/index'
  624. })
  625. },
  626. // 跳转页面
  627. navgetTo(url) {
  628. this.$isLogin().then(res => {
  629. if (res) {
  630. uni.navigateTo({
  631. url: url
  632. })
  633. }
  634. })
  635. },
  636. // 加入购物车
  637. addCart(type) {
  638. this.show=false
  639. this.$isLogin().then(res => {
  640. if (res) {
  641. this.type = type;
  642. this.specVisible = true
  643. } else {
  644. uni.navigateTo({
  645. url: '/pages/auth/login'
  646. })
  647. }
  648. })
  649. },
  650. // 规格选择
  651. choseSpec(index, subIndex) {
  652. this.attrs[index].index = subIndex;
  653. this.$forceUpdate();
  654. let productAttr = this.attrs;
  655. let values = [];
  656. for (let i = 0; i < productAttr.length; i++) {
  657. for (let j = 0; j < productAttr[i].values.length; j++) {
  658. if (productAttr[i].index === j) {
  659. values.push(productAttr[i].values[j]);
  660. }
  661. }
  662. }
  663. var selectVal = values.sort().join(",");
  664. console.log('selectVal',selectVal,this.values)
  665. var valueSelect = this.values.filter((item) => {
  666. return item.sku == selectVal;
  667. })
  668. if (valueSelect != null && valueSelect.length == 1) {
  669. this.productValueSelect = valueSelect[0];
  670. }
  671. this.updateSpecNum();
  672. },
  673. //更新数量
  674. updateSpecNum() {
  675. if (this.productValueSelect.stock == 0) {
  676. this.specNum = 0;
  677. } else {
  678. this.specNum = 1;
  679. }
  680. },
  681. changeNum(e) {
  682. this.specNum = e.detail.value.replace(/\D/g, '')
  683. if (this.specNum < 1) {
  684. this.specNum = 1
  685. }
  686. if (this.specNum >= this.productValueSelect.stock) {
  687. this.specNum = this.productValueSelect.stock
  688. }
  689. },
  690. // 数量减法
  691. lessNum() {
  692. this.specNum--
  693. if (this.specNum < 1) {
  694. this.specNum = 1
  695. }
  696. if (this.specNum >= this.productValueSelect.stock) {
  697. this.specNum = this.productValueSelect.stock
  698. }
  699. },
  700. // 数量加法
  701. addNum() {
  702. if (this.specNum < 10) {
  703. this.specNum++
  704. } else {
  705. uni.showToast({
  706. icon: 'none',
  707. title: '限购10盒',
  708. });
  709. }
  710. if (this.specNum >= this.productValueSelect.stock) {
  711. this.specNum = this.productValueSelect.stock
  712. }
  713. },
  714. // 确定选择该规格
  715. submit() {
  716. this.specVisible = false
  717. this.doAddCart(this.type);
  718. },
  719. moreEvaluate() {
  720. uni.navigateTo({
  721. url: '/pages_shopping/evaluate?storeId='+this.storeId+ '&productIds='+this.productId,
  722. })
  723. },
  724. getCommentByUser(){
  725. const param = {
  726. page: 1,
  727. pageSize: 2,
  728. storeId:this.storeId,
  729. orderId: null,
  730. productIds:this.productId,
  731. userId: uni.getStorageSync('userId') || null,
  732. showSelf: 0
  733. }
  734. selectCommentByUser(param).then(res=>{
  735. if(res.code==200) {
  736. this.evaluate = res.data.list
  737. this.evaluateTotal = res.data.total
  738. } else {
  739. this.evaluate = []
  740. this.evaluateTotal = 0
  741. }
  742. })
  743. }
  744. }
  745. }
  746. </script>
  747. <style lang="scss" scoped>
  748. .product-other-box {
  749. .other-box-item {
  750. .label {
  751. // width: 6em;
  752. }
  753. }
  754. }
  755. .hiddenbox {
  756. height: 240rpx;
  757. overflow: hidden;
  758. }
  759. .popupbox {
  760. width: 80vw;
  761. font-size: 32upx;
  762. font-family: PingFang SC;
  763. color: #333333;
  764. &-title{
  765. font-weight: bold;
  766. padding: 30rpx;
  767. text-align: center;
  768. }
  769. &-body {
  770. padding: 24rpx 30rpx;
  771. line-height: 2;
  772. }
  773. .confirm {
  774. background-color: #2583EB;
  775. border-radius: 10rpx;
  776. color: #fff;
  777. padding: 10rpx 24rpx;
  778. margin: 0 10rpx;
  779. }
  780. &-footer {
  781. border-top: 1rpx solid #F7F7F7;
  782. padding: 30rpx;
  783. color: red;
  784. text-align: center;
  785. }
  786. }
  787. .shadowbox{
  788. display: flex;
  789. align-items: center;
  790. justify-content: center;
  791. background: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255,0.5) 50%,rgb(255, 255, 255) 80%);
  792. padding-top: 240rpx;
  793. margin-top: -240rpx;
  794. position: relative;
  795. &-btn {
  796. padding: 10rpx 40rpx;
  797. border-radius: 10rpx;
  798. border: 1rpx solid #ccc;
  799. display: inline-flex;
  800. }
  801. }
  802. .img-item {
  803. position: relative;
  804. width: 44rpx;
  805. height: 44rpx;
  806. margin: 0 20rpx 0 10rpx;
  807. image {
  808. width: 100%;
  809. height: 100%;
  810. }
  811. }
  812. .other-box {
  813. background: #FFFFFF;
  814. border-radius: 16rpx 16rpx 16rpx 16rpx;
  815. padding: 12rpx 24rpx;
  816. margin: 24rpx;
  817. &-item {
  818. display: flex;
  819. align-items: flex-start;
  820. padding: 10rpx 0;
  821. }
  822. .label {
  823. flex-shrink: 0;
  824. color: #999999;
  825. font-size: 28rpx;
  826. font-family: PingFang SC;
  827. line-height: 1.3;
  828. margin-right: 40rpx;
  829. min-width: 4em;
  830. text-align: justify;
  831. /* 两端对齐 */
  832. text-align-last: justify;
  833. /* 最后一行也撑满 */
  834. }
  835. .safe-box {
  836. display: flex;
  837. align-items: center;
  838. image {
  839. width: 28rpx;
  840. height: 28rpx;
  841. margin-right: 8rpx;
  842. }
  843. }
  844. .text {
  845. font-family: PingFang SC, PingFang SC;
  846. font-weight: 400;
  847. font-size: 26rpx;
  848. color: #333333;
  849. }
  850. }
  851. .shop-banner {
  852. height: 756upx;
  853. background-color: #FFFFFF;
  854. position: relative;
  855. .swiper-item {
  856. box-sizing: border-box;
  857. }
  858. .swiper,
  859. .swiper-item,
  860. .swiper-item image {
  861. width: 100%;
  862. height: 100%;
  863. }
  864. .banner-mask {
  865. width: 100%;
  866. height: 44upx;
  867. // background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  868. // opacity: 0.8;
  869. position: absolute;
  870. left: 0;
  871. bottom: 0;
  872. z-index: 9;
  873. background-image: url('https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/black_mask.png');
  874. background-size: 20upx 44upx;
  875. background-repeat: repeat-x;
  876. }
  877. .num-box {
  878. width: 80upx;
  879. height: 44upx;
  880. line-height: 44upx;
  881. text-align: center;
  882. font-size: 24upx;
  883. font-family: PingFang SC;
  884. font-weight: 500;
  885. color: #FFFFFF;
  886. background: rgba(0, 0, 0, .3);
  887. border-radius: 22upx;
  888. position: absolute;
  889. right: 30upx;
  890. bottom: 30upx;
  891. z-index: 10;
  892. }
  893. }
  894. .det-info {
  895. background: #FFFFFF;
  896. padding: 36upx 30upx 25upx;
  897. margin: 20rpx 24rpx;
  898. border-radius: 16rpx 16rpx 16rpx 16rpx;
  899. .price-box {
  900. display: flex;
  901. align-items: center;
  902. justify-content: space-between;
  903. .price {
  904. display: flex;
  905. align-items: baseline;
  906. .label {
  907. color: #999999;
  908. font-size: 28upx;
  909. font-family: PingFang SC;
  910. line-height: 1.3;
  911. margin-right: 5upx;
  912. }
  913. .unit {
  914. font-size: 28upx;
  915. font-family: PingFang SC;
  916. font-weight: bold;
  917. color: #FF6633;
  918. line-height: 1.3;
  919. }
  920. .num {
  921. font-size: 40upx;
  922. font-family: PingFang SC;
  923. font-weight: bold;
  924. color: #FF6633;
  925. margin: 0 20upx 0 0;
  926. line-height: 1;
  927. }
  928. .old {
  929. font-size: 28upx;
  930. font-family: PingFang SC;
  931. font-weight: 500;
  932. text-decoration: line-through;
  933. color: #999999;
  934. line-height: 1.3;
  935. }
  936. }
  937. .share-box {
  938. width: 120upx;
  939. height: 46upx;
  940. border: 1px solid #2583EB;
  941. border-radius: 23upx;
  942. display: flex;
  943. align-items: center;
  944. justify-content: center;
  945. position: relative;
  946. .text {
  947. font-size: 26upx;
  948. font-family: PingFang SC;
  949. font-weight: 500;
  950. color: #2583EB;
  951. }
  952. image {
  953. margin-left: 2rpx;
  954. width: 25upx;
  955. height: 24upx;
  956. }
  957. .share {
  958. display: inline-block;
  959. position: absolute;
  960. top: 0;
  961. left: 0;
  962. width: 100%;
  963. height: 100%;
  964. opacity: 0;
  965. }
  966. }
  967. .spec {
  968. font-size: 24upx;
  969. font-family: PingFang SC;
  970. font-weight: 500;
  971. color: #999999;
  972. line-height: 36upx;
  973. }
  974. }
  975. .name-box {
  976. font-size: 32upx;
  977. font-family: PingFang SC;
  978. font-weight: bold;
  979. color: #111111;
  980. line-height: 44upx;
  981. margin-top: 32upx;
  982. .tag {
  983. display: inline-block;
  984. padding: 0 6upx;
  985. height: 30upx;
  986. background: linear-gradient(90deg, #2583EB 0%, #92C1F5 100%);
  987. border-radius: 4upx;
  988. margin-right: 10upx;
  989. font-size: 22upx;
  990. font-family: PingFang SC;
  991. font-weight: bold;
  992. color: #FFFFFF;
  993. line-height: 30upx;
  994. float: left;
  995. margin-top: 7upx;
  996. }
  997. }
  998. .intro {
  999. display: block;
  1000. font-size: 26upx;
  1001. font-family: PingFang SC;
  1002. font-weight: 500;
  1003. color: #999999;
  1004. line-height: 36upx;
  1005. padding-top: 18upx;
  1006. }
  1007. }
  1008. .inventor {
  1009. height: 88upx;
  1010. padding: 0 39upx 0 30upx;
  1011. margin-top: 10upx;
  1012. background: #FFFFFF;
  1013. display: flex;
  1014. align-items: center;
  1015. justify-content: space-between;
  1016. .left {
  1017. display: flex;
  1018. align-items: center;
  1019. .head-box {
  1020. margin-right: 27upx;
  1021. display: flex;
  1022. align-items: center;
  1023. .head {
  1024. width: 48upx;
  1025. height: 48upx;
  1026. border-radius: 50%;
  1027. overflow: hidden;
  1028. box-shadow: 0 0 0 1px #fff;
  1029. margin-right: -10upx;
  1030. image {
  1031. width: 100%;
  1032. height: 100%;
  1033. }
  1034. }
  1035. }
  1036. .num-box {
  1037. font-size: 24upx;
  1038. font-family: PingFang SC;
  1039. font-weight: 500;
  1040. color: #999999;
  1041. .text {
  1042. font-size: 24upx;
  1043. font-family: PingFang SC;
  1044. font-weight: 500;
  1045. color: #999999;
  1046. }
  1047. }
  1048. }
  1049. .right {
  1050. font-size: 24upx;
  1051. font-family: PingFang SC;
  1052. font-weight: 500;
  1053. color: #999999;
  1054. .text {
  1055. font-size: 24upx;
  1056. font-family: PingFang SC;
  1057. font-weight: 500;
  1058. color: #666666;
  1059. }
  1060. }
  1061. }
  1062. .effect {
  1063. box-sizing: border-box;
  1064. padding: 30rpx;
  1065. background: #FFFFFF;
  1066. font-size: 28upx;
  1067. font-family: PingFang SC;
  1068. font-weight: 500;
  1069. color: #666666;
  1070. line-height: 1.8;
  1071. margin: 24rpx 24rpx 0 24rpx;
  1072. border-radius: 16rpx;
  1073. .label {
  1074. font-size: 30upx;
  1075. font-family: PingFang SC;
  1076. font-weight: bold;
  1077. color: #333333;
  1078. line-height: 1;
  1079. }
  1080. }
  1081. .det-box {
  1082. padding: 30upx 30upx 0 30upx;
  1083. background-color: #FFFFFF;
  1084. margin: 24rpx 24rpx 0 24rpx;
  1085. border-radius: 16rpx;
  1086. .title {
  1087. font-size: 30upx;
  1088. font-family: PingFang SC;
  1089. font-weight: bold;
  1090. color: #333333;
  1091. line-height: 1;
  1092. margin-bottom: 24rpx;
  1093. }
  1094. .label,
  1095. .text {
  1096. font-size: 30upx !important;
  1097. }
  1098. }
  1099. .btn-foot {
  1100. box-sizing: border-box;
  1101. width: 100%;
  1102. height: 121upx;
  1103. background: #FFFFFF;
  1104. padding: 0 32upx 0 28upx;
  1105. display: flex;
  1106. align-items: center;
  1107. justify-content: space-between;
  1108. position: fixed;
  1109. left: 0;
  1110. bottom: 0;
  1111. z-index: 99;
  1112. .menu-box {
  1113. display: flex;
  1114. align-items: center;
  1115. .item {
  1116. display: flex;
  1117. align-items: center;
  1118. flex-direction: column;
  1119. margin-right: 48upx;
  1120. &:last-child {
  1121. margin-right: 0;
  1122. }
  1123. image {
  1124. width: 36upx;
  1125. height: 36upx;
  1126. margin-bottom: 10upx;
  1127. }
  1128. .label {
  1129. font-size: 20upx;
  1130. font-family: PingFang SC;
  1131. font-weight: 500;
  1132. color: #666666;
  1133. text-align: center;
  1134. }
  1135. }
  1136. ::v-deep.uni-badge--x {
  1137. display: flex;
  1138. align-items: center;
  1139. justify-content: center;
  1140. }
  1141. ::v-deep.uni-badge {
  1142. border: none;
  1143. background-color: #FF3636;
  1144. font-family: Roboto;
  1145. }
  1146. }
  1147. .btn-box {
  1148. display: flex;
  1149. align-items: center;
  1150. .btn {
  1151. position: relative;
  1152. width: 200upx;
  1153. height: 88upx;
  1154. line-height: 88upx;
  1155. text-align: center;
  1156. border-radius: 44upx;
  1157. margin-left: 20upx;
  1158. font-size: 30upx;
  1159. font-family: PingFang SC;
  1160. font-weight: bold;
  1161. color: #FFFFFF;
  1162. &:first-child {
  1163. margin-left: 0;
  1164. }
  1165. &.cart {
  1166. background: #FF6633;
  1167. .share {
  1168. display: inline-block;
  1169. position: absolute;
  1170. top: 0;
  1171. left: 0;
  1172. width: 100%;
  1173. height: 100%;
  1174. opacity: 0;
  1175. }
  1176. }
  1177. &.buy {
  1178. background: #2583EB;
  1179. }
  1180. }
  1181. }
  1182. }
  1183. .product-spec {
  1184. .pro-info {
  1185. display: flex;
  1186. align-items: center;
  1187. .img-box {
  1188. width: 200upx;
  1189. height: 200upx;
  1190. background: #FFFFFF;
  1191. border-radius: 16upx;
  1192. overflow: hidden;
  1193. margin-right: 30upx;
  1194. image {
  1195. width: 100%;
  1196. height: 100%;
  1197. }
  1198. }
  1199. .info-text {
  1200. height: 200upx;
  1201. display: flex;
  1202. flex-direction: column;
  1203. justify-content: space-between;
  1204. .price {
  1205. display: flex;
  1206. align-items: flex-end;
  1207. .unit {
  1208. font-size: 32upx;
  1209. font-family: PingFang SC;
  1210. font-weight: bold;
  1211. color: #FF6633;
  1212. line-height: 1.2;
  1213. margin-right: 10upx;
  1214. }
  1215. .num {
  1216. font-size: 50upx;
  1217. font-family: PingFang SC;
  1218. font-weight: bold;
  1219. color: #FF6633;
  1220. line-height: 1;
  1221. }
  1222. }
  1223. .desc-box {
  1224. display: flex;
  1225. flex-direction: column;
  1226. padding-bottom: 9upx;
  1227. .text {
  1228. font-size: 26upx;
  1229. font-family: PingFang SC;
  1230. font-weight: 500;
  1231. color: #999999;
  1232. margin-top: 27upx;
  1233. line-height: 1;
  1234. &:first-child {
  1235. margin-top: 0;
  1236. }
  1237. }
  1238. }
  1239. }
  1240. }
  1241. .spec-box {
  1242. padding-top: 50upx;
  1243. .title {
  1244. font-size: 34upx;
  1245. font-family: PingFang SC;
  1246. font-weight: bold;
  1247. color: #111111;
  1248. line-height: 1;
  1249. }
  1250. .spec-list {
  1251. display: flex;
  1252. flex-wrap: wrap;
  1253. margin-top: 30upx;
  1254. .item {
  1255. box-sizing: border-box;
  1256. height: 64upx;
  1257. padding: 0 30upx;
  1258. line-height: 64upx;
  1259. font-size: 28upx;
  1260. font-family: PingFang SC;
  1261. font-weight: 500;
  1262. color: #111111;
  1263. background: #F7F7F7;
  1264. border: 1px solid #F7F7F7;
  1265. border-radius: 32upx;
  1266. margin-right: 20upx;
  1267. margin-bottom: 30upx;
  1268. &.active {
  1269. background: #F1FFFE;
  1270. border: 1px solid #2583EB;
  1271. color: #2583EB;
  1272. }
  1273. }
  1274. }
  1275. }
  1276. .price-num {
  1277. display: flex;
  1278. align-items: center;
  1279. justify-content: space-between;
  1280. margin-top: 14upx;
  1281. .label {
  1282. font-size: 34upx;
  1283. font-family: PingFang SC;
  1284. font-weight: bold;
  1285. color: #111111;
  1286. }
  1287. .num-box {
  1288. display: flex;
  1289. align-items: center;
  1290. .img-box {
  1291. width: 60upx;
  1292. height: 60upx;
  1293. // border-radius: 4upx;
  1294. border: 1px solid #dddddd;
  1295. display: flex;
  1296. align-items: center;
  1297. justify-content: center;
  1298. image {
  1299. width: 25rpx;
  1300. height: 25rpx;
  1301. }
  1302. }
  1303. input {
  1304. width: 60upx;
  1305. height: 60upx;
  1306. line-height: 60upx;
  1307. font-size: 28upx;
  1308. font-family: PingFang SC;
  1309. font-weight: 500;
  1310. color: #111111;
  1311. // border-radius: 4upx;
  1312. border-top: 1px solid #dddddd;
  1313. border-bottom: 1px solid #dddddd;
  1314. text-align: center;
  1315. // margin: 0 16upx;
  1316. }
  1317. }
  1318. }
  1319. .sub-btn {
  1320. width: 100%;
  1321. height: 88upx;
  1322. line-height: 88upx;
  1323. text-align: center;
  1324. font-size: 30upx;
  1325. font-family: PingFang SC;
  1326. font-weight: bold;
  1327. color: #FFFFFF;
  1328. background: #2583EB;
  1329. border-radius: 44upx;
  1330. margin-top: 30upx;
  1331. // margin-bottom: 30upx;
  1332. }
  1333. }
  1334. .contact-btn {
  1335. display: inline-block;
  1336. position: absolute;
  1337. top: 0;
  1338. left: 0;
  1339. width: 100%;
  1340. height: 100%;
  1341. opacity: 0;
  1342. z-index: 9999;
  1343. }
  1344. .loadding {
  1345. background-color: #fff;
  1346. display: flex;
  1347. flex-direction: column;
  1348. align-items: center;
  1349. justify-content: center;
  1350. position: absolute;
  1351. top: 0;
  1352. left: 0;
  1353. width: 100%;
  1354. height: 100%;
  1355. z-index: 9999;
  1356. image {
  1357. border-radius: 50%;
  1358. animation: load linear 1s infinite;
  1359. width: 120rpx;
  1360. height: 120rpx;
  1361. }
  1362. .text {
  1363. font-size: 28rpx;
  1364. margin-top: 20rpx;
  1365. }
  1366. }
  1367. .storebox {
  1368. margin: 24rpx;
  1369. padding: 28rpx 26rpx;
  1370. font-family: PingFang SC, PingFang SC;
  1371. color: #333;
  1372. background: #FFFFFF;
  1373. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1374. .logo {
  1375. width: 104rpx;
  1376. height: 104rpx;
  1377. background: #FFFFFF;
  1378. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1379. margin-right: 26rpx;
  1380. }
  1381. .storename {
  1382. font-weight: 500;
  1383. font-size: 32rpx;
  1384. }
  1385. .storedesc {
  1386. margin-top: 12rpx;
  1387. font-weight: 400;
  1388. font-size: 22rpx;
  1389. }
  1390. .storebox-r {
  1391. flex: 1;
  1392. overflow: hidden;
  1393. }
  1394. .storebox-btn {
  1395. flex-shrink: 0;
  1396. padding: 10rpx 24rpx;
  1397. font-size: 28rpx;
  1398. border-radius: 28rpx 28rpx 28rpx 28rpx;
  1399. border: 2rpx solid #FF5C03;
  1400. font-weight: 500;
  1401. font-size: 24rpx;
  1402. color: #FF5C03;
  1403. }
  1404. }
  1405. .evaluate {
  1406. .title {
  1407. margin: 0;
  1408. padding-bottom: 24rpx;
  1409. }
  1410. }
  1411. .footer-desc {
  1412. text-align: center;
  1413. padding: 0 32rpx 24rpx 0;
  1414. font-size: 28rpx;
  1415. color: #999;
  1416. image{
  1417. margin-left: 10rpx;
  1418. width:15rpx;
  1419. height:20rpx;
  1420. }
  1421. }
  1422. </style>