user.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065
  1. <template>
  2. <view class="box">
  3. <view class="top" :style="{background:'#'+themeColor}">
  4. <view class="customerMes">
  5. <image @click="updateUserInfo" v-if="headImg" :src="headImg" mode=""
  6. style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
  7. <image @click="updateUserInfo" v-else src="../../static/img/icon_me.png" mode=""
  8. style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
  9. <view class="mes">
  10. <view class="nick">
  11. <view class="nickName" v-if="nickName">{{nickName}}</view>
  12. <view class="grade" v-if="numList.levelName">{{numList.levelName}}</view>
  13. </view>
  14. <view class="phone">{{phone}} <span @click="seeQr">{{numList.customerInfo.wxMiniV2OpenID?' / 已绑定微信>':' / 未绑定微信>'}}</span> </view>
  15. </view>
  16. </view>
  17. <view class="headerBox">
  18. <view class="quan" @click="gonavigateTo('../index/discountCard')">
  19. <view class="numStr">{{numList.count?numList.count:0}}</view>
  20. <view class="nameStr">优惠券</view>
  21. </view>
  22. <view class="quan" @click="gonavigateTo('../integral/integral?totalIntegral='+numList.totalIntegral)">
  23. <view class="numStr">{{numList.totalIntegral?numList.totalIntegral:0}}</view>
  24. <view class="nameStr">积分</view>
  25. </view>
  26. <view class="quan" @click="gonavigateTo('../index/vipCard')">
  27. <view class="numStr">{{numList.cardNum?numList.cardNum:0}}</view>
  28. <view class="nameStr">会员卡</view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 我的订单 -->
  33. <view class="orderBox">
  34. <view class="orderTitle">我的订单</view>
  35. <view class="orderLIneBox">
  36. <view class="orderLine" @click="goorder(1)">
  37. <view class="orderImgBox">
  38. <view class="orderNum" v-show="numList.waitPurchaseSize>0">
  39. {{numList.waitPurchaseSize>99?'99+':numList.waitPurchaseSize}}
  40. </view>
  41. <image src="../../static/img/icon_daifukuan.png" mode="" class="orderLineImg"></image>
  42. </view>
  43. <view class="orderLineTxt">待付款</view>
  44. </view>
  45. <view class="orderLine" @click="goorder(2)">
  46. <view class="orderImgBox">
  47. <view class="orderNum" v-show="numList.waitServiceSize>0">
  48. {{numList.waitServiceSize>99?'99+':numList.waitServiceSize}}
  49. </view>
  50. <image src="../../static/img/icon_daifuwu.png" mode="" class="orderLineImg"></image>
  51. </view>
  52. <view class="orderLineTxt">待服务</view>
  53. </view>
  54. <view class="orderLine" @click="goorder(3)">
  55. <view class="orderImgBox">
  56. <view class="orderNum" v-show="numList.hasOverSize>0">
  57. {{numList.hasOverSize>99?'99+':numList.hasOverSize}}
  58. </view>
  59. <image src="../../static/img/icon_yiwancheng.png" mode="" class="orderLineImg"></image>
  60. </view>
  61. <view class="orderLineTxt">已完成</view>
  62. </view>
  63. <view class="orderLine" @click="goorder(0)">
  64. <view class="orderImgBox">
  65. <view class="orderNum" v-show="numList.allSize>0">{{numList.allSize>99?'99+':numList.allSize}}
  66. </view>
  67. <image src="../../static/img/icon_allorder.png" mode="" class="orderLineImg"></image>
  68. </view>
  69. <view class="orderLineTxt">全部</view>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 店铺信息 -->
  74. <view class="shopBox" v-if="userInfo">
  75. <view class="shopCont">
  76. <view class="shopName">{{numList.shopInfo.shopName}}</view>
  77. <view class="shopRightBox">
  78. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"
  79. style="margin-right: 67rpx;" @click="map"></image>
  80. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg" @click="call"></image>
  81. </view>
  82. </view>
  83. <view v-if="numList.isShowScore == 1 && numList.isShowEvaluate == 1" class="appraiseBox">
  84. <view v-if="numList.isShowScore == 1 && numList.shopInfo.miniV2ShopScore" class="appraise">
  85. {{numList.shopInfo.miniV2ShopScore}}
  86. <span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
  87. </view>
  88. <view v-if="numList.isShowScore == 1 && !numList.shopInfo.miniV2ShopScore" class="appraise"
  89. style='font-size: 26rpx;'>暂无评分</span>
  90. </view>
  91. <view v-if="numList.isShowScore == 1" class="line"></view>
  92. <view @click="goShopAppraiseList()" v-if="numList.isShowEvaluate == 1 && numList.evaluateCount "
  93. class="appraiseCount">评价数
  94. {{numList.evaluateCount}}
  95. <image v-if="numList.isShowEvaluate == 1" class="rightArrow"
  96. src="../../static/timg/icon_arrow_right.png" mode=""></image>
  97. </view>
  98. <view v-if="numList.isShowEvaluate == 1 && !numList.evaluateCount " class="appraiseCount">暂无评价
  99. </view>
  100. </view>
  101. <view class="shopTime" v-if="numList.shopInfo.startTime && numList.shopInfo.endTime">
  102. {{numList.shopInfo.startTime}}-{{numList.shopInfo.endTime}}
  103. </view>
  104. <view class="address">
  105. <view class="Address">
  106. {{numList.shopInfo.provinceName?numList.shopInfo.provinceName:''}}
  107. {{numList.shopInfo.cityName?numList.shopInfo.cityName:''}}
  108. {{numList.shopInfo.areaName?numList.shopInfo.areaName:''}}
  109. {{numList.shopInfo.address?numList.shopInfo.address:''}}
  110. </view>
  111. <!-- <view class="distance" v-if="numList.shopInfo.distance&&numList.shopInfo.distance!= '0.00'">{{numList.shopInfo.distance}}km</view> -->
  112. </view>
  113. </view>
  114. <!-- 我的 相关 -->
  115. <view class="rowBoxBg">
  116. <view class="rowBox" @click="gonavigateTo('../user/expertServices')">
  117. <view class="leftView">
  118. <image src="../../static/img/icon_me1.png" mode="" class="liftIcon"></image>
  119. <view class="rowTitle">服务专家</view>
  120. </view>
  121. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  122. </view>
  123. <view class="rowBox" @click="gonavigateTo('./addCar/cailist?type=3')">
  124. <view class="leftView">
  125. <image src="../../static/img/icon_me2.png" mode="" class="liftIcon"></image>
  126. <view class="rowTitle">我的车库</view>
  127. </view>
  128. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  129. </view>
  130. <view class="rowBox" @click="gonavigateTo('myBespeak')">
  131. <view class="leftView">
  132. <image src="../../static/img/icon_me3.png" mode="" class="liftIcon"></image>
  133. <view class="rowTitle">我的预约</view>
  134. </view>
  135. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  136. </view>
  137. <view class="rowBox" @click="gonavigateTo('historySpend')">
  138. <view class="leftView">
  139. <image src="../../static/img/icon_me4.png" mode="" class="liftIcon"></image>
  140. <view class="rowTitle">历史消费</view>
  141. </view>
  142. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  143. </view>
  144. <view class="rowBox" @click="gonavigateTo('checkReport')">
  145. <view class="leftView">
  146. <image src="../../static/img/icon_me5.png" mode="" class="liftIcon"></image>
  147. <view class="rowTitle">车检报告</view>
  148. </view>
  149. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  150. </view>
  151. <view class="rowBox" @click="gonavigateTo('myAppraise')">
  152. <view class="leftView">
  153. <image src="../../static/img/icon_pingjia.png" mode="" class="liftIcon"></image>
  154. <view class="rowTitle">我的评价</view>
  155. </view>
  156. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  157. </view>
  158. <button open-type="share" class="rowBox">
  159. <view class="leftView">
  160. <image src="../../static/img/icon_me6.png" mode="" class="liftIcon"></image>
  161. <view class="rowTitle">分享给好友</view>
  162. </view>
  163. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  164. </button>
  165. <view class="rowBox" @click="gonavigateTo('feedBack')">
  166. <view class="leftView">
  167. <image src="../../static/img/icon_me7.png" mode="" class="liftIcon"></image>
  168. <view class="rowTitle">意见反馈</view>
  169. </view>
  170. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  171. </view>
  172. <view class="rowBox" @click="gonavigateTo('../partner/partner')"
  173. v-if="numList.customerInfo.pState==1&&numList.shopSettings.partnerDisabled">
  174. <view class="leftView">
  175. <image src="../../static/img/icon_hehuoren.png" mode="" class="liftIcon"></image>
  176. <view class="rowTitle">车主合伙人</view>
  177. </view>
  178. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  179. </view>
  180. <view class="rowBox" @click="gonavigateTo('../referral/referral')"
  181. v-if="numList.customerInfo.rebateState==1&&numList.shopSettings.introductionDisabled">
  182. <view class="leftView">
  183. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  184. <view class="rowTitle">客户转介绍</view>
  185. </view>
  186. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  187. </view>
  188. <!-- <view class="rowBox" @click="gonavigateTo('../report/complete?id=278569FB-6F21-47AD-8B66-D62D2EA6981D')">
  189. <view class="leftView">
  190. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  191. <view class="rowTitle">完工报告</view>
  192. </view>
  193. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  194. </view>
  195. <view class="rowBox" @click="gonavigateTo('../report/working?id=56D5F8C1-9F11-40BA-8937-B4AABD4666B5')">
  196. <view class="leftView">
  197. <image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
  198. <view class="rowTitle">施工报告</view>
  199. </view>
  200. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  201. </view> -->
  202. <!-- 先隐藏 -->
  203. <!-- <view class="rowBox" @click="gonavigateTo('')">
  204. <view class="leftView">
  205. <image src="../../static/img/icon_me8.png" mode="" class="liftIcon"></image>
  206. <view class="rowTitle">清除缓存</view>
  207. </view>
  208. <image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
  209. </view> -->
  210. </view>
  211. <view class="releaseVersion">版本号:{{release_version}}</view>
  212. <!-- <view class="signOut" @click="signOut">退出登录</view> -->
  213. <!-- 手机号授权 -->
  214. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  215. <view class="authorizCont" @click.stop="">
  216. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  217. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  218. <button class="authorizContbutton" type="default" open-type="getPhoneNumber"
  219. @getphonenumber="decryptPhoneNumber">授权</button>
  220. </view>
  221. <view style="text-align: center;padding-top: 56rpx;">
  222. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  223. </view>
  224. </view>
  225. <!-- <image :src="qrimg" mode=""></image> -->
  226. <view class="qrBox" v-if="qrSHow">
  227. <view class="qrimgBox">
  228. <view class="qrTitle">微信绑定
  229. <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
  230. </view>
  231. <view class="qrms">扫描/长按下方二维码进行绑定</view>
  232. <view class="qrms2">绑定后可接收微信消息通知</view>
  233. <view style="text-align: center;padding-top: 30rpx;">
  234. <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
  235. </view>
  236. <view class="qrBtn" @click="qrclose">我知道了</view>
  237. </view>
  238. </view>
  239. </view>
  240. </template>
  241. <script>
  242. export default {
  243. data() {
  244. return {
  245. userInfo: '',
  246. shopData: '',
  247. numList: '',
  248. uid: '',
  249. headImg: '',
  250. location: {
  251. lng: '',
  252. lat: '',
  253. },
  254. authorizShow: false,
  255. code: '',
  256. wxOpenData: '',
  257. nickName: '',
  258. phone: '',
  259. ext: '',
  260. themeColor: '',
  261. release_version: '',
  262. qrimg:'',
  263. qrSHow:false,
  264. }
  265. },
  266. onLoad(opt) {
  267. this.ext = this.$common.getExtStoreId();
  268. this.themeColor = uni.getStorageSync("themeColor");
  269. if (this.themeColor) {
  270. if (this.themeColor == '6F2BE8') {
  271. var backgroundImage = '/static/tabimg/me6F2BE8.png'
  272. }
  273. if (this.themeColor == '1677FF') {
  274. var backgroundImage = '/static/tabimg/me1677FF.png'
  275. }
  276. if (this.themeColor == 'FF4F00') {
  277. var backgroundImage = '/static/tabimg/meFF4F00.png'
  278. }
  279. if (this.themeColor == 'D53533') {
  280. var backgroundImage = '/static/tabimg/me1.png'
  281. }
  282. uni.setTabBarStyle({
  283. // color: '#FF0000',
  284. selectedColor: '#' + this.themeColor,
  285. })
  286. uni.setTabBarItem({
  287. index: 3,
  288. text: '我的',
  289. selectedIconPath: backgroundImage
  290. })
  291. }
  292. uni.setNavigationBarColor({
  293. frontColor: "#ffffff",
  294. backgroundColor: '#' + this.themeColor
  295. })
  296. this.getVersionInfo()
  297. // const accountInfo = wx.getAccountInfoSync();
  298. // var version_number = accountInfo.miniProgram.version;
  299. // console.log(version_number)
  300. },
  301. onShow() {
  302. const wxOpenData = this.$store.state.wxOpenData;
  303. this.wxOpenData = wxOpenData
  304. console.log("onshowuser")
  305. this.userInfo = this.$store.state.userInfo;
  306. console.log(this.userInfo)
  307. if (this.userInfo) {
  308. this.queryMyDetail();
  309. } else {
  310. //console.log("授权")
  311. //this.authorizShow = true;
  312. }
  313. if (wxOpenData) {
  314. this.uid = wxOpenData.loginInfo.uid;
  315. }
  316. },
  317. methods: {
  318. seeQr(){
  319. // this.authorizShow = true;
  320. // return false;
  321. if (this.userInfo) {
  322. } else {
  323. this.authorizShow = true;
  324. return false;
  325. }
  326. uni.showLoading({
  327. title: '加载中'
  328. })
  329. this.$request.httpBinary('wxV2/createQrCode', {
  330. type:'bindWx',
  331. customerId:this.numList.customerInfo.id,
  332. unionID:this.numList.customerInfo.unionID,
  333. }, 'GET').then(res => {
  334. uni.hideLoading();
  335. this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
  336. this.qrSHow=true;
  337. //this.img= uni.arrayBufferToBase64(res)
  338. //console.log('list+=', this.queryShopList);
  339. })
  340. },
  341. qrclose(){
  342. this.qrSHow=false;
  343. },
  344. goShopAppraiseList() {
  345. uni.navigateTo({
  346. url: 'ShopAppraiseList?shopID=' + this.numList.shopInfo.id
  347. })
  348. },
  349. getVersionInfo() {
  350. this.$http('miniApp2/sys/getVersionInfo', {
  351. appId: this.ext.appId,
  352. }, 'POST').then(res => {
  353. this.release_version = res.data.release_version
  354. })
  355. },
  356. updateUserInfo() {
  357. var that = this;
  358. uni.getUserProfile({
  359. lang: 'zh_CN',
  360. desc: '登录',
  361. success: (res) => {
  362. console.log(res);
  363. that.headImg = res.userInfo.avatarUrl;
  364. that.nickName = res.userInfo.nickName;
  365. that.$http('miniApp2/sys/updateUserInfo', {
  366. nickName: res.userInfo.nickName,
  367. unionId: that.ext.unionId,
  368. headImg: res.userInfo.avatarUrl,
  369. openId: that.wxOpenData.openid
  370. }, 'POST').then(res => {
  371. })
  372. },
  373. fail: (res) => {
  374. console.log(res)
  375. }
  376. });
  377. },
  378. decryptPhoneNumber: function(e) {
  379. console.log(e);
  380. this.code = e.detail.code
  381. this.wxPhoneLogin()
  382. this.authorizShow = false;
  383. },
  384. wxPhoneLogin() {
  385. var that = this;
  386. this.$http('miniApp2/sys/wxPhoneLogin', {
  387. appId: this.ext.appId,
  388. unionId: this.ext.unionId,
  389. code: this.code,
  390. openId: this.wxOpenData.openid
  391. }, 'POST').then(res => {
  392. var data = res.data;
  393. if (data.loginInfo) {
  394. this.userInfo = data.loginInfo.openUser;
  395. this.wxOpenData = data.loginInfo;
  396. this.numList=data.loginInfo
  397. this.headImg = data.loginInfo.openUser.headImg;
  398. this.nickName = data.loginInfo.openUser.nickName;
  399. this.phone = data.loginInfo.openUser.mobilePhone;
  400. this.$store.commit('mutationswxOpenData', data)
  401. this.$store.commit('mutationsuserInfo', this.userInfo)
  402. /*setTimeout(() => {
  403. that.queryMyDetail()
  404. }, 1000); */
  405. that.queryMyDetail()
  406. }
  407. })
  408. },
  409. map() {
  410. console.log("打开地图")
  411. var that = this;
  412. if (!that.numList.shopInfo.lat || !that.numList.shopInfo.lng) {
  413. uni.showToast({
  414. title: '该店铺未设置定位',
  415. icon: 'none',
  416. duration: 3000
  417. });
  418. } else {
  419. uni.openLocation({
  420. latitude: Number(that.numList.shopInfo.lat),
  421. longitude: Number(that.numList.shopInfo.lng),
  422. name: that.numList.shopInfo.shopName,
  423. address: that.numList.shopInfo.provinceName + that.numList.shopInfo.cityName + that.numList
  424. .shopInfo.areaName + that.numList.shopInfo.address,
  425. success: function() {
  426. console.log('success');
  427. },
  428. fail(err) {
  429. console.log(err)
  430. }
  431. });
  432. }
  433. },
  434. call() {
  435. if (this.userInfo) {
  436. } else {
  437. this.authorizShow = true;
  438. return false;
  439. }
  440. uni.makePhoneCall({
  441. phoneNumber: this.numList.shopInfo.mobilePhone
  442. });
  443. },
  444. goorder(num) {
  445. if (this.userInfo) {
  446. } else {
  447. this.authorizShow = true;
  448. return false;
  449. }
  450. uni.navigateTo({
  451. url: './myOrder/myOrder?num=' + num
  452. })
  453. },
  454. queryMyDetail() {
  455. console.log("getinfo")
  456. console.log(this.$store.state.wxOpenData)
  457. uni.showLoading({
  458. title: '加载中'
  459. })
  460. this.$http('openreservation/getInfo', {
  461. lat: this.location.lat ? this.location.lat : '',
  462. lng: this.location.lng ? this.location.lng : '',
  463. }, 'GET').then(res => {
  464. uni.hideLoading();
  465. this.numList = res.data
  466. this.headImg = res.data.openUser.headImg;
  467. this.nickName = res.data.openUser.nickName;
  468. this.phone = res.data.openUser.mobilePhone;
  469. })
  470. },
  471. gonavigateTo(url) {
  472. if (this.userInfo) {
  473. uni.navigateTo({
  474. url: url
  475. })
  476. } else {
  477. this.authorizShow = true;
  478. }
  479. /* uni.navigateTo({
  480. url: url
  481. }) */
  482. },
  483. signOut() {
  484. //uni.clearStorageSync();
  485. uni.removeStorageSync('logodata');
  486. // uni.navigateTo({
  487. // url: '../login/login'
  488. // })
  489. },
  490. },
  491. onShareAppMessage(res) {
  492. return {
  493. title: this.wxOpenData.miniAppName,
  494. //imageUrl:img,
  495. path: 'pages/index/index',
  496. success(res) {
  497. uni.showToast({
  498. title: '分享成功'
  499. })
  500. },
  501. fail(res) {
  502. uni.showToast({
  503. title: '分享失败',
  504. icon: 'none',
  505. duration: 3000
  506. })
  507. }
  508. }
  509. },
  510. // 下拉刷新
  511. onPullDownRefresh() {
  512. this.queryMyDetail()
  513. setTimeout(function() {
  514. uni.stopPullDownRefresh();
  515. }, 1000);
  516. },
  517. }
  518. </script>
  519. <style scoped>
  520. .qrBox{
  521. position: fixed;
  522. width: 100vw;
  523. height: 100vh;
  524. background: rgba(0,0,0,0.5);
  525. left: 0;
  526. top: 0;
  527. z-index: 11;
  528. display: flex;
  529. justify-content: center;
  530. align-items: center;
  531. flex-direction: column;
  532. }
  533. .qrimgBox{
  534. width: 562rpx;
  535. height: 704rpx;
  536. background: #FFFFFF;
  537. border-radius: 24rpx;
  538. }
  539. .qrTitle{
  540. font-size: 30rpx;
  541. font-family: PingFangSC-Medium, PingFang SC;
  542. font-weight: 500;
  543. color: #333333;
  544. border-bottom: 1px solid #EEEEEE;
  545. text-align: center;
  546. line-height: 90rpx;
  547. position: relative;
  548. }
  549. .qrimgchahao{
  550. width: 38rpx;
  551. height: 38rpx;
  552. position: absolute;
  553. top: 26rpx;
  554. right: 20rpx;
  555. }
  556. .qrms{
  557. font-weight: 400;
  558. color: #999999;
  559. line-height: 37rpx;
  560. font-size: 26rpx;
  561. padding-top: 23rpx;
  562. text-align: center;
  563. }
  564. .qrms2{
  565. font-weight: 400;
  566. color: #999999;
  567. line-height: 37rpx;
  568. font-size: 26rpx;
  569. text-align: center;
  570. }
  571. .qrimg{
  572. width: 328rpx;
  573. height: 328rpx;
  574. }
  575. .qrBtn{
  576. width: 292rpx;
  577. height: 64rpx;
  578. background: #D53533;
  579. border-radius: 32rpx;
  580. color: #FFFFFF;
  581. line-height: 64rpx;
  582. text-align: center;
  583. margin: 0 auto;
  584. margin-top:40rpx;
  585. }
  586. .releaseVersion {
  587. font-size: 24rpx;
  588. font-family: PingFangSC-Regular, PingFang SC;
  589. font-weight: 400;
  590. color: #666666;
  591. padding: 40rpx;
  592. text-align: center;
  593. }
  594. button::after {
  595. border: none;
  596. }
  597. button {
  598. position: relative;
  599. display: block;
  600. margin-left: 0;
  601. margin-right: 0;
  602. padding-left: 0px;
  603. padding-right: 0px;
  604. box-sizing: border-box;
  605. // font-size: 18px;
  606. text-align: center;
  607. text-decoration: none;
  608. // line-height: 1;
  609. line-height: 1.35;
  610. // border-radius: 5px;
  611. -webkit-tap-highlight-color: transparent;
  612. overflow: hidden;
  613. color: #000000;
  614. background-color: #fff;
  615. height: 100%;
  616. }
  617. .box {
  618. width: 100vw;
  619. min-height: 100vh;
  620. background: #F4F5F7;
  621. padding-bottom: 60rpx;
  622. }
  623. .top {
  624. height: 350rpx;
  625. padding: 20rpx 24rpx 0;
  626. background-color: #D53533;
  627. border-radius: 0 0 5% 5%;
  628. }
  629. .customerMes {
  630. display: flex;
  631. }
  632. .mes {
  633. margin-left: 20rpx;
  634. }
  635. .nick {
  636. margin-bottom: 5rpx;
  637. display: flex;
  638. justify-content: flex-start;
  639. align-items: center;
  640. }
  641. .nickName {
  642. font-size: 34rpx;
  643. color: #FFFFFF;
  644. font-weight: bold;
  645. line-height: 48rpx;
  646. height: 48rpx;
  647. }
  648. .grade {
  649. margin-left: 15rpx;
  650. font-size: 24rpx;
  651. color: #FFFFFF;
  652. padding: 0rpx 10rpx;
  653. border: 1rpx solid #FFFFFF;
  654. border-radius: 4rpx;
  655. height: 36rpx;
  656. }
  657. .phone {
  658. font-size: 24rpx;
  659. color: #FFFFFF;
  660. }
  661. .headerBox {
  662. padding: 30rpx 24rpx;
  663. display: flex;
  664. justify-content: space-around;
  665. }
  666. .quan {
  667. display: flex;
  668. flex-direction: column;
  669. align-items: center;
  670. height: 120rpx;
  671. }
  672. .numStr {
  673. font-size: 40rpx;
  674. font-weight: bold;
  675. color: #FFFFFF;
  676. line-height: 56rpx;
  677. }
  678. .nameStr {
  679. font-size: 24rpx;
  680. color: #FFFFFF;
  681. }
  682. .orderBox {
  683. margin: 0rpx 24rpx;
  684. background: #FFFFFF;
  685. padding: 30rpx 20rpx;
  686. border-radius: 10rpx;
  687. margin-top: -100rpx;
  688. }
  689. .orderTitle {
  690. font-size: 30rpx;
  691. color: #333333;
  692. font-weight: bold;
  693. }
  694. .orderAll {
  695. display: flex;
  696. justify-content: space-between;
  697. align-items: center;
  698. }
  699. .orderLine {
  700. width: 25%;
  701. text-align: center;
  702. }
  703. .orderLineImg {
  704. width: 60rpx;
  705. height: 60rpx;
  706. }
  707. .orderLineTxt {
  708. font-size: 24rpx;
  709. color: #333333;
  710. }
  711. .orderImgBox {
  712. text-align: center;
  713. position: relative;
  714. }
  715. .orderLIneBox {
  716. display: flex;
  717. justify-content: space-between;
  718. padding-top: 30rpx;
  719. }
  720. .orderNum {
  721. height: 26rpx;
  722. line-height: 26rpx;
  723. background: #FF0000;
  724. padding: 0 8rpx;
  725. border-radius: 13rpx;
  726. color: #FFFFFF;
  727. font-size: 20rpx;
  728. position: absolute;
  729. left: 90rpx;
  730. z-index: 11;
  731. }
  732. .big_rightArrow {
  733. margin-right: 20rpx;
  734. width: 30rpx;
  735. height: 30rpx;
  736. }
  737. .rowBoxBg {
  738. margin: 20rpx 24rpx;
  739. background: #FFFFFF;
  740. border-radius: 10rpx;
  741. }
  742. .rowBox {
  743. display: flex;
  744. justify-content: space-between;
  745. background: #FFFFFF;
  746. padding: 35rpx 0rpx;
  747. border-radius: 10rpx;
  748. align-items: center;
  749. }
  750. .leftView {
  751. display: flex;
  752. align-items: center;
  753. }
  754. .rightView {
  755. display: flex;
  756. align-items: center;
  757. }
  758. .liftIcon {
  759. width: 34rpx;
  760. height: 34rpx;
  761. margin: 0rpx 20rpx;
  762. }
  763. .rowTitle {
  764. color: #3C3C3C;
  765. font-size: 28rpx;
  766. }
  767. .signOut {
  768. width: 702rpx;
  769. height: 98rpx;
  770. background: #FFFFFF;
  771. border-radius: 10rpx;
  772. font-size: 30rpx;
  773. color: #FF3B30;
  774. line-height: 98rpx;
  775. text-align: center;
  776. margin: 40rpx 24rpx;
  777. }
  778. .shopBox {
  779. padding: 20rpx;
  780. margin: 20rpx 24rpx;
  781. background-color: #FFFFFF;
  782. border-radius: 10rpx;
  783. }
  784. .shopCont {
  785. display: flex;
  786. justify-content: space-between;
  787. align-items: center;
  788. }
  789. .shopName {
  790. font-size: 30rpx;
  791. font-weight: bold;
  792. color: #3C3C3C;
  793. line-height: 42rpx;
  794. }
  795. .appraiseBox {
  796. padding: 5rpx 0;
  797. margin-top: 10rpx;
  798. height: 62rpx;
  799. display: flex;
  800. align-items: center;
  801. }
  802. .appraise {
  803. color: #FF0000;
  804. font-size: 38rpx;
  805. font-weight: bold;
  806. }
  807. .line {
  808. margin: 0 12rpx;
  809. width: 1rpx;
  810. height: 30rpx;
  811. }
  812. .appraiseCount {
  813. font-size: 24rpx;
  814. font-weight: 400;
  815. color: #666666;
  816. flex-grow: 1;
  817. margin-top: 10rpx;
  818. }
  819. .rightArrow {
  820. width: 7rpx;
  821. height: 15rpx;
  822. margin-left: 16rpx;
  823. }
  824. .shopRightBox {
  825. display: flex;
  826. justify-content: space-between;
  827. }
  828. .address {
  829. display: flex;
  830. justify-content: space-between;
  831. align-items: center;
  832. }
  833. .Address,
  834. .shopTime,
  835. .distance {
  836. color: #999999;
  837. font-size: 24rpx;
  838. padding-top: 15rpx;
  839. /* 隐藏文字显示 ...不换行 */
  840. overflow: hidden;
  841. text-overflow: ellipsis;
  842. white-space: nowrap;
  843. }
  844. .shopRightBox {}
  845. .shopRightImg {
  846. width: 44rpx;
  847. height: 45rpx;
  848. }
  849. .authorizBox {
  850. width: 100vw;
  851. height: 100vh;
  852. background: rgba(0, 0, 0, 0.5);
  853. position: fixed;
  854. top: 0;
  855. left: 0;
  856. }
  857. .authorizCont {
  858. margin-top: 30vh;
  859. width: 564rpx;
  860. height: 408rpx;
  861. background: #FFFFFF;
  862. border-radius: 24rpx;
  863. margin-left: 93rpx;
  864. position: relative;
  865. }
  866. .authorizCloseImg {
  867. width: 62rpx;
  868. height: 62rpx;
  869. }
  870. .sqLogoBox {
  871. width: 180rpx;
  872. height: 180rpx;
  873. background: #FFFFFF;
  874. border-radius: 90rpx;
  875. text-align: center;
  876. position: absolute;
  877. top: -50rpx;
  878. left: 192rpx;
  879. }
  880. .authorizName {
  881. color: #333333;
  882. line-height: 42rpx;
  883. font-size: 30rpx;
  884. text-align: center;
  885. padding-top: 58rpx;
  886. }
  887. .authorizMs {
  888. color: #999999;
  889. line-height: 36rpx;
  890. font-size: 26rpx;
  891. width: 452rpx;
  892. padding-top: 24rpx;
  893. text-align: center;
  894. margin-left: 56rpx;
  895. }
  896. .authorizContbutton {
  897. width: 422rpx;
  898. height: 88rpx;
  899. background: #D53533;
  900. border-radius: 44rpx;
  901. line-height: 88rpx;
  902. text-align: center;
  903. font-size: 30rpx;
  904. color: #FFFFFF;
  905. margin-top: 62rpx;
  906. margin-left: 71rpx;
  907. }
  908. </style>