|
@@ -3,27 +3,24 @@
|
|
|
<view class="content-box">
|
|
<view class="content-box">
|
|
|
<view class="user-section">
|
|
<view class="user-section">
|
|
|
<view class="avatar" @click="navTo('/pages/set/userinfo')">
|
|
<view class="avatar" @click="navTo('/pages/set/userinfo')">
|
|
|
- <image class="image" :src="user.avatar|| urlFile+`/static/error/missing-face.png`"
|
|
|
|
|
|
|
+ <image class="image" :src="userInfo.avatar|| urlFile+`/static/error/missing-face.png`"
|
|
|
mode="scaleToFill"></image>
|
|
mode="scaleToFill"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="flex-center phone">
|
|
<view class="flex-center phone">
|
|
|
- {{user.nickname || '游客'}}
|
|
|
|
|
- <!-- <template v-if="user.phone">
|
|
|
|
|
- {{((''+user.phone).split('').splice(3,4,'****')).join('')}}
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
+ {{userInfo.nickname || '游客'}}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tj-sction">
|
|
|
|
|
- <view class="tj-item" @click="navTo('/pages/user/money/wallet')">
|
|
|
|
|
- <text class="num">{{user.now_money || '0.00' }}</text>
|
|
|
|
|
|
|
+ <view class="tj-sction flex">
|
|
|
|
|
+ <view class="tj-item flex-line" @click="navTo('/pages/user/money/wallet')">
|
|
|
|
|
+ <text class="num">{{userInfo.now_money || '0.00' }}</text>
|
|
|
<text>我的余额</text>
|
|
<text>我的余额</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tj-item" @click="navTo('/pages/water/myWaterList')">
|
|
|
|
|
- <text class="num">{{'0.00' }}</text>
|
|
|
|
|
|
|
+ <view class="tj-item flex-line" @click="navTo('/pages/water/myWaterList')">
|
|
|
|
|
+ <text class="num">{{userInfo.certificate_count }}</text>
|
|
|
<text>我的水票</text>
|
|
<text>我的水票</text>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tj-item" @click="navTo('/pages/water/deposit')">
|
|
|
|
|
- <text class="num">{{ user.brokerage_price || '0.00' }}</text>
|
|
|
|
|
|
|
+ <view class="tj-item flex-line" @click="navTo('/pages/water/deposit')">
|
|
|
|
|
+ <text class="num">{{ +userInfo.certificate_pledge || '0.00' }}</text>
|
|
|
<text>我的押金</text>
|
|
<text>我的押金</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -34,36 +31,37 @@
|
|
|
<view class="item-box">
|
|
<view class="item-box">
|
|
|
<view class="box-title flex">
|
|
<view class="box-title flex">
|
|
|
<view class="title"><text>配送员订单</text></view>
|
|
<view class="title"><text>配送员订单</text></view>
|
|
|
- <view class="link flex" @click="navTo('/pages/user/admin/orderAdmin?state=0')" hover-class="common-hover">
|
|
|
|
|
|
|
+ <view class="link flex" @click="navTo('/pages/user/admin/orderAdmin?state=0')"
|
|
|
|
|
+ hover-class="common-hover">
|
|
|
<text class="margin-r-10">全部</text>
|
|
<text class="margin-r-10">全部</text>
|
|
|
<image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
<image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="order-section">
|
|
|
|
|
- <view class="order-item" @click="navTo('/pages/user/admin/orderAdmin?state=0')" hover-class="common-hover"
|
|
|
|
|
- :hover-stay-time="50">
|
|
|
|
|
|
|
+ <view class="order-section flex">
|
|
|
|
|
+ <view class="order-item flex-line" @click="navTo('/pages/user/admin/orderAdmin?state=0')"
|
|
|
|
|
+ hover-class="common-hover" :hover-stay-time="50">
|
|
|
<view class=" icon position-relative">
|
|
<view class=" icon position-relative">
|
|
|
<image class="icon-img" src="../../static/icon/userorder1.png" mode="aspectFit">
|
|
<image class="icon-img" src="../../static/icon/userorder1.png" mode="aspectFit">
|
|
|
</image>
|
|
</image>
|
|
|
- <view class="corner" v-if="user.unpaid_count > 0">
|
|
|
|
|
- <text>{{ user.unpaid_count }}</text>
|
|
|
|
|
|
|
+ <view class="corner" v-if="userInfo.unpaid_count > 0">
|
|
|
|
|
+ <text>{{ userInfo.unpaid_count }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<text>待付款</text>
|
|
<text>待付款</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="order-item" @click="navTo('/pages/user/admin/orderAdmin?state=1')" hover-class="common-hover"
|
|
|
|
|
- :hover-stay-time="50">
|
|
|
|
|
|
|
+ <view class="order-item flex-line" @click="navTo('/pages/user/admin/orderAdmin?state=1')"
|
|
|
|
|
+ hover-class="common-hover" :hover-stay-time="50">
|
|
|
<view class="icon position-relative">
|
|
<view class="icon position-relative">
|
|
|
<image class="icon-img" src="../../static/icon/userorder2.png" mode="aspectFit">
|
|
<image class="icon-img" src="../../static/icon/userorder2.png" mode="aspectFit">
|
|
|
</image>
|
|
</image>
|
|
|
- <view class="corner" v-if="user.received_count > 0">
|
|
|
|
|
- <text>{{ user.received_count }}</text>
|
|
|
|
|
|
|
+ <view class="corner" v-if="userInfo.received_count > 0">
|
|
|
|
|
+ <text>{{ userInfo.received_count }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<text>待核销</text>
|
|
<text>待核销</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="order-item" @click="navTo('/pages/user/admin/orderAdmin?state=2')" hover-class="common-hover"
|
|
|
|
|
- :hover-stay-time="50">
|
|
|
|
|
|
|
+ <view class="order-item flex-line" @click="navTo('/pages/user/admin/orderAdmin?state=2')"
|
|
|
|
|
+ hover-class="common-hover" :hover-stay-time="50">
|
|
|
<view class=" icon position-relative">
|
|
<view class=" icon position-relative">
|
|
|
<image class="icon-img" src="../../static/icon/userorder3.png" mode="aspectFit">
|
|
<image class="icon-img" src="../../static/icon/userorder3.png" mode="aspectFit">
|
|
|
</image>
|
|
</image>
|
|
@@ -136,7 +134,8 @@
|
|
|
</button>
|
|
</button>
|
|
|
<view class="flex listItem" @click="navTo('/pages/set/set')">
|
|
<view class="flex listItem" @click="navTo('/pages/set/set')">
|
|
|
<view class="flex titleBox">
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/userabout.png" mode="widthFix"></image>
|
|
|
|
|
|
|
+ <image class="listIconImg" src="../../static/icon/userabout.png" mode="widthFix">
|
|
|
|
|
+ </image>
|
|
|
<text class="title">关于我们</text>
|
|
<text class="title">关于我们</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="right flex">
|
|
<view class="right flex">
|
|
@@ -164,7 +163,7 @@
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
import weixinObj from "@/plugin/jweixin-module/index.js";
|
|
import weixinObj from "@/plugin/jweixin-module/index.js";
|
|
|
// #endif
|
|
// #endif
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
import {
|
|
import {
|
|
|
mapState,
|
|
mapState,
|
|
|
mapMutations
|
|
mapMutations
|
|
@@ -192,11 +191,6 @@
|
|
|
hxtype: 0, //0普通核销1电池核销
|
|
hxtype: 0, //0普通核销1电池核销
|
|
|
dcode: '', //电池编号
|
|
dcode: '', //电池编号
|
|
|
code: '', //商品核销码
|
|
code: '', //商品核销码
|
|
|
- user: {
|
|
|
|
|
- avatar: '', //头像
|
|
|
|
|
- nickname: '', //昵称
|
|
|
|
|
- phone: ''
|
|
|
|
|
- },
|
|
|
|
|
shareData: {}
|
|
shareData: {}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -285,17 +279,17 @@
|
|
|
success: function(res) {
|
|
success: function(res) {
|
|
|
var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
|
var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
|
|
let arr = result.split('&');
|
|
let arr = result.split('&');
|
|
|
- if(arr.length > 1) {
|
|
|
|
|
|
|
+ if (arr.length > 1) {
|
|
|
that.code = arr[0];
|
|
that.code = arr[0];
|
|
|
that.dcode = arr[1] || '';
|
|
that.dcode = arr[1] || '';
|
|
|
that.hxtype = 1;
|
|
that.hxtype = 1;
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
that.code = arr[0];
|
|
that.code = arr[0];
|
|
|
that.hxtype = 0;
|
|
that.hxtype = 0;
|
|
|
}
|
|
}
|
|
|
that.openHx();
|
|
that.openHx();
|
|
|
// 判断是否为电池核销
|
|
// 判断是否为电池核销
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
@@ -309,11 +303,11 @@
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
let result = res.result
|
|
let result = res.result
|
|
|
let arr = result.split('&')
|
|
let arr = result.split('&')
|
|
|
- if(arr.length > 1) {
|
|
|
|
|
|
|
+ if (arr.length > 1) {
|
|
|
that.code = arr[0];
|
|
that.code = arr[0];
|
|
|
that.dcode = arr[1] || '';
|
|
that.dcode = arr[1] || '';
|
|
|
that.hxtype = 1;
|
|
that.hxtype = 1;
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
that.code = arr[0];
|
|
that.code = arr[0];
|
|
|
that.hxtype = 0;
|
|
that.hxtype = 0;
|
|
|
}
|
|
}
|
|
@@ -354,7 +348,6 @@
|
|
|
console.log('data')
|
|
console.log('data')
|
|
|
const that = this;
|
|
const that = this;
|
|
|
getUser({}).then((e) => {
|
|
getUser({}).then((e) => {
|
|
|
- this.user = e.data;
|
|
|
|
|
this.setUserInfo(e.data)
|
|
this.setUserInfo(e.data)
|
|
|
}).catch((e) => {
|
|
}).catch((e) => {
|
|
|
console.log(e, 'sj');
|
|
console.log(e, 'sj');
|
|
@@ -396,20 +389,6 @@
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
- %section {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: space-around;
|
|
|
|
|
- align-content: center;
|
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- %flex-center {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.listBox {
|
|
.listBox {
|
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -455,7 +434,7 @@
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100% auto;
|
|
background-size: 100% auto;
|
|
|
padding-top: 100rpx;
|
|
padding-top: 100rpx;
|
|
|
- padding-bottom: 50rpx;
|
|
|
|
|
|
|
+ padding-bottom: 150rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.user-section {
|
|
.user-section {
|
|
@@ -491,10 +470,9 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.tj-sction {
|
|
.tj-sction {
|
|
|
- @extend %section;
|
|
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
|
|
|
.tj-item {
|
|
.tj-item {
|
|
|
- @extend %flex-center;
|
|
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
height: 100rpx;
|
|
height: 100rpx;
|
|
|
font-size: $font-sm;
|
|
font-size: $font-sm;
|
|
@@ -534,12 +512,11 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.order-section {
|
|
.order-section {
|
|
|
- @extend %section;
|
|
|
|
|
padding: 28rpx 0;
|
|
padding: 28rpx 0;
|
|
|
padding-top: 0;
|
|
padding-top: 0;
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
|
|
|
.order-item {
|
|
.order-item {
|
|
|
- @extend %flex-center;
|
|
|
|
|
width: 120rpx;
|
|
width: 120rpx;
|
|
|
height: 120rpx;
|
|
height: 120rpx;
|
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
@@ -572,6 +549,4 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|