jkDetail.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <img :src="info.img" alt="" class="topimg">
  5. </view>
  6. <view class="cont">
  7. <view class="name">{{info.activityName}}</view>
  8. <view class="name2">{{info.startTime}}~{{info.endTime}}</view>
  9. <view class="name3">{{info.activityContent}}</view>
  10. </view>
  11. <view class="shopBox">
  12. <view class="shopBoxTop">
  13. <view class="shopMs">活动门店</view>
  14. <view class="shopTy">
  15. <view class="shopTyTxt">{{shopNum}}家门店通用</view>
  16. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  17. </view>
  18. </view>
  19. <view class="shopCont">
  20. <view class="shopContLeft">
  21. <view class="shopName">{{shopInfo.shopName}}</view>
  22. <view class="shopaddress">{{shopInfo.address}}</view>
  23. </view>
  24. <view class="shopContRight">
  25. <view class="shopContRightLine" @click="getmap">
  26. <img src="../../static/timg/icon_map.png" alt="" class="shopRightIcon">
  27. <view class="shopRightTxt">地图</view>
  28. </view>
  29. <view class="shopRightSx"></view>
  30. <view class="shopContRightLine" @click="call">
  31. <img src="../../static/timg/icon_phone.png" alt="" class="shopRightIcon">
  32. <view class="shopRightTxt">电话</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 多少人报名 -->
  38. <view class="signupBox">
  39. <view class="signupTop">
  40. <span class="signupTops1">122</span>
  41. <span class="signupTops1">人已报名</span>
  42. </view>
  43. <view class="signupCont">
  44. <view class="signupLine" v-for="(item,index) in 5">
  45. <view class="signupLineL">
  46. <img src="http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg" alt="" class="signupLineLImg">
  47. <view class="signupLineLName">微信昵称</view>
  48. </view>
  49. <view class="signupLineM">鲁A0**21</view>
  50. <view class="signupLineR">11-12 12:32</view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 多少人报名 -->
  55. <!-- 多少人看过 -->
  56. <view class="signupBox">
  57. <view class="signupTop">
  58. <span class="signupTops1">122</span>
  59. <span class="signupTops1">人看过</span>
  60. </view>
  61. <view class="seeBox">
  62. <view class="seeLine" v-for="(item,index) in 15">
  63. <img src="http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg" alt="" class="signupLineLImg">
  64. </view>
  65. </view>
  66. </view>
  67. <view class="detailBOx" v-if="info.imgList">
  68. <view class="detailTitle">活动详情</view>
  69. <view class="detailImgBox" v-for="(item,index) in info.imgList.split(',')">
  70. <img :src="item" alt="" class="detailImg" mode="widthFix">
  71. </view>
  72. </view>
  73. <view style="height: 200rpx;"></view>
  74. <view class="bottom">
  75. <view class="timeTbox" v-if="!activityEnd">
  76. <view class="timeviewTxt" v-if="activityNoOpen"> 距开始</view>
  77. <view class="timeviewTxt" v-if="!activityNoOpen"> 距结束</view>
  78. <view class="timeK">{{shengyuD}}</view>
  79. <view class="timeviewTxt" > 天</view>
  80. <view class="timeK">{{shengyuH}}</view>
  81. <view class="timeviewTxt"> 时</view>
  82. <view class="timeK">{{shengyuM}}</view>
  83. <view class="timeviewTxt" > 分</view>
  84. </view>
  85. view
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. info:'',
  94. type:'',
  95. shopNum:'',
  96. shopInfo:'',
  97. activityEnd:false,
  98. activityNoOpen:true,
  99. shengyuD:1,
  100. shengyuH:12,
  101. shengyuM:21
  102. }
  103. },
  104. onLoad(opt) {
  105. this.info={
  106. activityName:'洗车大礼包洗车大礼包洗车大礼包洗车大礼包',
  107. startTime:'2022.01.21',
  108. endTime:'2022-10-01',
  109. activityContent:'这里展示活动说明,如果后台没填则不展示',
  110. img: "http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg",
  111. imgList: "http://dmsphoto.66km.com.cn/marketing//accompany/855DE839-8691-4432-8989-720AA0EA1206.jpg,http://dmsphoto.66km.com.cn/marketing//accompany/855DE839-8691-4432-8989-720AA0EA1206.jpg",
  112. }
  113. this.getInfo()
  114. },
  115. methods: {
  116. getInfo(){
  117. this.$http('openreservation/getInfo', {
  118. lat: '',
  119. lng: '',
  120. }, 'GET').then(res => {
  121. //uni.hideLoading();
  122. this.shopInfo = res.data.shopInfo
  123. })
  124. },
  125. call() {
  126. uni.makePhoneCall({
  127. phoneNumber: this.shopInfo.mobilePhone
  128. });
  129. },
  130. getmap() {
  131. console.log("打开地图")
  132. var that = this;
  133. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  134. uni.showToast({
  135. title: '该店铺未设置定位',
  136. icon: 'none',
  137. duration: 3000
  138. });
  139. } else {
  140. uni.openLocation({
  141. latitude: Number(that.shopInfo.lat),
  142. longitude: Number(that.shopInfo.lng),
  143. name: that.shopInfo.shopName,
  144. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  145. success: function() {
  146. console.log('success');
  147. },
  148. fail(err) {
  149. console.log(err)
  150. }
  151. });
  152. }
  153. },
  154. }
  155. }
  156. </script>
  157. <style scoped>
  158. .timeTbox{
  159. width: 750rpx;
  160. height: 60rpx;
  161. background:#FFF5F0;
  162. border-radius: 24rpx 24rpx 0px 0px;
  163. border: 1px solid #EFE1D5;
  164. display: flex;
  165. justify-content: center;
  166. font-size: 24rpx;
  167. font-family: PingFangSC-Regular, PingFang SC;
  168. font-weight: 400;
  169. color: #764D49;
  170. }
  171. .timeviewTxt{
  172. line-height: 41rpx;
  173. padding-top: 10rpx;
  174. }
  175. .timeDivTxt{
  176. line-height: 60rpx;
  177. padding: 0 10rpx;
  178. }
  179. .timeK{
  180. height: 41rpx;
  181. line-height: 41rpx;
  182. color: #FFFFFF;
  183. width: 41rpx;
  184. text-align: center;
  185. background: #FF4F00;
  186. border-radius: 6rpx;
  187. margin-top: 9rpx;
  188. margin-left: 15rpx;
  189. margin-right: 15rpx;
  190. }
  191. .bottom{
  192. width: 750rpx;
  193. height: 180rpx;
  194. background: #FFFFFF;
  195. border-radius: 24rpx 24rpx 0px 0px;
  196. position: fixed;
  197. left: 0;
  198. bottom: 0;
  199. }
  200. .signupBox{
  201. background: #ffffff;
  202. margin-top: 20rpx;
  203. }
  204. .seeBox{
  205. display: flex;
  206. flex-wrap: wrap;
  207. padding-left: 24rpx;
  208. padding-bottom: 20rpx;
  209. }
  210. .seeLine{
  211. padding-top: 14rpx;
  212. padding-right: 16rpx;
  213. }
  214. .signupLine{
  215. display: flex;
  216. justify-content: space-between;
  217. padding: 11rpx 0;
  218. border-bottom: 1px solid #DDDDDD;
  219. }
  220. .signupLineM{
  221. color: #3C3C3C;font-size: 26rpx;
  222. line-height: 56rpx;
  223. }
  224. .signupLineR{
  225. color: #999999;
  226. font-size: 26rpx;
  227. line-height: 56rpx;
  228. }
  229. .signupLineLName{
  230. font-weight: 400;
  231. color: #3C3C3C;
  232. font-size: 26rpx;
  233. padding-left: 16rpx;
  234. line-height: 56rpx;
  235. width: 150rpx;
  236. white-space:nowrap;
  237. overflow:hidden;
  238. text-overflow:ellipsis;
  239. }
  240. .signupCont{
  241. padding: 0 24rpx;
  242. }
  243. .signupLineLImg{
  244. width: 56rpx;
  245. height: 56rpx;
  246. border-radius: 8rpx;
  247. }
  248. .signupLineL{
  249. display: flex;
  250. }
  251. .signupTop{
  252. width: 750rpx;
  253. height: 78rpx;
  254. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  255. background-size: 100% 100%;
  256. text-align: center;
  257. line-height: 78rpx;
  258. }
  259. .signupTops1{
  260. color: #FF0000;font-weight: 500;
  261. font-size: 28rpx;
  262. }
  263. .signupTops1{
  264. color: #703917;font-weight: 500;
  265. font-size: 28rpx;
  266. }
  267. .shopRightIcon{
  268. width: 44rpx;
  269. height: 44rpx;
  270. display: block;
  271. margin: 0 auto;
  272. margin-bottom: 10rpx;
  273. }
  274. .shopName{
  275. color: #3C3C3C;
  276. font-size: 28rpx;
  277. }
  278. .shopaddress{
  279. font-weight: 400;
  280. color: #999999;
  281. font-size: 24rpx;
  282. padding-top: 10rpx;
  283. width: 500rpx;
  284. }
  285. .shopRightSx{
  286. width: 2rpx;
  287. height: 69rpx;
  288. background:#EEEEEE ;
  289. margin-left: 34rpx;
  290. margin-right: 34rpx;
  291. margin-top: 14rpx;
  292. }
  293. .shopCont{
  294. display: flex;
  295. justify-content: space-between;
  296. padding-top: 25rpx;
  297. }
  298. .shopContRight{
  299. display: flex;
  300. }
  301. .shopContRightLine{
  302. text-align: center;
  303. color: #999999;
  304. font-size: 24rpx;
  305. }
  306. .content{
  307. min-height: 100vh;
  308. background:#F4F5F7;
  309. }
  310. .detailImg{
  311. width: 750rpx;
  312. display: block;
  313. }
  314. .detailBOx{
  315. background: #ffffff;
  316. margin-top: 20rpx;
  317. }
  318. .detailTitle{
  319. color: #3C3C3C;
  320. font-weight: 500;
  321. padding: 20rpx 24rpx;
  322. font-size: 30rpx;
  323. }
  324. .topimg{
  325. width: 750rpx;
  326. }
  327. .shopMs{
  328. font-weight: 500;
  329. color: #222222;
  330. line-height: 42rpx;
  331. font-size: 30rpx;
  332. }
  333. .shopBox{
  334. background: #ffffff;
  335. margin-top: 20rpx;
  336. padding: 20rpx 34rpx;
  337. }
  338. .shopBoxTop{
  339. display: flex;
  340. justify-content: space-between;
  341. }
  342. .shopTy{
  343. display: flex;
  344. }
  345. .shopTyTxt{
  346. font-weight: 400;
  347. color: #666666;
  348. font-size: 24rpx;
  349. line-height: 42rpx;
  350. }
  351. .shopjt{
  352. width: 14rpx;
  353. height: 23rpx;
  354. margin-top: 10rpx;
  355. margin-left: 10rpx;
  356. }
  357. .cont{
  358. background: #ffffff;
  359. border-radius: 24rpx 24rpx 0px 0px;
  360. margin-top: -30rpx;
  361. padding: 30rpx 24rpx;
  362. position: relative;
  363. }
  364. .name{
  365. color: #3C3C3C;
  366. line-height: 42rpx;
  367. font-weight: 500;
  368. font-size: 30rpx;
  369. }
  370. .name2{
  371. color: #3C3C3C;
  372. line-height: 36rpx;
  373. font-weight: 400;
  374. font-size: 26rpx;
  375. padding-top: 16rpx;
  376. }
  377. .name3{
  378. color: #999999;
  379. line-height: 36rpx;
  380. font-weight: 400;
  381. font-size: 26rpx;
  382. padding-top: 16rpx;
  383. }
  384. .bottom{
  385. width: 750rpx;
  386. height: 98rpx;
  387. background: #FFFFFF;
  388. position: fixed;
  389. bottom: 0;
  390. left: 0;
  391. display: flex;
  392. }
  393. .bottomLeft{
  394. width: 375rpx;
  395. line-height: 98rpx;
  396. text-align: center;
  397. color: #3C3C3C;
  398. font-size: 30rpx;
  399. }
  400. .bottomRight{
  401. width: 375rpx;
  402. height: 98rpx;
  403. background: #3F90F7;
  404. line-height: 98rpx;
  405. text-align: center;
  406. color: #FFFFFF;
  407. font-size: 30rpx;
  408. }
  409. </style>