|
@@ -103,24 +103,28 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="num-wrapper">
|
|
<view class="num-wrapper">
|
|
- <view class="num-item" v-if="userInfo.balance_func_status"
|
|
|
|
|
|
+ <!-- <view class="num-item" v-if="userInfo.balance_func_status" -->
|
|
|
|
+ <view class="num-item"
|
|
@click="goMenuPage('/pages/users/user_money/index')">
|
|
@click="goMenuPage('/pages/users/user_money/index')">
|
|
<text class="num">{{userInfo.now_money || 0}}</text>
|
|
<text class="num">{{userInfo.now_money || 0}}</text>
|
|
- <view class="txt">{{$t('余额')}}</view>
|
|
|
|
|
|
+ <!-- <view class="txt">{{$t('余额')}}</view> -->
|
|
|
|
+ <view class="txt">{{$t('钱包')}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="num-item" v-else
|
|
|
|
|
|
+ <!-- <view class="num-item" v-else -->
|
|
|
|
+ <view class="num-item"
|
|
@click="goMenuPage('/pages/users/user_goods_collection/index')">
|
|
@click="goMenuPage('/pages/users/user_goods_collection/index')">
|
|
<text class="num">{{userInfo.collectCount || 0}}</text>
|
|
<text class="num">{{userInfo.collectCount || 0}}</text>
|
|
- <view class="txt">{{$t('收藏')}}</view>
|
|
|
|
|
|
+ <!-- <view class="txt">{{$t('收藏')}}</view> -->
|
|
|
|
+ <view class="txt">{{$t('佣金')}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
|
|
|
|
|
|
+ <!-- <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
|
|
<text class="num">{{userInfo.couponCount || 0}}</text>
|
|
<text class="num">{{userInfo.couponCount || 0}}</text>
|
|
<view class="txt">{{$t('优惠券')}}</view>
|
|
<view class="txt">{{$t('优惠券')}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
|
|
<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
|
|
<text class="num">{{userInfo.integral || 0}}</text>
|
|
<text class="num">{{userInfo.integral || 0}}</text>
|
|
<view class="txt">{{$t('积分')}}</view>
|
|
<view class="txt">{{$t('积分')}}</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
<!-- <view class="sign" @click="goSignIn">签到</view> -->
|
|
<!-- <view class="sign" @click="goSignIn">签到</view> -->
|
|
<view class="cardVipA acea-row row-between-wrapper"
|
|
<view class="cardVipA acea-row row-between-wrapper"
|
|
@@ -220,6 +224,34 @@
|
|
</block>
|
|
</block>
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <!-- 我的积分 -->
|
|
|
|
+ <view class="user-menus" style="margin-top: 20rpx;">
|
|
|
|
+ <view class="menu-title">{{$t('我的积分')}}</view>
|
|
|
|
+ <view class="list-box">
|
|
|
|
+ <view class="shouyi" @click="shouyi">
|
|
|
|
+ <view class="jfs">{{award_range || 0}}</view>
|
|
|
|
+ <view class="jf">绿色积分</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shouyi" @click="gongxian">
|
|
|
|
+ <view class="jfs">{{speed || 0}}</view>
|
|
|
|
+ <view class="jf">贡献值</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shouyi" @click="xiaofei">
|
|
|
|
+ <view class="jfs">{{integral || 0}}</view>
|
|
|
|
+ <view class="jf">消费券</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shouyi" @click="fuxiao">
|
|
|
|
+ <view class="jfs">{{reorder_integral || 0}}</view>
|
|
|
|
+ <view class="jf">复消积分</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shouyi" @click="guquan">
|
|
|
|
+ <view class="jfs">{{stock_integral || 0}}</view>
|
|
|
|
+ <view class="jf">股权积分</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
<!-- 会员菜单 -->
|
|
<!-- 会员菜单 -->
|
|
<view class="user-menus" style="margin-top: 20rpx;">
|
|
<view class="user-menus" style="margin-top: 20rpx;">
|
|
<view class="menu-title">{{$t('我的服务')}}</view>
|
|
<view class="menu-title">{{$t('我的服务')}}</view>
|
|
@@ -244,7 +276,7 @@
|
|
<text>{{$t(item.name)}}</text>
|
|
<text>{{$t(item.name)}}</text>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
-
|
|
|
|
|
|
+
|
|
<button class="item" open-type='contact' v-if="routineContact == 1">
|
|
<button class="item" open-type='contact' v-if="routineContact == 1">
|
|
<image src="/static/images/contact.png"></image>
|
|
<image src="/static/images/contact.png"></image>
|
|
<text>{{$t('联系客服')}}</text>
|
|
<text>{{$t('联系客服')}}</text>
|
|
@@ -287,7 +319,8 @@
|
|
getMenuList,
|
|
getMenuList,
|
|
getUserInfo,
|
|
getUserInfo,
|
|
setVisit,
|
|
setVisit,
|
|
- mpBindingPhone
|
|
|
|
|
|
+ mpBindingPhone,
|
|
|
|
+ userinfo
|
|
} from '@/api/user.js';
|
|
} from '@/api/user.js';
|
|
import {
|
|
import {
|
|
wechatAuthV2,
|
|
wechatAuthV2,
|
|
@@ -361,7 +394,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
img: 'icon-daipingjia',
|
|
img: 'icon-daipingjia',
|
|
- title: '待评价',
|
|
|
|
|
|
+ title: '已完成',
|
|
url: '/pages/goods/order_list/index?status=3'
|
|
url: '/pages/goods/order_list/index?status=3'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -399,6 +432,11 @@
|
|
my_banner_status: 1,
|
|
my_banner_status: 1,
|
|
is_diy: uni.getStorageSync('is_diy'),
|
|
is_diy: uni.getStorageSync('is_diy'),
|
|
copyRightPic: '/static/images/support.png', //版权图片
|
|
copyRightPic: '/static/images/support.png', //版权图片
|
|
|
|
+ award_range: '', // 可收益积分
|
|
|
|
+ speed: '', // 贡献值
|
|
|
|
+ integral: '', // 消费券
|
|
|
|
+ reorder_integral: '', // 可复消积分
|
|
|
|
+ stock_integral: '', // 股权积分
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -441,6 +479,7 @@
|
|
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
|
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
|
this.activeRouter = '/' + curRoute
|
|
this.activeRouter = '/' + curRoute
|
|
this.getCopyRight();
|
|
this.getCopyRight();
|
|
|
|
+ this.userinfo()
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
let self = this
|
|
let self = this
|
|
@@ -476,6 +515,18 @@
|
|
Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
|
|
Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
|
|
//#endif
|
|
//#endif
|
|
},
|
|
},
|
|
|
|
+ // 积分数
|
|
|
|
+ async userinfo() {
|
|
|
|
+ const data = await userinfo()
|
|
|
|
+ console.log('1111', data);
|
|
|
|
+ this.award_range = data.award_range // 可收益积分
|
|
|
|
+ this.speed = data.speed, // 贡献值
|
|
|
|
+ this.integral = data.integral // 消费券
|
|
|
|
+ this.reorder_integral = data.reorder_integral // 可复消积分
|
|
|
|
+ this.stock_integral = data.stock_integral // 股权积分
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
editSuccess() {
|
|
editSuccess() {
|
|
this.editModal = false
|
|
this.editModal = false
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
@@ -765,7 +816,33 @@
|
|
if (copyRight.copyrightImage) {
|
|
if (copyRight.copyrightImage) {
|
|
this.copyRightPic = copyRight.copyrightImage
|
|
this.copyRightPic = copyRight.copyrightImage
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 积分
|
|
|
|
+ shouyi() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/users/user_jifen/income'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ fuxiao() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/users/user_jifen/repeat'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ guquan() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/users/user_jifen/equity'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ xiaofei() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/users/user_jifen/consumption'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ gongxian() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/users/user_jifen/contribute'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -1095,7 +1172,8 @@
|
|
color: #fff;
|
|
color: #fff;
|
|
|
|
|
|
.num-item {
|
|
.num-item {
|
|
- width: 33.33%;
|
|
|
|
|
|
+ // width:33.33%;
|
|
|
|
+ width:50%;
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
|
|
&~.num-item {
|
|
&~.num-item {
|
|
@@ -1361,4 +1439,25 @@
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .list-box{
|
|
|
|
+ .shouyi {
|
|
|
|
+ width: 120rpx;
|
|
|
|
+ height: 140rpx;
|
|
|
|
+ margin: auto 8rpx;
|
|
|
|
+ .jfs {
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #333333;
|
|
|
|
+ }
|
|
|
|
+ .jf {
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
</style>
|
|
</style>
|