index.vue 41 KB

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