maintainItem.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <template>
  2. <view class="box">
  3. <view class="spwBox">
  4. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  5. <swiper-item v-for="(item,index) in ImgList">
  6. <view class="swiper-item">
  7. <img mode="aspectFit" :src="item.url" alt="" class="swiper-itemImg" >
  8. </view>
  9. </swiper-item>
  10. </swiper>
  11. </view>
  12. <view class="shopCont">
  13. <view class="shopCtop">
  14. <view class="goodsPrice">
  15. <view class="goodsPrice2">¥</view>
  16. <view class="goodsPrice3">294</view>
  17. <view class="goodsPrice4" >原价:¥1998</view>
  18. </view>
  19. <view class="shareBox" >
  20. <view class="shareTxt">分享</view>
  21. <image class="shareIcon" src="../../static/timg/share.png" mode=""></image>
  22. </view>
  23. </view>
  24. <view class="goodsName">【豪华车型】全合成机油保养套餐</view>
  25. <view class="goodsMSBox" >
  26. <view class="goodsMs">高级全合成</view>
  27. <view class="goodsMs">可选用5W30/5W40/0W20</view>
  28. </view>
  29. <view class="timeBox">
  30. <view class="itemTime">套餐有效期:购买之日起18个月</view>
  31. <view class="sell">
  32. <span>已售:</span><span style="color: #FFC107;">22081</span>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="buyBOx">
  37. <view class="buyLine">
  38. <view class="buyTitle">已选车型</view>
  39. <view class="buyData">奥迪A42006款2.0TFSI无极 标准型(国2)
  40. <image class="jtIcon" src="../../static/timg/jthei.png" mode=""></image>
  41. </view>
  42. </view>
  43. <view class="buyLine">
  44. <view class="buyTitle">商品规格</view>
  45. <view class="buyData">
  46. <view class="goodsGuige activeGuige" style="margin-right: 24rpx;">单次购买</view>
  47. <view class="goodsGuige">保养套餐卡</view>
  48. </view>
  49. </view>
  50. <view class="buyLine">
  51. <view class="buyTitle">商品数量</view>
  52. <view class="buyData">
  53. <view class="numJsbox">
  54. <view class="numJj" @click="calculation(1)">-</view>
  55. <view class="goodsnum">
  56. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  57. </view>
  58. <view class="numJj" @click="calculation(2)">+</view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="buyLine">
  63. <view class="buyTitle">使用方式</view>
  64. <view class="buyData">到店使用</view>
  65. </view>
  66. <view class="buyLine">
  67. <view class="buyTitle">可用门店</view>
  68. <view class="buyData">全部门店</view>
  69. </view>
  70. </view>
  71. <view class="mealBox">
  72. <view class="fwlcTitle">套餐内容</view>
  73. <view class="mealTop">
  74. <view class="mealName">套餐名称</view>
  75. <view class="mealNum">数量</view>
  76. <view class="mealexpire">有效期</view>
  77. </view>
  78. <view class="mealTop2">
  79. <view class="mealName">【豪华车型】全合成机油保养套餐</view>
  80. <view class="mealNum">2</view>
  81. <view class="mealexpire">18个月</view>
  82. </view>
  83. <view class="mealXj">
  84. <view class="xjLine">
  85. <view class="xjyd"></view>
  86. <view class="xjTxt">20项检查</view>
  87. </view>
  88. <view class="xjLine">
  89. <view class="xjyd"></view>
  90. <view class="xjTxt">20美日韩车型专用保养套餐适配机油</view>
  91. </view>
  92. </view>
  93. <view class="mealMs">
  94. <view class="mealMsline">
  95. 1.本套餐不限车辆使用;
  96. 2.机油套餐包含:机油,机油滤,工时费
  97. 3.购买此套餐,共享有2次保养次数。
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 商品详情 -->
  102. <view class="goodsDetail" >
  103. <view class="goodsDetailTitle">商品详情</view>
  104. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  105. <rich-text :nodes="details" style="background: #fff;"></rich-text>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. export default {
  111. components: {
  112. },
  113. data() {
  114. return {
  115. themeColor:'',
  116. ext:'',
  117. ImgList:[
  118. {url:'http://dmsphoto.66km.com.cn/thFiles/339E5DB5-F727-4F0F-AD41-1A2EBAB73883.png'},
  119. {url:'http://dmsphoto.66km.com.cn/thFiles/53DA3E26-5FA3-42DE-95A4-10BA255290A6.png'},
  120. ],
  121. goodsnum:1,
  122. details:'11233'
  123. }
  124. },
  125. onLoad(opt) {
  126. this.ext = this.$common.getExtStoreId();
  127. this.themeColor = uni.getStorageSync("themeColor");
  128. },
  129. onShow() {
  130. },
  131. methods: {
  132. calculation(type){
  133. if(type==1){
  134. if(this.goodsnum>1){
  135. this.goodsnum--
  136. }
  137. }else{
  138. console.log("+++")
  139. this.goodsnum++
  140. }
  141. },
  142. getAboutMember(){
  143. uni.showLoading({
  144. title: '加载中'
  145. })
  146. this.$http('miniApp2/sys/getAboutMember', {
  147. unionID:this.unionID
  148. }, 'GET').then(res => {
  149. uni.hideLoading();
  150. })
  151. },
  152. }
  153. }
  154. </script>
  155. <style scoped lang="less">
  156. .box {
  157. width: 100vw;
  158. min-height: 100vh;
  159. background: #F4F4F4;
  160. }
  161. .swiper{
  162. width: 750rpx;
  163. height: 700rpx;
  164. background: #FFFFFF;
  165. border-bottom: 1px solid #EEEEEE;
  166. }
  167. .swiper-item{
  168. width: 750rpx;
  169. height: 700rpx;
  170. }
  171. .swiper-itemImg{
  172. width: 750rpx;
  173. height: 700rpx;
  174. }
  175. .goodsPrice{
  176. display: flex;
  177. }
  178. .goodsPrice1{
  179. font-size: 24rpx;
  180. font-weight: 400;
  181. color: #FF0000;
  182. padding-top: 14rpx;
  183. padding-right: 14rpx;
  184. }
  185. .goodsPrice2{
  186. font-size: 28rpx;
  187. font-weight: 400;
  188. color: #FF0000;
  189. padding-top: 10rpx;
  190. }
  191. .goodsPrice3{
  192. font-size: 40rpx;
  193. font-weight: 500;
  194. color: #FF0000;
  195. }
  196. .goodsPrice4{
  197. font-size: 24rpx;
  198. font-weight: 400;
  199. color: #999999;
  200. padding-top: 14rpx;
  201. /* text-decoration:line-through; */
  202. padding-left: 10rpx;
  203. }
  204. .Sold{
  205. font-weight: 400;
  206. color: #999999;
  207. font-size: 24rpx;
  208. padding-top: 18rpx;
  209. }
  210. .goodsName{
  211. font-size: 30rpx;
  212. line-height: 42rpx;
  213. font-weight: 500;
  214. color: #333333;
  215. padding: 20rpx 24rpx;
  216. padding-top: 0;
  217. padding-bottom: 16rpx;
  218. }
  219. .goodsMd{
  220. font-weight: 400;
  221. color: #999999;
  222. font-size: 26rpx;
  223. padding: 0 24rpx;
  224. padding-bottom: 20rpx;
  225. }
  226. .shopCont{
  227. background: #FFFFFF;
  228. }
  229. .shopCtop{
  230. display: flex;
  231. padding: 20rpx 24rpx;
  232. justify-content: space-between;
  233. background: #FFFFFF;
  234. }
  235. .goodsMSBox{
  236. display: flex;padding-left: 24rpx;
  237. }
  238. .goodsMs{
  239. font-size: 16rpx;
  240. color: #FF063A;
  241. padding: 4rpx 8rpx;
  242. border-radius: 6rpx;
  243. border: 1px solid #FF063A;
  244. margin-right: 16rpx;
  245. }
  246. .timeBox{
  247. display: flex;justify-content: space-between;
  248. padding: 20rpx 24rpx;
  249. font-size: 26rpx;
  250. color: #666E80;
  251. }
  252. .shareIcon{
  253. width: 33rpx;height: 33rpx;margin-left: 10rpx;
  254. }
  255. .shareBox{
  256. display: flex;font-size: 24rpx;
  257. color: #666666;padding-top: 6rpx;
  258. line-height: 33rpx;
  259. }
  260. .jtIcon{
  261. width: 24rpx;height: 24rpx;margin-top: 6rpx;
  262. }
  263. .buyLine{
  264. display: flex;justify-content: space-between;
  265. padding: 20rpx 24rpx;font-size: 26rpx;
  266. color: #666E80;
  267. }
  268. .buyBOx{
  269. background: #FFFFFF;margin-top: 20rpx;
  270. }
  271. .buyData{
  272. color: #222222;display: flex;
  273. }
  274. .goodsGuige{
  275. width: 150rpx;
  276. height: 50rpx;line-height: 50rpx;
  277. background: #F6F6F6;
  278. border-radius: 5rpx;
  279. font-size: 24rpx;
  280. color: #222222;text-align: center;
  281. }
  282. .activeGuige{
  283. width: 146rpx;
  284. height: 46rpx;line-height: 46rpx;
  285. border: 2rpx solid #FF0035;
  286. border-radius: 5rpx;
  287. font-size: 24rpx;
  288. color: #FF0035;text-align: center;
  289. }
  290. .numJsbox{
  291. display: flex;
  292. }
  293. .buyCont{
  294. position: absolute;
  295. left: 0;
  296. bottom: 0;
  297. width: 750rpx;
  298. height: 688rpx;
  299. background: #FFFFFF;
  300. border-radius: 26rpx 26rpx 0px 0px;
  301. }
  302. .buyNumBox{
  303. padding: 30rpx;
  304. padding-top: 10rpx;
  305. padding-bottom: 70rpx;
  306. }
  307. .buyContCh{
  308. position: absolute;
  309. top: 53rpx;
  310. right: 36rpx;
  311. width: 36rpx;
  312. height: 36rpx;
  313. }
  314. .goodsnum{
  315. width: 88rpx;
  316. height: 44rpx;
  317. background: #F4F5F7;
  318. line-height: 44rpx;
  319. text-align: center;
  320. font-weight: 500;
  321. color: #333333;
  322. font-size: 24rpx;
  323. margin: 0 4rpx;
  324. }
  325. .goodsnumInput{
  326. width: 88rpx;
  327. height: 44rpx;
  328. background: #F4F5F7;
  329. line-height: 44rpx;
  330. text-align: center;
  331. font-weight: 500;
  332. color: #333333;
  333. font-size: 24rpx;
  334. }
  335. .numJj{
  336. width: 44rpx;
  337. height: 44rpx;
  338. background: #F4F5F7;
  339. border-radius: 0px 6rpx 6rpx 0px;
  340. text-align: center;
  341. line-height: 44rpx;
  342. font-size: 32rpx;
  343. color: #999999;
  344. }
  345. .mealBox{
  346. background: #FFFFFF;
  347. padding: 20rpx 24rpx;
  348. margin-top: 20rpx;
  349. }
  350. .fwlcTitle{
  351. color: #333333;font-size: 30rpx;font-weight: 500;
  352. }
  353. .mealTop{
  354. display: flex;
  355. justify-content: space-between;
  356. height: 72rpx;
  357. line-height: 72rpx;
  358. font-weight: 500;
  359. font-size: 26rpx;
  360. color: #222222;
  361. font-size: 26rpx;
  362. padding: 0 20rpx;
  363. }
  364. .mealNum{
  365. text-align: center;
  366. width: 120rpx;
  367. }
  368. .mealexpire{
  369. text-align: center; width: 120rpx;
  370. }
  371. .mealName{
  372. width: 460rpx;
  373. }
  374. .mealTop2{
  375. display: flex;
  376. justify-content: space-between;
  377. height: 72rpx;
  378. line-height: 72rpx;
  379. font-weight: 500;
  380. font-size: 26rpx;
  381. color: #222222;
  382. font-size: 26rpx;
  383. padding: 0 20rpx;
  384. background: #FFF6DB;
  385. }
  386. .mealXj{
  387. background: #FFFCF3;
  388. }
  389. .xjLine{
  390. display: flex;
  391. font-weight: 500;
  392. font-size: 26rpx;
  393. color: #222222;
  394. padding: 20rpx 20rpx;
  395. }
  396. .xjyd{
  397. width: 8rpx;
  398. height: 8rpx;
  399. background: #FABF1B;
  400. border-radius: 50rpx;
  401. margin-top: 12rpx;
  402. margin-right: 10rpx;
  403. }
  404. .mealMs{
  405. background: #FFFFFF;
  406. padding: 20rpx;
  407. font-weight: 400;
  408. font-size: 24rpx;
  409. color: #9A9A9A;
  410. line-height: 38rpx;
  411. }
  412. .goodsDetailTitle{
  413. color: #333333;
  414. font-size: 30rpx;
  415. font-weight: 500;
  416. background: #FFFFFF;
  417. padding: 20rpx 24rpx;
  418. }
  419. .goodsDetail{
  420. margin-top: 20rpx;
  421. padding-bottom: 30rpx;
  422. background: #FFFFFF;
  423. }
  424. .goodsDetail img{
  425. width: 750rpx;
  426. }
  427. .goodsDetail image{
  428. width: 750rpx;
  429. }
  430. </style>