user.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
  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. width: 430rpx;
  657. overflow: hidden; /*内容会被修剪,并且其余内容是不可见的*/
  658. text-overflow:ellipsis; /*显示省略符号来代表被修剪的文本。*/
  659. white-space: nowrap; /*文本不换行*/
  660. }
  661. .grade {
  662. margin-left: 15rpx;
  663. font-size: 24rpx;
  664. color: #FFFFFF;
  665. padding: 0rpx 10rpx;
  666. border: 1rpx solid #FFFFFF;
  667. border-radius: 4rpx;
  668. height: 36rpx;
  669. }
  670. .phone {
  671. font-size: 24rpx;
  672. color: #FFFFFF;
  673. }
  674. .headerBox {
  675. padding: 30rpx 24rpx;
  676. display: flex;
  677. justify-content: space-around;
  678. }
  679. .quan {
  680. display: flex;
  681. flex-direction: column;
  682. align-items: center;
  683. height: 120rpx;
  684. }
  685. .numStr {
  686. font-size: 40rpx;
  687. font-weight: bold;
  688. color: #FFFFFF;
  689. line-height: 56rpx;
  690. }
  691. .nameStr {
  692. font-size: 24rpx;
  693. color: #FFFFFF;
  694. }
  695. .orderBox {
  696. margin: 0rpx 24rpx;
  697. background: #FFFFFF;
  698. padding: 30rpx 20rpx;
  699. border-radius: 10rpx;
  700. margin-top: -100rpx;
  701. }
  702. .orderTitle {
  703. font-size: 30rpx;
  704. color: #333333;
  705. font-weight: bold;
  706. }
  707. .orderAll {
  708. display: flex;
  709. justify-content: space-between;
  710. align-items: center;
  711. }
  712. .orderLine {
  713. width: 25%;
  714. text-align: center;
  715. }
  716. .orderLineImg {
  717. width: 60rpx;
  718. height: 60rpx;
  719. }
  720. .orderLineTxt {
  721. font-size: 24rpx;
  722. color: #333333;
  723. }
  724. .orderImgBox {
  725. text-align: center;
  726. position: relative;
  727. }
  728. .orderLIneBox {
  729. display: flex;
  730. justify-content: space-between;
  731. padding-top: 30rpx;
  732. }
  733. .orderNum {
  734. height: 26rpx;
  735. line-height: 26rpx;
  736. background: #FF0000;
  737. padding: 0 8rpx;
  738. border-radius: 13rpx;
  739. color: #FFFFFF;
  740. font-size: 20rpx;
  741. position: absolute;
  742. left: 82rpx;
  743. z-index: 11;
  744. }
  745. .big_rightArrow {
  746. margin-right: 20rpx;
  747. width: 30rpx;
  748. height: 30rpx;
  749. }
  750. .rowBoxBg {
  751. margin: 20rpx 24rpx;
  752. background: #FFFFFF;
  753. border-radius: 10rpx;
  754. }
  755. .rowBox {
  756. display: flex;
  757. justify-content: space-between;
  758. background: #FFFFFF;
  759. padding: 35rpx 0rpx;
  760. border-radius: 10rpx;
  761. align-items: center;
  762. }
  763. .leftView {
  764. display: flex;
  765. align-items: center;
  766. }
  767. .rightView {
  768. display: flex;
  769. align-items: center;
  770. }
  771. .liftIcon {
  772. width: 34rpx;
  773. height: 34rpx;
  774. margin: 0rpx 20rpx;
  775. }
  776. .rowTitle {
  777. color: #3C3C3C;
  778. font-size: 28rpx;
  779. }
  780. .signOut {
  781. width: 702rpx;
  782. height: 98rpx;
  783. background: #FFFFFF;
  784. border-radius: 10rpx;
  785. font-size: 30rpx;
  786. color: #FF3B30;
  787. line-height: 98rpx;
  788. text-align: center;
  789. margin: 40rpx 24rpx;
  790. }
  791. .shopBox {
  792. padding: 20rpx;
  793. margin: 20rpx 24rpx;
  794. background-color: #FFFFFF;
  795. border-radius: 10rpx;
  796. }
  797. .shopCont {
  798. display: flex;
  799. justify-content: space-between;
  800. align-items: center;
  801. }
  802. .shopName {
  803. font-size: 30rpx;
  804. font-weight: bold;
  805. color: #3C3C3C;
  806. line-height: 42rpx;
  807. }
  808. .appraiseBox {
  809. padding: 5rpx 0;
  810. margin-top: 10rpx;
  811. height: 62rpx;
  812. display: flex;
  813. align-items: center;
  814. }
  815. .appraise {
  816. color: #FF0000;
  817. font-size: 38rpx;
  818. font-weight: bold;
  819. }
  820. .line {
  821. margin: 0 12rpx;
  822. width: 1rpx;
  823. height: 30rpx;
  824. }
  825. .appraiseCount {
  826. font-size: 24rpx;
  827. font-weight: 400;
  828. color: #666666;
  829. flex-grow: 1;
  830. margin-top: 10rpx;
  831. }
  832. .rightArrow {
  833. width: 7rpx;
  834. height: 15rpx;
  835. margin-left: 16rpx;
  836. }
  837. .shopRightBox {
  838. display: flex;
  839. justify-content: space-between;
  840. }
  841. .address {
  842. display: flex;
  843. justify-content: space-between;
  844. align-items: center;
  845. }
  846. .Address,
  847. .shopTime,
  848. .distance {
  849. color: #999999;
  850. font-size: 24rpx;
  851. padding-top: 15rpx;
  852. /* 隐藏文字显示 ...不换行 */
  853. overflow: hidden;
  854. text-overflow: ellipsis;
  855. white-space: nowrap;
  856. }
  857. .shopRightBox {}
  858. .shopRightImg {
  859. width: 44rpx;
  860. height: 45rpx;
  861. }
  862. .authorizBox {
  863. width: 100vw;
  864. height: 100vh;
  865. background: rgba(0, 0, 0, 0.5);
  866. position: fixed;
  867. top: 0;
  868. left: 0;
  869. }
  870. .authorizCont {
  871. margin-top: 30vh;
  872. width: 564rpx;
  873. height: 408rpx;
  874. background: #FFFFFF;
  875. border-radius: 24rpx;
  876. margin-left: 93rpx;
  877. position: relative;
  878. }
  879. .authorizCloseImg {
  880. width: 62rpx;
  881. height: 62rpx;
  882. }
  883. .sqLogoBox {
  884. width: 180rpx;
  885. height: 180rpx;
  886. background: #FFFFFF;
  887. border-radius: 90rpx;
  888. text-align: center;
  889. position: absolute;
  890. top: -50rpx;
  891. left: 192rpx;
  892. }
  893. .authorizName {
  894. color: #333333;
  895. line-height: 42rpx;
  896. font-size: 30rpx;
  897. text-align: center;
  898. padding-top: 58rpx;
  899. }
  900. .authorizMs {
  901. color: #999999;
  902. line-height: 36rpx;
  903. font-size: 26rpx;
  904. width: 452rpx;
  905. padding-top: 24rpx;
  906. text-align: center;
  907. margin-left: 56rpx;
  908. }
  909. .authorizContbutton {
  910. width: 422rpx;
  911. height: 88rpx;
  912. background: #D53533;
  913. border-radius: 44rpx;
  914. line-height: 88rpx;
  915. text-align: center;
  916. font-size: 30rpx;
  917. color: #FFFFFF;
  918. margin-top: 62rpx;
  919. margin-left: 71rpx;
  920. }
  921. </style>