index.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823
  1. <template>
  2. <view class="content">
  3. <view class="indexTop" :style="{background:'#'+themeColor}" v-if="getwxLoing">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">{{wxOpenData.unionName}}</view>
  6. </view>
  7. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  8. <view style="height: 43px;"></view>
  9. <view class="topBox" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  10. <view class="yuanhu" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  11. <view class="shoptopbox2" v-if="!carInfo">
  12. <view class="carinfoBox2">
  13. <view class="carinfoBoxNocar" @click="addCar">
  14. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  15. <view class="carinfoBoxNocarRight">
  16. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  17. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shoptopbox" v-if="carInfo">
  23. <view class="carinfoBox" >
  24. <view class="carinfoBoxTop">
  25. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  26. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  27. <view class="carinfoBoxTopCont">
  28. <view class="carinfoBoxTopContTop">
  29. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  30. <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
  31. </view>
  32. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  33. <view class="carInfocarModel" v-else>暂无</view>
  34. </view>
  35. <view class="carinfoBoxTopRight" @click="changeCar">
  36. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  37. <view class="huancheBtn">换车</view>
  38. </view>
  39. </view>
  40. <!-- <view class="carInfoBottom">
  41. <view class="carInfoBottomLine">
  42. <view class="carInfoBottomLineTitle">下次保养里程</view>
  43. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  44. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  45. </view>
  46. <view class="carInfoBottomLine">
  47. <view class="carInfoBottomLineTitle">下次保养日期</view>
  48. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  49. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  50. </view>
  51. <view class="carInfoBottomLine">
  52. <view class="carInfoBottomLineTitle">保养手册</view>
  53. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  54. </view>
  55. </view> -->
  56. <view class="bxBox">
  57. <view class="bxline bxline1">
  58. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  59. <view class="bxlineTitle">保险</view>
  60. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
  61. <view class="bxlineMs2" v-else>--</view>
  62. </view>
  63. <view class="bxline bxline2">
  64. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  65. <view class="bxlineTitle">下次保养</view>
  66. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  67. <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
  68. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  69. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  70. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  71. </view>
  72. <view class="bxlineMs2" v-else>--</view>
  73. </view>
  74. <view class="bxline bxline1">
  75. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  76. <view class="bxlineTitle">年审</view>
  77. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
  78. <view class="bxlineMs2" v-else>--</view>
  79. </view>
  80. <view class="bxline bxline2" v-if="homeCardList.openMCar.showType==1">
  81. <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
  82. <view class="bxlineTitle">保养手册</view>
  83. <view class="bxlineMs2" @click="information">点击查看</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 服务顾问 -->
  89. <view v-if="homeCardList.openMUsers">
  90. <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
  91. <view class="adviserLeft">
  92. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  93. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  94. <view class="adviserNema">{{managerInfo.name}}</view>
  95. <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
  96. </view>
  97. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  98. </view>
  99. </view>
  100. <!-- 中间功能应用模块 -->
  101. <view class="modular" v-if="homeCardList.application.length>0">
  102. <view class="swiper-item">
  103. <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
  104. <view><img :src="item.icon" alt="" class="itemImg"></view>
  105. <view class="Menusline">{{item.name}}</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  110. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  111. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  112. <swiper-item v-for="(item,index) in homeCardList.ad1">
  113. <view class="swiper-item2" @click="goRoter(item)">
  114. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  115. </view>
  116. </swiper-item>
  117. </swiper>
  118. </view>
  119. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  120. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  121. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  122. <swiper-item v-for="(item,index) in homeCardList.ad2">
  123. <view class="swiper-item2" @click="goRoter(item)">
  124. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  125. </view>
  126. </swiper-item>
  127. </swiper>
  128. </view>
  129. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  130. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  131. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  132. <swiper-item v-for="(item,index) in homeCardList.ad3">
  133. <view class="swiper-item2" @click="goRoter(item)">
  134. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  135. </view>
  136. </swiper-item>
  137. </swiper>
  138. </view>
  139. <!-- 热门活动 -->
  140. <view v-if="homeCardList.openMActivity&&homeCardList.openMActivity.openCollectingList">
  141. <view class="Hot" v-if="homeCardList.openMActivity.openCollectingList.length>0">
  142. <view class="hotTop">
  143. <view class="hotLeft">
  144. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  145. <view class="hottitle">{{homeCardList.openMActivity.showTitle?homeCardList.openMActivity.showTitle:'热门活动'}}</view>
  146. </view>
  147. <view class="hotRight" @click="moreJk">
  148. <view class="hotMore">更多</view>
  149. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  150. </view>
  151. </view>
  152. <view class="hotLine" @click="goJk(item)" v-for="(item,index) in homeCardList.openMActivity.openCollectingList" v-if="index<homeCardList.openMActivity.showCount">
  153. <view class="hotLineTop">
  154. <image class="hotLineTopImg" :src="item.img" mode=""></image>
  155. <view class="hotlineTimebox">
  156. <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
  157. <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
  158. <image class="jkStateImg" v-if="item.state==2" src="http://dmsphoto.66km.com.cn/thFiles/85EAAA7F-01A6-41A6-B25B-72FAD3E451AC.png" mode="" ></image>
  159. <image class="jkStateImg" v-if="item.state==1" src="http://dmsphoto.66km.com.cn/thFiles/EB46639B-85C9-4246-A3E3-EA87944DFC36.png" mode="" ></image>
  160. <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
  161. </view>
  162. </view>
  163. <view class="hotName">{{item.activityName}}</view>
  164. <view class="groupType" v-if="item.groupType">拼团</view>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 热门商品 -->
  169. <view v-if="homeCardList.openMGoods">
  170. <view class="" v-if="homeCardList.openMGoods.goodsList&&homeCardList.openMGoods.goodsList.length>0">
  171. <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
  172. <view class="hotTop">
  173. <view class="hotLeft">
  174. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  175. <view class="hottitle">{{homeCardList.openMGoods.showTitle?homeCardList.openMGoods.showTitle:'热门商品'}}</view>
  176. </view>
  177. <view class="hotRight" @click="goShop">
  178. <view class="hotMore">更多</view>
  179. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  180. </view>
  181. </view>
  182. <view v-if="homeCardList.openMGoods.showLayout==1">
  183. <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  184. <view>
  185. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  186. </view>
  187. <view class="hotGoodsLineRIght">
  188. <view class="goodsName">{{item.name}}</view>
  189. <view class="Sold">
  190. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  191. 已售 {{item.saleQty>0?item.saleQty:0}}
  192. </view>
  193. </view>
  194. <view class="goodsPrice">
  195. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  196. <view class="goodsPrice2" >¥</view>
  197. <view class="goodsPrice3" >{{item.salePrice}}
  198. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  199. </view>
  200. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. <!-- 俩列的 -->
  206. <div class="goodsTwo" v-if="homeCardList.openMGoods.showLayout==2">
  207. <div class="goodsTwoLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  208. <div class="goodsTwoImg">
  209. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  210. </div>
  211. <div class="goodsTwoName">{{item.name}}</div>
  212. <view class="Sold">
  213. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  214. 已售 {{item.saleQty>0?item.saleQty:0}}
  215. </view>
  216. </view>
  217. <view class="goodsPrice">
  218. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  219. <view class="goodsPrice2" >¥</view>
  220. <view class="goodsPrice3" >{{item.salePrice}}
  221. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  222. </view>
  223. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  224. </view>
  225. </div>
  226. </div>
  227. </view>
  228. </view>
  229. </view>
  230. <view style="height: 60rpx;"></view>
  231. <!-- 手机号授权 -->
  232. <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide">
  233. <view class="authorizCont" @click.stop="">
  234. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  235. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  236. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  237. </view>
  238. <view style="text-align: center;padding-top: 56rpx;">
  239. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  240. </view>
  241. </view>
  242. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  243. -->
  244. <view class="qrBox" v-if="qrSHow">
  245. <view class="qrimgBox">
  246. <view class="qrTitle">微信绑定
  247. <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
  248. </view>
  249. <view class="qrms">扫描/长按下方二维码进行绑定</view>
  250. <view class="qrms2">绑定后可接收微信消息通知</view>
  251. <view style="text-align: center;padding-top: 30rpx;">
  252. <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
  253. </view>
  254. <view class="qrBtn" @click="qrclose">我知道了</view>
  255. </view>
  256. </view>
  257. </view>
  258. </template>
  259. <script>
  260. export default {
  261. data() {
  262. return {
  263. shopId: '',
  264. url:'',
  265. wxOpenData:'',
  266. code:'',
  267. carInfo:'',
  268. homeCardList:'',
  269. authorizShow:false,
  270. miniAppName:'',
  271. iStatusBarHeight:'',
  272. managerInfo:'',
  273. unionId:'',
  274. ext:'',
  275. duration:500,
  276. interval:3000,
  277. InsuranceExpireDate:'',
  278. NextCareDate:'',
  279. NextAuditDate:'',
  280. themeColor:'',
  281. getwxLoing:false,
  282. shareID:'',
  283. discount:'',
  284. bizUserId:'',
  285. coCouponsMsg:'',
  286. coNoNewCustMsg:'',
  287. qrimg:'',
  288. qrSHow:false,
  289. customerInfo:'',
  290. exitNum:'',
  291. }
  292. },
  293. onLoad(opt) {
  294. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  295. var that=this;
  296. //this.$common.getExtStoreId()
  297. var ext=this.$common.getExtStoreId();
  298. this.ext=ext
  299. console.log("ext--themeColor")
  300. console.log(ext)
  301. //console.log( String(Date.now()))
  302. this.shopId=ext.shopId;
  303. this.url=ext.url;
  304. this.unionId=ext.unionId;
  305. var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
  306. if (shareID) {
  307. this.shareID = shareID
  308. console.log('this.shareID==='+this.shareID)
  309. //this.$store.commit('mutationsshareID', shareID)
  310. }
  311. //this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
  312. //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
  313. //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
  314. //this.ext.appId="wxffd2502e67d37908"
  315. // uni.setStorage({
  316. // key: 'extdata',
  317. // data: {
  318. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  319. // },
  320. // success: function () {
  321. // that.uniLogin()
  322. // }
  323. // });
  324. //this.userInfo = uni.getStorageSync("userInfo");
  325. this.userInfo=this.$store.state.userInfo
  326. if(this.userInfo){
  327. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  328. this.getCarList();
  329. this.queryHomeCardList()
  330. this.queryManagerInfo()
  331. }else{
  332. this.uniLogin()
  333. }
  334. //版本更新
  335. this.UpdateManager();
  336. },
  337. onShow() {
  338. this.userInfo=this.$store.state.userInfo;
  339. this.wxOpenData=this.$store.state.wxOpenData;
  340. var indexaddcar = uni.getStorageSync("indexaddcar");
  341. var themeColor = uni.getStorageSync("themeColor");
  342. if(themeColor){
  343. this.themeColor=themeColor
  344. }
  345. this.getwxLoing=true;
  346. this.exitNum=this.$store.state.exitNum;
  347. if(this.exitNum==1){
  348. this.carInfo=''
  349. }else{
  350. if(indexaddcar==1){
  351. uni.removeStorageSync('indexaddcar');
  352. this.getCarList();
  353. }else{
  354. this.carInfo=this.$store.state.carInfo;
  355. console.log("车辆信息")
  356. console.log(this.carInfo)
  357. if(!this.carInfo){
  358. this.getCarList();
  359. }
  360. this.jsTime()
  361. }
  362. }
  363. },
  364. onPullDownRefresh(){
  365. this.getCarList();
  366. this.queryHomeCardList()
  367. this.queryManagerInfo()
  368. setTimeout(() => {
  369. uni.stopPullDownRefresh(); // 关闭下拉刷新
  370. }, 1000);
  371. },
  372. methods: {
  373. seeQr(){
  374. // this.authorizShow = true;
  375. // return false;
  376. if (this.userInfo) {
  377. } else {
  378. this.authorizShow = true;
  379. return false;
  380. }
  381. uni.showLoading({
  382. title: '加载中'
  383. })
  384. this.$request.httpBinary('wxV2/createQrCode', {
  385. type:'bindWx',
  386. customerId:this.customerInfo.id,
  387. unionID:this.customerInfo.unionID,
  388. }, 'GET').then(res => {
  389. uni.hideLoading();
  390. this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
  391. this.qrSHow=true;
  392. //this.img= uni.arrayBufferToBase64(res)
  393. //console.log('list+=', this.queryShopList);
  394. })
  395. },
  396. qrclose(){
  397. this.qrSHow=false;
  398. },
  399. authorizShowHide(){
  400. this.authorizShow=false
  401. },
  402. UpdateManager(){
  403. const updateManager = uni.getUpdateManager();
  404. updateManager.onCheckForUpdate(function (res) {
  405. // 请求完新版本信息的回调
  406. console.log(res.hasUpdate);
  407. });
  408. updateManager.onUpdateReady(function (res) {
  409. uni.showModal({
  410. title: '更新提示',
  411. content: '新版本已经准备好,是否重启应用?',
  412. success(res) {
  413. if (res.confirm) {
  414. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  415. updateManager.applyUpdate();
  416. }
  417. }
  418. });
  419. });
  420. updateManager.onUpdateFailed(function (res) {
  421. // 新的版本下载失败
  422. uni.showToast({
  423. title: '新的版本下载失败',
  424. icon:'none',
  425. duration: 3000
  426. });
  427. });
  428. },
  429. addCar(){
  430. if(!this.userInfo){
  431. if(this.exitNum!=1){
  432. this.authorizShow=true;
  433. }else{
  434. this.$common.automaticlogin().then(val => {
  435. this.userInfo=this.$store.state.userInfo;
  436. this.wxOpenData=this.$store.state.wxOpenData;
  437. /* uni.navigateTo({
  438. url:'../user/addCar/addCar?type=1'
  439. }) */
  440. this.exitNum=''
  441. this.$store.commit('mutationsexitNum', '')
  442. this.getCarList();
  443. uni.navigateTo({
  444. url:'../user/addCar/cailist'
  445. })
  446. })
  447. }
  448. }else{
  449. uni.navigateTo({
  450. url:'../user/addCar/addCar?type=1'
  451. })
  452. }
  453. },
  454. goShop(){
  455. uni.switchTab({
  456. url:'../shop/shop'
  457. })
  458. },
  459. moreJk(){
  460. uni.switchTab({
  461. url:'../activity/activity'
  462. })
  463. },
  464. information(){
  465. console.log('车辆信息--',this.carInfo);
  466. uni.navigateTo({
  467. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  468. })
  469. },
  470. changeCar(){
  471. /* uni.scanCode({
  472. success: function (res) {
  473. console.log('条码类型:' + res.scanType);
  474. console.log( res);
  475. }
  476. });
  477. return false; */
  478. uni.navigateTo({
  479. url:'../user/addCar/cailist'
  480. })
  481. },
  482. goMUsers(){
  483. if(!this.userInfo){
  484. this.authorizShow=true;
  485. }else{
  486. var managerInfo={
  487. name:this.managerInfo.name,
  488. shopInfo:{
  489. shopName:this.managerInfo.shopInfo.shopName,
  490. provinceName:this.managerInfo.shopInfo.provinceName,
  491. cityName:this.managerInfo.shopInfo.cityName,
  492. areaName:this.managerInfo.shopInfo.areaName,
  493. Address:this.managerInfo.shopInfo.Address,
  494. },
  495. avatar:this.managerInfo.avatar,
  496. phone:this.managerInfo.phone,
  497. shopID:this.managerInfo.shopInfo.id
  498. }
  499. uni.navigateTo({
  500. url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
  501. })
  502. }
  503. },
  504. goGoods(item){
  505. if(!this.userInfo){
  506. if(this.exitNum!=1){
  507. this.authorizShow=true;
  508. }else{
  509. this.$common.automaticlogin().then(val => {
  510. this.userInfo=this.$store.state.userInfo;
  511. this.wxOpenData=this.$store.state.wxOpenData;
  512. this.exitNum=''
  513. this.$store.commit('mutationsexitNum', '')
  514. uni.navigateTo({
  515. url:'../shop/goodsDetail?id='+item.id
  516. })
  517. })
  518. }
  519. }else{
  520. uni.navigateTo({
  521. url:'../shop/goodsDetail?id='+item.id
  522. })
  523. }
  524. /* if(!this.userInfo){
  525. this.authorizShow=true;
  526. }else{
  527. uni.navigateTo({
  528. url:'../shop/goodsDetail?id='+item.id
  529. })
  530. } */
  531. },
  532. goJk(item){
  533. /* if(!this.userInfo){
  534. this.authorizShow=true;
  535. }else{
  536. uni.navigateTo({
  537. url:'../activity/jkDetail?id='+item.id
  538. })
  539. } */
  540. if(!this.userInfo){
  541. if(this.exitNum!=1){
  542. this.authorizShow=true;
  543. }else{
  544. this.$common.automaticlogin().then(val => {
  545. this.userInfo=this.$store.state.userInfo;
  546. this.wxOpenData=this.$store.state.wxOpenData;
  547. this.exitNum=''
  548. this.$store.commit('mutationsexitNum', '')
  549. uni.navigateTo({
  550. url:'../activity/jkDetail?id='+item.id
  551. })
  552. })
  553. }
  554. }else{
  555. uni.navigateTo({
  556. url:'../activity/jkDetail?id='+item.id
  557. })
  558. }
  559. },
  560. goRoter(item){
  561. if(!this.userInfo){
  562. if(this.exitNum!=1){
  563. this.authorizShow=true;
  564. }else{
  565. this.$common.automaticlogin().then(val => {
  566. this.userInfo=this.$store.state.userInfo;
  567. this.wxOpenData=this.$store.state.wxOpenData;
  568. this.exitNum=''
  569. this.$store.commit('mutationsexitNum', '')
  570. this.goRoter2(item)
  571. })
  572. }
  573. }else{
  574. this.goRoter2(item)
  575. }
  576. },
  577. goRoter2(item){
  578. console.log(item)
  579. if(!this.userInfo){
  580. //this.authorizShow=true;
  581. }else{
  582. if(item.bizType==0){
  583. if(item.name=='新车'){ //
  584. uni.navigateTo({
  585. url:'newCar'
  586. })
  587. }else if(item.name=='二手车'){
  588. uni.navigateTo({
  589. url:'usedCar'
  590. })
  591. }else if(item.name=='爱车估价'){
  592. uni.navigateTo({
  593. url:'evaluation'
  594. })
  595. }else if(item.sortId==18){ //领券中心
  596. uni.navigateTo({
  597. url:'receiveCoupon'
  598. })
  599. }else if(item.sortId==19){ //救援测试
  600. uni.navigateTo({
  601. url:'rescue'
  602. })
  603. }
  604. else{
  605. uni.showToast({
  606. title: '敬请期待',
  607. icon:'none',
  608. duration: 3000
  609. });
  610. }
  611. }else if(item.bizType==1){ //紧急救援
  612. uni.navigateTo({
  613. url:'rescue'
  614. })
  615. /* uni.showToast({
  616. title: '敬请期待',
  617. icon:'none',
  618. duration: 3000
  619. }); */
  620. }else if(item.bizType==2){ //钣金喷漆
  621. uni.navigateTo({
  622. url:'paint'
  623. })
  624. /* uni.navigateTo({
  625. url:'receiveCoupon'
  626. }) */
  627. }else if(item.bizType==3){ //保养
  628. uni.navigateTo({
  629. url:'maintain'
  630. })
  631. }else if(item.bizType==4){ //在线预约
  632. uni.navigateTo({
  633. url:'onlineBooking?naShopId='+item.naShopId
  634. })
  635. }else if(item.bizType==5){ //导航
  636. this.getShopinfo(5,item.reShopId)
  637. }else if(item.bizType==6){ //联系本店
  638. this.getShopinfo(6,item.orShopId)
  639. }else if(item.bizType==7){ //7门店列表
  640. uni.navigateTo({
  641. url:'shopList'
  642. })
  643. }else if(item.bizType==8){ //我的会员卡
  644. uni.navigateTo({
  645. url:'vipCard'
  646. })
  647. }else if(item.bizType==9){ //我的优惠券
  648. uni.navigateTo({
  649. url:'discountCard'
  650. })
  651. }else if(item.bizType==10){ //我的订单
  652. uni.navigateTo({
  653. url:'../user/myOrder/myOrder'
  654. })
  655. }else if(item.bizType==11){ //我的预约
  656. uni.navigateTo({
  657. url:'../user/myBespeak'
  658. })
  659. }else if(item.bizType==12){ //历史消费
  660. uni.navigateTo({
  661. url:'../user/historySpend'
  662. })
  663. }else if(item.bizType==12){ //历史消费
  664. uni.navigateTo({
  665. url:'../user/historySpend'
  666. })
  667. }else if(item.bizType==13){ //车检报告
  668. uni.navigateTo({
  669. url:'../user/checkReport'
  670. })
  671. }else if(item.bizType==14){ //指定商品分类
  672. uni.setStorage({
  673. key: 'shopcategoryID',
  674. data: item.bizId,
  675. success: function () {
  676. getApp().globalData.shopcategoryID=item.bizId;
  677. uni.switchTab({
  678. url:'../shop/shop?shopcategoryID='+ item.bizId
  679. })
  680. }
  681. });
  682. }else if(item.bizType==15){ //商品详情
  683. uni.navigateTo({
  684. url:'../shop/goodsDetail?id='+item.bizId
  685. })
  686. }else if(item.bizType==16){ //积分商城
  687. uni.navigateTo({
  688. url:'../integral/integral'
  689. })
  690. }else if(item.bizType==17){ //公司介绍
  691. uni.navigateTo({
  692. url:'aboutUS?unionID='+this.userInfo.unionId
  693. })
  694. }else if(item.bizType==18){ //领券中心
  695. uni.navigateTo({
  696. url:'receiveCoupon'
  697. })
  698. /* uni.navigateTo({
  699. url:'rescue'
  700. }) */
  701. }
  702. // uni.navigateTo({
  703. // url:url
  704. // })
  705. }
  706. },
  707. decryptPhoneNumber: function(e) {
  708. console.log(e);
  709. this.code=e.detail.code
  710. this.wxPhoneLogin()
  711. this.authorizShow=false;
  712. },
  713. wxgologin(){
  714. var that=this;
  715. uni.getUserProfile({
  716. lang:'zh_CN',
  717. desc:'登录',
  718. success:(res)=>{
  719. console.log(res);
  720. that.wxdata=res;
  721. uni.setStorage({
  722. key: 'wxdata',
  723. data: res,
  724. success: function () {
  725. that.uniLogin()
  726. }
  727. });
  728. },
  729. fail:(res)=>{
  730. console.log(res)
  731. }
  732. });
  733. },
  734. uniLogin(){
  735. var that=this;
  736. uni.login({
  737. provider: 'weixin',
  738. success: function (loginRes) {
  739. console.log(loginRes);
  740. that.getWxOpenID(loginRes)
  741. }
  742. });
  743. },
  744. getWxOpenID(e){
  745. var that=this;
  746. // uni.showLoading({
  747. // title: '加载中'
  748. // })
  749. this.$http('miniApp2/sys/getWxOpenID', {
  750. code:e.code,
  751. unionId:this.unionId,
  752. shareId:this.shareID
  753. },'GET').then(res => {
  754. console.log(res.code);
  755. console.log("授权信息")
  756. console.log(res)
  757. //uni.hideLoading();
  758. if(res.code!=0){
  759. //uni.hideLoading();
  760. var msg=res.msg
  761. if(!msg){
  762. msg='授权失败'
  763. }
  764. console.log(msg);
  765. // uni.showModal({
  766. // title: '提示',
  767. // content: msg,
  768. // success: function(resTK) {
  769. // if (resTK.confirm) {
  770. // }
  771. // }
  772. // });
  773. // uni.showToast({
  774. // title:msg,
  775. // icon: 'none',
  776. // duration: 3000
  777. // });
  778. //return false
  779. }
  780. this.wxOpenData=res.data;
  781. this.themeColor=res.data.themeColor
  782. //this.themeColor='FFFFFF'
  783. this.getwxLoing=true;
  784. uni.setNavigationBarTitle({
  785. title:this.wxOpenData.miniAppName
  786. })
  787. if(this.themeColor=='6F2BE8'){
  788. var backgroundImage='/static/tabimg/index6F2BE8.png'
  789. }
  790. if(this.themeColor=='1677FF'){
  791. var backgroundImage='/static/tabimg/index1677FF.png'
  792. }
  793. if(this.themeColor=='FF4F00'){
  794. var backgroundImage='/static/tabimg/indexFF4F00.png'
  795. }
  796. if(this.themeColor=='D53533'){
  797. var backgroundImage='/static/tabimg/index1.png'
  798. }
  799. uni.setTabBarStyle({
  800. // color: '#FF0000',
  801. selectedColor: '#'+this.themeColor,
  802. })
  803. uni.setTabBarItem({
  804. index: 0,
  805. text: '首页',
  806. selectedIconPath: backgroundImage
  807. })
  808. if(res.code==0){
  809. that.queryHomeCardList()
  810. }
  811. //that.wxPhoneLogin()
  812. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  813. uni.setStorage({
  814. key: 'wxOpenData',
  815. data: that.wxOpenData,
  816. success: function () {
  817. // that.uniLogin()
  818. }
  819. });
  820. uni.setStorage({
  821. key: 'themeColor',
  822. data: that.themeColor,
  823. success: function () {
  824. // that.uniLogin()
  825. console.log("themeColor=="+that.themeColor)
  826. }
  827. });
  828. if(this.wxOpenData.loginInfo){
  829. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  830. this.userInfo=that.wxOpenData.loginInfo.openUser
  831. that.queryManagerInfo()
  832. uni.setStorage({
  833. key: 'userInfo',
  834. data: that.wxOpenData.loginInfo.openUser,
  835. success: function () {
  836. that.getCarList()
  837. }
  838. });
  839. }else{
  840. //this.authorizShow=true;
  841. }
  842. if(res.data.loginInfo.discount){
  843. that.discount=res.data.loginInfo.discount;
  844. if(that.discount==2){
  845. that.bizUserId=res.data.loginInfo.bizUserId;
  846. }
  847. if(that.shareID){
  848. that.getCouponList()
  849. }
  850. }
  851. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  852. uni.showModal({
  853. title: '提示',
  854. content:res.data.loginInfo.coNoNewCustMsg,
  855. success: function(resTKk) {
  856. }
  857. });
  858. }
  859. //console.log("优惠券")
  860. })
  861. },
  862. wxPhoneLogin(){
  863. var that=this;
  864. this.$http('miniApp2/sys/wxPhoneLogin', {
  865. appId:this.ext.appId,
  866. unionId:this.unionId,
  867. code:this.code,
  868. openId:this.wxOpenData.openid,
  869. shareId:this.shareID
  870. },'POST').then(res => {
  871. var data = res.data;
  872. if(data.loginInfo){
  873. this.userInfo=data.loginInfo.openUser;
  874. this.customerInfo=data.loginInfo.customerInfo
  875. this.$store.commit('mutationsuserInfo', this.userInfo);
  876. this.$store.commit('mutationswxOpenData', data);
  877. uni.setStorage({
  878. key: 'userInfo',
  879. data: data.loginInfo.openUser,
  880. success: function () {
  881. that.getCarList()
  882. that.queryHomeCardList()
  883. that.queryManagerInfo();
  884. if(data.loginInfo.coCouponsMsg){
  885. uni.hideLoading()
  886. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  887. that.ownerCoupon()
  888. }
  889. if(data.loginInfo.coNoNewCustMsg){
  890. //console.log(data.loginInfo.coNoNewCustMsg)
  891. uni.hideLoading()
  892. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  893. that.coNoNewCust()
  894. }
  895. if(data.loginInfo.discount){
  896. that.discount=data.loginInfo.discount;
  897. if(that.discount==2){
  898. that.bizUserId=data.loginInfo.bizUserId;
  899. }
  900. if(that.shareID&&that.discount==2){
  901. that.getCouponList()
  902. }
  903. }
  904. }
  905. });
  906. if(!this.customerInfo.wxMiniV2OpenID){
  907. this.seeQr()
  908. }
  909. }
  910. })
  911. },
  912. coNoNewCust(){
  913. console.log(111111)
  914. var that=this;
  915. uni.showModal({
  916. title: '提示',
  917. content: that.coNoNewCustMsg,
  918. success: function(resTK) {
  919. }
  920. });
  921. },
  922. ownerCoupon(){
  923. console.log(22222)
  924. var that=this;
  925. uni.showModal({
  926. title: '提示',
  927. content: that.coCouponsMsg,
  928. cancelText:'回到首页',
  929. confirmText:'查看',
  930. success: function(resTK) {
  931. if (resTK.confirm) {
  932. uni.navigateTo({
  933. url:'discountCard'
  934. })
  935. }
  936. }
  937. });
  938. },
  939. getCouponList(){
  940. if(this.discount!=2){
  941. var params={
  942. discount:this.discount
  943. }
  944. }else{
  945. var params={
  946. discount:this.discount,
  947. bizId:this.bizUserId
  948. }
  949. }
  950. var that=this;
  951. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  952. var list = res.data;
  953. if(list.length>0){
  954. uni.showModal({
  955. title: '提示',
  956. content: '您有优惠券待领取',
  957. cancelText:'回到首页',
  958. confirmText:'查看',
  959. success: function(resTK) {
  960. if (resTK.confirm) {
  961. uni.navigateTo({
  962. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  963. })
  964. }
  965. }
  966. });
  967. }
  968. })
  969. },
  970. getCarList(){
  971. this.$http('opencarOwnerHome/queryCarInfoList', {
  972. },'GET').then(res => {
  973. if(res.code==401){
  974. // this.uniLogin()
  975. this.carInfo=''
  976. this.$store.commit('mutationscarInfo', '')
  977. }else{
  978. this.carInfo=res.data[0]
  979. //this.carInfo=[]
  980. this.$store.commit('mutationscarInfo', this.carInfo)
  981. /* this.carInfo.insuranceExpireDate='2022-11-11';
  982. this.carInfo.nextAuditDate='2022-08-13'; */
  983. //this.carInfo.nextCareDate='2022-08-11';
  984. //this.carInfo.nextCareMilage=11
  985. this.jsTime()
  986. }
  987. })
  988. },
  989. jsTime(){
  990. if(this.carInfo.insuranceExpireDate){
  991. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  992. console.log("现在时间大于开始时间")
  993. this.InsuranceExpireDate = 0
  994. } else {
  995. this.clock()
  996. }
  997. }else{
  998. this.InsuranceExpireDate=''
  999. }
  1000. if(this.carInfo.nextCareDate){
  1001. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  1002. this.NextCareDate = 0
  1003. } else {
  1004. this.clock2()
  1005. }
  1006. }else{
  1007. this.NextCareDate = ''
  1008. }
  1009. if(this.carInfo.nextAuditDate){
  1010. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  1011. this.NextAuditDate = 0
  1012. } else {
  1013. this.clock3()
  1014. }
  1015. }else{
  1016. this.NextAuditDate=''
  1017. }
  1018. },
  1019. clock () {
  1020. let _this = this
  1021. let today = new Date() // 当前时间
  1022. let h = today.getHours()
  1023. let m = today.getMinutes()
  1024. let s = today.getSeconds()
  1025. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  1026. let stopH = stopTime.getHours()
  1027. let stopM = stopTime.getMinutes()
  1028. let stopS = stopTime.getSeconds()
  1029. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1030. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1031. this.InsuranceExpireDate=shengyuD+1;
  1032. // setTimeout(_this.clock, 500)
  1033. },
  1034. clock2 () {
  1035. let _this = this
  1036. let today = new Date() // 当前时间
  1037. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  1038. let stopH = stopTime.getHours()
  1039. let stopM = stopTime.getMinutes()
  1040. let stopS = stopTime.getSeconds()
  1041. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1042. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1043. this.NextCareDate=shengyuD+1;
  1044. // setTimeout(_this.clock, 500)
  1045. },
  1046. clock3 () {
  1047. let _this = this
  1048. let today = new Date() // 当前时间
  1049. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  1050. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1051. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1052. this.NextAuditDate=shengyuD+1;
  1053. // setTimeout(_this.clock, 500)
  1054. },
  1055. queryManagerInfo(){
  1056. console.log("11")
  1057. this.$http('openHome/queryManagerInfo', {
  1058. },'GET').then(res => {
  1059. this.managerInfo=res.data
  1060. })
  1061. },
  1062. queryHomeCardList(){
  1063. //console.log(this.wxOpenData)
  1064. var that=this;
  1065. uni.showLoading({
  1066. title: '加载中'
  1067. })
  1068. this.$http('openHome/queryHomeCardList', {
  1069. unionId:this.unionId
  1070. },'GET').then(res => {
  1071. uni.hideLoading();
  1072. this.homeCardList=res.data;
  1073. uni.setStorage({
  1074. key: 'openMCar',
  1075. data: res.data.openMCar,
  1076. success: function () {
  1077. that.getCarList()
  1078. }
  1079. });
  1080. })
  1081. },
  1082. getShopinfo(num,shopId){
  1083. var that=this;
  1084. uni.showLoading({
  1085. title: '加载中'
  1086. })
  1087. if(!shopId){
  1088. shopId=''
  1089. }
  1090. this.$http('openmy/getShopinfo', {
  1091. shopId:shopId
  1092. },'GET').then(res => {
  1093. uni.hideLoading();
  1094. var res=res.data
  1095. if(num==5){
  1096. uni.openLocation({
  1097. latitude:Number(res.lat),
  1098. longitude:Number(res.lng),
  1099. name: res.shopName,
  1100. address: res.address,
  1101. success: function() {
  1102. console.log('success');
  1103. },
  1104. fail(err) {
  1105. console.log(err)
  1106. }
  1107. });
  1108. }else{
  1109. uni.makePhoneCall({
  1110. phoneNumber: res.mobilePhone
  1111. });
  1112. }
  1113. })
  1114. }
  1115. },
  1116. onShareAppMessage(){
  1117. }
  1118. }
  1119. </script>
  1120. <style scoped>
  1121. .qrBox{
  1122. position: fixed;
  1123. width: 100vw;
  1124. height: 100vh;
  1125. background: rgba(0,0,0,0.5);
  1126. left: 0;
  1127. top: 0;
  1128. z-index: 11;
  1129. display: flex;
  1130. justify-content: center;
  1131. align-items: center;
  1132. flex-direction: column;
  1133. }
  1134. .qrimgBox{
  1135. width: 562rpx;
  1136. height: 704rpx;
  1137. background: #FFFFFF;
  1138. border-radius: 24rpx;
  1139. }
  1140. .qrTitle{
  1141. font-size: 30rpx;
  1142. font-family: PingFangSC-Medium, PingFang SC;
  1143. font-weight: 500;
  1144. color: #333333;
  1145. border-bottom: 1px solid #EEEEEE;
  1146. text-align: center;
  1147. line-height: 90rpx;
  1148. position: relative;
  1149. }
  1150. .qrimgchahao{
  1151. width: 38rpx;
  1152. height: 38rpx;
  1153. position: absolute;
  1154. top: 26rpx;
  1155. right: 20rpx;
  1156. }
  1157. .qrms{
  1158. font-weight: 400;
  1159. color: #999999;
  1160. line-height: 37rpx;
  1161. font-size: 26rpx;
  1162. padding-top: 23rpx;
  1163. text-align: center;
  1164. }
  1165. .qrms2{
  1166. font-weight: 400;
  1167. color: #999999;
  1168. line-height: 37rpx;
  1169. font-size: 26rpx;
  1170. text-align: center;
  1171. }
  1172. .qrimg{
  1173. width: 328rpx;
  1174. height: 328rpx;
  1175. }
  1176. .qrBtn{
  1177. width: 292rpx;
  1178. height: 64rpx;
  1179. background: #D53533;
  1180. border-radius: 32rpx;
  1181. color: #FFFFFF;
  1182. line-height: 64rpx;
  1183. text-align: center;
  1184. margin: 0 auto;
  1185. margin-top:40rpx;
  1186. }
  1187. .goodsTwo{
  1188. display: flex;
  1189. justify-content: space-between;
  1190. flex-wrap: wrap;
  1191. }
  1192. .goodsTwoLine{
  1193. background: #FFFFFF;width: 341rpx;
  1194. margin-top: 20rpx;
  1195. padding-bottom: 20rpx;
  1196. border-radius: 16rpx;
  1197. overflow: hidden;
  1198. }
  1199. .goodsTwoImg .hotGoodsLineImg{
  1200. margin: 0 auto;
  1201. width: 100%;
  1202. height: 340rpx;
  1203. border-radius: 0;
  1204. border: none;
  1205. }
  1206. .goodsTwoLine .Sold{
  1207. padding-left: 20rpx;
  1208. }
  1209. .goodsTwoLine .goodsPrice{
  1210. padding-left: 20rpx;
  1211. }
  1212. .goodsTwoImg{
  1213. padding-bottom: 30rpx;
  1214. }
  1215. .goodsTwoName{
  1216. font-weight: 400;
  1217. color: #333333;
  1218. font-size: 26rpx;
  1219. line-height: 38rpx;
  1220. padding: 0 20rpx;
  1221. text-overflow: -o-ellipsis-lastline;
  1222. overflow: hidden;
  1223. text-overflow: ellipsis;
  1224. display: -webkit-box;
  1225. -webkit-line-clamp: 2;
  1226. line-clamp: 2;
  1227. -webkit-box-orient: vertical;
  1228. }
  1229. .bxBox{
  1230. display: flex;
  1231. flex-wrap: wrap;
  1232. }
  1233. .bxline{
  1234. display: flex;
  1235. padding-top: 22rpx;
  1236. }
  1237. .bxline1{
  1238. width: 40%;
  1239. }
  1240. .bxline2{
  1241. width: 60%;
  1242. }
  1243. .bxlineTitle{
  1244. color: #333333;
  1245. font-size: 26rpx;
  1246. line-height: 37rpx;
  1247. padding-left: 10rpx;
  1248. }
  1249. .bxlineMs1{
  1250. line-height: 37rpx;
  1251. color: #D53533;
  1252. font-size: 26rpx;
  1253. padding-left: 12rpx;
  1254. }
  1255. .bxlineMs2{
  1256. line-height: 37rpx;
  1257. color: #999999;
  1258. font-size: 24rpx;
  1259. padding-left: 12rpx;
  1260. }
  1261. .bxlineIcon{
  1262. width: 34rpx;
  1263. height: 34rpx;
  1264. margin-left: 24rpx;
  1265. }
  1266. .indexTop{
  1267. /* background: #D53533; */
  1268. width: 750rpx;
  1269. position: fixed;
  1270. top: 0;
  1271. left: 0;
  1272. z-index: 11;
  1273. }
  1274. .indexnav{
  1275. height: 44px;
  1276. line-height: 44px;
  1277. text-align: center;
  1278. font-size: 36rpx;
  1279. color: #FFFFFF;
  1280. }
  1281. .authorizBox{
  1282. width: 100vw;
  1283. height: 100vh;
  1284. background: rgba(0, 0, 0, 0.5);
  1285. position: fixed;
  1286. top: 0;
  1287. left: 0;
  1288. }
  1289. .authorizCont{
  1290. margin-top: 30vh;
  1291. width: 564rpx;
  1292. height: 408rpx;
  1293. background: #FFFFFF;
  1294. border-radius: 24rpx;
  1295. margin-left: 93rpx;
  1296. position: relative;
  1297. }
  1298. .authorizCloseImg{
  1299. width: 62rpx;
  1300. height: 62rpx;
  1301. }
  1302. .sqLogoBox{
  1303. width: 180rpx;
  1304. height: 180rpx;
  1305. background: #FFFFFF;
  1306. border-radius: 90rpx;
  1307. text-align: center;
  1308. position: absolute;
  1309. top: -50rpx;
  1310. left: 192rpx;
  1311. }
  1312. .authorizName{
  1313. color: #333333;
  1314. line-height: 42rpx;
  1315. font-size: 30rpx;
  1316. text-align: center;
  1317. padding-top: 58rpx;
  1318. }
  1319. .authorizMs{
  1320. color: #999999;
  1321. line-height: 36rpx;
  1322. font-size: 26rpx;
  1323. width: 452rpx;
  1324. padding-top: 24rpx;
  1325. text-align: center;
  1326. margin-left: 56rpx;
  1327. }
  1328. .authorizContbutton{
  1329. width: 422rpx;
  1330. height: 88rpx;
  1331. background: #D53533;
  1332. border-radius: 44rpx;
  1333. line-height: 88rpx;
  1334. text-align: center;
  1335. font-size:30rpx;
  1336. color: #FFFFFF;
  1337. margin-top: 62rpx;
  1338. margin-left:71rpx;
  1339. }
  1340. .content{
  1341. min-height: 100vh;
  1342. background: #F4F5F7;
  1343. }
  1344. .topBox{
  1345. width: 750rpx;
  1346. height: 150rpx;
  1347. /* background: #D53533; */
  1348. }
  1349. .yuanhu{
  1350. width: 750rpx;
  1351. height: 50rpx;
  1352. /* background: #D53533; */
  1353. border-radius: 0 0 100% 100%;
  1354. }
  1355. .carinfoBox{
  1356. width: 702rpx;
  1357. /* height: 250rpx; */
  1358. background: #FFFFFF;
  1359. border-radius: 10rpx;
  1360. margin-left: 24rpx;
  1361. overflow: hidden;
  1362. height: 270rpx;
  1363. }
  1364. .carinfoBox2{
  1365. width: 702rpx;
  1366. height: 180rpx;
  1367. background: #FFFFFF;
  1368. border-radius: 10rpx;
  1369. margin-left: 24rpx;
  1370. overflow: hidden;
  1371. }
  1372. .carinfoBox2{
  1373. }
  1374. .carinfoBox .carLogo{
  1375. width: 60rpx;height: 60rpx;
  1376. margin-top: 6rpx;
  1377. }
  1378. .carinfoBoxTop{
  1379. display: flex;
  1380. justify-content: space-between;
  1381. padding-top: 29rpx;
  1382. padding-left: 24rpx;
  1383. padding-right: 20rpx;
  1384. padding-bottom: 24rpx;
  1385. border: 1px solid #EEEEEE;
  1386. }
  1387. .carinfoBoxTopCont{
  1388. width: 454rpx;
  1389. }
  1390. .carinfoBoxTopContTop{
  1391. display: flex;
  1392. }
  1393. .carInfoplateNumber{
  1394. font-weight: 500;
  1395. color: #3C3C3C;
  1396. font-size: 30rpx;
  1397. line-height: 42rpx;
  1398. padding-right: 16rpx;
  1399. }
  1400. .carTnfomilage{
  1401. color: #F19D01;
  1402. font-size: 22rpx;
  1403. padding: 0rpx 10rpx;
  1404. border-radius: 4rpx;
  1405. border: 1px solid #F19D01;
  1406. height: 32rpx;
  1407. line-height: 34rpx;
  1408. margin-top: 2rpx;
  1409. margin-left: 2rpx;
  1410. }
  1411. .carInfocarModel{
  1412. width: 454rpx;
  1413. color: #666666;
  1414. font-size: 26rpx;
  1415. white-space: nowrap;
  1416. overflow: hidden;
  1417. text-overflow: ellipsis;
  1418. }
  1419. .carinfoBoxTopRight{
  1420. display: flex;padding-top: 25rpx;
  1421. }
  1422. .carinfoBoxTopRightIcon{
  1423. width: 29rpx;
  1424. height: 31rpx;
  1425. }
  1426. .huancheBtn{
  1427. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1428. padding-left: 10rpx;
  1429. }
  1430. .carInfoBottom{
  1431. display: flex;
  1432. justify-content: space-around;
  1433. }
  1434. .carInfoBottomLineTitle{
  1435. color: #999999;font-size: 24rpx;
  1436. text-align: center;
  1437. padding-top: 24rpx;
  1438. }
  1439. .carInfoBottomLineTxt{
  1440. color: #3C3C3C;
  1441. font-size: 26rpx;
  1442. padding-top: 5rpx;
  1443. text-align: center;
  1444. }
  1445. .carinfonocarIcon{
  1446. width: 72rpx;
  1447. height: 72rpx;
  1448. }
  1449. .carinfoBoxNocar{
  1450. display: flex;
  1451. padding-top: 50rpx;
  1452. padding-left: 20rpx;
  1453. }
  1454. .carinfoBoxNocarRightTitle{
  1455. font-weight: 500;
  1456. color: #3C3C3C;
  1457. font-size: 30rpx;
  1458. }
  1459. .carinfoBoxNocarRightMS{
  1460. color: #666666;
  1461. font-size: 26rpx;
  1462. }
  1463. .carinfoBoxNocarRight{
  1464. padding-left: 24rpx;
  1465. }
  1466. .shoptopbox{
  1467. margin-top: -170rpx;
  1468. }
  1469. .shoptopbox2{
  1470. margin-top: -170rpx;
  1471. }
  1472. .adviser{
  1473. width: 662rpx;
  1474. margin-left: 24rpx;
  1475. background: #FFFFFF;
  1476. border-radius: 10px;
  1477. display: flex;
  1478. justify-content: space-between;
  1479. padding: 18rpx 20rpx;
  1480. margin-top: 20rpx;
  1481. }
  1482. .adviserLeft{
  1483. display: flex;
  1484. }
  1485. .advisertx{
  1486. width: 62rpx;height: 62rpx;
  1487. }
  1488. .adviserNema{
  1489. color: #333333;font-size: 30rpx;
  1490. line-height: 62rpx;padding-left: 24rpx;
  1491. }
  1492. .adviserms{
  1493. width: 118rpx;
  1494. height: 36rpx;
  1495. border-radius: 4rpx;
  1496. border: 1px solid #D53533;
  1497. line-height: 36rpx;
  1498. text-align: center;
  1499. margin-top: 12rpx;
  1500. margin-left: 20rpx;
  1501. color: #D53533;
  1502. font-size: 24rpx;
  1503. }
  1504. .adviserJt{
  1505. width: 12rpx;
  1506. height: 20rpx;
  1507. margin-top: 20rpx;
  1508. }
  1509. .modular{
  1510. width: 702rpx;
  1511. /* height: 313rpx; */
  1512. background: #FFFFFF;
  1513. border-radius: 10px;
  1514. margin-top: 20rpx;
  1515. margin-left: 24rpx;
  1516. padding-bottom: 40rpx;
  1517. }
  1518. .swiper-item{
  1519. display: flex;
  1520. flex-wrap: wrap;
  1521. }
  1522. .itemImg{
  1523. width: 46rpx;
  1524. height: 46rpx;
  1525. }
  1526. .Menusline{
  1527. font-size: 24rpx;
  1528. color: #333333;
  1529. }
  1530. .itemLine{
  1531. width: 20%;
  1532. text-align: center;
  1533. padding-top: 40rpx;
  1534. }
  1535. .advertisement{
  1536. width: 702rpx;
  1537. height: 280rpx;
  1538. margin-top: 20rpx;
  1539. margin-left: 24rpx;
  1540. border-radius: 20rpx;
  1541. }
  1542. .swiper-item2{
  1543. width: 702rpx;
  1544. height: 280px;
  1545. }
  1546. .swiper-item2Img{
  1547. width: 702rpx;
  1548. height: 280rpx;
  1549. }
  1550. .hotMoreJt{
  1551. width: 12rpx;
  1552. height: 20rpx;
  1553. margin-top: 6rpx;
  1554. }
  1555. .Hot{
  1556. width: 702rpx;
  1557. margin-top: 20rpx;
  1558. margin-left: 24rpx;
  1559. }
  1560. .hotTop{
  1561. display: flex;
  1562. justify-content: space-between;
  1563. padding: 6rpx 0;
  1564. }
  1565. .hotSx{
  1566. width: 8rpx;
  1567. height: 30rpx;
  1568. background: #FF0000;
  1569. border-radius: 5rpx;
  1570. }
  1571. .hotLeft{
  1572. display: flex;
  1573. }
  1574. .hottitle{
  1575. font-weight: 500;
  1576. color: #333333;
  1577. font-size: 30rpx;
  1578. line-height: 30rpx;
  1579. margin-left: 16rpx;
  1580. }
  1581. .hotRight{
  1582. display: flex;
  1583. }
  1584. .hotMore{
  1585. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1586. margin-right: 16rpx;
  1587. }
  1588. .hotLineTopImg{
  1589. width: 702rpx;
  1590. height: 280rpx;
  1591. display: block;
  1592. }
  1593. .hotLineTop{
  1594. position: relative;
  1595. height: 280rpx;
  1596. }
  1597. .hotLine{
  1598. margin-top: 20rpx;
  1599. border-radius: 10rpx;
  1600. background: #FFFFFF;
  1601. overflow: hidden;
  1602. position: relative;
  1603. }
  1604. .groupType{
  1605. width: 76rpx;color: #FFFFFF;
  1606. height: 36rpx;line-height: 36rpx;text-align: center;
  1607. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  1608. border-radius: 0rpx 10rpx 0rpx 10rpx;
  1609. position: absolute;font-weight: 500;
  1610. top: 0;right: 0;font-size: 24rpx;
  1611. }
  1612. .hotlinestate1{
  1613. width: 102rpx;
  1614. height: 44rpx;
  1615. background:#FBBF00 ;
  1616. line-height: 44rpx;
  1617. font-weight: 500;
  1618. color: #333333;
  1619. font-size: 24rpx;
  1620. text-align: center;
  1621. }
  1622. .hotlinestate2{
  1623. width: 102rpx;
  1624. height: 44rpx;
  1625. background:#FF0000 ;
  1626. line-height: 44rpx;
  1627. font-weight: 500;
  1628. color: #FFFFFF;
  1629. font-size: 24rpx;
  1630. text-align: center;
  1631. }
  1632. .hotlineTimebox{
  1633. position: absolute;
  1634. left: 0;
  1635. bottom: 0;
  1636. display: flex;
  1637. align-items: flex-end;
  1638. }
  1639. .hotTime{
  1640. background: rgba(0, 0, 0, 0.5);
  1641. font-weight: 400;
  1642. color: #FFFFFF;
  1643. font-size: 24rpx;
  1644. /* line-height: 44rpx; */
  1645. padding: 5rpx 20rpx;
  1646. margin-top: 9rpx;
  1647. margin-left: -8rpx;
  1648. border-radius: 0px 10rpx 0px 0px;
  1649. }
  1650. .hotName{
  1651. padding: 24rpx 20rpx;
  1652. color: #333333;
  1653. line-height: 40rpx;
  1654. font-size: 28rpx;
  1655. }
  1656. .hotGoodsLine{
  1657. margin-top: 30rpx;
  1658. padding: 20rpx;
  1659. background: #FFFFFF;
  1660. border-radius: 16rpx;
  1661. display: flex;
  1662. }
  1663. .hotGoodsLineImg{
  1664. width: 208rpx;
  1665. height: 194rpx;
  1666. border-radius: 16rpx;
  1667. border: 1px solid #EEEEEE;
  1668. display: block;
  1669. }
  1670. .goodsName{
  1671. font-size: 28rpx;
  1672. font-family: PingFangSC-Regular, PingFang SC;
  1673. font-weight: 400;
  1674. color: #333333;
  1675. line-height: 40rpx;
  1676. text-overflow: -o-ellipsis-lastline;
  1677. overflow: hidden;
  1678. text-overflow: ellipsis;
  1679. display: -webkit-box;
  1680. -webkit-line-clamp: 2;
  1681. line-clamp: 2;
  1682. -webkit-box-orient: vertical;
  1683. }
  1684. .hotGoodsLineRIght{
  1685. padding-left: 24rpx;
  1686. }
  1687. .goodsPrice{
  1688. display: flex;
  1689. padding-top: 10rpx;
  1690. }
  1691. .goodsPrice1{
  1692. font-size: 24rpx;
  1693. font-weight: 400;
  1694. color: #FF0000;
  1695. padding-top: 8rpx;
  1696. }
  1697. .goodsPrice2{
  1698. font-size: 22rpx;
  1699. font-weight: 400;
  1700. color: #FF0000;
  1701. padding-top: 10rpx;
  1702. }
  1703. .goodsPrice3{
  1704. font-size: 32rpx;
  1705. font-weight: 500;
  1706. color: #FF0000;
  1707. }
  1708. .goodsPrice4{
  1709. font-size: 24rpx;
  1710. font-weight: 400;
  1711. color: #999999;
  1712. padding-top: 8rpx;
  1713. padding-left: 10rpx;
  1714. text-decoration:line-through;
  1715. }
  1716. .Sold{
  1717. font-weight: 400;
  1718. color: #999999;
  1719. font-size: 24rpx;
  1720. padding-top: 8rpx;
  1721. }
  1722. .jkStateImg{
  1723. width: 102rpx;
  1724. height: 53rpx;
  1725. position: relative;
  1726. }
  1727. </style>