user.vue 27 KB

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