productDetails.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522
  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">
  65. <view class="label">生产厂家</view>
  66. <view class="text">{{product.mah||'--'}}</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 + '&orderType=' +
  528. this.orderType + '&confirmParam=' + encodeURIComponent(JSON.stringify(
  529. selectCarts))
  530. })
  531. } else {
  532. this.getCartCount()
  533. uni.showToast({
  534. icon: 'success',
  535. title: "添加成功",
  536. });
  537. }
  538. } else {
  539. uni.showToast({
  540. icon: 'none',
  541. title: res.msg,
  542. });
  543. this.getProductDetails()
  544. }
  545. },
  546. rej => {}
  547. );
  548. },
  549. getProductDetails() {
  550. let data = {
  551. productId: this.productId
  552. };
  553. getProductDetails(data).then(
  554. res => {
  555. this.loadding = false
  556. if (res.code == 200) {
  557. this.stockNum = res.num || 0;
  558. this.product = res.product;
  559. if (this.product.productType == 1) {
  560. this.buyText = "立即购买"
  561. } else if (this.product.productType == 2) {
  562. this.buyText = "开方购买"
  563. }
  564. this.product.otPrice = this.product.otPrice.toFixed(2);
  565. this.product.price = this.product.price.toFixed(2);
  566. if (this.product.sliderImage != null) {
  567. this.banner = this.product.sliderImage.split(',');
  568. } else {
  569. this.banner = []
  570. }
  571. this.attrs = res.productAttr;
  572. this.attrs.forEach((item, index, arr) => {
  573. item.values = item.attrValues.split(',');
  574. item.index = 0
  575. })
  576. console.log(this.attrs)
  577. this.values = res.productValues;
  578. this.storeId = res.store.storeId || ''
  579. this.storeList = [res.store] || [];
  580. if (this.storeList && this.storeList.length > 0) {
  581. const idx = this.storeList.indexOf(Number(this.storeId || 0));
  582. if (this.storeId && idx > -1) {
  583. this.chooseStore = this.storeList[idx]
  584. } else {
  585. this.chooseStore = this.storeList[0]
  586. }
  587. }
  588. this.choseSpec(0, 0)
  589. this.getCommentByUser()
  590. this.getStoreInfo();
  591. } else {
  592. uni.showToast({
  593. icon: 'none',
  594. title: res.msg,
  595. });
  596. setTimeout(function() {
  597. uni.reLaunch({
  598. url: '/pages/index/index',
  599. })
  600. }, 2000)
  601. }
  602. },
  603. rej => {}
  604. );
  605. },
  606. getCartCount() {
  607. let data = {};
  608. getCartCount(data).then(
  609. cartRes => {
  610. if (cartRes.code == 200) {
  611. this.cartCount = cartRes.data;
  612. }
  613. },
  614. rej => {}
  615. );
  616. },
  617. // swiper变化事件
  618. swiperChange(event) {
  619. this.activeBanner = event.detail.current + 1
  620. },
  621. // 回到首页
  622. goHome() {
  623. uni.switchTab({
  624. url: '/pages/index/index'
  625. })
  626. },
  627. // 跳转页面
  628. navgetTo(url) {
  629. this.$isLogin().then(res => {
  630. if (res) {
  631. uni.navigateTo({
  632. url: url
  633. })
  634. }
  635. })
  636. },
  637. // 加入购物车
  638. addCart(type) {
  639. this.show=false
  640. this.$isLogin().then(res => {
  641. if (res) {
  642. this.type = type;
  643. this.specVisible = true
  644. } else {
  645. uni.navigateTo({
  646. url: '/pages/auth/login'
  647. })
  648. }
  649. })
  650. },
  651. // 规格选择
  652. choseSpec(index, subIndex) {
  653. this.attrs[index].index = subIndex;
  654. this.$forceUpdate();
  655. let productAttr = this.attrs;
  656. let values = [];
  657. for (let i = 0; i < productAttr.length; i++) {
  658. for (let j = 0; j < productAttr[i].values.length; j++) {
  659. if (productAttr[i].index === j) {
  660. values.push(productAttr[i].values[j]);
  661. }
  662. }
  663. }
  664. var selectVal = values.sort().join(",");
  665. console.log('selectVal',selectVal,this.values)
  666. var valueSelect = this.values.filter((item) => {
  667. return item.sku == selectVal;
  668. })
  669. if (valueSelect != null && valueSelect.length == 1) {
  670. this.productValueSelect = valueSelect[0];
  671. }
  672. this.updateSpecNum();
  673. },
  674. //更新数量
  675. updateSpecNum() {
  676. if (this.productValueSelect.stock == 0) {
  677. this.specNum = 0;
  678. } else {
  679. this.specNum = 1;
  680. }
  681. },
  682. changeNum(e) {
  683. this.specNum = e.detail.value.replace(/\D/g, '')
  684. if (this.specNum < 1) {
  685. this.specNum = 1
  686. }
  687. if (this.specNum >= this.productValueSelect.stock) {
  688. this.specNum = this.productValueSelect.stock
  689. }
  690. },
  691. // 数量减法
  692. lessNum() {
  693. this.specNum--
  694. if (this.specNum < 1) {
  695. this.specNum = 1
  696. }
  697. if (this.specNum >= this.productValueSelect.stock) {
  698. this.specNum = this.productValueSelect.stock
  699. }
  700. },
  701. // 数量加法
  702. addNum() {
  703. if (this.specNum < 10) {
  704. this.specNum++
  705. } else {
  706. uni.showToast({
  707. icon: 'none',
  708. title: '限购10盒',
  709. });
  710. }
  711. if (this.specNum >= this.productValueSelect.stock) {
  712. this.specNum = this.productValueSelect.stock
  713. }
  714. },
  715. // 确定选择该规格
  716. submit() {
  717. this.specVisible = false
  718. this.doAddCart(this.type);
  719. },
  720. moreEvaluate() {
  721. uni.navigateTo({
  722. url: '/pages_shopping/evaluate?storeId='+this.storeId+ '&productIds='+this.productId,
  723. })
  724. },
  725. getCommentByUser(){
  726. const param = {
  727. page: 1,
  728. pageSize: 2,
  729. storeId:this.storeId,
  730. orderId: null,
  731. productIds:this.productId,
  732. userId: uni.getStorageSync('userId') || null,
  733. showSelf: 0
  734. }
  735. selectCommentByUser(param).then(res=>{
  736. if(res.code==200) {
  737. this.evaluate = res.data.list
  738. this.evaluateTotal = res.data.total
  739. } else {
  740. this.evaluate = []
  741. this.evaluateTotal = 0
  742. }
  743. })
  744. }
  745. }
  746. }
  747. </script>
  748. <style lang="scss" scoped>
  749. .product-other-box {
  750. .other-box-item {
  751. .label {
  752. // width: 6em;
  753. }
  754. }
  755. }
  756. .hiddenbox {
  757. height: 240rpx;
  758. overflow: hidden;
  759. }
  760. .popupbox {
  761. width: 80vw;
  762. font-size: 32upx;
  763. font-family: PingFang SC;
  764. color: #333333;
  765. &-title{
  766. font-weight: bold;
  767. padding: 30rpx;
  768. text-align: center;
  769. }
  770. &-body {
  771. padding: 24rpx 30rpx;
  772. line-height: 2;
  773. }
  774. .confirm {
  775. background-color: #2583EB;
  776. border-radius: 10rpx;
  777. color: #fff;
  778. padding: 10rpx 24rpx;
  779. margin: 0 10rpx;
  780. }
  781. &-footer {
  782. border-top: 1rpx solid #F7F7F7;
  783. padding: 30rpx;
  784. color: red;
  785. text-align: center;
  786. }
  787. }
  788. .shadowbox{
  789. display: flex;
  790. align-items: center;
  791. justify-content: center;
  792. background: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255,0.5) 50%,rgb(255, 255, 255) 80%);
  793. padding-top: 240rpx;
  794. margin-top: -240rpx;
  795. position: relative;
  796. &-btn {
  797. padding: 10rpx 40rpx;
  798. border-radius: 10rpx;
  799. border: 1rpx solid #ccc;
  800. display: inline-flex;
  801. }
  802. }
  803. .img-item {
  804. position: relative;
  805. width: 44rpx;
  806. height: 44rpx;
  807. margin: 0 20rpx 0 10rpx;
  808. image {
  809. width: 100%;
  810. height: 100%;
  811. }
  812. }
  813. .other-box {
  814. background: #FFFFFF;
  815. border-radius: 16rpx 16rpx 16rpx 16rpx;
  816. padding: 12rpx 24rpx;
  817. margin: 24rpx;
  818. &-item {
  819. display: flex;
  820. align-items: flex-start;
  821. padding: 10rpx 0;
  822. }
  823. .label {
  824. flex-shrink: 0;
  825. color: #999999;
  826. font-size: 28rpx;
  827. font-family: PingFang SC;
  828. line-height: 1.3;
  829. margin-right: 40rpx;
  830. min-width: 4em;
  831. text-align: justify;
  832. /* 两端对齐 */
  833. text-align-last: justify;
  834. /* 最后一行也撑满 */
  835. }
  836. .safe-box {
  837. display: flex;
  838. align-items: center;
  839. image {
  840. width: 28rpx;
  841. height: 28rpx;
  842. margin-right: 8rpx;
  843. }
  844. }
  845. .text {
  846. font-family: PingFang SC, PingFang SC;
  847. font-weight: 400;
  848. font-size: 26rpx;
  849. color: #333333;
  850. }
  851. }
  852. .shop-banner {
  853. height: 756upx;
  854. background-color: #FFFFFF;
  855. position: relative;
  856. .swiper-item {
  857. box-sizing: border-box;
  858. }
  859. .swiper,
  860. .swiper-item,
  861. .swiper-item image {
  862. width: 100%;
  863. height: 100%;
  864. }
  865. .banner-mask {
  866. width: 100%;
  867. height: 44upx;
  868. // background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  869. // opacity: 0.8;
  870. position: absolute;
  871. left: 0;
  872. bottom: 0;
  873. z-index: 9;
  874. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/black_mask.png);
  875. background-size: 20upx 44upx;
  876. background-repeat: repeat-x;
  877. }
  878. .num-box {
  879. width: 80upx;
  880. height: 44upx;
  881. line-height: 44upx;
  882. text-align: center;
  883. font-size: 24upx;
  884. font-family: PingFang SC;
  885. font-weight: 500;
  886. color: #FFFFFF;
  887. background: rgba(0, 0, 0, .3);
  888. border-radius: 22upx;
  889. position: absolute;
  890. right: 30upx;
  891. bottom: 30upx;
  892. z-index: 10;
  893. }
  894. }
  895. .det-info {
  896. background: #FFFFFF;
  897. padding: 36upx 30upx 25upx;
  898. margin: 20rpx 24rpx;
  899. border-radius: 16rpx 16rpx 16rpx 16rpx;
  900. .price-box {
  901. display: flex;
  902. align-items: center;
  903. justify-content: space-between;
  904. .price {
  905. display: flex;
  906. align-items: baseline;
  907. .label {
  908. color: #999999;
  909. font-size: 28upx;
  910. font-family: PingFang SC;
  911. line-height: 1.3;
  912. margin-right: 5upx;
  913. }
  914. .unit {
  915. font-size: 28upx;
  916. font-family: PingFang SC;
  917. font-weight: bold;
  918. color: #FF6633;
  919. line-height: 1.3;
  920. }
  921. .num {
  922. font-size: 40upx;
  923. font-family: PingFang SC;
  924. font-weight: bold;
  925. color: #FF6633;
  926. margin: 0 20upx 0 0;
  927. line-height: 1;
  928. }
  929. .old {
  930. font-size: 28upx;
  931. font-family: PingFang SC;
  932. font-weight: 500;
  933. text-decoration: line-through;
  934. color: #999999;
  935. line-height: 1.3;
  936. }
  937. }
  938. .share-box {
  939. width: 120upx;
  940. height: 46upx;
  941. border: 1px solid #2583EB;
  942. border-radius: 23upx;
  943. display: flex;
  944. align-items: center;
  945. justify-content: center;
  946. position: relative;
  947. .text {
  948. font-size: 26upx;
  949. font-family: PingFang SC;
  950. font-weight: 500;
  951. color: #2583EB;
  952. }
  953. image {
  954. margin-left: 2rpx;
  955. width: 25upx;
  956. height: 24upx;
  957. }
  958. .share {
  959. display: inline-block;
  960. position: absolute;
  961. top: 0;
  962. left: 0;
  963. width: 100%;
  964. height: 100%;
  965. opacity: 0;
  966. }
  967. }
  968. .spec {
  969. font-size: 24upx;
  970. font-family: PingFang SC;
  971. font-weight: 500;
  972. color: #999999;
  973. line-height: 36upx;
  974. }
  975. }
  976. .name-box {
  977. font-size: 32upx;
  978. font-family: PingFang SC;
  979. font-weight: bold;
  980. color: #111111;
  981. line-height: 44upx;
  982. margin-top: 32upx;
  983. .tag {
  984. display: inline-block;
  985. padding: 0 6upx;
  986. height: 30upx;
  987. background: linear-gradient(90deg, #2583EB 0%, #92C1F5 100%);
  988. border-radius: 4upx;
  989. margin-right: 10upx;
  990. font-size: 22upx;
  991. font-family: PingFang SC;
  992. font-weight: bold;
  993. color: #FFFFFF;
  994. line-height: 30upx;
  995. float: left;
  996. margin-top: 7upx;
  997. }
  998. }
  999. .intro {
  1000. display: block;
  1001. font-size: 26upx;
  1002. font-family: PingFang SC;
  1003. font-weight: 500;
  1004. color: #999999;
  1005. line-height: 36upx;
  1006. padding-top: 18upx;
  1007. }
  1008. }
  1009. .inventor {
  1010. height: 88upx;
  1011. padding: 0 39upx 0 30upx;
  1012. margin-top: 10upx;
  1013. background: #FFFFFF;
  1014. display: flex;
  1015. align-items: center;
  1016. justify-content: space-between;
  1017. .left {
  1018. display: flex;
  1019. align-items: center;
  1020. .head-box {
  1021. margin-right: 27upx;
  1022. display: flex;
  1023. align-items: center;
  1024. .head {
  1025. width: 48upx;
  1026. height: 48upx;
  1027. border-radius: 50%;
  1028. overflow: hidden;
  1029. box-shadow: 0 0 0 1px #fff;
  1030. margin-right: -10upx;
  1031. image {
  1032. width: 100%;
  1033. height: 100%;
  1034. }
  1035. }
  1036. }
  1037. .num-box {
  1038. font-size: 24upx;
  1039. font-family: PingFang SC;
  1040. font-weight: 500;
  1041. color: #999999;
  1042. .text {
  1043. font-size: 24upx;
  1044. font-family: PingFang SC;
  1045. font-weight: 500;
  1046. color: #999999;
  1047. }
  1048. }
  1049. }
  1050. .right {
  1051. font-size: 24upx;
  1052. font-family: PingFang SC;
  1053. font-weight: 500;
  1054. color: #999999;
  1055. .text {
  1056. font-size: 24upx;
  1057. font-family: PingFang SC;
  1058. font-weight: 500;
  1059. color: #666666;
  1060. }
  1061. }
  1062. }
  1063. .effect {
  1064. box-sizing: border-box;
  1065. padding: 30rpx;
  1066. background: #FFFFFF;
  1067. font-size: 28upx;
  1068. font-family: PingFang SC;
  1069. font-weight: 500;
  1070. color: #666666;
  1071. line-height: 1.8;
  1072. margin: 24rpx 24rpx 0 24rpx;
  1073. border-radius: 16rpx;
  1074. .label {
  1075. font-size: 30upx;
  1076. font-family: PingFang SC;
  1077. font-weight: bold;
  1078. color: #333333;
  1079. line-height: 1;
  1080. }
  1081. }
  1082. .det-box {
  1083. padding: 30upx 30upx 0 30upx;
  1084. background-color: #FFFFFF;
  1085. margin: 24rpx 24rpx 0 24rpx;
  1086. border-radius: 16rpx;
  1087. .title {
  1088. font-size: 30upx;
  1089. font-family: PingFang SC;
  1090. font-weight: bold;
  1091. color: #333333;
  1092. line-height: 1;
  1093. margin-bottom: 24rpx;
  1094. }
  1095. .label,
  1096. .text {
  1097. font-size: 30upx !important;
  1098. }
  1099. }
  1100. .btn-foot {
  1101. box-sizing: border-box;
  1102. width: 100%;
  1103. height: 121upx;
  1104. background: #FFFFFF;
  1105. padding: 0 32upx 0 28upx;
  1106. display: flex;
  1107. align-items: center;
  1108. justify-content: space-between;
  1109. position: fixed;
  1110. left: 0;
  1111. bottom: 0;
  1112. z-index: 99;
  1113. .menu-box {
  1114. display: flex;
  1115. align-items: center;
  1116. .item {
  1117. display: flex;
  1118. align-items: center;
  1119. flex-direction: column;
  1120. margin-right: 48upx;
  1121. &:last-child {
  1122. margin-right: 0;
  1123. }
  1124. image {
  1125. width: 36upx;
  1126. height: 36upx;
  1127. margin-bottom: 10upx;
  1128. }
  1129. .label {
  1130. font-size: 20upx;
  1131. font-family: PingFang SC;
  1132. font-weight: 500;
  1133. color: #666666;
  1134. text-align: center;
  1135. }
  1136. }
  1137. ::v-deep.uni-badge--x {
  1138. display: flex;
  1139. align-items: center;
  1140. justify-content: center;
  1141. }
  1142. ::v-deep.uni-badge {
  1143. border: none;
  1144. background-color: #FF3636;
  1145. font-family: Roboto;
  1146. }
  1147. }
  1148. .btn-box {
  1149. display: flex;
  1150. align-items: center;
  1151. .btn {
  1152. position: relative;
  1153. width: 200upx;
  1154. height: 88upx;
  1155. line-height: 88upx;
  1156. text-align: center;
  1157. border-radius: 44upx;
  1158. margin-left: 20upx;
  1159. font-size: 30upx;
  1160. font-family: PingFang SC;
  1161. font-weight: bold;
  1162. color: #FFFFFF;
  1163. &:first-child {
  1164. margin-left: 0;
  1165. }
  1166. &.cart {
  1167. background: #FF6633;
  1168. .share {
  1169. display: inline-block;
  1170. position: absolute;
  1171. top: 0;
  1172. left: 0;
  1173. width: 100%;
  1174. height: 100%;
  1175. opacity: 0;
  1176. }
  1177. }
  1178. &.buy {
  1179. background: #2583EB;
  1180. }
  1181. }
  1182. }
  1183. }
  1184. .product-spec {
  1185. .pro-info {
  1186. display: flex;
  1187. align-items: center;
  1188. .img-box {
  1189. width: 200upx;
  1190. height: 200upx;
  1191. background: #FFFFFF;
  1192. border-radius: 16upx;
  1193. overflow: hidden;
  1194. margin-right: 30upx;
  1195. image {
  1196. width: 100%;
  1197. height: 100%;
  1198. }
  1199. }
  1200. .info-text {
  1201. height: 200upx;
  1202. display: flex;
  1203. flex-direction: column;
  1204. justify-content: space-between;
  1205. .price {
  1206. display: flex;
  1207. align-items: flex-end;
  1208. .unit {
  1209. font-size: 32upx;
  1210. font-family: PingFang SC;
  1211. font-weight: bold;
  1212. color: #FF6633;
  1213. line-height: 1.2;
  1214. margin-right: 10upx;
  1215. }
  1216. .num {
  1217. font-size: 50upx;
  1218. font-family: PingFang SC;
  1219. font-weight: bold;
  1220. color: #FF6633;
  1221. line-height: 1;
  1222. }
  1223. }
  1224. .desc-box {
  1225. display: flex;
  1226. flex-direction: column;
  1227. padding-bottom: 9upx;
  1228. .text {
  1229. font-size: 26upx;
  1230. font-family: PingFang SC;
  1231. font-weight: 500;
  1232. color: #999999;
  1233. margin-top: 27upx;
  1234. line-height: 1;
  1235. &:first-child {
  1236. margin-top: 0;
  1237. }
  1238. }
  1239. }
  1240. }
  1241. }
  1242. .spec-box {
  1243. padding-top: 50upx;
  1244. .title {
  1245. font-size: 34upx;
  1246. font-family: PingFang SC;
  1247. font-weight: bold;
  1248. color: #111111;
  1249. line-height: 1;
  1250. }
  1251. .spec-list {
  1252. display: flex;
  1253. flex-wrap: wrap;
  1254. margin-top: 30upx;
  1255. .item {
  1256. box-sizing: border-box;
  1257. height: 64upx;
  1258. padding: 0 30upx;
  1259. line-height: 64upx;
  1260. font-size: 28upx;
  1261. font-family: PingFang SC;
  1262. font-weight: 500;
  1263. color: #111111;
  1264. background: #F7F7F7;
  1265. border: 1px solid #F7F7F7;
  1266. border-radius: 32upx;
  1267. margin-right: 20upx;
  1268. margin-bottom: 30upx;
  1269. &.active {
  1270. background: #F1FFFE;
  1271. border: 1px solid #2583EB;
  1272. color: #2583EB;
  1273. }
  1274. }
  1275. }
  1276. }
  1277. .price-num {
  1278. display: flex;
  1279. align-items: center;
  1280. justify-content: space-between;
  1281. margin-top: 14upx;
  1282. .label {
  1283. font-size: 34upx;
  1284. font-family: PingFang SC;
  1285. font-weight: bold;
  1286. color: #111111;
  1287. }
  1288. .num-box {
  1289. display: flex;
  1290. align-items: center;
  1291. .img-box {
  1292. width: 60upx;
  1293. height: 60upx;
  1294. // border-radius: 4upx;
  1295. border: 1px solid #dddddd;
  1296. display: flex;
  1297. align-items: center;
  1298. justify-content: center;
  1299. image {
  1300. width: 25rpx;
  1301. height: 25rpx;
  1302. }
  1303. }
  1304. input {
  1305. width: 60upx;
  1306. height: 60upx;
  1307. line-height: 60upx;
  1308. font-size: 28upx;
  1309. font-family: PingFang SC;
  1310. font-weight: 500;
  1311. color: #111111;
  1312. // border-radius: 4upx;
  1313. border-top: 1px solid #dddddd;
  1314. border-bottom: 1px solid #dddddd;
  1315. text-align: center;
  1316. // margin: 0 16upx;
  1317. }
  1318. }
  1319. }
  1320. .sub-btn {
  1321. width: 100%;
  1322. height: 88upx;
  1323. line-height: 88upx;
  1324. text-align: center;
  1325. font-size: 30upx;
  1326. font-family: PingFang SC;
  1327. font-weight: bold;
  1328. color: #FFFFFF;
  1329. background: #2583EB;
  1330. border-radius: 44upx;
  1331. margin-top: 30upx;
  1332. // margin-bottom: 30upx;
  1333. }
  1334. }
  1335. .contact-btn {
  1336. display: inline-block;
  1337. position: absolute;
  1338. top: 0;
  1339. left: 0;
  1340. width: 100%;
  1341. height: 100%;
  1342. opacity: 0;
  1343. z-index: 9999;
  1344. }
  1345. .loadding {
  1346. background-color: #fff;
  1347. display: flex;
  1348. flex-direction: column;
  1349. align-items: center;
  1350. justify-content: center;
  1351. position: absolute;
  1352. top: 0;
  1353. left: 0;
  1354. width: 100%;
  1355. height: 100%;
  1356. z-index: 9999;
  1357. image {
  1358. border-radius: 50%;
  1359. animation: load linear 1s infinite;
  1360. width: 120rpx;
  1361. height: 120rpx;
  1362. }
  1363. .text {
  1364. font-size: 28rpx;
  1365. margin-top: 20rpx;
  1366. }
  1367. }
  1368. .storebox {
  1369. margin: 24rpx;
  1370. padding: 28rpx 26rpx;
  1371. font-family: PingFang SC, PingFang SC;
  1372. color: #333;
  1373. background: #FFFFFF;
  1374. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1375. .logo {
  1376. width: 104rpx;
  1377. height: 104rpx;
  1378. background: #FFFFFF;
  1379. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1380. margin-right: 26rpx;
  1381. }
  1382. .storename {
  1383. font-weight: 500;
  1384. font-size: 32rpx;
  1385. }
  1386. .storedesc {
  1387. margin-top: 12rpx;
  1388. font-weight: 400;
  1389. font-size: 22rpx;
  1390. }
  1391. .storebox-r {
  1392. flex: 1;
  1393. overflow: hidden;
  1394. }
  1395. .storebox-btn {
  1396. flex-shrink: 0;
  1397. padding: 10rpx 24rpx;
  1398. font-size: 28rpx;
  1399. border-radius: 28rpx 28rpx 28rpx 28rpx;
  1400. border: 2rpx solid #FF5C03;
  1401. font-weight: 500;
  1402. font-size: 24rpx;
  1403. color: #FF5C03;
  1404. }
  1405. }
  1406. .evaluate {
  1407. .title {
  1408. margin: 0;
  1409. padding-bottom: 24rpx;
  1410. }
  1411. }
  1412. .footer-desc {
  1413. text-align: center;
  1414. padding: 0 32rpx 24rpx 0;
  1415. font-size: 28rpx;
  1416. color: #999;
  1417. image{
  1418. margin-left: 10rpx;
  1419. width:15rpx;
  1420. height:20rpx;
  1421. }
  1422. }
  1423. </style>