|
@@ -3,25 +3,26 @@
|
|
|
<view class="top">
|
|
<view class="top">
|
|
|
<view class="bg"><image class="imgBg" src="../../static/img/user-bg.png" mode=""></image></view>
|
|
<view class="bg"><image class="imgBg" src="../../static/img/user-bg.png" mode=""></image></view>
|
|
|
<view class="user">
|
|
<view class="user">
|
|
|
- <view class="avtor"><image class="portrait" :src="userInfo.avatar || '/static/img/missing-face.png'"></image></view>
|
|
|
|
|
|
|
+ <view class="avtor">
|
|
|
|
|
+ <image class="portrait" :src="userInfo.avatar || '/static/img/missing-face.png'"></image>
|
|
|
|
|
+ <view class="he"><image class="image" v-if="userInfo.point.length != 0" src="../../static/img/hehuoren.png"></image></view>
|
|
|
|
|
+ </view>
|
|
|
<view class="">
|
|
<view class="">
|
|
|
- <view class="name">{{ userInfo.phone || userInfo.email || '游客' }}</view>
|
|
|
|
|
- <view class="id">uid:{{ userInfo.uid }}</view>
|
|
|
|
|
- <view class="id-box flex">
|
|
|
|
|
-
|
|
|
|
|
- <view class="level-box">
|
|
|
|
|
|
|
+ <view class="name">
|
|
|
|
|
+ <view class="name-left">{{ userInfo.phone || userInfo.email || '游客' }}</view>
|
|
|
|
|
+ <view class="name-right">
|
|
|
<image class="image" src="../../static/img/img28.png"></image>
|
|
<image class="image" src="../../static/img/img28.png"></image>
|
|
|
<view class="level" v-if="userInfo.level">{{ userInfo.level_info.name }}</view>
|
|
<view class="level" v-if="userInfo.level">{{ userInfo.level_info.name }}</view>
|
|
|
- <view class="level" v-else>
|
|
|
|
|
- V0
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="level-box" v-if="userInfo.point.length !=0">
|
|
|
|
|
- <image class="image" src="../../static/img/hehuoren.png"></image>
|
|
|
|
|
|
|
+ <view class="level" v-else>V0</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="id">uid:{{ userInfo.uid }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="config" @click="nav('/pages/set/userinfo')">
|
|
|
|
|
+ <view class="myself"><image src="../../static/img/myself.png" mode=""></image></view>
|
|
|
|
|
+ 我的资料
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="main">
|
|
<view class="main">
|
|
|
<view class="title">我的工具</view>
|
|
<view class="title">我的工具</view>
|
|
@@ -32,7 +33,7 @@
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="userInfo.point">
|
|
<view class="userInfo.point">
|
|
|
- <view class="tt-box" v-if="userInfo.point.length !=0" @click="nav('/pages/user/myNote')">
|
|
|
|
|
|
|
+ <view class="tt-box" v-if="userInfo.point.length != 0" @click="nav('/pages/user/myNote')">
|
|
|
<image src="../../static/img/myPoint.png" class="tt-icon1" mode=""></image>
|
|
<image src="../../static/img/myPoint.png" class="tt-icon1" mode=""></image>
|
|
|
<view class="tt-txt">我的节点</view>
|
|
<view class="tt-txt">我的节点</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
@@ -43,7 +44,7 @@
|
|
|
<view class="tt-txt">我的矿机</view>
|
|
<view class="tt-txt">我的矿机</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tt-box" @click="nav('/pages/index/info')" v-if="userInfo.level >=4">
|
|
|
|
|
|
|
+ <view class="tt-box" @click="nav('/pages/index/info')" v-if="userInfo.level >= 4">
|
|
|
<image src="../../static/img/data.png" class="tt-icon1" mode=""></image>
|
|
<image src="../../static/img/data.png" class="tt-icon1" mode=""></image>
|
|
|
<view class="tt-txt">汇总数据</view>
|
|
<view class="tt-txt">汇总数据</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
@@ -63,35 +64,18 @@
|
|
|
<view class="tt-txt">团队邀请</view>
|
|
<view class="tt-txt">团队邀请</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tt-box" @click="nav('/pages/money/payment')">
|
|
|
|
|
- <image src="../../static/img/zfpwd.png" class="tt-icon4" mode=""></image>
|
|
|
|
|
- <view class="tt-txt">交易密码</view>
|
|
|
|
|
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="tt-box" @click="nav('/pages/set/password')">
|
|
|
|
|
- <image src="../../static/img/pwd.png" class="tt-icon1" mode=""></image>
|
|
|
|
|
- <view class="tt-txt">登录密码</view>
|
|
|
|
|
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="tt-box" @click="nav('/pages/user/approve')">
|
|
|
|
|
- <image src="../../static/img/real_name.png" class="tt-icon1" mode=""></image>
|
|
|
|
|
- <view class="tt-txt">实名认证</view>
|
|
|
|
|
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
|
|
- </view>
|
|
|
|
|
<view class="tt-box" @click="server()">
|
|
<view class="tt-box" @click="server()">
|
|
|
<image src="../../static/img/kefu.png" class="tt-icon1" mode=""></image>
|
|
<image src="../../static/img/kefu.png" class="tt-icon1" mode=""></image>
|
|
|
<view class="tt-txt">联系客服</view>
|
|
<view class="tt-txt">联系客服</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tt-box" @click="nav('/pages/set/userinfo')">
|
|
|
|
|
|
|
+ <view class="tt-box" @click="nav('/pages/set/set')">
|
|
|
<image src="../../static/img/set.png" class="tt-icon5" mode=""></image>
|
|
<image src="../../static/img/set.png" class="tt-icon5" mode=""></image>
|
|
|
<view class="tt-txt">设置</view>
|
|
<view class="tt-txt">设置</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="kb">
|
|
|
|
|
-
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="kb"></view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<uni-popup ref="popup" type="center">
|
|
<uni-popup ref="popup" type="center">
|
|
@@ -99,7 +83,7 @@
|
|
|
<view class="popup-dox">
|
|
<view class="popup-dox">
|
|
|
<image class="popup-logo" src="../../static/img/lianxi.png"></image>
|
|
<image class="popup-logo" src="../../static/img/lianxi.png"></image>
|
|
|
<view class="pop-title">已为您定制专属客服</view>
|
|
<view class="pop-title">已为您定制专属客服</view>
|
|
|
- <view >{{ weixin }}</view>
|
|
|
|
|
|
|
+ <view>{{ weixin }}</view>
|
|
|
<image class="popup-text" @longtap="bc_code" :src="erweima"></image>
|
|
<image class="popup-text" @longtap="bc_code" :src="erweima"></image>
|
|
|
<view class="btn" @click="copy(weixin)">复制微信号</view>
|
|
<view class="btn" @click="copy(weixin)">复制微信号</view>
|
|
|
<view class="pop-tip flex">
|
|
<view class="pop-tip flex">
|
|
@@ -117,7 +101,7 @@ import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
|
|
|
import { mapState, mapMutations } from 'vuex';
|
|
import { mapState, mapMutations } from 'vuex';
|
|
|
import uniList from '@/components/uni-list/uni-list.vue';
|
|
import uniList from '@/components/uni-list/uni-list.vue';
|
|
|
import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
|
|
import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
|
|
|
-import { orderData, getUserInfo,service } from '@/api/user.js';
|
|
|
|
|
|
|
+import { orderData, getUserInfo, service } from '@/api/user.js';
|
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
|
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
|
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
|
|
export default {
|
|
export default {
|
|
@@ -128,8 +112,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- erweima:'',
|
|
|
|
|
- weixin:''
|
|
|
|
|
|
|
+ erweima: '',
|
|
|
|
|
+ weixin: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
@@ -161,10 +145,10 @@ export default {
|
|
|
getUserInfo({}).then(({ data }) => {
|
|
getUserInfo({}).then(({ data }) => {
|
|
|
this.setUserInfo(data);
|
|
this.setUserInfo(data);
|
|
|
});
|
|
});
|
|
|
- service({}).then(({data}) =>{
|
|
|
|
|
|
|
+ service({}).then(({ data }) => {
|
|
|
this.erweima = data.service_qr;
|
|
this.erweima = data.service_qr;
|
|
|
this.weixin = data.service_wechat;
|
|
this.weixin = data.service_wechat;
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
server() {
|
|
server() {
|
|
|
this.$refs.popup.open();
|
|
this.$refs.popup.open();
|
|
@@ -199,26 +183,27 @@ export default {
|
|
|
// });
|
|
// });
|
|
|
// }
|
|
// }
|
|
|
},
|
|
},
|
|
|
- bc_code(){
|
|
|
|
|
|
|
+ bc_code() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- console.log('保存二维码',this.erweima)
|
|
|
|
|
- uni.downloadFile({ //获得二维码的临时地址
|
|
|
|
|
- url:this.erweima,
|
|
|
|
|
- success:(res)=>{
|
|
|
|
|
|
|
+ console.log('保存二维码', this.erweima);
|
|
|
|
|
+ uni.downloadFile({
|
|
|
|
|
+ //获得二维码的临时地址
|
|
|
|
|
+ url: this.erweima,
|
|
|
|
|
+ success: res => {
|
|
|
//console.log('获取url',res)
|
|
//console.log('获取url',res)
|
|
|
- if(res.statusCode == 200){
|
|
|
|
|
|
|
+ if (res.statusCode == 200) {
|
|
|
uni.saveImageToPhotosAlbum({
|
|
uni.saveImageToPhotosAlbum({
|
|
|
- filePath:res.tempFilePath,//传入临时地址
|
|
|
|
|
|
|
+ filePath: res.tempFilePath, //传入临时地址
|
|
|
success() {
|
|
success() {
|
|
|
- that.$api.msg('保存成功')//封装的提示
|
|
|
|
|
|
|
+ that.$api.msg('保存成功'); //封装的提示
|
|
|
},
|
|
},
|
|
|
fail() {
|
|
fail() {
|
|
|
- that.$api.msg('保存失败')
|
|
|
|
|
|
|
+ that.$api.msg('保存失败');
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
copy(value) {
|
|
copy(value) {
|
|
|
let obj = this;
|
|
let obj = this;
|
|
@@ -280,11 +265,22 @@ page {
|
|
|
width: 102rpx;
|
|
width: 102rpx;
|
|
|
height: 102rpx;
|
|
height: 102rpx;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
|
|
+ position: relative;
|
|
|
.portrait {
|
|
.portrait {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
}
|
|
}
|
|
|
|
|
+ .he {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ height: 30rpx;
|
|
|
|
|
+ bottom: -4rpx;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ .image {
|
|
|
|
|
+ width: 102rpx;
|
|
|
|
|
+ height: 30rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.name {
|
|
.name {
|
|
|
margin-left: 30rpx;
|
|
margin-left: 30rpx;
|
|
@@ -292,6 +288,24 @@ page {
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: start;
|
|
|
|
|
+ .name-right {
|
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
|
+ width: 50rpx;
|
|
|
|
|
+ height: 60rpx;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ image {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .level {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 20rpx;
|
|
|
|
|
+ left: 10rpx;
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.id {
|
|
.id {
|
|
|
margin-left: 30rpx;
|
|
margin-left: 30rpx;
|
|
@@ -300,26 +314,6 @@ page {
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
}
|
|
}
|
|
|
- .level-box {
|
|
|
|
|
-
|
|
|
|
|
- margin-left: 30rpx;
|
|
|
|
|
- margin-top: 10rpx;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- .image {
|
|
|
|
|
- width: 128rpx;
|
|
|
|
|
- height: 45rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .level {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: 62rpx;
|
|
|
|
|
- height: 44rpx;
|
|
|
|
|
- line-height: 48rpx;
|
|
|
|
|
- font-size: 24rpx;
|
|
|
|
|
- color: #826740;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.main {
|
|
.main {
|
|
@@ -416,13 +410,13 @@ page {
|
|
|
height: 400rpx;
|
|
height: 400rpx;
|
|
|
margin-bottom: 50rpx;
|
|
margin-bottom: 50rpx;
|
|
|
}
|
|
}
|
|
|
- .btn{
|
|
|
|
|
|
|
+ .btn {
|
|
|
width: 300rpx;
|
|
width: 300rpx;
|
|
|
height: 50rpx;
|
|
height: 50rpx;
|
|
|
line-height: 50rpx;
|
|
line-height: 50rpx;
|
|
|
- background: linear-gradient(90deg, #60BAB0, #60BAB0, #45969B);
|
|
|
|
|
|
|
+ background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
- color: #FFFFFF;
|
|
|
|
|
|
|
+ color: #ffffff;
|
|
|
border-radius: 25rpx;
|
|
border-radius: 25rpx;
|
|
|
}
|
|
}
|
|
|
.pop-tip {
|
|
.pop-tip {
|
|
@@ -452,4 +446,32 @@ page {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.config {
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ text-align: right;
|
|
|
|
|
+ font-size: 26rpx !important;
|
|
|
|
|
+ border-radius: 34px 0px 0px 34px;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 120rpx;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ font-family: PingFang SC;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ color: #60bab0;
|
|
|
|
|
+ line-height: 58rpx;
|
|
|
|
|
+ padding:2rpx 8rpx;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ .myself {
|
|
|
|
|
+ padding-top: 9rpx;
|
|
|
|
|
+ padding-left: 5rpx;
|
|
|
|
|
+ height: 30rpx;
|
|
|
|
|
+ width: 30rpx;
|
|
|
|
|
+ margin-right: 6rpx;
|
|
|
|
|
+ image {
|
|
|
|
|
+ height: 30rpx;
|
|
|
|
|
+ width: 30rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|