|
@@ -3,8 +3,10 @@
|
|
|
|
|
|
<view class="top" :style="{background:'#'+themeColor}">
|
|
|
<view class="customerMes">
|
|
|
- <image @click="updateUserInfo" v-if="headImg" :src="headImg" mode="" style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
|
|
|
- <image @click="updateUserInfo" v-else src="../../static/img/icon_me.png" mode="" style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
|
|
|
+ <image @click="updateUserInfo" v-if="headImg" :src="headImg" mode=""
|
|
|
+ style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
|
|
|
+ <image @click="updateUserInfo" v-else src="../../static/img/icon_me.png" mode=""
|
|
|
+ style="width: 88rpx;height: 88rpx;border-radius: 44rpx;"></image>
|
|
|
<view class="mes">
|
|
|
<view class="nick">
|
|
|
<view class="nickName" v-if="nickName">{{nickName}}</view>
|
|
@@ -40,21 +42,27 @@
|
|
|
<view class="orderLIneBox">
|
|
|
<view class="orderLine" @click="goorder(1)">
|
|
|
<view class="orderImgBox">
|
|
|
- <view class="orderNum" v-show="numList.waitPurchaseSize>0">{{numList.waitPurchaseSize>99?'99+':numList.waitPurchaseSize}}</view>
|
|
|
+ <view class="orderNum" v-show="numList.waitPurchaseSize>0">
|
|
|
+ {{numList.waitPurchaseSize>99?'99+':numList.waitPurchaseSize}}
|
|
|
+ </view>
|
|
|
<image src="../../static/img/icon_daifukuan.png" mode="" class="orderLineImg"></image>
|
|
|
</view>
|
|
|
<view class="orderLineTxt">待付款</view>
|
|
|
</view>
|
|
|
<view class="orderLine" @click="goorder(2)">
|
|
|
<view class="orderImgBox">
|
|
|
- <view class="orderNum" v-show="numList.waitServiceSize>0">{{numList.waitServiceSize>99?'99+':numList.waitServiceSize}}</view>
|
|
|
+ <view class="orderNum" v-show="numList.waitServiceSize>0">
|
|
|
+ {{numList.waitServiceSize>99?'99+':numList.waitServiceSize}}
|
|
|
+ </view>
|
|
|
<image src="../../static/img/icon_daifuwu.png" mode="" class="orderLineImg"></image>
|
|
|
</view>
|
|
|
<view class="orderLineTxt">待服务</view>
|
|
|
</view>
|
|
|
<view class="orderLine" @click="goorder(3)">
|
|
|
<view class="orderImgBox">
|
|
|
- <view class="orderNum" v-show="numList.hasOverSize>0">{{numList.hasOverSize>99?'99+':numList.hasOverSize}}</view>
|
|
|
+ <view class="orderNum" v-show="numList.hasOverSize>0">
|
|
|
+ {{numList.hasOverSize>99?'99+':numList.hasOverSize}}
|
|
|
+ </view>
|
|
|
<image src="../../static/img/icon_yiwancheng.png" mode="" class="orderLineImg"></image>
|
|
|
</view>
|
|
|
<view class="orderLineTxt">已完成</view>
|
|
@@ -62,7 +70,8 @@
|
|
|
|
|
|
<view class="orderLine" @click="goorder(0)">
|
|
|
<view class="orderImgBox">
|
|
|
- <view class="orderNum" v-show="numList.allSize>0">{{numList.allSize>99?'99+':numList.allSize}}</view>
|
|
|
+ <view class="orderNum" v-show="numList.allSize>0">{{numList.allSize>99?'99+':numList.allSize}}
|
|
|
+ </view>
|
|
|
<image src="../../static/img/icon_allorder.png" mode="" class="orderLineImg"></image>
|
|
|
</view>
|
|
|
<view class="orderLineTxt">全部</view>
|
|
@@ -82,19 +91,22 @@
|
|
|
<image src="../../static/img/icon_phone.png" mode="" class="shopRightImg" @click="call"></image>
|
|
|
</view>
|
|
|
|
|
|
- </view>
|
|
|
- <view class="appraiseBox">
|
|
|
- <view v-if="numList.isShowScore == 1" class="appraise">{{numList.shopInfo.miniV2ShopScore}}
|
|
|
- <span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
|
|
|
- </view>
|
|
|
- <view @click="goShopAppraiseList()" v-if="numList.isShowEvaluate == 1" class="appraiseCount">评价数 {{numList.evaluateCount}}
|
|
|
- <image src="../../static/timg/icon_arrow_right.png" mode="" style="width: 7rpx; height: 15rpx; margin-left: 32rpx;"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
+ </view>
|
|
|
+ <view v-if="(numList.isShowScore == 1) || (numList.isShowEvaluate == 1)" class="appraiseBox">
|
|
|
+ <view v-if="numList.isShowScore == 1" class="appraise">{{numList.shopInfo.miniV2ShopScore}}
|
|
|
+ <span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
|
|
|
+ </view>
|
|
|
+ <view v-if="numList.isShowScore == 1" class="line"></view>
|
|
|
+ <view @click="goShopAppraiseList()" v-if="numList.isShowEvaluate == 1" class="appraiseCount">评价数
|
|
|
+ {{numList.evaluateCount}}
|
|
|
+ </view>
|
|
|
+ <image v-if="numList.isShowEvaluate == 1" class="rightArrow" src="../../static/timg/icon_arrow_right.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
<view class="shopTime" v-if="numList.shopInfo.startTime && numList.shopInfo.endTime">
|
|
|
- {{numList.shopInfo.startTime}}-{{numList.shopInfo.endTime}}</view>
|
|
|
+ {{numList.shopInfo.startTime}}-{{numList.shopInfo.endTime}}
|
|
|
+ </view>
|
|
|
<view class="address">
|
|
|
<view class="Address">
|
|
|
{{numList.shopInfo.provinceName?numList.shopInfo.provinceName:''}}
|
|
@@ -162,7 +174,7 @@
|
|
|
</view>
|
|
|
<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
|
|
|
</view>
|
|
|
- <button open-type="share" class="rowBox" >
|
|
|
+ <button open-type="share" class="rowBox">
|
|
|
<view class="leftView">
|
|
|
<image src="../../static/img/icon_me6.png" mode="" class="liftIcon"></image>
|
|
|
<view class="rowTitle">分享给好友</view>
|
|
@@ -177,20 +189,22 @@
|
|
|
</view>
|
|
|
<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
|
|
|
</view>
|
|
|
- <view class="rowBox" @click="gonavigateTo('../partner/partner')" v-if="numList.customerInfo.pState==1&&numList.shopSettings.partnerDisabled">
|
|
|
+ <view class="rowBox" @click="gonavigateTo('../partner/partner')"
|
|
|
+ v-if="numList.customerInfo.pState==1&&numList.shopSettings.partnerDisabled">
|
|
|
<view class="leftView">
|
|
|
<image src="../../static/img/icon_hehuoren.png" mode="" class="liftIcon"></image>
|
|
|
<view class="rowTitle">车主合伙人</view>
|
|
|
</view>
|
|
|
<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
|
|
|
</view>
|
|
|
- <view class="rowBox" @click="gonavigateTo('../referral/referral')" v-if="numList.customerInfo.rebateState==1&&numList.shopSettings.introductionDisabled">
|
|
|
+ <view class="rowBox" @click="gonavigateTo('../referral/referral')"
|
|
|
+ v-if="numList.customerInfo.rebateState==1&&numList.shopSettings.introductionDisabled">
|
|
|
<view class="leftView">
|
|
|
<image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
|
|
|
<view class="rowTitle">客户转介绍</view>
|
|
|
</view>
|
|
|
<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 先隐藏 -->
|
|
|
<!-- <view class="rowBox" @click="gonavigateTo('')">
|
|
@@ -202,7 +216,7 @@
|
|
|
</view> -->
|
|
|
|
|
|
</view>
|
|
|
- <view class="releaseVersion">版本号:{{release_version}}</view>
|
|
|
+ <view class="releaseVersion">版本号:{{release_version}}</view>
|
|
|
|
|
|
<!-- <view class="signOut" @click="signOut">退出登录</view> -->
|
|
|
<!-- 手机号授权 -->
|
|
@@ -225,7 +239,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+
|
|
|
userInfo: '',
|
|
|
shopData: '',
|
|
|
numList: '',
|
|
@@ -238,43 +252,43 @@
|
|
|
authorizShow: false,
|
|
|
code: '',
|
|
|
wxOpenData: '',
|
|
|
- nickName:'',
|
|
|
- phone:'',
|
|
|
- ext:'',
|
|
|
- themeColor:'',
|
|
|
- release_version:'',
|
|
|
+ nickName: '',
|
|
|
+ phone: '',
|
|
|
+ ext: '',
|
|
|
+ themeColor: '',
|
|
|
+ release_version: '',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
-
|
|
|
- this.ext=this.$common.getExtStoreId();
|
|
|
- this.themeColor = uni.getStorageSync("themeColor");
|
|
|
- if(this.themeColor){
|
|
|
- if(this.themeColor=='6F2BE8'){
|
|
|
- var backgroundImage='/static/tabimg/me6F2BE8.png'
|
|
|
+
|
|
|
+ this.ext = this.$common.getExtStoreId();
|
|
|
+ this.themeColor = uni.getStorageSync("themeColor");
|
|
|
+ if (this.themeColor) {
|
|
|
+ if (this.themeColor == '6F2BE8') {
|
|
|
+ var backgroundImage = '/static/tabimg/me6F2BE8.png'
|
|
|
}
|
|
|
- if(this.themeColor=='1677FF'){
|
|
|
- var backgroundImage='/static/tabimg/me1677FF.png'
|
|
|
+ if (this.themeColor == '1677FF') {
|
|
|
+ var backgroundImage = '/static/tabimg/me1677FF.png'
|
|
|
}
|
|
|
- if(this.themeColor=='FF4F00'){
|
|
|
- var backgroundImage='/static/tabimg/meFF4F00.png'
|
|
|
+ if (this.themeColor == 'FF4F00') {
|
|
|
+ var backgroundImage = '/static/tabimg/meFF4F00.png'
|
|
|
}
|
|
|
- if(this.themeColor=='D53533'){
|
|
|
- var backgroundImage='/static/tabimg/me1.png'
|
|
|
+ if (this.themeColor == 'D53533') {
|
|
|
+ var backgroundImage = '/static/tabimg/me1.png'
|
|
|
}
|
|
|
uni.setTabBarStyle({
|
|
|
- // color: '#FF0000',
|
|
|
- selectedColor: '#'+this.themeColor,
|
|
|
+ // color: '#FF0000',
|
|
|
+ selectedColor: '#' + this.themeColor,
|
|
|
})
|
|
|
uni.setTabBarItem({
|
|
|
- index: 3,
|
|
|
- text: '我的',
|
|
|
- selectedIconPath: backgroundImage
|
|
|
+ index: 3,
|
|
|
+ text: '我的',
|
|
|
+ selectedIconPath: backgroundImage
|
|
|
})
|
|
|
}
|
|
|
uni.setNavigationBarColor({
|
|
|
frontColor: "#ffffff",
|
|
|
- backgroundColor:'#'+ this.themeColor
|
|
|
+ backgroundColor: '#' + this.themeColor
|
|
|
})
|
|
|
this.getVersionInfo()
|
|
|
// const accountInfo = wx.getAccountInfoSync();
|
|
@@ -283,10 +297,10 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
const wxOpenData = this.$store.state.wxOpenData;
|
|
|
- this.wxOpenData=wxOpenData
|
|
|
+ this.wxOpenData = wxOpenData
|
|
|
//console.log()
|
|
|
if (wxOpenData) {
|
|
|
-
|
|
|
+
|
|
|
this.uid = wxOpenData.loginInfo.uid;
|
|
|
}
|
|
|
this.userInfo = this.$store.state.userInfo;
|
|
@@ -298,45 +312,45 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
- methods: {
|
|
|
- goShopAppraiseList(){
|
|
|
- uni.navigateTo({
|
|
|
- url: 'ShopAppraiseList?shopID=' + this.numList.shopInfo.id
|
|
|
- })
|
|
|
+ methods: {
|
|
|
+ goShopAppraiseList() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'ShopAppraiseList?shopID=' + this.numList.shopInfo.id
|
|
|
+ })
|
|
|
},
|
|
|
- getVersionInfo(){
|
|
|
+ getVersionInfo() {
|
|
|
this.$http('miniApp2/sys/getVersionInfo', {
|
|
|
appId: this.ext.appId,
|
|
|
-
|
|
|
+
|
|
|
}, 'POST').then(res => {
|
|
|
- this.release_version=res.data.release_version
|
|
|
+ this.release_version = res.data.release_version
|
|
|
})
|
|
|
},
|
|
|
- updateUserInfo(){
|
|
|
- var that=this;
|
|
|
+ updateUserInfo() {
|
|
|
+ var that = this;
|
|
|
uni.getUserProfile({
|
|
|
- lang:'zh_CN',
|
|
|
- desc:'登录',
|
|
|
- success:(res)=>{
|
|
|
+ lang: 'zh_CN',
|
|
|
+ desc: '登录',
|
|
|
+ success: (res) => {
|
|
|
console.log(res);
|
|
|
- that.headImg=res.userInfo.avatarUrl;
|
|
|
- that.nickName=res.userInfo.nickName;
|
|
|
+ that.headImg = res.userInfo.avatarUrl;
|
|
|
+ that.nickName = res.userInfo.nickName;
|
|
|
that.$http('miniApp2/sys/updateUserInfo', {
|
|
|
- nickName:res.userInfo.nickName,
|
|
|
- unionId:that.ext.unionId,
|
|
|
+ nickName: res.userInfo.nickName,
|
|
|
+ unionId: that.ext.unionId,
|
|
|
headImg: res.userInfo.avatarUrl,
|
|
|
openId: that.wxOpenData.openid
|
|
|
}, 'POST').then(res => {
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
- fail:(res)=>{
|
|
|
+ fail: (res) => {
|
|
|
console.log(res)
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
decryptPhoneNumber: function(e) {
|
|
|
console.log(e);
|
|
@@ -347,8 +361,8 @@
|
|
|
wxPhoneLogin() {
|
|
|
var that = this;
|
|
|
this.$http('miniApp2/sys/wxPhoneLogin', {
|
|
|
- appId:this.ext.appId,
|
|
|
- unionId:this.ext.unionId,
|
|
|
+ appId: this.ext.appId,
|
|
|
+ unionId: this.ext.unionId,
|
|
|
code: this.code,
|
|
|
openId: this.wxOpenData.openid
|
|
|
}, 'POST').then(res => {
|
|
@@ -417,7 +431,7 @@
|
|
|
})
|
|
|
},
|
|
|
gonavigateTo(url) {
|
|
|
- // if (this.userInfo) {
|
|
|
+ // if (this.userInfo) {
|
|
|
// uni.navigateTo({
|
|
|
// url: url
|
|
|
// })
|
|
@@ -437,26 +451,26 @@
|
|
|
},
|
|
|
|
|
|
},
|
|
|
- onShareAppMessage(res) {
|
|
|
-
|
|
|
- return {
|
|
|
- title: this.wxOpenData.miniAppName,
|
|
|
- //imageUrl:img,
|
|
|
- path: 'pages/index/index',
|
|
|
- success(res){
|
|
|
- uni.showToast({
|
|
|
- title:'分享成功'
|
|
|
- })
|
|
|
- },
|
|
|
- fail(res){
|
|
|
- uni.showToast({
|
|
|
- title:'分享失败',
|
|
|
- icon:'none',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+
|
|
|
+ return {
|
|
|
+ title: this.wxOpenData.miniAppName,
|
|
|
+ //imageUrl:img,
|
|
|
+ path: 'pages/index/index',
|
|
|
+ success(res) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '分享成功'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail(res) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '分享失败',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 下拉刷新
|
|
|
onPullDownRefresh() {
|
|
|
|
|
@@ -469,7 +483,7 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
- .releaseVersion{
|
|
|
+ .releaseVersion {
|
|
|
font-size: 24rpx;
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
font-weight: 400;
|
|
@@ -477,10 +491,12 @@
|
|
|
padding: 40rpx;
|
|
|
text-align: center;
|
|
|
}
|
|
|
- button::after{
|
|
|
- border: none;
|
|
|
+
|
|
|
+ button::after {
|
|
|
+ border: none;
|
|
|
}
|
|
|
- button{
|
|
|
+
|
|
|
+ button {
|
|
|
position: relative;
|
|
|
display: block;
|
|
|
margin-left: 0;
|
|
@@ -498,10 +514,10 @@
|
|
|
overflow: hidden;
|
|
|
color: #000000;
|
|
|
background-color: #fff;
|
|
|
-
|
|
|
+
|
|
|
height: 100%;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
.box {
|
|
|
|
|
|
width: 100vw;
|
|
@@ -552,8 +568,8 @@
|
|
|
border: 1rpx solid #FFFFFF;
|
|
|
border-radius: 4rpx;
|
|
|
height: 36rpx;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
.phone {
|
|
|
font-size: 24rpx;
|
|
@@ -638,7 +654,7 @@
|
|
|
}
|
|
|
|
|
|
.orderNum {
|
|
|
-
|
|
|
+
|
|
|
height: 26rpx;
|
|
|
line-height: 26rpx;
|
|
|
background: #FF0000;
|
|
@@ -647,7 +663,7 @@
|
|
|
color: #FFFFFF;
|
|
|
font-size: 20rpx;
|
|
|
position: absolute;
|
|
|
-
|
|
|
+
|
|
|
left: 90rpx;
|
|
|
z-index: 11;
|
|
|
}
|
|
@@ -664,7 +680,7 @@
|
|
|
.rowBoxBg {
|
|
|
|
|
|
margin: 20rpx 24rpx;
|
|
|
-
|
|
|
+
|
|
|
background: #FFFFFF;
|
|
|
|
|
|
border-radius: 10rpx;
|
|
@@ -740,27 +756,50 @@
|
|
|
color: #3C3C3C;
|
|
|
line-height: 42rpx;
|
|
|
}
|
|
|
- .appraiseBox{
|
|
|
- padding: 5rpx 20rpx;
|
|
|
- margin: 10rpx 0 0 -20rpx;
|
|
|
- height: 62rpx;
|
|
|
- background: rgba(255,0,0,0.08);
|
|
|
- border-radius: 0 25rpx 70rpx 0;
|
|
|
- width: 320rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- .appraise{
|
|
|
- color: #FF0000;
|
|
|
- font-size: 38rpx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .appraiseCount{
|
|
|
- margin-left: 40rpx;
|
|
|
- font-size: 24rpx;
|
|
|
- font-weight: 400;
|
|
|
- color: #666666;
|
|
|
+
|
|
|
+ .appraiseBox {
|
|
|
+ padding: 5rpx 40rpx 5rpx 20rpx;
|
|
|
+ margin: 10rpx 0 0 -20rpx;
|
|
|
+ height: 62rpx;
|
|
|
+ background: rgba(255, 0, 0, 0.08);
|
|
|
+ border-radius: 0 25rpx 70rpx 0;
|
|
|
+ width: 300rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
+
|
|
|
+ .appraise {
|
|
|
+ color: #FF0000;
|
|
|
+ font-size: 38rpx;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .line {
|
|
|
+
|
|
|
+ margin: 0 20rpx;
|
|
|
+ width: 1rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ background: #E9E8E8;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .appraiseCount {
|
|
|
+
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #666666;
|
|
|
+ flex-grow: 1;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .rightArrow {
|
|
|
+
|
|
|
+ width: 7rpx;
|
|
|
+ height: 15rpx;
|
|
|
+ margin-left: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.shopRightBox {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -859,4 +898,4 @@
|
|
|
margin-top: 62rpx;
|
|
|
margin-left: 71rpx;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|