index.vue 40 KB

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