shops.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. <template>
  2. <view class="page">
  3. <view class="header-sec"></view>
  4. <view class="name-sec flex-col">
  5. <image src="/static/temp/pro.png" class="img" mode="aspectFill" />
  6. <view class="flex-row group_5">
  7. <view class="flex-row group_6">
  8. <text class="name clamp">幸福西饼万达店</text>
  9. <image src="/static/love.png" class="ic" mode="aspectFill" />
  10. </view>
  11. <text class="loc-txt">距您518m</text>
  12. </view>
  13. <view class="stars align-center"><image src="/static/mang_star.png" class="starImg" v-for="(item, idx) in 3" :key="idx" /></view>
  14. <text class="group_5 text_4 clamp2">
  15. 主营业务介绍内容主营业务介绍内容主营业务介绍内容主营业务介绍内容主营业务介绍内容主营业务介绍内容主营业务介绍内容主营业务介绍内容
  16. </text>
  17. <view class="flex-row group_5 loc-wrap">
  18. <view class="flex-row group_7">
  19. <image src="/static/mangd-loc.png" class="image_7" mode="aspectFill" />
  20. <view class="group_8"><text class="text_5 clamp2">北京市朝阳街区朝阳社区朝阳小区朝阳路万达广场商场内负一楼B1008铺位</text></view>
  21. </view>
  22. <image src="/static/shop-dire.png" class="image_8" />
  23. </view>
  24. </view>
  25. <view class="pro-sec flex-col">
  26. <text class="title">盲盒</text>
  27. <view class="flex-col">
  28. <view class="flex-row items-start list-item" :key="i" v-for="(item, i) in 6">
  29. <image src="/static/temp/pro.png" class="image" mode="aspectFill" />
  30. <view class="flex-col group_10">
  31. <view class="flex-col items-start group_11 view_7">
  32. <text class="name clamp">幸福西饼Rice盲盒</text>
  33. <view class="stars align-center"><image src="/static/mang_star.png" class="starImg" v-for="(item, idx) in 3" :key="idx" /></view>
  34. <text class="text_10">随机搭配</text>
  35. </view>
  36. <view class="flex-row group_12">
  37. <view class="group_13">
  38. <text class="text_11">¥</text>
  39. <text class="text_12">18.8</text>
  40. </view>
  41. <text class="text_13">¥24~33</text>
  42. </view>
  43. </view>
  44. <view class="flex-col items-center btn-wrap"><text class="txt">立即下单</text></view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="tab-sec flex-col">
  49. <view class="flex-row tab-wrap">
  50. <text class="tab active">用户评价</text>
  51. <text class="tab">商家故事</text>
  52. </view>
  53. </view>
  54. <view class="eva-sec" v-if="false">
  55. <view class="e-top justify-between">
  56. <view class="flex-row">
  57. <view class="flex-row group_21">
  58. <text class="text_23">4.5分</text>
  59. <view class="flex-col items-start group_22">
  60. <text class="text_24">总评分</text>
  61. <view class="stars align-center"><image src="/static/mang_star.png" class="starImg" v-for="(item, idx) in 5" :key="idx" /></view>
  62. </view>
  63. <view class="section_8"></view>
  64. </view>
  65. <view class="flex-col items-center group_23">
  66. <text class="text_25">评价</text>
  67. <text class="text_26">70条</text>
  68. </view>
  69. <view class="section_8"></view>
  70. <view class="flex-col group_24">
  71. <text class="text_27">好评率</text>
  72. <text class="text_28">85%</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="division-wrap"></view>
  77. <evaItem v-for="(item,idx) in 6" :key="idx" />
  78. </view>
  79. <view class="story-sec" v-else>
  80. <view class="s-top">
  81. <view class="line-wrap flex-row">
  82. <text class="key">
  83. 商家名称:
  84. </text>
  85. <text class="val">幸福西饼</text>
  86. </view>
  87. <view class="line-wrap flex-row">
  88. <text class="key">
  89. 商家地址:
  90. </text>
  91. <text class="val">万达广场商场内负一楼</text>
  92. </view>
  93. </view>
  94. <view class="division-wrap"></view>
  95. <!--
  96. <view class="rich-wrap">
  97. <rich-text :nodes="richTxt" class="rich"></rich-text>
  98. </view>
  99. -->
  100. <view class="promise-wrap">
  101. <view class="name">商家承诺:</view>
  102. <view class="content">
  103. 本店所售盲盒保证品质完好,请放心购买!感谢您为粮食节约助力!一起实现零浪费、环保绿色的低碳生活。
  104. </view>
  105. </view>
  106. </view>
  107. <safe-area />
  108. </view>
  109. </template>
  110. <script>
  111. import evaItem from './components/eva-item.vue';
  112. export default {
  113. components: {
  114. evaItem,
  115. },
  116. data() {
  117. return {
  118. richTxt:'<p>你知道吗,盲go good</p>', // this.richTxt = this.$tools.replaceDetail(this.info.content || '');
  119. };
  120. }
  121. };
  122. </script>
  123. <style lang="scss">
  124. page{
  125. background-color: #fff;
  126. }
  127. .header-sec {
  128. background-color: $base-color;
  129. height: 240rpx;
  130. }
  131. .name-sec {
  132. padding: 30rpx 14rpx 31.5rpx 30rpx;
  133. background-color: #ffffff;
  134. box-shadow: 0px 4rpx 18.4rpx 1.6rpx #2a2a2a1a;
  135. border-radius: 20rpx;
  136. position: relative;
  137. width: 690rpx;
  138. margin: -196rpx auto 0;
  139. .img {
  140. width: 154rpx;
  141. height: 154rpx;
  142. position: absolute;
  143. left: 24rpx;
  144. top: 24rpx;
  145. }
  146. .group_5 {
  147. position: relative;
  148. }
  149. .loc-txt {
  150. position: absolute;
  151. top: 0;
  152. right: 0;
  153. z-index: 2;
  154. color: #999999;
  155. font-size: 24rpx;
  156. font-family: PingFang;
  157. }
  158. .group_6 {
  159. margin-right: 93rpx;
  160. margin-left: 172rpx;
  161. .name {
  162. color: #333333;
  163. font-size: 30rpx;
  164. font-family: PingFang;
  165. max-width: 300rpx;
  166. font-weight: bold;
  167. }
  168. .ic {
  169. margin-left: 18rpx;
  170. flex-shrink: 0;
  171. width: 31rpx;
  172. height: 27rpx;
  173. }
  174. }
  175. .stars {
  176. margin-top: 13rpx;
  177. margin-left: 172rpx;
  178. .starImg {
  179. width: 28rpx;
  180. height: 28rpx;
  181. margin-right: 4rpx;
  182. }
  183. }
  184. .text_4 {
  185. margin-left: 172rpx;
  186. margin-top: 12rpx;
  187. align-self: flex-start;
  188. color: #666666;
  189. font-size: 24rpx;
  190. font-family: PingFang;
  191. line-height: 32rpx;
  192. }
  193. .loc-wrap {
  194. margin-top: 18rpx;
  195. }
  196. .group_7 {
  197. flex: 1 1 auto;
  198. }
  199. .image_7 {
  200. margin-top: 10.5rpx;
  201. flex-shrink: 0;
  202. width: 18rpx;
  203. height: 22rpx;
  204. }
  205. .group_8 {
  206. margin-left: 16rpx;
  207. flex: 1 1 auto;
  208. line-height: 37rpx;
  209. height: 74rpx;
  210. }
  211. .text_5 {
  212. color: #666666;
  213. font-size: 24rpx;
  214. font-family: PingFang;
  215. line-height: 37rpx;
  216. }
  217. .image_8 {
  218. margin-left: 40rpx;
  219. margin-right: 28rpx;
  220. align-self: center;
  221. width: 30rpx;
  222. height: 30rpx;
  223. flex-shrink: 0;
  224. }
  225. }
  226. .pro-sec {
  227. padding: 29rpx 20rpx 0;
  228. background-color: #ffffff;
  229. box-shadow: 0px 4rpx 18.4rpx 1.6rpx #2a2a2a1a;
  230. border-radius: 20rpx;
  231. width: 690rpx;
  232. margin: 24rpx auto 0;
  233. .title {
  234. margin-left: 6rpx;
  235. align-self: flex-start;
  236. color: #333333;
  237. font-size: 34rpx;
  238. font-family: PingFang;
  239. font-weight: bold;
  240. }
  241. .list-item {
  242. padding: 29rpx 4rpx 25rpx;
  243. border-bottom: solid 1rpx #0000000f;
  244. position: relative;
  245. &:last-child {
  246. border: none;
  247. }
  248. }
  249. .image {
  250. flex-shrink: 0;
  251. width: 200rpx;
  252. height: 200rpx;
  253. }
  254. .group_10 {
  255. margin-left: 20rpx;
  256. flex: 1 1 auto;
  257. }
  258. .group_11 {
  259. flex: 1 1 auto;
  260. }
  261. .view_7 {
  262. flex: initial;
  263. }
  264. .name {
  265. color: #333333;
  266. font-size: 30rpx;
  267. font-family: PingFang;
  268. max-width: 400rpx;
  269. font-weight: bold;
  270. }
  271. .stars {
  272. margin-top: 11rpx;
  273. .starImg {
  274. width: 28rpx;
  275. height: 28rpx;
  276. margin-right: 4rpx;
  277. }
  278. }
  279. .text_10 {
  280. margin-top: 21rpx;
  281. color: #999999;
  282. font-size: 24rpx;
  283. font-family: PingFang;
  284. line-height: 23rpx;
  285. }
  286. .group_12 {
  287. margin-top: 57rpx;
  288. }
  289. .group_13 {
  290. line-height: 28rpx;
  291. height: 29rpx;
  292. }
  293. .text_11 {
  294. color: #ff3e3e;
  295. font-size: 24rpx;
  296. font-family: PingFang;
  297. line-height: 19rpx;
  298. }
  299. .text_12 {
  300. color: #ff3e3e;
  301. font-size: 36rpx;
  302. font-family: PingFang;
  303. line-height: 28rpx;
  304. }
  305. .text_13 {
  306. margin-left: 10rpx;
  307. margin-top: 9rpx;
  308. color: #999999;
  309. font-size: 24rpx;
  310. font-family: PingFang;
  311. line-height: 20rpx;
  312. text-decoration: line-through;
  313. }
  314. .btn-wrap {
  315. padding: 18rpx 0 17rpx;
  316. flex-shrink: 0;
  317. background-color: #92b99c;
  318. border-radius: 32rpx;
  319. width: 168rpx;
  320. height: 64rpx;
  321. position: absolute;
  322. bottom: 26rpx;
  323. right: 10rpx;
  324. z-index: 2;
  325. .txt {
  326. color: #ffffff;
  327. font-size: 30rpx;
  328. font-family: PingFang;
  329. line-height: 29rpx;
  330. }
  331. }
  332. }
  333. .tab-sec {
  334. margin-top: 43rpx;
  335. padding: 0 54rpx;
  336. .tab-wrap {
  337. padding-bottom: 20rpx;
  338. border-bottom: 2rpx solid #eee;
  339. }
  340. .tab {
  341. margin-right: 65rpx;
  342. color: #999999;
  343. font-size: 34rpx;
  344. font-family: PingFang;
  345. position: relative;
  346. &.active {
  347. color: #333333;
  348. font-weight: bold;
  349. &::after {
  350. content: '';
  351. background-color: #92b99c;
  352. width: 41rpx;
  353. height: 4rpx;
  354. position: absolute;
  355. left: 50%;
  356. transform: translateX(-50%);
  357. bottom: -18rpx;
  358. }
  359. }
  360. }
  361. }
  362. .division-wrap {
  363. width: 750rpx;
  364. height: 17rpx;
  365. background: #000000;
  366. opacity: 0.06;
  367. }
  368. .eva-sec {
  369. .e-top {
  370. padding: 17rpx 3rpx 19rpx;
  371. .group_21 {
  372. margin: 5rpx 0 8rpx;
  373. padding: 0 30rpx;
  374. }
  375. .text_23 {
  376. align-self: center;
  377. color: #ff3e3e;
  378. font-size: 36rpx;
  379. font-family: PingFang;
  380. margin-right: 10rpx;
  381. }
  382. .group_22 {
  383. flex-shrink: 0;
  384. }
  385. .text_24 {
  386. color: #999999;
  387. font-size: 24rpx;
  388. font-family: PingFang;
  389. }
  390. .stars {
  391. margin-top: 6rpx;
  392. .starImg {
  393. width: 28rpx;
  394. height: 28rpx;
  395. margin-right: 4rpx;
  396. }
  397. }
  398. .section_8 {
  399. background-color: #0000000f;
  400. width: 1rpx;
  401. height: 70rpx;
  402. }
  403. .group_23 {
  404. margin: 4rpx 0 8rpx;
  405. }
  406. .text_25 {
  407. color: #999999;
  408. font-size: 24rpx;
  409. font-family: PingFang;
  410. }
  411. .text_26 {
  412. margin-top: 13rpx;
  413. color: #333333;
  414. font-size: 24rpx;
  415. font-family: PingFang;
  416. }
  417. .group_24 {
  418. margin: 4rpx 30rpx 10rpx 0;
  419. width: 98rpx;
  420. }
  421. .text_27 {
  422. align-self: flex-start;
  423. color: #999999;
  424. font-size: 24rpx;
  425. font-family: PingFang;
  426. }
  427. .text_28 {
  428. margin-top: 15rpx;
  429. align-self: center;
  430. color: #333333;
  431. font-size: 24rpx;
  432. font-family: PingFang;
  433. }
  434. }
  435. }
  436. .story-sec{
  437. padding-top: 30rpx;
  438. .s-top{
  439. padding-bottom: 30rpx;
  440. }
  441. .line-wrap{
  442. padding: 0 30rpx;
  443. margin-bottom: 20rpx;
  444. &:last-child{
  445. margin-bottom: 0;
  446. }
  447. .key{
  448. margin-right: 38rpx;
  449. font-size: 30rpx;
  450. font-family: PingFang SC;
  451. font-weight: 500;
  452. color: #999999;
  453. line-height: 36rpx;
  454. }
  455. .val{
  456. font-size: 30rpx;
  457. font-family: PingFang SC;
  458. font-weight: 500;
  459. color: #333333;
  460. line-height: 36rpx;
  461. max-width: 500rpx;
  462. }
  463. }
  464. .rich-wrap{
  465. background-color: #fff;
  466. .rich {
  467. line-height: normal;
  468. }
  469. }
  470. .promise-wrap{
  471. padding: 40rpx 30rpx 30rpx;
  472. .name{
  473. font-size: 30rpx;
  474. font-family: PingFang SC;
  475. font-weight: bold;
  476. color: #333333;
  477. }
  478. .content{
  479. width: 696rpx;
  480. font-size: 24rpx;
  481. font-family: PingFang SC;
  482. font-weight: 500;
  483. color: #666666;
  484. line-height: 42rpx;
  485. margin: 30rpx auto 0;
  486. }
  487. }
  488. }
  489. </style>