user.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827
  1. <template>
  2. <view class="box">
  3. <view class="top" :style="{background:'#'+themeColor}">
  4. <view class="customerMes">
  5. <image @click="updateUserInfo" v-if="showSetting.showImageType==0" :src="showSetting.showImage" mode=""
  6. style="width: 110rpx;height: 110rpx;border-radius: 55rpx;"></image>
  7. <image @click="updateUserInfo" v-else :src="showSetting.showImageDefault" mode=""
  8. style="width: 110rpx;height: 110rpx;border-radius: 55rpx;"></image>
  9. <!-- <image @click="updateUserInfo" v-else src="http://dmsphoto.66km.com.cn/thFiles/64CD12A3-588E-4201-90F6-5428F6ACD9F9.png" mode=""
  10. style="width: 110rpx;height: 110rpx;border-radius: 55rpx;"></image> -->
  11. <view class="mes">
  12. <view class="nick">
  13. <view class="nickName" v-if="customerName">{{customerName}}</view>
  14. <view class="nickName2" v-else>微信用户</view>
  15. <!-- <view class="grade" @click="gonavigateTo('../index/vipCard')" v-if="numList.levelName&&showSetting.isShowLevel">{{numList.levelName}} ></view>-->
  16. <view class="cardNameBOx" v-if="numList.levelName&&showSetting.isShowLevel" @click="gonavigateTo('../subPack/vipCard')">
  17. <image class="cardNameIcon" src="http://dmsphoto.66km.com.cn/thFiles/E3F78C8A-CF4F-40DD-B050-689CFCEA2F4C.png" mode=""></image>
  18. <view class="cardNameTb">{{numList.levelName}}</view>
  19. <image src="../../static/timg/icon_arrow.png" mode="" class="cardNameIcon2"></image>
  20. </view>
  21. <view class="cardNameBOx" v-if="numList.f2ccard.cardName">
  22. <image class="cardNameIcon" src="http://dmsphoto.66km.com.cn/thFiles/E3F78C8A-CF4F-40DD-B050-689CFCEA2F4C.png" mode=""></image>
  23. <view class="cardNameTb">{{numList.f2ccard.cardName}}</view>
  24. </view>
  25. </view>
  26. <view class="phone" >{{phone}} <span @click="seeQr">{{numList.customerInfo.wxMiniV2OpenID?' / 已绑定微信':' / 未绑定微信'}}</span>
  27. <image src="../../static/img2/hjt.png" mode="" class="hjtIcon"></image>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- <view v-if="numList.remindType==0" class="marginTop2"></view>v-if="numList.remindType!=0" -->
  33. <view class="marginTop" ></view>
  34. <!-- 卡制度-->
  35. <view v-if="showSetting.isShowCardSystem&&f2csystemlist">
  36. <view >
  37. <swiper class="swiper2" :autoplay="false" :interval="interval"
  38. :current="f2cIndex" :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  39. <swiper-item v-for="(item,index) in f2csystemlist">
  40. <view class="cardBox">
  41. <view class="cardTOp" :style="{background:'url('+item.Banner+') 100% 100%'}" style="background-size: 100% 100% !important;">
  42. <img class="vipBsIcon" v-if="item.growthState==1" src="http://dmsphoto.66km.com.cn/thFiles/91FCABC6-775C-47CA-B7D4-3579A4DE8497.png" alt="">
  43. <view class="cardName">{{item.system.name}}</view>
  44. <!-- 当前卡制度-->
  45. <view class="cardtimeBox" v-if="item.growthState==1">
  46. <view class="cardtimeLeft">成长值 {{numList.f2ccard.growthValue}}/{{item.system.growthValueUp}}</view>
  47. <view class="cartimeRight">有效期 {{numList.f2ccard.expireTime.slice(0,10)}}</view>
  48. </view>
  49. <view class="cardtimeBox" v-if="item.growthState==2">
  50. <view class="cardtimeLeft">高于该等级</view>
  51. </view>
  52. <view class="cardtimeBox" v-if="item.growthState==3">
  53. <view class="cardtimeLeft">还需{{item.addGrowth}}成长值可升级</view>
  54. </view>
  55. </view>
  56. <view class="cardCont">
  57. <view class="cardLine" v-for="(c,cindex) in item.contents" v-if="cindex<8">
  58. <view class="cardLineImgBox">
  59. <image :src="c.icon" mode="" class="cardLineImg"></image>
  60. </view>
  61. <view class="cardlineTitle" v-if="c.state==1">{{c.title}}</view>
  62. <view class="cardlineTitle2" v-if="c.state==0">{{c.title}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. </swiper-item>
  67. </swiper>
  68. </view>
  69. </view>
  70. <view class="padingBox">
  71. <view class="headerBox2">
  72. <view class="headerBox" v-if="showSetting.isShowCoupon||showSetting.isShowIntergral||showSetting.isShowCard">
  73. <view class="quan" @click="gonavigateTo('../index/discountCard')" v-if="showSetting.isShowCoupon">
  74. <view class="numStr">{{numList.count?numList.count:0}}</view>
  75. <view class="nameStr">优惠券</view>
  76. </view>
  77. <view class="quan" v-if="showSetting.isShowIntergral" @click="gonavigateTo('../integral/integral?totalIntegral='+numList.totalIntegral)">
  78. <view class="numStr">{{numList.totalIntegral?numList.totalIntegral:0}}</view>
  79. <view class="nameStr">积分</view>
  80. </view>
  81. <view class="quan" v-if="showSetting.isShowCard" @click="gonavigateTo('../index/vipCard')">
  82. <view class="numStr">{{numList.cardNum?numList.cardNum:0}}</view>
  83. <view class="nameStr">会员卡</view>
  84. </view>
  85. </view>
  86. <view style="padding-bottom: 20rpx;" v-if="numList.remindIntegral">
  87. <view class="remindBox" >
  88. <view class="remindLeft" style="display: flex;">
  89. <image style="width: 30rpx;height: 30rpx;" src="http://dmsphoto.66km.com.cn/thFiles/4DC56154-C0D0-4CC8-A9B1-A2117C39CDFB.png" mode=""></image>
  90. <span style="padding-left: 10rpx;">您有</span>
  91. <span style="color: #0B0B0B;font-weight: 500;">{{numList.remindIntegral}}</span>
  92. <span v-if="numList.remindType==1">积分将于本月过期</span>
  93. <span v-if="numList.remindType==2">积分将于30天内过期</span>
  94. </view>
  95. <view class="useremind" @click="useremind">去使用></view>
  96. </view>
  97. </view>
  98. </view>
  99. <!-- v-if="numList.remindType!=0&&numList.remindIntegral!=0" -->
  100. </view>
  101. <!-- 店铺信息 -->
  102. <view class="shopBox" v-if="userInfo&&showSetting.isShowCardShop">
  103. <view class="shopCont">
  104. <view class="shopName">{{numList.shopInfo.shopName}}</view>
  105. <view class="shopRightBox">
  106. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"
  107. style="margin-right: 30rpx;" @click="map"></image>
  108. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg" @click="call"></image>
  109. </view>
  110. </view>
  111. <view v-if="numList.isShowScore == 1 && numList.isShowEvaluate == 1" class="appraiseBox">
  112. <view v-if="numList.isShowScore == 1 && numList.shopInfo.miniV2ShopScore" class="appraise">
  113. {{numList.shopInfo.miniV2ShopScore}}
  114. <span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
  115. </view>
  116. <view v-if="numList.isShowScore == 1 && !numList.shopInfo.miniV2ShopScore" class="appraise"
  117. style='font-size: 26rpx;'>暂无评分</span>
  118. </view>
  119. <view v-if="numList.isShowScore == 1" class="line"></view>
  120. <view @click="goShopAppraiseList()" v-if="numList.isShowEvaluate == 1 && numList.evaluateCount "
  121. class="appraiseCount">评价数
  122. {{numList.evaluateCount}}
  123. <image v-if="numList.isShowEvaluate == 1" class="rightArrow"
  124. src="../../static/timg/icon_arrow_right.png" mode=""></image>
  125. </view>
  126. <view v-if="numList.isShowEvaluate == 1 && !numList.evaluateCount " class="appraiseCount">暂无评价
  127. </view>
  128. </view>
  129. <view class="shopTime" v-if="numList.shopInfo.startTime && numList.shopInfo.endTime">
  130. {{numList.shopInfo.startTime}}-{{numList.shopInfo.endTime}}
  131. </view>
  132. <view class="address">
  133. <view class="Address">
  134. {{numList.shopInfo.provinceName?numList.shopInfo.provinceName:''}}
  135. {{numList.shopInfo.cityName?numList.shopInfo.cityName:''}}
  136. {{numList.shopInfo.areaName?numList.shopInfo.areaName:''}}
  137. {{numList.shopInfo.address?numList.shopInfo.address:''}}
  138. </view>
  139. <!-- <view class="distance" v-if="numList.shopInfo.distance&&numList.shopInfo.distance!= '0.00'">{{numList.shopInfo.distance}}km</view> -->
  140. </view>
  141. </view>
  142. <!-- 我的订单 -->
  143. <view class="orderBox">
  144. <view class="orderTitle">
  145. <span>我的订单</span>
  146. <span class="allOrder" @click="goorder(0)">全部订单
  147. <image src="../../static/img/big_rightArrow.png" mode="" class="allOrderIcon"></image>
  148. </span>
  149. </view>
  150. <view class="orderLIneBox">
  151. <view class="orderLine" @click="goorder(1)">
  152. <view class="orderImgBox">
  153. <view class="orderNum" v-show="numList.waitPurchaseSize>0">
  154. {{numList.waitPurchaseSize>99?'99+':numList.waitPurchaseSize}}
  155. </view>
  156. <image src="../../static/img2/dzf.png" mode="" class="orderLineImg"></image>
  157. </view>
  158. <view class="orderLineTxt">待支付</view>
  159. </view>
  160. <view class="orderLine" @click="goorder(5)">
  161. <view class="orderImgBox">
  162. <view class="orderNum" v-show="numList.waitGroupSize>0">
  163. {{numList.waitGroupSize>99?'99+':numList.waitGroupSize}}
  164. </view>
  165. <image src="../../static/img2/dct.png" mode="" class="orderLineImg"></image>
  166. </view>
  167. <view class="orderLineTxt">待成团</view>
  168. </view>
  169. <view class="orderLine" style="border-right: 1px dashed #DDDDDD;" @click="goorder(3)">
  170. <view class="orderImgBox">
  171. <view class="orderNum" v-show="numList.hasOverSize>0">
  172. {{numList.hasOverSize>99?'99+':numList.hasOverSize}}
  173. </view>
  174. <image src="../../static/img2/ywc.png" mode="" class="orderLineImg"></image>
  175. </view>
  176. <view class="orderLineTxt">已完成</view>
  177. </view>
  178. <view class="orderLine" @click="goorder(2)">
  179. <view class="orderImgBox">
  180. <view class="orderNum" v-show="numList.waitServiceSize>0">
  181. {{numList.waitServiceSize>99?'99+':numList.waitServiceSize}}
  182. </view>
  183. <image src="../../static/img2/dsy.png" mode="" class="orderLineImg"></image>
  184. </view>
  185. <view class="orderLineTxt">待使用</view>
  186. </view>
  187. <!-- <view class="orderLine" @click="goorder(0)">
  188. <view class="orderImgBox">
  189. <view class="orderNum" v-show="numList.allSize>0">{{numList.allSize>99?'99+':numList.allSize}}
  190. </view>
  191. <image src="../../static/img/icon_allorder.png" mode="" class="orderLineImg"></image>
  192. </view>
  193. <view class="orderLineTxt">全部</view>
  194. </view> -->
  195. </view>
  196. </view>
  197. <view class="kbox">
  198. <view class="klineCont" v-if="carInfo">
  199. <view class="klineTitle">我的爱车</view>
  200. <view class="kline">
  201. <view class="klineRow carInfoklineRow" @click="gonavigateTo('./addCar/cailist?type=3')">
  202. <image :src="carInfo.brandLogo" v-if="carInfo.brandLogo" mode="" class="carbrandLogo"></image>
  203. <image src="../../static/timg/nocar.png" v-else mode="" class="carbrandLogo"></image>
  204. <view class="carModel KlineTxt" style="display: flex;justify-content: space-between;padding: 0 10rpx;">
  205. <span class="carInfobrand">{{carInfo.brand?carInfo.brand:'查看车辆'}}{{carInfo.series?carInfo.series:''}}</span>
  206. <image class="carjt" src="../../static/img2/jt1.png" mode=""></image>
  207. </view>
  208. </view>
  209. <view class="klineRow" v-if="showSetting.isMaintenanceRecord==1" @click="gonavigateTo('historySpend')">
  210. <image class="klineIcon" style="width: 47rpx;height: 51rpx;" src="../../static/img2/byjl.png" mode=""></image>
  211. <view class="KlineTxt">保养记录</view>
  212. </view>
  213. <view class="klineRow" v-if="showSetting.isCarConditionReport==1" @click="gonavigateTo('checkReport')">
  214. <image class="klineIcon" src="../../static/img2/ckbg.png" mode=""></image>
  215. <view class="KlineTxt">车况报告</view>
  216. </view>
  217. <view class="klineRow" v-if="showSetting.is24HRescue==1" @click="gonavigateTo('../index/rescue')">
  218. <image class="klineIcon" style="width: 65rpx;height: 50rpx;"
  219. src="../../static/img2/24.png" mode=""></image>
  220. <view class="KlineTxt">24小时救援</view>
  221. </view>
  222. </view>
  223. </view>
  224. <view class="klineCont" v-if="!carInfo" style="padding: 12rpx 16rpx;" ><!-- -->
  225. <image @click="addCar" v-if="carbg.carAddImageType!=1" :src="carbg.carAddImage" mode="" style="width: 100%;height: 148rpx;"></image>
  226. <image @click="addCar" v-else :src="carbg.carAddImageDefault" mode="" style="width: 100%;height: 148rpx;"></image>
  227. <!-- <view class="klineTitle">我的爱车</view>
  228. <view class="addCarBox">
  229. <view class="addCar">
  230. <view class="addCarLeft">
  231. <view class="addCarTxt1">开车请注意 安途生来帮您</view>
  232. <view class="carBq">
  233. <view class="carBqLine">
  234. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  235. <view class="carTitle">车况报告</view>
  236. </view>
  237. <view class="carBqLine">
  238. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  239. <view class="carTitle">保养记录</view>
  240. </view>
  241. <view class="carBqLine">
  242. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  243. <view class="carTitle">快速救援</view>
  244. </view>
  245. </view>
  246. </view>
  247. <view class="addCarBtn" @click="addCar">添加爱车</view>
  248. </view>
  249. </view> -->
  250. </view>
  251. <view class="klineCont" v-if="showSetting.isShowService==1||showSetting.isMineOrder==1||showSetting.isRescueRecord==1||showSetting.isCarMatch==1||showSetting.isMineDeposit==1">
  252. <view class="klineTitle">更多推荐</view>
  253. <view class="kline">
  254. <view class="klineRow" v-if="showSetting.isShowService==1" @click="gonavigateTo('../user/expertServices')">
  255. <image class="klineIcon" src="../../static/img2/icon_fwzj.png" mode=""></image>
  256. <view class="KlineTxt2">服务顾问</view>
  257. </view>
  258. <view class="klineRow" v-if="showSetting.isMineOrder==1" @click="gonavigateTo('myBespeak')">
  259. <image class="klineIcon" src="../../static/img2/icon_yuyue.png" mode=""></image>
  260. <view class="KlineTxt2">我的预约</view>
  261. </view>
  262. <view class="klineRow" v-if="showSetting.isRescueRecord==1" @click="gonavigateTo('../subPack/rescueOrder')">
  263. <image class="klineIcon" src="../../static/img2/jyjl.png" mode=""></image>
  264. <view class="KlineTxt2">救援记录</view>
  265. </view>
  266. <view class="klineRow" v-if="showSetting.isCarMatch==1" @click="gonavigateTo('../subPack/maintain')">
  267. <image class="klineIcon" src="../../static/img2/clsp.png" mode=""></image>
  268. <view class="KlineTxt2">车辆适配</view>
  269. </view>
  270. <view class="klineRow" v-if="showSetting.isMineDeposit==1" @click="gonavigateTo('../subPack/depositList')">
  271. <image class="klineIcon" src="../../static/img2/icon_jydd.png" mode=""></image>
  272. <view class="KlineTxt2">我的寄存</view>
  273. </view>
  274. </view>
  275. </view>
  276. <view class="klineCont">
  277. <view class="klineTitle">口碑传播</view>
  278. <view class="kline">
  279. <button open-type="share" class="klineRow">
  280. <view class="">
  281. <image class="klineIcon" src="../../static/img2/fenx.png" mode=""></image>
  282. <view class="KlineTxt2">分享好友</view>
  283. </view>
  284. </button>
  285. <view class="klineRow" v-if="showSetting.isActivityGift==1" @click="gonavigateTo('../subPack/luckList')"><!-- v-if="numList.shopSettings.luckdrawDisabled" -->
  286. <image class="klineIcon" src="../../static/img2/hdjp.png" mode=""></image>
  287. <view class="KlineTxt2">活动奖品</view>
  288. </view>
  289. <view class="klineRow" v-if="numList.customerInfo.rebateState==1&&showSetting.isCustomerReferral==1" @click="gonavigateTo('../referral/referral')" ><!-- v-if="numList.customerInfo.rebateState==1&&numList.shopSettings.introductionDisabled" -->
  290. <image class="klineIcon" src="../../static/img2/kehuzjs.png" mode=""></image>
  291. <view class="KlineTxt2">客户转介绍</view>
  292. </view>
  293. <view class="klineRow" v-if="numList.customerInfo.pState==1&&showSetting.isOwnerPartner==1" @click="gonavigateTo('../partner/partner')" ><!-- v-if="numList.customerInfo.pState==1&&numList.shopSettings.partnerDisabled" -->
  294. <image class="klineIcon" src="../../static/img2/chezhu.png" mode=""></image>
  295. <view class="KlineTxt2">车主合伙人</view>
  296. </view>
  297. <view class="klineRow" v-if="showSetting.isMineEvaluation==1" @click="gonavigateTo('myAppraise')">
  298. <image class="klineIcon" src="../../static/img2/icon_pingjia.png" mode=""></image>
  299. <view class="KlineTxt2">我的评价</view>
  300. </view>
  301. <view class="klineRow" v-if="showSetting.isSuggestionFeedback==1" @click="gonavigateTo('../subPack/feedBack')">
  302. <image class="klineIcon" src="../../static/img2/yjfk.png" mode=""></image>
  303. <view class="KlineTxt2">建议反馈</view>
  304. </view>
  305. <view class="klineRow" @click="gomember(showSetting.memberTitle)">
  306. <image class="klineIcon" src="../../static/img2/huiyuan.png" mode=""></image>
  307. <view class="KlineTxt2">{{showSetting.memberTitle}}</view><!-- 关于会员 -->
  308. </view>
  309. <view class="klineRow" @click="gonavigateaboutUS(showSetting.aboutTitle)">
  310. <image class="klineIcon" src="../../static/img2/gongs.png" mode=""></image>
  311. <view class="KlineTxt2">{{showSetting.aboutTitle}}</view><!-- 公司介绍 -->
  312. </view>
  313. <view class="klineRow" @click="makePhoneCall(showSetting.tel)">
  314. <image class="klineIcon" src="../../static/img2/kefu.png" mode=""></image>
  315. <view class="KlineTxt2">{{showSetting.telTitle}}</view><!-- 联系客服 -->
  316. </view>
  317. <view class="klineRow" @click="gonavigateTo('../subPack/promotion')">
  318. <image class="klineIcon" src="../../static/img2/kefu.png" mode=""></image>
  319. <view class="KlineTxt2">我的推广</view><!-- 我的推广 -->
  320. </view>
  321. </view>
  322. </view>
  323. </view>
  324. <!-- 我的 相关 -->
  325. <!-- <view class="rowBoxBg">
  326. <view class="rowBox" @click="gonavigateTo('../user/expertServices')">
  327. <view class="leftView">
  328. <image src="../../static/img/icon_me1.png" mode="" class="liftIcon"></image>
  329. <view class="rowTitle">服务专家</view>
  330. </view>
  331. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  332. </view>
  333. <view class="rowBox" @click="gonavigateTo('./addCar/cailist?type=3')">
  334. <view class="leftView">
  335. <image src="../../static/img/icon_me2.png" mode="" class="liftIcon"></image>
  336. <view class="rowTitle">我的车库</view>
  337. </view>
  338. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  339. </view>
  340. <view class="rowBox" @click="gonavigateTo('myBespeak')">
  341. <view class="leftView">
  342. <image src="../../static/img/icon_me3.png" mode="" class="liftIcon"></image>
  343. <view class="rowTitle">我的预约</view>
  344. </view>
  345. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  346. </view>
  347. <view class="rowBox" @click="gonavigateTo('historySpend')">
  348. <view class="leftView">
  349. <image src="../../static/img/icon_me4.png" mode="" class="liftIcon"></image>
  350. <view class="rowTitle">历史消费</view>
  351. </view>
  352. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  353. </view>
  354. <view class="rowBox" @click="gonavigateTo('checkReport')">
  355. <view class="leftView">
  356. <image src="../../static/img/icon_me5.png" mode="" class="liftIcon"></image>
  357. <view class="rowTitle">车检报告</view>
  358. </view>
  359. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  360. </view>
  361. <view class="rowBox" @click="gonavigateTo('../subPack/depositList')">
  362. <view class="leftView">
  363. <image src="../../static/timg/icon_jydd.png" mode="" class="liftIcon"></image>
  364. <view class="rowTitle">我的寄存</view>
  365. </view>
  366. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  367. </view>
  368. <view class="rowBox" @click="gonavigateTo('../subPack/rescueOrder')">
  369. <view class="leftView">
  370. <image src="../../static/timg/sos.png" mode="" class="liftIcon"></image>
  371. <view class="rowTitle">救援订单</view>
  372. </view>
  373. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  374. </view>
  375. <view class="rowBox" @click="gonavigateTo('../subPack/luckList')">
  376. <view class="leftView">
  377. <image src="../../static/timg/icon_jydd.png" mode="" class="liftIcon"></image>
  378. <view class="rowTitle">中奖记录</view>
  379. </view>
  380. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  381. </view>
  382. </view> -->
  383. <!-- <view class="rowBoxBg">
  384. <view class="rowBox" @click="gonavigateTo('myAppraise')">
  385. <view class="leftView">
  386. <image src="../../static/img/icon_pingjia.png" mode="" class="liftIcon"></image>
  387. <view class="rowTitle">我的评价</view>
  388. </view>
  389. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  390. </view>
  391. </view>
  392. <view class="rowBoxBg" v-if="kkshow">
  393. <view class="rowBox" @click="gonavigateTo('../partner/partner')"
  394. v-if="numList.customerInfo.pState==1&&numList.shopSettings.partnerDisabled">
  395. <view class="leftView">
  396. <image src="../../static/img/icon_hehuoren.png" mode="" class="liftIcon"></image>
  397. <view class="rowTitle">车主合伙人</view>
  398. </view>
  399. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  400. </view>
  401. <view class="rowBox" @click="gonavigateTo('../referral/referral')"
  402. v-if="numList.customerInfo.rebateState==1&&numList.shopSettings.introductionDisabled">
  403. <view class="leftView">
  404. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  405. <view class="rowTitle">客户转介绍</view>
  406. </view>
  407. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  408. </view>
  409. </view> -->
  410. <!-- <view class="rowBoxBg">
  411. <view class="rowBox" v-if="showSetting.isShowTel">
  412. <view class="leftView">
  413. <image src="../../static/timg/icon_qingchu.png" mode="" class="liftIcon"></image>
  414. <view class="rowTitle">{{showSetting.telTitle}}</view>
  415. </view>
  416. <view class="rowRight" style="color:#666666;" @click="makePhoneCall(showSetting.tel)">{{showSetting.tel}}</view>
  417. </view>
  418. <view class="rowBox" v-if="showSetting.isShowMember" @click="gomember(showSetting.memberTitle)">
  419. <view class="leftView">
  420. <image src="../../static/timg/icon_yijian.png" mode="" class="liftIcon"></image>
  421. <view class="rowTitle">{{showSetting.memberTitle}}</view>
  422. </view>
  423. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  424. </view>
  425. <view class="rowBox" v-if="showSetting.isShowAbout" @click="gonavigateaboutUS">
  426. <view class="leftView">
  427. <image src="../../static/timg/icon_fenxiang.png" mode="" class="liftIcon"></image>
  428. <view class="rowTitle">{{showSetting.aboutTitle}}</view>
  429. </view>
  430. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  431. </view>
  432. </view> -->
  433. <!-- <view class="rowBoxBg">
  434. <button open-type="share" class="rowBox">
  435. <view class="leftView">
  436. <image src="../../static/img/icon_me6.png" mode="" class="liftIcon"></image>
  437. <view class="rowTitle">分享给好友</view>
  438. </view>
  439. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  440. </button>
  441. <view class="rowBox" @click="gonavigateTo('feedBack')">
  442. <view class="leftView">
  443. <image src="../../static/img/icon_me7.png" mode="" class="liftIcon"></image>
  444. <view class="rowTitle">意见反馈</view>
  445. </view>
  446. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  447. </view> -->
  448. <!-- <view class="rowBox" @click="gonavigateTo('../report/working?id=56D5F8C1-9F11-40BA-8937-B4AABD4666B5')">
  449. <view class="leftView">
  450. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  451. <view class="rowTitle">施工报告</view>
  452. </view> -->
  453. <!-- <view class="rowBox" @click="gonavigateTo('../report/complete?id=278569FB-6F21-47AD-8B66-D62D2EA6981D')">
  454. <view class="leftView">
  455. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  456. <view class="rowTitle">完工报告</view>
  457. </view>
  458. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  459. </view>
  460. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  461. </view> -->
  462. <!-- 先隐藏 -->
  463. <!-- <view class="rowBox" @click="gonavigateTo('')">
  464. <view class="leftView">
  465. <image src="../../static/img/icon_me8.png" mode="" class="liftIcon"></image>
  466. <view class="rowTitle">清除缓存</view>
  467. </view>
  468. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  469. </view> -->
  470. <!-- </view> -->
  471. <view class="rowBoxBg">
  472. <!-- <view class="exit2" @click="clearStorage">清除缓存</view> -->
  473. <view class="exit2" @click="exit">切换账号</view>
  474. <view class="exit" @click="exit2">退出登录</view>
  475. </view>
  476. <view class="releaseVersion">版本号:{{release_version}}</view>
  477. <!-- <view class="rowBox" @click="gonavigateTo('../report/complete?id=278569FB-6F21-47AD-8B66-D62D2EA6981D')">
  478. <view class="leftView">
  479. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  480. <view class="rowTitle">完工报告</view>
  481. </view>
  482. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  483. </view> -->
  484. <!-- <view class="signOut" @click="signOut">退出登录</view> -->
  485. <!-- 手机号授权 -->
  486. <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide">
  487. <view class="authorizCont" @click.stop="">
  488. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  489. <view class="authorizMs">未注册的手机号登录后将自动创会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  490. <view class="sqLine">
  491. <view class="sqRefuse" @click="authorizShowHide">拒绝</view>
  492. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  493. </view>
  494. </view>
  495. <!-- <view style="text-align: center;padding-top: 56rpx;">
  496. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  497. </view> -->
  498. </view>
  499. <!-- <image :src="qrimg" mode=""></image> -->
  500. <view class="qrBox" v-if="qrSHow">
  501. <view class="qrimgBox">
  502. <view class="qrTitle">微信绑定
  503. <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
  504. </view>
  505. <view class="qrms">扫描/长按下方二维码进行绑定</view>
  506. <view class="qrms2">绑定后可接收微信消息通知</view>
  507. <view style="text-align: center;padding-top: 30rpx;">
  508. <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
  509. </view>
  510. <view class="qrBtn" @click="qrclose">我知道了</view>
  511. </view>
  512. </view>
  513. </view>
  514. </template>
  515. <script>
  516. export default {
  517. data() {
  518. return {
  519. userInfo: '',
  520. shopData: '',
  521. numList: '',
  522. uid: '',
  523. headImg: '',
  524. location: {
  525. lng: '',
  526. lat: '',
  527. },
  528. authorizShow: false,
  529. code: '',
  530. wxOpenData: '',
  531. nickName: '',
  532. phone: '',
  533. ext: '',
  534. themeColor: '',
  535. release_version: '',
  536. qrimg:'',
  537. qrSHow:false,
  538. kkshow:false,
  539. duration:500,
  540. interval:3000,
  541. showSetting:'',
  542. f2csystemlist:'',
  543. exitNum:'',
  544. f2cIndex:'',
  545. customerName:'',
  546. carInfo:'',
  547. carbg:'',
  548. }
  549. },
  550. onLoad(opt) {
  551. this.ext = this.$common.getExtStoreId();
  552. this.themeColor = uni.getStorageSync("themeColor");
  553. console.log("themeColor=="+this.themeColor)
  554. if (this.themeColor) {
  555. if (this.themeColor == '6F2BE8') {
  556. var backgroundImage = '/static/tabimg/me6F2BE8.png'
  557. }
  558. if (this.themeColor == '1677FF') {
  559. var backgroundImage = '/static/tabimg/me1677FF.png'
  560. }
  561. if (this.themeColor == 'FF4F00') {
  562. var backgroundImage = '/static/tabimg/meFF4F00.png'
  563. }
  564. if (this.themeColor == 'EC0F0A') {
  565. var backgroundImage = '/static/tabimg/me1.png'
  566. }
  567. /* uni.setTabBarStyle({
  568. // color: '#EC0F0A',
  569. selectedColor: '#222222',
  570. }) */
  571. /* uni.setTabBarItem({
  572. index: 3,
  573. text: '我的',
  574. selectedIconPath: backgroundImage
  575. }) */
  576. }
  577. /* uni.setNavigationBarColor({
  578. frontColor: "#000000",
  579. backgroundColor: '#' + this.themeColor
  580. }) */
  581. this.getVersionInfo()
  582. // const accountInfo = wx.getAccountInfoSync();
  583. // var version_number = accountInfo.miniProgram.version;
  584. // console.log(version_number)
  585. this.carbg=uni.getStorageSync("carbg")
  586. },
  587. onShow() {
  588. const wxOpenData = this.$store.state.wxOpenData;
  589. this.wxOpenData = wxOpenData
  590. console.log("onshowuser")
  591. this.userInfo = this.$store.state.userInfo;
  592. console.log(this.userInfo)
  593. if (this.userInfo) {
  594. this.queryMyDetail();
  595. this.getCarList();
  596. } else {
  597. //console.log("授权")
  598. this.exitNum=this.$store.state.exitNum;
  599. if(this.exitNum!=1){
  600. this.authorizShow = true;
  601. }else{
  602. this.$common.automaticlogin().then(val => {
  603. this.userInfo=this.$store.state.userInfo;
  604. this.wxOpenData=this.$store.state.wxOpenData;
  605. this.exitNum=''
  606. this.$store.commit('mutationsexitNum', '')
  607. if (this.userInfo) {
  608. this.queryMyDetail();
  609. }
  610. if(!this.userInfo){
  611. //this.authorizShow=true
  612. }
  613. })
  614. }
  615. }
  616. if (wxOpenData) {
  617. this.uid = wxOpenData.loginInfo.uid;
  618. }
  619. //this.themeColor = uni.getStorageSync("themeColor");
  620. this.carInfo=this.$store.state.carInfo;
  621. console.log(this.carInfo)
  622. },
  623. methods: {
  624. clearStorage(){
  625. uni.clearStorageSync();
  626. uni.showToast({
  627. title: '清除缓存完成',
  628. icon: 'none',
  629. duration: 3000
  630. });
  631. uni.setStorage({
  632. key: 'themeColor',
  633. data: this.themeColor,
  634. success: function () {
  635. }
  636. });
  637. },
  638. getCarList(){
  639. this.$http('opencarOwnerHome/queryDefaultCarInfo', {
  640. },'GET').then(res => {
  641. if(res.code==401){
  642. this.carInfo=''
  643. this.$store.commit('mutationscarInfo', '')
  644. }else{
  645. if(res.data&&res.data!='null'){
  646. this.carInfo = res.data
  647. }else{
  648. this.carInfo=''
  649. }
  650. this.$store.commit('mutationscarInfo', this.carInfo)
  651. }
  652. })
  653. },
  654. addCar(){
  655. uni.navigateTo({
  656. url:'../subPack/addCarCK'
  657. })
  658. },
  659. exit(){
  660. var that=this;
  661. uni.showModal({
  662. title: '提示',
  663. content: '是否切换账号',
  664. success(res) {
  665. if (res.confirm) {
  666. uni.clearStorageSync()
  667. that.$store.commit('mutationsuserInfo', '')
  668. that.$store.commit('mutationscarInfo', '')
  669. that.$http('miniApp2/sys/logout', {
  670. }, 'GET').then(res => {
  671. uni.reLaunch({
  672. url: '../index/index'
  673. });
  674. })
  675. }
  676. }
  677. });
  678. },
  679. exit2(){
  680. var that=this;
  681. uni.showModal({
  682. title: '提示',
  683. content: '是否退出登录',
  684. success(res) {
  685. if (res.confirm) {
  686. uni.clearStorageSync()
  687. that.$store.commit('mutationsuserInfo', '')
  688. that.$store.commit('mutationscarInfo', '')
  689. that.$store.commit('mutationsexitNum', '1')
  690. /* uni.reLaunch({
  691. url: '../index/index'
  692. }); */
  693. uni.switchTab({
  694. url: '../index/index'
  695. })
  696. }
  697. }
  698. });
  699. },
  700. makePhoneCall(tel){
  701. uni.makePhoneCall({
  702. phoneNumber: tel,
  703. });
  704. },
  705. seeQr(){
  706. // this.authorizShow = true;
  707. // return false;
  708. if (this.userInfo) {
  709. } else {
  710. this.authorizShow = true;
  711. return false;
  712. }
  713. uni.showLoading({
  714. title: '加载中'
  715. })
  716. this.$request.httpBinary('wxV2/createQrCode', {
  717. type:'bindWx',
  718. customerId:this.numList.customerInfo.id,
  719. unionID:this.numList.customerInfo.unionID,
  720. }, 'GET').then(res => {
  721. uni.hideLoading();
  722. this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
  723. this.qrSHow=true;
  724. //this.img= uni.arrayBufferToBase64(res)
  725. //console.log('list+=', this.queryShopList);
  726. })
  727. },
  728. qrclose(){
  729. this.qrSHow=false;
  730. },
  731. goShopAppraiseList() {
  732. uni.navigateTo({
  733. url: 'ShopAppraiseList?shopID=' + this.numList.shopInfo.id
  734. })
  735. },
  736. useremind(){
  737. if (this.userInfo) {
  738. uni.navigateTo({
  739. url: '../integral/integral'
  740. })
  741. } else {
  742. this.authorizShow = true;
  743. return false;
  744. }
  745. },
  746. gonavigateaboutUS(title){
  747. uni.navigateTo({
  748. url: '../subPack/aboutUS?unionID='+this.numList.customerInfo.unionID+'&title='+title
  749. })
  750. },
  751. gomember(memberTitle){
  752. uni.navigateTo({
  753. url: '../subPack/aboutUS?unionID='+this.numList.customerInfo.unionID+'&memberTitle='+memberTitle
  754. })
  755. },
  756. getVersionInfo() {
  757. this.$http('miniApp2/sys/getVersionInfov2', {
  758. appId: this.ext.appId,
  759. }, 'POST').then(res => {
  760. if( res.data){
  761. this.release_version = res.data
  762. }
  763. })
  764. },
  765. updateUserInfo() {
  766. var that = this;
  767. uni.getUserProfile({
  768. lang: 'zh_CN',
  769. desc: '登录',
  770. success: (res) => {
  771. console.log(res);
  772. that.headImg = res.userInfo.avatarUrl;
  773. that.nickName = res.userInfo.nickName;
  774. that.$http('miniApp2/sys/updateUserInfo', {
  775. nickName: res.userInfo.nickName,
  776. unionId: that.ext.unionId,
  777. headImg: res.userInfo.avatarUrl,
  778. openId: that.wxOpenData.openid
  779. }, 'POST').then(res => {
  780. })
  781. },
  782. fail: (res) => {
  783. console.log(res)
  784. }
  785. });
  786. },
  787. decryptPhoneNumber: function(e) {
  788. console.log(e);
  789. this.code = e.detail.code
  790. this.wxPhoneLogin()
  791. this.authorizShow = false;
  792. },
  793. wxPhoneLogin() {
  794. var that = this;
  795. this.$http('miniApp2/sys/wxPhoneLogin', {
  796. appId: this.ext.appId,
  797. unionId: this.ext.unionId,
  798. code: this.code,
  799. openId: this.wxOpenData.openid,
  800. shareId:this.$store.state.shareID
  801. }, 'POST').then(res => {
  802. var data = res.data;
  803. if (data.loginInfo) {
  804. this.userInfo = data.loginInfo.openUser;
  805. this.wxOpenData = data.loginInfo;
  806. this.numList=data.loginInfo
  807. this.headImg = data.loginInfo.openUser.headImg;
  808. this.nickName = data.loginInfo.openUser.nickName;
  809. this.phone = data.loginInfo.openUser.mobilePhone;
  810. this.$store.commit('mutationswxOpenData', data)
  811. this.$store.commit('mutationsuserInfo', this.userInfo)
  812. /*setTimeout(() => {
  813. that.queryMyDetail()
  814. }, 1000); */
  815. that.queryMyDetail()
  816. if(!data.loginInfo.customerInfo.wxMiniV2OpenID){
  817. this.seeQr()
  818. }
  819. if(this.numList.customerInfo.pState==1&&this.numList.shopSettings.partnerDisabled){
  820. this.kkshow=true
  821. }
  822. if(this.numList.customerInfo.rebateState==1&&this.numList.shopSettings.introductionDisabled){
  823. this.kkshow=true
  824. }
  825. }
  826. })
  827. },
  828. map() {
  829. console.log("打开地图")
  830. var that = this;
  831. if (!that.numList.shopInfo.lat || !that.numList.shopInfo.lng) {
  832. uni.showToast({
  833. title: '该店铺未设置定位',
  834. icon: 'none',
  835. duration: 3000
  836. });
  837. } else {
  838. uni.openLocation({
  839. latitude: Number(that.numList.shopInfo.lat),
  840. longitude: Number(that.numList.shopInfo.lng),
  841. name: that.numList.shopInfo.shopName,
  842. address: that.numList.shopInfo.provinceName + that.numList.shopInfo.cityName + that.numList
  843. .shopInfo.areaName + that.numList.shopInfo.address,
  844. success: function() {
  845. console.log('success');
  846. },
  847. fail(err) {
  848. console.log(err)
  849. }
  850. });
  851. }
  852. },
  853. call() {
  854. if (this.userInfo) {
  855. } else {
  856. this.authorizShow = true;
  857. return false;
  858. }
  859. uni.makePhoneCall({
  860. phoneNumber: this.numList.shopInfo.mobilePhone
  861. });
  862. },
  863. goorder(num) {
  864. if (this.userInfo) {
  865. uni.navigateTo({
  866. url: './myOrder/myOrder?num=' + num
  867. })
  868. } else {
  869. this.authorizShow = true;
  870. return false;
  871. }
  872. },
  873. queryMyDetail() {
  874. console.log("getinfo")
  875. console.log(this.$store.state.wxOpenData)
  876. uni.showLoading({
  877. title: '加载中'
  878. })
  879. this.$http('openreservation/getInfo', {
  880. lat: this.location.lat ? this.location.lat : '',
  881. lng: this.location.lng ? this.location.lng : '',
  882. }, 'GET').then(res => {
  883. uni.hideLoading();
  884. this.numList = res.data
  885. this.headImg = res.data.openUser.headImg;
  886. this.nickName = res.data.openUser.nickName;
  887. this.customerName= res.data.customerInfo.customerName
  888. this.phone = res.data.openUser.mobilePhone;
  889. this.showSetting=res.data.showSetting
  890. this.f2csystemlist=res.data.f2csystemlist
  891. if(this.numList.customerInfo.pState==1&&this.numList.shopSettings.partnerDisabled){
  892. this.kkshow=true
  893. }
  894. if(this.numList.customerInfo.rebateState==1&&this.numList.shopSettings.introductionDisabled){
  895. this.kkshow=true
  896. }
  897. if(this.f2csystemlist.length>0){
  898. this.f2csystemlist.forEach((item,index)=>{
  899. if(item.growthState==1){
  900. this.f2cIndex=index
  901. }
  902. })
  903. }
  904. })
  905. },
  906. gonavigateTo(url) {
  907. if (this.userInfo) {
  908. uni.navigateTo({
  909. url: url
  910. })
  911. } else {
  912. this.authorizShow = true;
  913. }
  914. /* uni.navigateTo({
  915. url: url
  916. }) */
  917. },
  918. signOut() {
  919. //uni.clearStorageSync();
  920. uni.removeStorageSync('logodata');
  921. // uni.navigateTo({
  922. // url: '../login/login'
  923. // })
  924. },
  925. authorizShowHide(){
  926. this.authorizShow=false
  927. }
  928. },
  929. onShareAppMessage(res) {
  930. return {
  931. title: this.wxOpenData.miniAppName,
  932. //imageUrl:img,
  933. path: 'pages/index/index',
  934. success(res) {
  935. uni.showToast({
  936. title: '分享成功'
  937. })
  938. },
  939. fail(res) {
  940. uni.showToast({
  941. title: '分享失败',
  942. icon: 'none',
  943. duration: 3000
  944. })
  945. }
  946. }
  947. },
  948. // 下拉刷新
  949. onPullDownRefresh() {
  950. this.queryMyDetail()
  951. this.getCarList()
  952. setTimeout(function() {
  953. uni.stopPullDownRefresh();
  954. }, 1000);
  955. },
  956. }
  957. </script>
  958. <style scoped>
  959. .addCarBox{
  960. padding: 12rpx;
  961. }
  962. .addCar{
  963. background: #F8F8F8;
  964. border-radius: 9rpx;
  965. display: flex;justify-content: space-between;
  966. padding: 30rpx 20rpx;
  967. }
  968. .carTitle{
  969. padding-left: 6rpx;
  970. }
  971. .addCarBtn{
  972. width: 145rpx;text-align: center;
  973. height: 53rpx;line-height: 53rpx;
  974. background: #FFDD00;
  975. border-radius: 27rpx;
  976. font-size: 24rpx;
  977. color: #0B0B0B;
  978. margin-top: 15rpx;
  979. }
  980. .addCarTxt1{
  981. font-size: 30rpx;
  982. color: #8B8B8B;
  983. line-height: 36rpx;
  984. }
  985. .carBq{
  986. display: flex;
  987. border-radius: 10rpx;
  988. margin-top: 15rpx;
  989. }
  990. .carDui{
  991. width: 24rpx;height: 24rpx;
  992. }
  993. .carBqLine{
  994. display: flex;
  995. padding-right: 23rpx;
  996. font-size: 22rpx;
  997. color: #A26D4F;line-height: 26rpx;
  998. }
  999. .kbox{
  1000. padding:0 24rpx;
  1001. }
  1002. .klineCont{
  1003. background: #FFFFFF;
  1004. border-radius: 16rpx;
  1005. margin-top: 20rpx;
  1006. }
  1007. .klineRow{
  1008. width: 25%;font-weight: 400;
  1009. font-size: 24rpx;
  1010. color: #0B0B0B;text-align: center;
  1011. margin-top: 30rpx;
  1012. }
  1013. .KlineTxt{
  1014. padding-top: 10rpx;
  1015. }
  1016. .KlineTxt2{
  1017. padding-top: 10rpx;font-size: 22rpx;
  1018. }
  1019. .carInfoklineRow{
  1020. width: calc(25% - 1px);
  1021. border-right: 1px dashed #DDDDDD;
  1022. }
  1023. .carbrandLogo{
  1024. width: 50rpx;height: 50rpx; margin-bottom: 8rpx;
  1025. }
  1026. .kline{
  1027. display: flex;
  1028. padding-bottom: 30rpx;
  1029. flex-wrap: wrap;
  1030. }
  1031. .klineTitle{
  1032. font-weight: 500;
  1033. font-size: 30rpx;
  1034. color: #0B0B0B;
  1035. line-height: 42rpx;
  1036. padding-top: 20rpx;
  1037. padding-left: 24rpx;
  1038. }
  1039. .klineIcon{
  1040. width: 50rpx;height: 50rpx;
  1041. }
  1042. .exit{
  1043. background: #FFFFFF;
  1044. line-height: 90rpx;
  1045. font-size: 26rpx;
  1046. font-family: PingFang;
  1047. font-weight: 500;
  1048. color: #ED2323;
  1049. text-align: center;
  1050. }
  1051. .exit2{
  1052. background: #FFFFFF;
  1053. line-height: 90rpx;
  1054. font-size: 26rpx;
  1055. font-family: PingFang;
  1056. font-weight: 500;
  1057. color: #3C3C3C;
  1058. text-align: center;
  1059. border-bottom: 1px solid #eeeeee;
  1060. /* margin-top: 20rpx; */
  1061. }
  1062. .cardNameIcon{
  1063. width: 30rpx;height: 30rpx;
  1064. }
  1065. .cardNameIcon2{
  1066. width: 7rpx;height: 13rpx;
  1067. margin-left: 3rpx;margin-top: 9rpx;
  1068. }
  1069. .cardNameTb{
  1070. padding-left: 4rpx;
  1071. }
  1072. .cardNameBOx{
  1073. background: linear-gradient(327deg, #FEA917 0%, #FFC635 100%);
  1074. border-radius: 16rpx;display: flex;
  1075. line-height: 30rpx;font-weight: 500;
  1076. color: #764700;font-size: 22rpx;
  1077. margin-left: 15rpx;
  1078. padding-right: 10rpx;
  1079. height: 30rpx;
  1080. }
  1081. .remindBox{
  1082. width: 596rpx;
  1083. background: #FFF8EF;
  1084. border-radius: 8rpx;
  1085. display: flex;justify-content: space-between;
  1086. margin: 0 auto;font-size: 22rpx;
  1087. padding: 10rpx 20rpx;
  1088. color: #666666;
  1089. line-height: 30rpx;
  1090. }
  1091. .useremind{
  1092. font-weight: 500;
  1093. color: #A26D4F;
  1094. }
  1095. .swiper2{
  1096. min-height: 510rpx;
  1097. /* margin-top: -100rpx; */
  1098. }
  1099. .marginTop{
  1100. margin-top: -160rpx;
  1101. }
  1102. .marginTop2{
  1103. margin-top: -120rpx;
  1104. }
  1105. .cardBox{
  1106. width: 702rpx;
  1107. min-height: 510rpx;
  1108. background: #FFFFFF;
  1109. border-radius: 22rpx;
  1110. margin-left:24rpx ;
  1111. overflow: hidden;
  1112. }
  1113. .cardCont{
  1114. display: flex;
  1115. flex-wrap: wrap;
  1116. }
  1117. .cardLineImgBox{
  1118. width: 84rpx;
  1119. height: 84rpx;
  1120. /* background: linear-gradient(150deg, #222439 0%, #1A2027 100%); */
  1121. border-radius: 50%;
  1122. margin: 0 auto;
  1123. margin-top: 30rpx;
  1124. }
  1125. .cardLineImg{
  1126. width: 84rpx;
  1127. height: 84rpx;
  1128. border-radius: 50%;
  1129. }
  1130. .cardlineTitle{
  1131. color: #3C3C3C;font-size: 24rpx;
  1132. line-height: 33rpx;padding-top: 10rpx;
  1133. overflow:hidden;
  1134. white-space: nowrap;
  1135. text-overflow: ellipsis;
  1136. -o-text-overflow:ellipsis;
  1137. }
  1138. .cardlineTitle2{
  1139. color: #999999;font-size: 24rpx;
  1140. line-height: 33rpx;padding-top: 10rpx;
  1141. overflow:hidden;
  1142. white-space: nowrap;
  1143. text-overflow: ellipsis;
  1144. -o-text-overflow:ellipsis;
  1145. }
  1146. .cardLine{
  1147. width: 25%;
  1148. text-align: center;
  1149. }
  1150. .rowRight{
  1151. color: #666666;font-size: 28rpx;padding-right: 32rpx;
  1152. }
  1153. .cardTOp{
  1154. height: 155rpx;
  1155. background-size: 100% 100%;
  1156. position: relative;
  1157. }
  1158. .vipBsIcon{
  1159. position: absolute;width: 112rpx;height: 33rpx;top: 0;right: 0;
  1160. }
  1161. .cardName{
  1162. font-weight: 500;font-size: 30rpx;padding-top: 30rpx;padding-left: 30rpx;
  1163. color: #50402A;
  1164. }
  1165. .cardtimeBox{
  1166. display: flex;justify-content: space-between;
  1167. color: #786140;font-size: 24rpx;
  1168. padding-top: 20rpx;padding-left: 30rpx;padding-right: 20rpx;
  1169. }
  1170. .qrBox{
  1171. position: fixed;
  1172. width: 100vw;
  1173. height: 100vh;
  1174. background: rgba(0,0,0,0.5);
  1175. left: 0;
  1176. top: 0;
  1177. z-index: 11;
  1178. display: flex;
  1179. justify-content: center;
  1180. align-items: center;
  1181. flex-direction: column;
  1182. }
  1183. .qrimgBox{
  1184. width: 562rpx;
  1185. height: 704rpx;
  1186. background: #FFFFFF;
  1187. border-radius: 24rpx;
  1188. }
  1189. .qrTitle{
  1190. font-size: 30rpx;
  1191. font-family: PingFangSC-Medium, PingFang SC;
  1192. font-weight: 500;
  1193. color: #333333;
  1194. border-bottom: 1px solid #EEEEEE;
  1195. text-align: center;
  1196. line-height: 90rpx;
  1197. position: relative;
  1198. }
  1199. .qrimgchahao{
  1200. width: 38rpx;
  1201. height: 38rpx;
  1202. position: absolute;
  1203. top: 26rpx;
  1204. right: 20rpx;
  1205. }
  1206. .qrms{
  1207. font-weight: 400;
  1208. color: #999999;
  1209. line-height: 37rpx;
  1210. font-size: 26rpx;
  1211. padding-top: 23rpx;
  1212. text-align: center;
  1213. }
  1214. .qrms2{
  1215. font-weight: 400;
  1216. color: #999999;
  1217. line-height: 37rpx;
  1218. font-size: 26rpx;
  1219. text-align: center;
  1220. }
  1221. .qrimg{
  1222. width: 328rpx;
  1223. height: 328rpx;
  1224. }
  1225. .qrBtn{
  1226. width: 292rpx;
  1227. height: 64rpx;
  1228. background: #EC0F0A;
  1229. border-radius: 32rpx;
  1230. color: #FFFFFF;
  1231. line-height: 64rpx;
  1232. text-align: center;
  1233. margin: 0 auto;
  1234. margin-top:40rpx;
  1235. }
  1236. .releaseVersion {
  1237. font-size: 24rpx;
  1238. font-family: PingFangSC-Regular, PingFang SC;
  1239. font-weight: 400;
  1240. color: #666666;
  1241. padding-top: 10rpx;
  1242. padding-bottom: 30rpx;
  1243. text-align: center;
  1244. }
  1245. button::after {
  1246. border: none;
  1247. }
  1248. button {
  1249. position: relative;
  1250. display: block;
  1251. margin-left: 0;
  1252. margin-right: 0;
  1253. padding-left: 0px;
  1254. padding-right: 0px;
  1255. box-sizing: border-box;
  1256. // font-size: 18px;
  1257. text-align: center;
  1258. text-decoration: none;
  1259. // line-height: 1;
  1260. line-height: 1.35;
  1261. // border-radius: 5px;
  1262. -webkit-tap-highlight-color: transparent;
  1263. overflow: hidden;
  1264. color: #000000;
  1265. background-color: #fff;
  1266. height: 100%;
  1267. }
  1268. .box {
  1269. width: 100vw;
  1270. min-height: 100vh;
  1271. background: #F4F5F7;
  1272. /* padding-bottom: 60rpx; */
  1273. }
  1274. .top {
  1275. height: 300rpx;
  1276. padding: 20rpx 24rpx 0;
  1277. /* background-color: #EC0F0A; */
  1278. border-radius: 0 0 5% 5%;
  1279. }
  1280. .customerMes {
  1281. display: flex;
  1282. }
  1283. .mes {
  1284. margin-left: 20rpx;
  1285. padding-top: 14rpx;
  1286. }
  1287. .nick {
  1288. margin-bottom: 5rpx;
  1289. display: flex;
  1290. justify-content: flex-start;
  1291. align-items: center;
  1292. }
  1293. .nickName {
  1294. font-size: 36rpx;
  1295. color: #010000;
  1296. font-weight: bold;
  1297. line-height: 48rpx;
  1298. height: 48rpx;
  1299. overflow: hidden; /*内容会被修剪,并且其余内容是不可见的*/
  1300. text-overflow:ellipsis; /*显示省略符号来代表被修剪的文本。*/
  1301. white-space: nowrap; /*文本不换行*/
  1302. }
  1303. .nickName2 {
  1304. font-size: 30rpx;
  1305. color: #010000;
  1306. font-weight: bold;
  1307. line-height: 48rpx;
  1308. height: 48rpx;
  1309. overflow: hidden; /*内容会被修剪,并且其余内容是不可见的*/
  1310. text-overflow:ellipsis; /*显示省略符号来代表被修剪的文本。*/
  1311. white-space: nowrap; /*文本不换行*/
  1312. }
  1313. .grade {
  1314. margin-left: 15rpx;
  1315. font-size: 22rpx;
  1316. color: #FFFFFF;
  1317. padding: 0rpx 10rpx;
  1318. border: 1px solid #FFFFFF;
  1319. border-radius: 18rpx;
  1320. height: 26rpx;
  1321. line-height: 28rpx;
  1322. }
  1323. .phone {
  1324. font-size: 24rpx;
  1325. color: #010000;
  1326. }
  1327. .padingBox{
  1328. padding: 0 20rpx;
  1329. }
  1330. .headerBox {
  1331. padding: 26rpx 24rpx;
  1332. display: flex;
  1333. justify-content: center;
  1334. /* justify-content: space-around; */
  1335. }
  1336. .headerBox2{
  1337. background: #FFFFFF;
  1338. border-radius: 16rpx;
  1339. margin-bottom: 20rpx;
  1340. margin-top: 20rpx;
  1341. }
  1342. .quan {
  1343. display: flex;
  1344. flex-direction: column;
  1345. align-items: center;
  1346. width: 33%;
  1347. }
  1348. .numStr {
  1349. font-size: 34rpx;
  1350. font-weight: bold;
  1351. color: #9A9A9A;
  1352. line-height: 45rpx;
  1353. }
  1354. .numStr2{
  1355. font-size: 40rpx;
  1356. font-weight: 500;
  1357. color: #FFFFFF;
  1358. line-height: 60rpx;
  1359. }
  1360. .nameStr {
  1361. font-size: 24rpx;
  1362. color: #222222;
  1363. }
  1364. .orderBox {
  1365. margin: 0rpx 24rpx;
  1366. background: #FFFFFF;
  1367. padding: 30rpx 20rpx;
  1368. border-radius: 10rpx;
  1369. margin-top: 20rpx;
  1370. }
  1371. .orderTitle {
  1372. font-weight: 500;
  1373. font-size: 30rpx;
  1374. color: #0B0B0B;
  1375. display: flex;justify-content: space-between;
  1376. }
  1377. .allOrder{
  1378. font-weight: 400;
  1379. font-size: 22rpx;
  1380. color: #939393;
  1381. display: flex;
  1382. }
  1383. .allOrderIcon{
  1384. width: 20rpx;height: 20rpx;margin-top: 6rpx;
  1385. }
  1386. .orderAll {
  1387. display: flex;
  1388. justify-content: space-between;
  1389. align-items: center;
  1390. }
  1391. .orderLine {
  1392. width: 25%;
  1393. text-align: center;
  1394. }
  1395. .orderLineImg {
  1396. width: 60rpx;
  1397. height: 60rpx;
  1398. }
  1399. .orderLineTxt {
  1400. font-size: 24rpx;
  1401. color: #333333;
  1402. }
  1403. .orderImgBox {
  1404. text-align: center;
  1405. position: relative;
  1406. }
  1407. .orderLIneBox {
  1408. display: flex;
  1409. justify-content: space-between;
  1410. padding-top: 30rpx;
  1411. }
  1412. .orderNum {
  1413. height: 26rpx;
  1414. line-height: 26rpx;
  1415. background: #EC0F0A;
  1416. padding: 0 8rpx;
  1417. border-radius: 13rpx;
  1418. color: #FFFFFF;
  1419. font-size: 20rpx;
  1420. position: absolute;
  1421. top: -10rpx;
  1422. left: 90rpx;
  1423. z-index: 11;
  1424. }
  1425. .big_rightArrow {
  1426. margin-right: 20rpx;
  1427. width: 30rpx;
  1428. height: 30rpx;
  1429. }
  1430. .rowBoxBg {
  1431. margin: 20rpx 24rpx;
  1432. background: #FFFFFF;
  1433. border-radius: 16rpx;
  1434. overflow: hidden;
  1435. }
  1436. .rowBox {
  1437. display: flex;
  1438. justify-content: space-between;
  1439. background: #FFFFFF;
  1440. padding: 35rpx 0rpx;
  1441. border-radius: 10rpx;
  1442. align-items: center;
  1443. }
  1444. .leftView {
  1445. display: flex;
  1446. align-items: center;
  1447. }
  1448. .rightView {
  1449. display: flex;
  1450. align-items: center;
  1451. }
  1452. .liftIcon {
  1453. width: 34rpx;
  1454. height: 34rpx;
  1455. margin: 0rpx 20rpx;
  1456. }
  1457. .rowTitle {
  1458. color: #3C3C3C;
  1459. font-size: 28rpx;
  1460. }
  1461. .signOut {
  1462. width: 702rpx;
  1463. height: 98rpx;
  1464. background: #FFFFFF;
  1465. border-radius: 10rpx;
  1466. font-size: 30rpx;
  1467. color: #FF3B30;
  1468. line-height: 98rpx;
  1469. text-align: center;
  1470. margin: 40rpx 24rpx;
  1471. }
  1472. .shopBox {
  1473. padding: 20rpx;
  1474. margin: 20rpx 24rpx;
  1475. background-color: #FFFFFF;
  1476. border-radius: 10rpx;
  1477. }
  1478. .shopCont {
  1479. display: flex;
  1480. justify-content: space-between;
  1481. align-items: center;
  1482. }
  1483. .shopName {
  1484. font-size: 30rpx;
  1485. font-weight: bold;
  1486. color: #3C3C3C;
  1487. line-height: 42rpx;
  1488. }
  1489. .appraiseBox {
  1490. padding: 5rpx 0;
  1491. /* height: 62rpx;
  1492. */
  1493. display: flex;
  1494. align-items: center;
  1495. }
  1496. .appraise {
  1497. color: #EC0F0A;
  1498. font-size: 38rpx;
  1499. font-weight: bold;
  1500. }
  1501. .line {
  1502. margin: 0 12rpx;
  1503. width: 1rpx;
  1504. height: 30rpx;
  1505. }
  1506. .appraiseCount {
  1507. font-size: 24rpx;
  1508. font-weight: 400;
  1509. color: #666666;
  1510. flex-grow: 1;
  1511. margin-top: 10rpx;
  1512. }
  1513. .rightArrow {
  1514. width: 7rpx;
  1515. height: 15rpx;
  1516. margin-left: 16rpx;
  1517. }
  1518. .shopRightBox {
  1519. display: flex;
  1520. justify-content: space-between;
  1521. }
  1522. .address {
  1523. display: flex;
  1524. justify-content: space-between;
  1525. align-items: center;
  1526. }
  1527. .Address,
  1528. .shopTime,
  1529. .distance {
  1530. color: #999999;
  1531. font-size: 24rpx;
  1532. /* 隐藏文字显示 ...不换行 */
  1533. overflow: hidden;
  1534. text-overflow: ellipsis;
  1535. white-space: nowrap;
  1536. }
  1537. .shopRightBox {}
  1538. .shopRightImg {
  1539. width: 44rpx;
  1540. height: 45rpx;
  1541. }
  1542. .authorizBox {
  1543. width: 100vw;
  1544. height: 100vh;
  1545. background: rgba(0, 0, 0, 0.5);
  1546. position: fixed;
  1547. top: 0;
  1548. left: 0;
  1549. z-index: 11;
  1550. }
  1551. .authorizCont {
  1552. margin-top: 30vh;
  1553. width: 564rpx;
  1554. height: 408rpx;
  1555. background: #FFFFFF;
  1556. border-radius: 24rpx;
  1557. margin-left: 93rpx;
  1558. position: relative;
  1559. }
  1560. .authorizCloseImg {
  1561. width: 62rpx;
  1562. height: 62rpx;
  1563. }
  1564. .sqLogoBox {
  1565. width: 180rpx;
  1566. height: 180rpx;
  1567. background: #FFFFFF;
  1568. border-radius: 90rpx;
  1569. text-align: center;
  1570. position: absolute;
  1571. top: -50rpx;
  1572. left: 192rpx;
  1573. }
  1574. .authorizName {
  1575. color: #333333;
  1576. line-height: 42rpx;
  1577. font-size: 30rpx;
  1578. text-align: center;
  1579. padding-top: 58rpx;
  1580. }
  1581. .authorizMs {
  1582. color: #999999;
  1583. line-height: 36rpx;
  1584. font-size: 26rpx;
  1585. width: 452rpx;
  1586. padding-top: 24rpx;
  1587. text-align: center;
  1588. margin-left: 56rpx;
  1589. }
  1590. .authorizContbutton{
  1591. width: 210rpx;
  1592. height: 66rpx;
  1593. background: #EC0F0A;
  1594. border-radius: 44rpx;
  1595. line-height: 66rpx;
  1596. text-align: center;
  1597. font-size:30rpx;
  1598. color: #FFFFFF;
  1599. margin-right: 40rpx;
  1600. }
  1601. .sqRefuse{
  1602. width: 210rpx;
  1603. height: 66rpx;
  1604. border: 1px solid #eaeaea;
  1605. line-height: 66rpx;
  1606. border-radius: 36rpx;
  1607. text-align: center;
  1608. font-size:30rpx;
  1609. margin-left:40rpx;
  1610. color: #999999;
  1611. }
  1612. .sqLine{
  1613. margin-top: 62rpx;
  1614. display: flex;
  1615. justify-content: space-between;
  1616. }
  1617. .test{
  1618. }
  1619. .carjt{
  1620. width: 10rpx;height: 20rpx;
  1621. margin-top: 8rpx;
  1622. }
  1623. .carInfobrand{
  1624. text-align: center;
  1625. width: 150rpx;
  1626. white-space: nowrap; /* 确保文本在一行内显示 */
  1627. overflow: hidden; /* 超出容器部分隐藏 */
  1628. text-overflow: ellipsis;
  1629. }
  1630. .hjtIcon{
  1631. width: 10rpx;height: 20rpx;
  1632. margin-top: 8rpx;
  1633. margin-left: 6rpx;
  1634. }
  1635. .phone{
  1636. display: flex;
  1637. }
  1638. </style>