jkDetail.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789
  1. <template>
  2. <view class="content">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'活动详情'"></homenav>
  4. <view class="top">
  5. <img :src="mainImg" alt="" class="topimg" mode="widthFix">
  6. </view>
  7. <view class="cont" v-if="info">
  8. <view class="name">
  9. <view class="ptNameBz" v-if="info.groupType">
  10. {{info.groupNumber}}人团
  11. </view>
  12. {{info.activityName}}</view>
  13. <view class="name2">{{info.startTime.slice(0,10)}}~{{info.endTime.slice(0,10)}}</view>
  14. <view class="name3">{{info.activityContent}}</view>
  15. </view>
  16. <!-- 拼团 -->
  17. <view class="ptBox" v-if="info.groupList&&info.groupList.length>0">
  18. <view class="ptBoxtop">
  19. <view class="ptNum">{{info.groupList.length}}人正在拼团,可直接参与</view>
  20. <view class="ptMore" @click="ptMore">
  21. <sapn>查看更多</sapn>
  22. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  23. </view>
  24. </view>
  25. <view class="ptLine" v-for="(item,index) in info.groupList" v-if="index<3">
  26. <view class="FirstMobilePhone">{{item.FirstMobilePhone?item.FirstMobilePhone:'***'}}</view>
  27. <view class="ptlineRight">
  28. <view class="ptlinexx">
  29. <view class="DiffBNumber">还差 <span>{{item.DiffBNumber}}人</span>拼成 </view>
  30. <view class="ptdjs">剩余{{item.EndTime | limitTimeFilter }}</view><!-- | limitTimeFilter -->
  31. </view>
  32. <button open-type="share" class=" shareBtn" :data-obj="item" v-if="item.IfMyself">
  33. <view class="ptBtn" >邀请好友 </view>
  34. </button>
  35. <view class="ptBtn" @click="join(item)" v-else>去拼团 </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="shopBox">
  40. <view class="shopBoxTop">
  41. <view class="shopMs">活动门店</view>
  42. <view class="shopTy" @click="useShow">
  43. <view class="shopTyTxt">{{info.shopCount}}家门店通用</view>
  44. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  45. </view>
  46. </view>
  47. <view class="shopCont">
  48. <view class="shopContLeft">
  49. <view class="shopName">{{shopInfo.shopName}}</view>
  50. <view class="shopaddress">{{shopInfo.address?shopInfo.address:''}}</view>
  51. </view>
  52. <view class="shopContRight">
  53. <view class="shopContRightLine" @click="getmap">
  54. <image src="../../static/timg/icon_map.png" alt="" class="shopRightIcon"></image>
  55. <view class="shopRightTxt">地图</view>
  56. </view>
  57. <view class="shopRightSx"></view>
  58. <view class="shopContRightLine" @click="call">
  59. <image src="../../static/timg/icon_phone.png" alt="" class="shopRightIcon"></image>
  60. <view class="shopRightTxt">电话</view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <!-- 多少人报名 -->
  66. <view class="signupBox" v-if="info.signUserList.length">
  67. <view class="signupTop">
  68. <span class="signupTops1">{{info.signUserList.length}}</span>
  69. <span class="signupTops1">人已报名</span>
  70. </view>
  71. <view class="signupCont">
  72. <view class="signupLine" v-for="(item,index) in info.signUserList">
  73. <view class="signupLineL">
  74. <img :src="item.headImg" alt="" class="signupLineLImg">
  75. <view class="signupLineLName" v-if="item.nickName!='null'">{{item.nickName?item.nickName:'微信用户'}}</view>
  76. <view class="signupLineLName" v-else>微信用户</view>
  77. </view>
  78. <view class="signupLineM">{{item.plateNumber?item.plateNumber:''}}</view>
  79. <view class="signupLineR">{{item.createTime}}</view>
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 多少人报名 -->
  84. <!-- 多少人看过 -->
  85. <view class="signupBox" v-if="info.lookCount">
  86. <view class="signupTop">
  87. <span class="signupTops1">{{info.lookCount}}</span>
  88. <span class="signupTops1">人看过</span>
  89. </view>
  90. <!-- <view class="seeBox">
  91. <view class="seeLine" v-for="(item,index) in 15">
  92. <img src="http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg" alt="" class="signupLineLImg">
  93. </view>
  94. </view> -->
  95. </view>
  96. <view class="detailBOx" v-if="dimgList.length>0">
  97. <view class="detailTitle">活动详情</view>
  98. <view class="detailImgBox" v-for="(item,index) in dimgList">
  99. <img :src="item.img" alt="" class="detailImg" mode="widthFix">
  100. </view>
  101. </view>
  102. <view class="companyName">©{{info.supportInfo}}</view>
  103. <view style="height: 200rpx;padding-bottom: constant(safe-area-inset-bottom);
  104. padding-bottom: env(safe-area-inset-bottom);"></view>
  105. <view class="bottom">
  106. <view class="timeTbox" v-if="!activityEnd">
  107. <view class="timeviewTxt" v-if="activityNoOpen"> 距开始</view>
  108. <view class="timeviewTxt" v-if="!activityNoOpen"> 距结束</view>
  109. <view class="timeK">{{shengyuD}}</view>
  110. <view class="timeviewTxt" > 天</view>
  111. <view class="timeK">{{shengyuH}}</view>
  112. <view class="timeviewTxt"> 时</view>
  113. <view class="timeK">{{shengyuM}}</view>
  114. <view class="timeviewTxt" > 分</view>
  115. </view>
  116. <view class="bottomBtnBox">
  117. <view class="bottomBtnBoxLeft" @click="shareShowzs">
  118. <image src="../../static/timg/share.png" alt="" class="shareIcon"></image>
  119. <view class="shareTxt">分享</view>
  120. </view>
  121. <!-- <button open-type="share" class="bottomBtnBoxLeft shareBtn" >
  122. <image src="../../static/timg/share.png" mode="" class="shareIcon"></image>
  123. <view class="shareTxt">分享</view>
  124. </button> -->
  125. <!-- 状态1未开始 2进行中3已结束 -->
  126. <view class="bottomBtn" v-if="info.state==2&&info.groupType!=1" @click="signUp" :style="{background:'#'+themeColor}">
  127. <span v-if="info.payType==1">¥{{info.money}} &nbsp; 立即抢购</span>
  128. <span v-else>立即报名</span>
  129. </view>
  130. <view class="bottomPtBox" v-if="info.state==2&&info.groupType==1" >
  131. <view class="separate" @click="signUp">
  132. <view class="separateTop">¥{{info.money}}</view>
  133. <view class="separateTxt">单独购买</view>
  134. </view>
  135. <view class="groupBtn" @click="groupFn">
  136. <view class="groupBtnTop">¥{{info.groupMoney}}</view>
  137. <view class="groupBtnTxt">发起拼团</view>
  138. </view>
  139. </view>
  140. <view class="bottomBtn2" v-if="info.state==1">报名未开始</view>
  141. <view class="bottomBtn2" v-if="info.state==3">报名已结束</view>
  142. </view>
  143. </view>
  144. <!-- 报名弹框 -->
  145. <view class="baomingBox" v-if="bmShow" @click="nobmshow">
  146. <view class="baomingCont applicationTk" @click.stop="" :style="{bottom: jpHeight}">
  147. <view class="bmTop">
  148. <view class="bmTitle">登记信息</view>
  149. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="nobmshow"></image>
  150. </view>
  151. <view style="padding: 0 24rpx;">
  152. <view class="bmshopLine" @click="showCkshop">
  153. <view class="bmshopname" v-if="!shopName">请选择门店</view>
  154. <view class="bmshopname" style="color: #333333;">{{shopName}}</view>
  155. <image src="../../static/timg/icon_arrow_right.png" alt="" class="bmshopjt"></image>
  156. </view>
  157. <!-- clWhere报名凭证1,2,3,4 1手机号2车牌号3姓名4单位 -->
  158. <view class="bmLine" v-if="info.clWhere.indexOf(1)!=-1" @click="focusState1cl">
  159. <!-- :focus="focusState1" --> <input type="number" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="mobilePhone" class="bmlineInput" placeholder="输入手机号" placeholder-style="color:#999999">
  160. </view>
  161. <view class="bmLine" v-if="info.clWhere.indexOf(2)!=-1" @click="focusState2cl">
  162. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="plateNumber" class="bmlineInput" placeholder="输入车牌号" placeholder-style="color:#999999">
  163. </view>
  164. <view class="bmLine" v-if="info.clWhere.indexOf(3)!=-1" @click="focusState3cl">
  165. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="customerName" class="bmlineInput" placeholder="输入姓名" placeholder-style="color:#999999">
  166. </view>
  167. <view class="bmLine" v-if="info.clWhere.indexOf(4)!=-1" @click="focusState4cl">
  168. <input type="text" :adjust-position="false" :hold-keyboard="true" @blur="inputBindBlur" @focus="inputBindFocus" v-model="unit" class="bmlineInput" placeholder="输入单位" placeholder-style="color:#999999">
  169. </view>
  170. </view>
  171. <view class="bmTtnBox">
  172. <view style="height: 1rpx;"></view>
  173. <view class="bmBtn" @click="submitOrder" :style="{background:'#'+themeColor}">
  174. <span v-if="groupOwner">
  175. ¥{{info.groupMoney}} &nbsp; {{groupOwner==1?'发起拼团':'立即拼团'}}
  176. </span>
  177. <span v-else>
  178. <span v-if="info.payType==1">¥{{info.money}} &nbsp; {{info.groupType==1?'单独购买':'立即抢购'}} </span>
  179. <span v-else>立即报名</span>
  180. </span>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <!-- 门店弹框 -->
  186. <view class="baomingBox ckshopBox" v-if="ckshopShow">
  187. <view class="baomingCont">
  188. <view class="bmTop">
  189. <view class="bmTitle">选择门店</view>
  190. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop"></image>
  191. </view>
  192. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  193. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  194. <view class="shoplineLeft">
  195. <image :src="item.photoPath" mode="" class="shopImg" v-if="item.photoPath"></image>
  196. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  197. </view>
  198. <view class="shopright" style="padding-left: 20rpx;">
  199. <view class="shopTop">
  200. <view class="shopName">{{item.shopName}}</view>
  201. </view>
  202. <view class="brandsBg" v-if="item.brands">
  203. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  204. </view>
  205. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  206. v-if="item.endTime">{{item.endTime}}</span> </view>
  207. <view class="shopBottomLeft">
  208. <span class="shopaddress"
  209. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  210. <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. <!-- 适用门店 -->
  218. <view class="baomingBox ckshopBox" v-if="useShopShow" @click="noShowShop2">
  219. <view class="baomingCont" @click.stop="">
  220. <view class="bmTop">
  221. <view class="bmTitle">选择门店</view>
  222. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop2"></image>
  223. </view>
  224. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  225. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  226. <view class="shoplineLeft">
  227. <image :src="item.photoPath" mode="" class="shopImg" v-if="item.photoPath"></image>
  228. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  229. </view>
  230. <view class="shopright" style="padding-left: 20rpx;">
  231. <view class="shopTop">
  232. <view class="shopName">{{item.shopName}}</view>
  233. </view>
  234. <view class="brandsBg" v-if="item.brands">
  235. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  236. </view>
  237. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  238. v-if="item.endTime">{{item.endTime}}</span> </view>
  239. <view class="shopBottomLeft">
  240. <span class="shopaddress"
  241. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  242. <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span>
  243. </view>
  244. </view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <image src="../../static/timg/mp3.png" class="mp3Img" @click="play()" v-if="!payshow&mp3Url!=''"></image>
  250. <image src=".../../static/timg/mp31.png" class="mp3Img" @click="play2()" id="bofang" v-if="payshow&mp3Url!=''"></image>
  251. <view class="shareBox" v-if="shareShow" @click="shareShowyc">
  252. <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
  253. <view class="shareCont" >
  254. <button open-type="share" class=" shareBtn" >
  255. <image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
  256. <view class="bottomTxtshare">分享</view>
  257. </button>
  258. <view @click="gowp">
  259. <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
  260. <view class="bottomTxtshare">生成海报</view>
  261. </view>
  262. </view>
  263. </view>
  264. <!-- 手机号授权 -->
  265. <view class="authorizBox" v-if="authorizShow" @click="authorizShowno">
  266. <view class="authorizCont" @click.stop="">
  267. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  268. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  269. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  270. </view>
  271. <view style="text-align: center;padding-top: 56rpx;">
  272. <image src="../../static/timg/icon_guanbi@2x.png" @click="authorizShowno" mode="" class="authorizCloseImg"></image>
  273. </view>
  274. </view>
  275. <!-- 拼单更多 -->
  276. <view class="baomingBox" v-if="djsMoreShow">
  277. <view class="djsCont">
  278. <view class="bmTop">
  279. <view class="bmTitle">{{info.groupList.length}}人正在拼团,可直接参与</view>
  280. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="ptMorehide"></image>
  281. </view>
  282. <view class="djsLineBox">
  283. <view class="ptLine" v-for="(item,index) in info.groupList">
  284. <view class="FirstMobilePhone">{{item.FirstMobilePhone?item.FirstMobilePhone:'***'}}</view>
  285. <view class="ptlineRight">
  286. <view class="ptlinexx">
  287. <view class="DiffBNumber">还差 <span>{{item.DiffBNumber}}人</span>拼成 </view>
  288. <view class="ptdjs">剩余{{item.EndTime | limitTimeFilter }}</view><!-- | limitTimeFilter -->
  289. </view>
  290. <button open-type="share" class=" shareBtn" :data-obj="item" v-if="item.IfMyself">
  291. <view class="ptBtn" >邀请好友 </view>
  292. </button>
  293. <view class="ptBtn" @click="join(item)" v-else>去拼团</view>
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. </view>
  299. </view>
  300. </template>
  301. <script>
  302. import homenav from "../../components/homenav/nav.vue"
  303. let that;
  304. export default {
  305. components: {
  306. homenav
  307. },
  308. data() {
  309. return {
  310. info:'',
  311. type:'',
  312. shopNum:'',
  313. shopInfo:'',
  314. activityEnd:true,
  315. activityNoOpen:true,
  316. shengyuD:'',
  317. shengyuH:'',
  318. shengyuM:'',
  319. queryShopList:'',
  320. collectingID:'',
  321. bmShow:false,
  322. ckshopShow:false,
  323. mainImg:'',
  324. dimgList:[],
  325. shopName:'',
  326. ckshopdata:'',
  327. customerName:'',
  328. mobilePhone:'',
  329. unit:'',
  330. plateNumber:'',
  331. comment:'',
  332. userInfo:'',
  333. useShopShow:false,
  334. jpHeight:0,
  335. isPlay: false,
  336. mp3Url:'',
  337. payshow:false,
  338. jpNum:1,
  339. focusState1:false,
  340. focusState2:false,
  341. focusState3:false,
  342. focusState4:false,
  343. shareShow:false,
  344. ext:'',
  345. shareId:'',
  346. scene:'',
  347. themeColor:'',
  348. authorizShow:false,
  349. wxOpenData:'',
  350. ext:'',
  351. iStatusBarHeight:'',
  352. groupOwner:'',
  353. groupID:'',
  354. ticker: null,
  355. djsMoreShow:false,
  356. }
  357. },
  358. onLoad(opt) {
  359. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  360. console.log(opt)
  361. if(opt.shareId){
  362. this.shareId=opt.shareId
  363. }
  364. this.ext=this.$common.getExtStoreId();
  365. // opt.scene='10002'
  366. if(this.userInfo){
  367. this.userInfo=this.$store.state.userInfo;
  368. this.wxOpenData=this.$store.state.wxOpenData;
  369. this.themeColor = uni.getStorageSync("themeColor");
  370. this.queryGoodsLook()
  371. if(opt.scene&&opt.scene!='undefined'){
  372. this.scene=opt.scene;
  373. this.getShareParams()
  374. }else{
  375. this.collectingID=opt.id;
  376. //this.getInfo();
  377. this.queryActivityInfo();
  378. this.queryGoodsLook()
  379. }
  380. }else{
  381. this.$common.automaticlogin().then(val => {
  382. this.themeColor = uni.getStorageSync("themeColor");
  383. this.userInfo=this.$store.state.userInfo;
  384. this.wxOpenData=this.$store.state.wxOpenData;
  385. if(opt.scene&&opt.scene!='undefined'){
  386. this.scene=opt.scene;
  387. this.getShareParams()
  388. }else{
  389. this.collectingID=opt.id;
  390. //this.getInfo();
  391. this.queryActivityInfo();
  392. this.queryGoodsLook()
  393. }
  394. //this.queryActivityInfo();
  395. })
  396. }
  397. this.shopckList= uni.getStorageSync("shopckList");
  398. //this.ckmusic=uni.getStorageSync("ckmusic");
  399. //这一段是防止进入页面出去后再进来计时器重复启动
  400. if (this.ticker) {
  401. clearInterval(this.ticker);
  402. }
  403. },
  404. onPullDownRefresh(){
  405. //this.getInfo();
  406. this.queryActivityInfo();
  407. setTimeout(() => {
  408. uni.stopPullDownRefresh(); // 关闭下拉刷新
  409. }, 1000);
  410. },
  411. onHide(){
  412. this.bgmMusic.stop(()=>{
  413. console.log('背景音乐停止了');
  414. });
  415. if (this.ticker) {
  416. clearInterval(this.ticker);
  417. }
  418. },
  419. onUnload(){
  420. this.bgmMusic.stop()
  421. },
  422. methods: {
  423. ptMore(){
  424. this.djsMoreShow=true;
  425. },
  426. ptMorehide(){
  427. this.djsMoreShow=false;
  428. },
  429. beginTimer() { //这个计时器是每秒减去数组中指定字段的时间
  430. // console.log("??????????????????"+this.info.groupType)
  431. if(this.info.groupType){
  432. this.ticker = setInterval(() => {
  433. this.info.groupList= JSON.parse(JSON.stringify( this.info.groupList))
  434. /* for (let i = 0, len = this.info.groupList.length; i < len; i++) {
  435. const item = this.info.groupList[i];
  436. if (item.EndTime) {
  437. }
  438. } */
  439. }, 1000);
  440. }
  441. },
  442. setDate(time) {
  443. var t_s = Date.parse(new Date(time)); //转化为时间戳毫秒数
  444. // console.log(t_s)
  445. var newt=t_s - 1000; //设置新时间比旧时间少一秒
  446. return this.formatDate(newt)
  447. } ,
  448. formatDate(time) {
  449. let date = new Date(time);
  450. let YY = date.getFullYear();
  451. let MM = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
  452. let DD = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  453. let hh = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  454. let mm = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  455. let ss = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
  456. // 这里可以修改返回的日期格式
  457. return YY + "-" + MM + "-" + DD + " " + hh + ":" + mm + ":" + ss;
  458. },
  459. authorizShowno(){
  460. this.authorizShow=false
  461. },
  462. getShareParams(){
  463. this.$http('openMall/getShareParams', {
  464. scene:this.scene,
  465. },'GET').then(res => {
  466. this.collectingID=res.data.goodsID;
  467. this.shareId=res.data.operatorID
  468. this.queryActivityInfo();
  469. this.queryGoodsLook()
  470. })
  471. },
  472. gowp(){
  473. var time=''
  474. if(this.info.startTime){
  475. var time = this.info.startTime.slice(0,10) + '~' +this.info.endTime.slice(0,10)
  476. }else{
  477. }
  478. var sellingPoint='';
  479. if(this.info.activityContent){
  480. sellingPoint=this.info.activityContent
  481. }
  482. //console.log(sellingPoint)
  483. this.shareShow=false;
  484. uni.navigateTo({
  485. url:'../shop/wp?img='+this.mainImg+'&name='+this.info.activityName+'&time='+time+'&sellingPoint='+sellingPoint+'&id='+this.collectingID+'&type=2'+'&groupType='+this.info.groupType
  486. })
  487. },
  488. shareShowyc(){
  489. this.shareShow=false;
  490. },
  491. shareShowzs(){
  492. this.shareShow=true;
  493. },
  494. focusState1cl(){
  495. this.focusState1=true;
  496. },
  497. focusState2cl(){
  498. this.focusState2=true;
  499. },
  500. focusState3cl(){
  501. this.focusState3=true;
  502. },
  503. focusState4cl(){
  504. this.focusState4=true;
  505. },
  506. inputBindFocus(e){
  507. //console.log( e.detail.height);
  508. this.jpHeight=e.detail.height+ "px";
  509. //console.log(this.jpHeight)
  510. },
  511. inputBindBlur(){
  512. //return false;
  513. uni.onKeyboardHeightChange((obj)=>{
  514. console.log("inputBindBlur"+obj.height)
  515. let _sysInfo = uni.getSystemInfoSync();
  516. let _heightDiff = _sysInfo.screenHeight - _sysInfo.windowHeight
  517. let _diff = obj.height - _heightDiff;
  518. console.log(_diff)
  519. if(_diff<0||_diff==0){
  520. this.jpHeight=0
  521. }
  522. // 键盘高度
  523. //this.jpHeight = (_diff > 0 ? _diff : 0) - 2 + "px";
  524. })
  525. if(this.jpNum==1){
  526. this.jpHeight=0
  527. }
  528. this.jpNum++;
  529. },
  530. queryGoodsLook(){
  531. this.$http('openmy/queryGoodsLook', {
  532. goodsId:this.collectingID,
  533. openId:this.userInfo.openId
  534. },'POST').then(res => {
  535. })
  536. },
  537. noShowShop2(){
  538. this.useShopShow=false;
  539. },
  540. useShow(){
  541. this.useShopShow=true;
  542. },
  543. submitOrder(){
  544. uni.hideKeyboard()
  545. var jsonArray={
  546. itemId:this.collectingID,
  547. itemName:this.info.activityName,
  548. itemQty:1,
  549. salePrice:this.info.money?this.info.money:0,
  550. totalPrice:this.info.money?this.info.money:0,
  551. }
  552. if(this.ckshopdata==''){
  553. uni.showToast({
  554. title: '请选择服务门店',
  555. icon: 'none',
  556. duration: 3000
  557. });
  558. return false;
  559. }
  560. if(this.info.clWhere.indexOf(1)!=-1&&this.mobilePhone==''){
  561. uni.showToast({
  562. title: '请输入手机号',
  563. icon: 'none',
  564. duration: 3000
  565. });
  566. return false;
  567. }
  568. if(this.info.clWhere.indexOf(2)!=-1&&this.plateNumber==''){
  569. uni.showToast({
  570. title: '请输入车牌号',
  571. icon: 'none',
  572. duration: 3000
  573. });
  574. return false;
  575. }
  576. if(this.info.clWhere.indexOf(3)!=-1&&this.customerName==''){
  577. uni.showToast({
  578. title: '请输入姓名',
  579. icon: 'none',
  580. duration: 3000
  581. });
  582. return false;
  583. }
  584. if(this.info.clWhere.indexOf(4)!=-1&&this.unit==''){
  585. uni.showToast({
  586. title: '请输入单位',
  587. icon: 'none',
  588. duration: 3000
  589. });
  590. return false;
  591. }
  592. var arr=[]
  593. arr.push(jsonArray)
  594. var params={
  595. sheetType:'6',
  596. sheetContent:this.info.activityName,
  597. customerName:this.customerName,
  598. mobilePhone:this.mobilePhone,
  599. unit:this.unit,
  600. plateNumber:this.plateNumber,
  601. //carModel:this.carInfo.carModel,
  602. totalMoney:this.info.money?this.info.money:0,
  603. shopId:this.ckshopdata.id,
  604. comment:this.comment,
  605. sheetDetail:JSON.stringify(arr),
  606. payType:this.info.payType,
  607. shareId:this.shareId,
  608. groupType:0,
  609. }
  610. if(this.groupOwner==1){
  611. params.groupOwner=1;
  612. params.groupType=1;
  613. params.totalMoney=this.info.groupMoney
  614. }
  615. if(this.groupOwner==2){
  616. params.groupOwner=2;
  617. params.groupType=1;
  618. params.groupID=this.groupID;
  619. params.totalMoney=this.info.groupMoney
  620. }
  621. uni.showLoading({
  622. title: '加载中'
  623. })
  624. this.$http('openMallOrder/submitOrder', params,'POST').then(res => {
  625. uni.hideLoading();
  626. if(res.code==0){
  627. this.orderData=res.data
  628. if(this.info.payType==1){
  629. this.unifiedPay(res.data)
  630. }else{
  631. uni.showToast({
  632. title: '报名成功',
  633. icon: 'none',
  634. duration: 3000
  635. });
  636. uni.redirectTo({
  637. url: "../user/myOrder/activityOrderDetail?id=" + this.orderData.id +"&SheetType=" + this.orderData.sheetType
  638. })
  639. }
  640. }else{
  641. uni.showToast({
  642. title: res.msg,
  643. icon: 'none',
  644. duration: 3000
  645. });
  646. }
  647. })
  648. },
  649. unifiedPay(res){
  650. this.$http('openMallOrder/unifiedPay', {
  651. sheetId:res.id
  652. },'POST').then(res => {
  653. if(res.code==0){
  654. this.requestPayment(res.data)
  655. }else{
  656. uni.showToast({
  657. title: res.msg,
  658. icon: 'none',
  659. duration: 3000
  660. });
  661. }
  662. })
  663. },
  664. requestPayment(res){
  665. var payInfo=res;
  666. //console.log(payInfo)
  667. //console.log(String(Date.now()))
  668. var that=this;
  669. uni.requestPayment({
  670. provider: 'wxpay',
  671. //timeStamp: String(Date.now()),
  672. timeStamp: payInfo.timeStamp,
  673. nonceStr: payInfo.nonceStr,
  674. package:payInfo.package,
  675. signType: payInfo.signType,
  676. paySign: payInfo.paySign,
  677. appid:payInfo.appId,
  678. success: function (res) {
  679. console.log('success:' + JSON.stringify(res));
  680. uni.showToast({
  681. title: '支付成功',
  682. icon:'none',
  683. duration: 2000
  684. });
  685. uni.redirectTo({
  686. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  687. })
  688. },
  689. fail: function (err) {
  690. console.log(err)
  691. uni.showToast({
  692. title: '支付失败',
  693. icon:'none',
  694. duration: 2000
  695. });
  696. console.log(that.orderData)
  697. uni.redirectTo({
  698. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  699. })
  700. }
  701. });
  702. },
  703. signUp(){
  704. this.groupOwner=0;
  705. if(this.userInfo){
  706. /* this.info.shopList.forEach(item=>{
  707. if(item.id == this.shopInfo.id){
  708. this.ckshopdata=item;
  709. this.shopName=item.shopName;
  710. }
  711. }) */
  712. this.bmShow=true;
  713. }else{
  714. this.authorizShow=true
  715. }
  716. },
  717. groupFn(){
  718. this.groupOwner=1;
  719. if(this.userInfo){
  720. this.bmShow=true;
  721. }else{
  722. this.authorizShow=true
  723. }
  724. },
  725. join(e){
  726. this.groupOwner=2;
  727. this.groupID=e.ID
  728. if(this.userInfo){
  729. this.bmShow=true;
  730. }else{
  731. this.authorizShow=true
  732. }
  733. },
  734. nobmshow(){
  735. this.bmShow=false;
  736. },
  737. ckshop(item){
  738. this.ckshopdata=item;
  739. this.shopName=item.shopName;
  740. this.ckshopShow=false;
  741. this.shopInfo=item
  742. this.useShopShow=false;
  743. },
  744. showCkshop(){
  745. console.log("选择门店")
  746. this.ckshopShow=true;
  747. },
  748. noShowShop(){
  749. this.ckshopShow=false;
  750. },
  751. queryActivityInfo(){
  752. uni.showLoading({
  753. title: '加载中'
  754. })
  755. this.$http('openHome/queryActivityInfo', {
  756. collectingID:this.collectingID
  757. }, 'GET').then(res => {
  758. //uni.hideLoading();
  759. this.info = res.data;
  760. console.log(this.info)
  761. this.getInfo()
  762. if(this.info.imgList){
  763. this.info.imgList.forEach(item=>{
  764. if(item.imgType==1){
  765. this.mainImg=item.img
  766. }else{
  767. this.dimgList.push(item)
  768. }
  769. })
  770. }
  771. if (this.info.endTime < this.info.startTime) {
  772. // this.$vux.toast.text('时间设置错误')
  773. return
  774. }
  775. // this.activityNoOpen
  776. if (Number(new Date().getTime()) > (Number(new Date(this.info.startTime.replace(/-/g, '/')).getTime()) || 0)) {
  777. console.log("现在时间大于开始时间")
  778. this.activityNoOpen = false
  779. } else {
  780. this.activityNoOpen = true
  781. }
  782. if (Number(new Date().getTime()) > Number(new Date(this.info.endTime.replace(/-/g, '/')).getTime())) {
  783. console.log("现在时间大于结束时间")
  784. this.activityEnd = true
  785. } else {
  786. this.activityEnd = false
  787. }
  788. if (!this.activityNoOpen && !this.activityEnd) {
  789. this.clock()
  790. }
  791. if (this.activityNoOpen && !this.activityEnd) {
  792. this.clock2()
  793. }
  794. if(this.info.music){
  795. this.bgmMusic = uni.createInnerAudioContext();
  796. this.bgmMusic.autoplay = true;//自动播放
  797. this.bgmMusic.loop = true;//循环播放
  798. this.mp3Url='http://dmsimg.66km.com/music/sakuratears.mp3';
  799. this.bgmMusic.src ='http://dmsimg.66km.com/music/sakuratears.mp3'//, mp3Url;//背景音乐地址
  800. this.bgmMusic.onPlay(function(){
  801. console.log('背景音乐播放中');
  802. });
  803. this.bgmMusic.onError((res) => {
  804. console.log(res.errMsg);
  805. console.log(res.errCode);
  806. });
  807. }
  808. })
  809. },
  810. play2(){
  811. this.bgmMusic.play();
  812. this.payshow=false;
  813. },
  814. play(){
  815. this.payshow=true;
  816. this.bgmMusic.stop(()=>{
  817. console.log('背景音乐停止了');
  818. });
  819. },
  820. getInfo(){
  821. this.$http('openreservation/getInfo', {
  822. lat: '',
  823. lng: '',
  824. }, 'GET').then(res => {
  825. uni.hideLoading();
  826. //this.shopInfo = res.data.shopInfo
  827. var shopinfo=res.data.shopInfo;
  828. this.info.shopList.forEach(item=>{
  829. //console.log(item.id)
  830. //console.log(shopinfo.id)
  831. if(item.id==shopinfo.id){
  832. this.shopInfo=shopinfo
  833. }
  834. })
  835. if(this.shopInfo==''){
  836. this.shopInfo=this.info.shopList[0]
  837. }
  838. this.beginTimer();
  839. })
  840. },
  841. call() {
  842. uni.makePhoneCall({
  843. phoneNumber: this.shopInfo.mobilePhone
  844. });
  845. },
  846. getmap() {
  847. console.log("打开地图")
  848. var that = this;
  849. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  850. uni.showToast({
  851. title: '该店铺未设置定位',
  852. icon: 'none',
  853. duration: 3000
  854. });
  855. } else {
  856. uni.openLocation({
  857. latitude: Number(that.shopInfo.lat),
  858. longitude: Number(that.shopInfo.lng),
  859. name: that.shopInfo.shopName,
  860. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  861. success: function() {
  862. console.log('success');
  863. },
  864. fail(err) {
  865. console.log(err)
  866. }
  867. });
  868. }
  869. },
  870. clock () {
  871. let _this = this
  872. let today = new Date() // 当前时间
  873. let h = today.getHours()
  874. let m = today.getMinutes()
  875. let s = today.getSeconds()
  876. let stopTime = new Date(_this.info.endTime.replace(/-/g, '/')) // 结束时间
  877. if (Number(new Date(_this.info.endTime).getTime()) < Number(new Date().getTime())) {
  878. this.activityEnd = true
  879. return
  880. }
  881. let stopH = stopTime.getHours()
  882. let stopM = stopTime.getMinutes()
  883. let stopS = stopTime.getSeconds()
  884. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  885. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  886. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  887. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  888. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  889. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  890. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  891. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  892. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  893. // setTimeout("clock()",500);
  894. this.shengyuM=shengyuM;
  895. this.shengyuD=shengyuD;
  896. this.shengyuH=shengyuH;
  897. setTimeout(_this.clock, 500)
  898. },
  899. clock2(){
  900. let _this = this
  901. let today = new Date() // 当前时间
  902. let h = today.getHours()
  903. let m = today.getMinutes()
  904. let s = today.getSeconds()
  905. let startTime = new Date(_this.info.startTime.replace(/-/g, '/')) // 结束时间
  906. if (Number(new Date(_this.info.startTime).getTime()) < Number(new Date().getTime())) {
  907. this.activityNoOpen = true
  908. return
  909. }
  910. let stopH = startTime.getHours()
  911. let stopM = startTime.getMinutes()
  912. let stopS = startTime.getSeconds()
  913. let shenyu = startTime.getTime() - today.getTime() // 倒计时毫秒数
  914. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  915. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  916. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  917. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  918. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  919. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  920. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  921. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  922. // setTimeout("clock()",500);
  923. this.shengyuM=shengyuM;
  924. this.shengyuD=shengyuD;
  925. this.shengyuH=shengyuH;
  926. setTimeout(_this.clock2, 500)
  927. },
  928. decryptPhoneNumber: function(e) {
  929. console.log(e);
  930. this.code=e.detail.code
  931. this.wxPhoneLogin()
  932. this.authorizShow=false;
  933. },
  934. wxPhoneLogin(){
  935. var that=this;
  936. this.$http('miniApp2/sys/wxPhoneLogin', {
  937. appId:this.ext.appId,
  938. unionId:this.ext.unionId,
  939. code:this.code,
  940. openId:this.wxOpenData.openid
  941. },'POST').then(res => {
  942. var data = res.data;
  943. if(data.loginInfo){
  944. this.userInfo=data.loginInfo.openUser;
  945. this.wxOpenData=data.loginInfo;
  946. this.$store.commit('mutationswxOpenData', data)
  947. this.$store.commit('mutationsuserInfo', this.userInfo)
  948. this.getInfo()
  949. }
  950. })
  951. },
  952. },
  953. filters: {
  954. // 拼团有效期的filter
  955. limitTimeFilter (val) {
  956. //console.log('limitTimeFilter')
  957. //https://blog.csdn.net/qq_39905409/article/details/104478623
  958. if (val) {
  959. //console.log(val)
  960. let formateLimitTimes = that.$common.formateTimeStamp(val);
  961. let txt = `${formateLimitTimes.hour} : ${formateLimitTimes.min} : ${formateLimitTimes.seconds} `;
  962. /* if (formateLimitTimes.day != '00') {
  963. txt = `${Number(formateLimitTimes.day)*24} 时 ${formateLimitTimes.min} 分 ${formateLimitTimes.seconds} 秒`;
  964. } */
  965. return txt;
  966. } else {
  967. const twtxt = `0 : 0 : 0 `
  968. return twtxt;
  969. }
  970. }
  971. },
  972. beforeCreate: function () {
  973. that = this;
  974. },
  975. onShareAppMessage(res) {
  976. console.log(this.userInfo)
  977. var img='';
  978. /* if(this.info.ImgList.length>0){
  979. img=this.info.ImgList[0].url
  980. } */
  981. if(this.info.groupType){
  982. console.log(res.target.dataset.obj.ID)
  983. var url= 'pages/subPack/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&groupID='+res.target.dataset.obj.ID+'&shareName='+this.userInfo.nickName
  984. }else{
  985. var url= 'pages/activity/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId
  986. }
  987. return {
  988. title: this.info.activityName,
  989. //imageUrl:this.mainImg,
  990. imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
  991. path:url,
  992. success(res){
  993. uni.showToast({
  994. title:'分享成功'
  995. })
  996. },
  997. fail(res){
  998. uni.showToast({
  999. title:'分享失败',
  1000. icon:'none',
  1001. duration: 3000
  1002. })
  1003. }
  1004. }
  1005. },
  1006. }
  1007. </script>
  1008. <style scoped>
  1009. .ptNameBz{
  1010. font-weight: 500;line-height: 34rpx;
  1011. font-size: 22rpx;height: 32rpx;
  1012. color: #FD0F00;margin-top: 6rpx;margin-right: 10rpx;
  1013. background: url('http://dmsphoto.66km.com.cn/thFiles/2AF1130F-C318-45D3-B057-FA0728B41046.png') no-repeat;
  1014. background-size: 100% 100%;
  1015. padding-left: 64rpx;padding-right: 4rpx;
  1016. }
  1017. .name{
  1018. display: flex;
  1019. }
  1020. .djsCont{
  1021. width: 638rpx;
  1022. height: 50vh;
  1023. background: #fff;
  1024. margin-top: 20vh;
  1025. margin-left:56rpx ;border-radius: 15rpx;
  1026. }
  1027. .djsCont .ptLine{
  1028. border-top:0;
  1029. border-bottom: 1px solid #EEEEEE;
  1030. }
  1031. .djsCont .bmTop{
  1032. border-bottom: 1px solid #EEEEEE;
  1033. padding: 24rpx;
  1034. }
  1035. .djsLineBox{
  1036. height: calc(60vh - 120rpx);
  1037. overflow-y: scroll;
  1038. }
  1039. .ptLine{
  1040. display: flex;
  1041. justify-content: space-between;
  1042. padding: 26rpx 24rpx;border-top: 1px solid #EEEEEE;
  1043. }
  1044. .FirstMobilePhone{
  1045. font-weight: 400;
  1046. color: #222222;font-size: 28rpx;line-height: 60rpx;
  1047. }
  1048. .DiffBNumber{
  1049. font-weight: 400;text-align: right;
  1050. color: #222222;font-size: 26rpx;
  1051. }
  1052. .ptlineRight{
  1053. display: flex;
  1054. }
  1055. .ptlinexx{
  1056. padding-right: 12rpx;
  1057. }
  1058. .ptBtn{
  1059. width: 137rpx;font-weight: 400;
  1060. color: #FFFFFF;font-size: 26rpx;
  1061. height: 60rpx;text-align: center;
  1062. background: #E02E24;line-height: 60rpx;
  1063. border-radius: 6rpx;
  1064. margin-top: 4rpx;
  1065. }
  1066. .ptdjs{
  1067. font-weight: 400;
  1068. color: #666666;font-size: 24rpx;
  1069. }
  1070. .ptBox{
  1071. background: #ffffff;margin-top: 20rpx;
  1072. }
  1073. .bottomPtBox{
  1074. display: flex;padding-top: 24rpx;
  1075. }
  1076. .ptNum{
  1077. font-weight: 400;
  1078. color: #222222;font-size: 28rpx;
  1079. }
  1080. .ptBoxtop{
  1081. display: flex;justify-content: space-between;
  1082. padding: 20rpx 24rpx;
  1083. }
  1084. .ptMore{
  1085. font-weight: 400;
  1086. color: #666666;font-size: 24rpx;
  1087. }
  1088. .separate{
  1089. width: 284rpx;margin-left: 30rpx;
  1090. height: 74rpx;
  1091. background: #FFE4E2;
  1092. border-radius: 37rpx;
  1093. text-align: center;color:#D53533;
  1094. }
  1095. .separate .separateTop{
  1096. color:#D53533;
  1097. }
  1098. .separate .separateTxt{
  1099. color:#D53533;
  1100. }
  1101. .groupBtn{
  1102. width: 284rpx;text-align: center;color: #ffffff;
  1103. height: 74rpx;margin-left: 30rpx;
  1104. background: #D53533;
  1105. border-radius: 37rpx;
  1106. }
  1107. .separateTop{
  1108. font-weight: 500;font-size: 28rpx;
  1109. color: #FFFFFF;
  1110. }
  1111. .separateTxt{
  1112. color: #FFFFFF;font-size: 26rpx;
  1113. }
  1114. .companyName{
  1115. font-size: 24rpx;
  1116. font-family: PingFangSC-Medium, PingFang SC;
  1117. font-weight: 500;
  1118. color: #666666;
  1119. line-height: 33rpx;
  1120. text-align: center;
  1121. padding: 40rpx;
  1122. }
  1123. .shareBtn{
  1124. /* width: 100rpx; */
  1125. background: #F4F5F7;
  1126. }
  1127. .shareBimg{
  1128. width: 102rpx;
  1129. height: 102rpx;
  1130. }
  1131. .bottomTxtshare{
  1132. color: #333333;
  1133. font-size: 22rpx;
  1134. padding-top: 20rpx;
  1135. }
  1136. .shareBox{
  1137. width: 100%;
  1138. height: 100vh;
  1139. background: rgba(0, 0, 0, 0.5);
  1140. position: fixed;
  1141. left: 0;
  1142. bottom: 0;
  1143. z-index: 11;
  1144. }
  1145. .shareCont{
  1146. width: 100%;
  1147. background: #F4F5F7;
  1148. position: absolute;
  1149. left: 0;
  1150. bottom: 0;
  1151. display: flex;
  1152. justify-content: space-around;
  1153. padding: 50rpx 0;
  1154. border-radius: 40rpx 40rpx 0px 0px;
  1155. }
  1156. .mp3Img{
  1157. /* transform: translate(-1584.4%, 121.5%) scale(1); */
  1158. position: fixed;
  1159. top: 40rpx;
  1160. right: 40rpx;
  1161. width: 60rpx;
  1162. height: 60rpx;
  1163. }
  1164. .ckshopBox{
  1165. z-index: 111 !important;
  1166. }
  1167. .shopline {
  1168. padding: 20rpx 0;
  1169. background-color: #FFFFFF;
  1170. border-radius: 10rpx;
  1171. display: flex;
  1172. }
  1173. .baomingBox{
  1174. width: 750rpx;
  1175. height: 100vh;
  1176. background: rgba(0, 0, 0, 0.4);
  1177. position: fixed;
  1178. top: 0;
  1179. left: 0;
  1180. z-index: 11;
  1181. /* display: flex;
  1182. align-items: center; */
  1183. }
  1184. .bmTtnBox{
  1185. width: 750rpx;
  1186. height: 120rpx;
  1187. background: #FFFFFF;
  1188. box-shadow: 0px -2px 10rpx 0px rgba(153,153,153,0.2000);
  1189. position: absolute;
  1190. left: 0;
  1191. bottom: 0;
  1192. padding-bottom: constant(safe-area-inset-bottom);
  1193. padding-bottom: env(safe-area-inset-bottom);
  1194. }
  1195. .bmBtn{
  1196. width: 690rpx;
  1197. height: 74rpx;
  1198. background: #D53533;
  1199. border-radius: 37rpx;
  1200. text-align: center;
  1201. line-height: 74rpx;
  1202. color: #ffffff;
  1203. font-size: 30rpx;
  1204. margin-top: 23rpx;
  1205. margin-left: 30rpx;
  1206. margin-top: 20rpx;
  1207. }
  1208. .bmshopjt{
  1209. width: 12rpx;
  1210. height: 20rpx;
  1211. margin-top: 10rpx;
  1212. }
  1213. .bmlineInput{
  1214. color: #333333;
  1215. font-size: 28rpx;
  1216. height: 98rpx;
  1217. line-height: 98rpx;
  1218. }
  1219. .bmshopname{
  1220. font-weight: 400;
  1221. color: #999999;
  1222. font-size: 28rpx;
  1223. line-height: 40rpx;
  1224. width: 500rpx;
  1225. white-space:nowrap;
  1226. overflow:hidden;
  1227. text-overflow:ellipsis;
  1228. }
  1229. .bmshopLine{
  1230. display: flex;
  1231. justify-content: space-between;
  1232. padding: 26rpx 0;
  1233. border-bottom: 1px solid #EEEEEE;
  1234. }
  1235. .bmLine{
  1236. border-bottom: 1px solid #EEEEEE;
  1237. }
  1238. .bmTop{
  1239. display: flex;
  1240. justify-content: space-between;
  1241. padding: 30rpx 24rpx 10rpx 24rpx;
  1242. }
  1243. .bmTitle{
  1244. font-weight: 500;
  1245. color: #3C3C3C;
  1246. font-size: 30rpx;
  1247. line-height: 36rpx;
  1248. }
  1249. .bmChimg{
  1250. width: 36rpx;
  1251. height: 36rpx;
  1252. }
  1253. .baomingCont{
  1254. position: absolute;
  1255. width: 750rpx;
  1256. /* height:850rpx; */
  1257. /* padding-bottom: constant(safe-area-inset-bottom);
  1258. padding-bottom: env(safe-area-inset-bottom); */
  1259. left: 0;
  1260. bottom: 0;
  1261. background: #ffffff;
  1262. border-radius: 24rpx 24rpx 0px 0px;
  1263. padding-bottom: 10rpx;
  1264. }
  1265. .shareIcon{
  1266. width: 48rpx;
  1267. height: 48rpx;
  1268. display: block;
  1269. }
  1270. .bottomBtnBox{
  1271. display: flex;
  1272. }
  1273. .bottomBtnBoxLeft{
  1274. padding-left: 40rpx;
  1275. padding-top: 21rpx;
  1276. }
  1277. .shareTxt{
  1278. color: #666666;font-size: 20rpx;
  1279. text-align: center;
  1280. }
  1281. .bottomBtn{
  1282. width: 598rpx;
  1283. height: 74rpx;
  1284. background: #D53533;
  1285. border-radius: 37rpx;
  1286. line-height: 74rpx;
  1287. text-align: center;
  1288. color: #ffffff;
  1289. font-size: 30rpx;
  1290. margin-top: 24rpx;
  1291. margin-left: 34rpx;
  1292. }
  1293. .bottomBtn2{
  1294. width: 598rpx;
  1295. height: 74rpx;
  1296. background: #DDDDDD;
  1297. border-radius: 37rpx;
  1298. line-height: 74rpx;
  1299. text-align: center;
  1300. color: #ffffff;
  1301. font-size: 30rpx;
  1302. margin-top: 24rpx;
  1303. margin-left: 34rpx;
  1304. }
  1305. .timeTbox{
  1306. width: 750rpx;
  1307. height: 60rpx;
  1308. background:#FFF5F0;
  1309. border-radius: 24rpx 24rpx 0px 0px;
  1310. border: 1px solid #EFE1D5;
  1311. display: flex;
  1312. justify-content: center;
  1313. font-size: 24rpx;
  1314. font-family: PingFangSC-Regular, PingFang SC;
  1315. font-weight: 400;
  1316. color: #764D49;
  1317. }
  1318. .timeviewTxt{
  1319. line-height: 41rpx;
  1320. padding-top: 10rpx;
  1321. }
  1322. .timeDivTxt{
  1323. line-height: 60rpx;
  1324. padding: 0 10rpx;
  1325. }
  1326. .timeK{
  1327. height: 41rpx;
  1328. line-height: 41rpx;
  1329. color: #FFFFFF;
  1330. width: 41rpx;
  1331. text-align: center;
  1332. background: #F03B3B;
  1333. border-radius: 6rpx;
  1334. margin-top: 9rpx;
  1335. margin-left: 15rpx;
  1336. margin-right: 15rpx;
  1337. }
  1338. .bottom{
  1339. width: 750rpx;
  1340. height: 180rpx;
  1341. background: #FFFFFF;
  1342. border-radius: 24rpx 24rpx 0px 0px;
  1343. position: fixed;
  1344. left: 0;
  1345. bottom: 0;
  1346. padding-bottom: constant(safe-area-inset-bottom);
  1347. padding-bottom: env(safe-area-inset-bottom);
  1348. }
  1349. .signupBox{
  1350. background: #ffffff;
  1351. margin-top: 20rpx;
  1352. }
  1353. .seeBox{
  1354. display: flex;
  1355. flex-wrap: wrap;
  1356. padding-left: 24rpx;
  1357. padding-bottom: 20rpx;
  1358. }
  1359. .seeLine{
  1360. padding-top: 14rpx;
  1361. padding-right: 16rpx;
  1362. }
  1363. .signupLine{
  1364. display: flex;
  1365. justify-content: space-between;
  1366. padding: 11rpx 0;
  1367. border-bottom: 1px solid #DDDDDD;
  1368. }
  1369. .signupLineM{
  1370. color: #3C3C3C;font-size: 26rpx;
  1371. line-height: 56rpx;
  1372. }
  1373. .signupLineR{
  1374. color: #999999;
  1375. font-size: 26rpx;
  1376. line-height: 56rpx;
  1377. }
  1378. .signupLineLName{
  1379. font-weight: 400;
  1380. color: #3C3C3C;
  1381. font-size: 26rpx;
  1382. padding-left: 16rpx;
  1383. line-height: 56rpx;
  1384. width: 150rpx;
  1385. white-space:nowrap;
  1386. overflow:hidden;
  1387. text-overflow:ellipsis;
  1388. }
  1389. .signupCont{
  1390. padding: 0 24rpx;
  1391. }
  1392. .signupLineLImg{
  1393. width: 56rpx;
  1394. height: 56rpx;
  1395. border-radius: 8rpx;
  1396. }
  1397. .signupLineL{
  1398. display: flex;
  1399. }
  1400. .signupTop{
  1401. width: 750rpx;
  1402. height: 78rpx;
  1403. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  1404. background-size: 100% 100%;
  1405. text-align: center;
  1406. line-height: 78rpx;
  1407. }
  1408. .signupTops1{
  1409. color: #FF0000;font-weight: 500;
  1410. font-size: 28rpx;
  1411. }
  1412. .signupTops1{
  1413. color: #703917;font-weight: 500;
  1414. font-size: 28rpx;
  1415. }
  1416. .shopRightIcon{
  1417. width: 44rpx;
  1418. height: 44rpx;
  1419. display: block;
  1420. margin: 0 auto;
  1421. margin-bottom: 10rpx;
  1422. }
  1423. .shopName{
  1424. color: #3C3C3C;
  1425. font-size: 28rpx;
  1426. width: 500rpx;
  1427. }
  1428. .shopaddress{
  1429. font-weight: 400;
  1430. color: #999999;
  1431. font-size: 24rpx;
  1432. padding-top: 10rpx;
  1433. width: 500rpx;
  1434. }
  1435. .shopRightSx{
  1436. width: 2rpx;
  1437. height: 69rpx;
  1438. background:#EEEEEE ;
  1439. margin-left: 34rpx;
  1440. margin-right: 34rpx;
  1441. margin-top: 14rpx;
  1442. }
  1443. .shopCont{
  1444. display: flex;
  1445. justify-content: space-between;
  1446. padding-top: 25rpx;
  1447. }
  1448. .shopContRight{
  1449. display: flex;
  1450. }
  1451. .shopContRightLine{
  1452. text-align: center;
  1453. color: #999999;
  1454. font-size: 24rpx;
  1455. }
  1456. .content{
  1457. min-height: 100vh;
  1458. background:#F4F5F7;
  1459. }
  1460. .detailImg{
  1461. width: 750rpx;
  1462. display: block;
  1463. }
  1464. .detailBOx{
  1465. background: #ffffff;
  1466. margin-top: 20rpx;
  1467. }
  1468. .detailTitle{
  1469. color: #222222;
  1470. font-weight: 500;
  1471. padding: 20rpx 24rpx;
  1472. font-size: 30rpx;
  1473. }
  1474. .topimg{
  1475. width: 750rpx;
  1476. }
  1477. .shopMs{
  1478. font-weight: 500;
  1479. color: #222222;
  1480. line-height: 42rpx;
  1481. font-size: 30rpx;
  1482. }
  1483. .shopBox{
  1484. background: #ffffff;
  1485. margin-top: 20rpx;
  1486. padding: 20rpx 24rpx;
  1487. }
  1488. .shopBoxTop{
  1489. display: flex;
  1490. justify-content: space-between;
  1491. }
  1492. .shopTy{
  1493. display: flex;
  1494. }
  1495. .shopTyTxt{
  1496. font-weight: 400;
  1497. color: #666666;
  1498. font-size: 24rpx;
  1499. line-height: 42rpx;
  1500. }
  1501. .shopjt{
  1502. width: 14rpx;
  1503. height: 23rpx;
  1504. margin-top: 10rpx;
  1505. margin-left: 10rpx;
  1506. }
  1507. .cont{
  1508. background: #ffffff;
  1509. border-radius: 24rpx 24rpx 0px 0px;
  1510. margin-top: -30rpx;
  1511. padding: 30rpx 24rpx;
  1512. position: relative;
  1513. }
  1514. .name{
  1515. color: #3C3C3C;
  1516. line-height: 42rpx;
  1517. font-weight: 500;
  1518. font-size: 30rpx;
  1519. }
  1520. .name2{
  1521. color: #3C3C3C;
  1522. line-height: 36rpx;
  1523. font-weight: 400;
  1524. font-size: 26rpx;
  1525. padding-top: 16rpx;
  1526. }
  1527. .name3{
  1528. color: #999999;
  1529. line-height: 36rpx;
  1530. font-weight: 400;
  1531. font-size: 26rpx;
  1532. padding-top: 16rpx;
  1533. }
  1534. .shopImg {
  1535. width: 146rpx;
  1536. height: 146rpx;
  1537. border-radius: 6rpx;
  1538. }
  1539. .shopBox2 {
  1540. padding-top: 30rpx;
  1541. display: flex;
  1542. }
  1543. .flex {
  1544. display: flex;
  1545. justify-content: space-between;
  1546. }
  1547. .shopCont2 {
  1548. padding-left: 22rpx;
  1549. width: 520rpx;
  1550. }
  1551. .shopName {
  1552. color: #333333;
  1553. font-size: 26rpx;
  1554. font-weight: 600;
  1555. }
  1556. .span1 {
  1557. color: #FF4F00;
  1558. font-size: 36rpx;
  1559. }
  1560. .span2 {
  1561. color: #FF4F00;
  1562. font-size: 22rpx;
  1563. }
  1564. .span3 {
  1565. color: #333333;
  1566. font-size: 22rpx;
  1567. padding-left: 22rpx;
  1568. }
  1569. .shopBq {
  1570. color: #FF4F00;
  1571. font-size: 22rpx;
  1572. border-radius: 4rpx;
  1573. border: 1px solid #FF4F00;
  1574. line-height: 30rpx;
  1575. height: 30rpx;
  1576. padding: 0rpx 5rpx;
  1577. margin-top: 10rpx;
  1578. }
  1579. .brandsBg {
  1580. display: flex;
  1581. height: 38rpx;
  1582. flex-wrap: wrap;
  1583. align-items: center;
  1584. overflow: hidden;
  1585. padding: 5rpx 0rpx;
  1586. }
  1587. .brands {
  1588. border-radius: 4rpx;
  1589. padding: 0 5rpx;
  1590. color: #F19D01;
  1591. height: 28rpx;
  1592. border: 1px solid #F19D01;
  1593. font-size: 20rpx;
  1594. line-height: 28rpx;
  1595. margin: 5rpx 10rpx 5rpx 0rpx;
  1596. }
  1597. .timeBg {
  1598. display: flex;
  1599. }
  1600. .shopTime {
  1601. color: #666666;
  1602. font-size: 22rpx;
  1603. }
  1604. .addressBox {
  1605. color: #666666;
  1606. font-size: 22rpx;
  1607. }
  1608. .ckshopLine{
  1609. display: flex;
  1610. padding: 20rpx 0;
  1611. border-bottom: 1px solid #EEEEEE;
  1612. }
  1613. button::after{
  1614. border: none;
  1615. }
  1616. button{
  1617. position: relative;
  1618. display: block;
  1619. margin-left: 0;
  1620. margin-right: 0;
  1621. padding-left: 0px;
  1622. padding-right: 0px;
  1623. box-sizing: border-box;
  1624. text-align: center;
  1625. text-decoration: none;
  1626. line-height: 1.35;
  1627. -webkit-tap-highlight-color: transparent;
  1628. overflow: hidden;
  1629. color: #000000;
  1630. background-color: #fff;
  1631. height: 100%;
  1632. }
  1633. .authorizBox{
  1634. width: 100vw;
  1635. height: 100vh;
  1636. background: rgba(0, 0, 0, 0.5);
  1637. position: fixed;
  1638. top: 0;
  1639. left: 0;
  1640. }
  1641. .authorizCont{
  1642. margin-top: 30vh;
  1643. width: 564rpx;
  1644. height: 408rpx;
  1645. background: #FFFFFF;
  1646. border-radius: 24rpx;
  1647. margin-left: 93rpx;
  1648. position: relative;
  1649. }
  1650. .authorizCloseImg{
  1651. width: 62rpx;
  1652. height: 62rpx;
  1653. }
  1654. .sqLogoBox{
  1655. width: 180rpx;
  1656. height: 180rpx;
  1657. background: #FFFFFF;
  1658. border-radius: 90rpx;
  1659. text-align: center;
  1660. position: absolute;
  1661. top: -50rpx;
  1662. left: 192rpx;
  1663. }
  1664. .authorizName{
  1665. color: #333333;
  1666. line-height: 42rpx;
  1667. font-size: 30rpx;
  1668. text-align: center;
  1669. padding-top: 58rpx;
  1670. }
  1671. .authorizMs{
  1672. color: #999999;
  1673. line-height: 36rpx;
  1674. font-size: 26rpx;
  1675. width: 452rpx;
  1676. padding-top: 24rpx;
  1677. text-align: center;
  1678. margin-left: 56rpx;
  1679. }
  1680. .authorizContbutton{
  1681. width: 422rpx;
  1682. height: 88rpx;
  1683. background: #D53533;
  1684. border-radius: 44rpx;
  1685. line-height: 88rpx;
  1686. text-align: center;
  1687. font-size:30rpx;
  1688. color: #FFFFFF;
  1689. margin-top: 62rpx;
  1690. margin-left:71rpx;
  1691. }
  1692. .applicationTk{
  1693. height: 60vh;
  1694. }
  1695. .groupBtnTxt{
  1696. color: #FFFFFF;font-size: 26rpx;line-height: 26rpx;
  1697. }
  1698. .groupBtnTop{
  1699. font-weight: 500;font-size: 28rpx;
  1700. color: #FFFFFF;padding-top: 2rpx;
  1701. }
  1702. </style>