jkDetail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. <view class="detailBOx" v-if="info.imgList">
  56. <view class="detailTitle">活动详情</view>
  57. <view class="detailImgBox" v-for="(item,index) in info.imgList.split(',')">
  58. <img :src="item" alt="" class="detailImg" mode="widthFix">
  59. </view>
  60. </view>
  61. <view style="height: 120rpx;"></view>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. info:'',
  69. type:'',
  70. shopNum:'',
  71. shopInfo:'',
  72. }
  73. },
  74. onLoad(opt) {
  75. this.info={
  76. activityName:'洗车大礼包洗车大礼包洗车大礼包洗车大礼包',
  77. startTime:'2022.01.21',
  78. endTime:'2022-10-01',
  79. activityContent:'这里展示活动说明,如果后台没填则不展示',
  80. img: "http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg",
  81. 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",
  82. }
  83. this.getInfo()
  84. },
  85. methods: {
  86. getInfo(){
  87. this.$http('openreservation/getInfo', {
  88. lat: '',
  89. lng: '',
  90. }, 'GET').then(res => {
  91. //uni.hideLoading();
  92. this.shopInfo = res.data.shopInfo
  93. })
  94. },
  95. call() {
  96. uni.makePhoneCall({
  97. phoneNumber: this.shopInfo.mobilePhone
  98. });
  99. },
  100. getmap() {
  101. console.log("打开地图")
  102. var that = this;
  103. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  104. uni.showToast({
  105. title: '该店铺未设置定位',
  106. icon: 'none',
  107. duration: 3000
  108. });
  109. } else {
  110. uni.openLocation({
  111. latitude: Number(that.shopInfo.lat),
  112. longitude: Number(that.shopInfo.lng),
  113. name: that.shopInfo.shopName,
  114. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  115. success: function() {
  116. console.log('success');
  117. },
  118. fail(err) {
  119. console.log(err)
  120. }
  121. });
  122. }
  123. },
  124. }
  125. }
  126. </script>
  127. <style scoped>
  128. .signupBox{
  129. background: #ffffff;
  130. margin-top: 20rpx;
  131. }
  132. .signupLineLImg{
  133. width: 56rpx;
  134. height: 56rpx;
  135. border-radius: 8rpx;
  136. }
  137. .signupTop{
  138. width: 750rpx;
  139. height: 78rpx;
  140. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  141. background-size: 100% 100%;
  142. text-align: center;
  143. line-height: 78rpx;
  144. }
  145. .signupTops1{
  146. color: #FF0000;font-weight: 500;
  147. font-size: 28rpx;
  148. }
  149. .signupTops1{
  150. color: #703917;font-weight: 500;
  151. font-size: 28rpx;
  152. }
  153. .shopRightIcon{
  154. width: 44rpx;
  155. height: 44rpx;
  156. display: block;
  157. margin: 0 auto;
  158. margin-bottom: 10rpx;
  159. }
  160. .shopName{
  161. color: #3C3C3C;
  162. font-size: 28rpx;
  163. }
  164. .shopaddress{
  165. font-weight: 400;
  166. color: #999999;
  167. font-size: 24rpx;
  168. padding-top: 10rpx;
  169. width: 500rpx;
  170. }
  171. .shopRightSx{
  172. width: 2rpx;
  173. height: 69rpx;
  174. background:#EEEEEE ;
  175. margin-left: 34rpx;
  176. margin-right: 34rpx;
  177. margin-top: 14rpx;
  178. }
  179. .shopCont{
  180. display: flex;
  181. justify-content: space-between;
  182. padding-top: 25rpx;
  183. }
  184. .shopContRight{
  185. display: flex;
  186. }
  187. .shopContRightLine{
  188. text-align: center;
  189. color: #999999;
  190. font-size: 24rpx;
  191. }
  192. .content{
  193. min-height: 100vh;
  194. background:#F4F5F7;
  195. }
  196. .detailImg{
  197. width: 750rpx;
  198. display: block;
  199. }
  200. .detailBOx{
  201. background: #ffffff;
  202. margin-top: 20rpx;
  203. }
  204. .detailTitle{
  205. color: #3C3C3C;
  206. font-weight: 500;
  207. padding: 20rpx 24rpx;
  208. font-size: 30rpx;
  209. }
  210. .topimg{
  211. width: 750rpx;
  212. }
  213. .shopMs{
  214. font-weight: 500;
  215. color: #222222;
  216. line-height: 42rpx;
  217. font-size: 30rpx;
  218. }
  219. .shopBox{
  220. background: #ffffff;
  221. margin-top: 20rpx;
  222. padding: 20rpx 34rpx;
  223. }
  224. .shopBoxTop{
  225. display: flex;
  226. justify-content: space-between;
  227. }
  228. .shopTy{
  229. display: flex;
  230. }
  231. .shopTyTxt{
  232. font-weight: 400;
  233. color: #666666;
  234. font-size: 24rpx;
  235. line-height: 42rpx;
  236. }
  237. .shopjt{
  238. width: 14rpx;
  239. height: 23rpx;
  240. margin-top: 10rpx;
  241. margin-left: 10rpx;
  242. }
  243. .cont{
  244. background: #ffffff;
  245. border-radius: 24rpx 24rpx 0px 0px;
  246. margin-top: -30rpx;
  247. padding: 30rpx 24rpx;
  248. position: relative;
  249. }
  250. .name{
  251. color: #3C3C3C;
  252. line-height: 42rpx;
  253. font-weight: 500;
  254. font-size: 30rpx;
  255. }
  256. .name2{
  257. color: #3C3C3C;
  258. line-height: 36rpx;
  259. font-weight: 400;
  260. font-size: 26rpx;
  261. padding-top: 16rpx;
  262. }
  263. .name3{
  264. color: #999999;
  265. line-height: 36rpx;
  266. font-weight: 400;
  267. font-size: 26rpx;
  268. padding-top: 16rpx;
  269. }
  270. .bottom{
  271. width: 750rpx;
  272. height: 98rpx;
  273. background: #FFFFFF;
  274. position: fixed;
  275. bottom: 0;
  276. left: 0;
  277. display: flex;
  278. }
  279. .bottomLeft{
  280. width: 375rpx;
  281. line-height: 98rpx;
  282. text-align: center;
  283. color: #3C3C3C;
  284. font-size: 30rpx;
  285. }
  286. .bottomRight{
  287. width: 375rpx;
  288. height: 98rpx;
  289. background: #3F90F7;
  290. line-height: 98rpx;
  291. text-align: center;
  292. color: #FFFFFF;
  293. font-size: 30rpx;
  294. }
  295. </style>