user.vue 26 KB

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