|
@@ -2,33 +2,36 @@
|
|
|
<view class="body">
|
|
|
|
|
|
<view class="pd24_20 flex alcenter space user-info">
|
|
|
- <view class="flex alcenter" @click="opsets">
|
|
|
+ <view class="flex alcenter">
|
|
|
<view class="member-face">
|
|
|
<image class="face" :src="statics.defaultFace"></image>
|
|
|
- <image class="vip-level" :src="userinfo.group_id>1?statics.vipLevelImg[0]:''"></image>
|
|
|
+ <!-- <image class="vip-level" :src="userinfo.group_id>1?statics.vipLevelImg[0]:''"></image> -->
|
|
|
</view>
|
|
|
<view class="ml15">
|
|
|
<view class="ft16 cl-main">{{userinfo.type}}</view>
|
|
|
- <view class="mt12 ft12 cl-notice">ID:{{ userinfo.user_id || '' }}</view>
|
|
|
+ <view class="mt12 ft12 cl-notice">ID:{{ userinfo.uid || '' }}
|
|
|
+ <image @click="copyId(userinfo.uid || '')" style="margin-left: 10px; width: 30rpx;height: 15px;"
|
|
|
+ src="../../../static/img/wode/cpoy.png">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pd24_20">
|
|
|
-
|
|
|
+
|
|
|
<div class="box pd16_15 creadit-box">
|
|
|
- <div class="mt16 coin-box">
|
|
|
- <div class="flex alcenter coin-item">
|
|
|
- <label class="coin-text">12300</label>
|
|
|
- <label class="coin-text">永久看币</label>
|
|
|
- </div>
|
|
|
- <label class="box-line">|</label>
|
|
|
- <div class="flex alcenter coin-item" >
|
|
|
- <label class="coin-text" >12300</label>
|
|
|
- <label class="coin-text">赠送看币</label>
|
|
|
- </div>
|
|
|
+ <div class="mt16 coin-box">
|
|
|
+ <div class="flex alcenter coin-item">
|
|
|
+ <label class="coin-text">{{userinfo.charge_coin|| 0}}</label>
|
|
|
+ <label class="coin-text">永久看币</label>
|
|
|
+ </div>
|
|
|
+ <label class="box-line">|</label>
|
|
|
+ <div class="flex alcenter coin-item">
|
|
|
+ <label class="coin-text">{{userinfo.free_coin|| 0}}</label>
|
|
|
+ <label class="coin-text">赠送看币</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="mt16 box-cj"><label class="btn-cz">去充值</label></div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<!-- <home-vipcard :userinfo="userinfo" @loginAct="showLoginAct" @qrcode="showQrcode = true"></home-vipcard> -->
|
|
|
|
|
@@ -50,17 +53,23 @@
|
|
|
<com-copyright></com-copyright>
|
|
|
<!-- <image src=""></image> -->
|
|
|
<!-- <com-footer model="member"></com-footer> -->
|
|
|
- <uni-popup ref="popup" type="center"><image class="qrcode-img" :src="kefu.url"></image></uni-popup>
|
|
|
+ <uni-popup ref="popup" type="center">
|
|
|
+ <image class="qrcode-img" :src="kefu.url"></image>
|
|
|
+ </uni-popup>
|
|
|
<dialog-birthday v-if="showBirthday" @closed="showBirthday = false"></dialog-birthday>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
- import {getKefu} from "@/common/apis/common.js"
|
|
|
- import {getUserInfo} from "@/common/apis/my.js"
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ getKefu
|
|
|
+ } from "@/common/apis/common.js"
|
|
|
+ import {
|
|
|
+ getUserInfo
|
|
|
+ } from "@/common/apis/my.js"
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -72,9 +81,10 @@
|
|
|
avatar: '',
|
|
|
userinfo: {
|
|
|
type: "微信用户",
|
|
|
- id: '00001',
|
|
|
- },
|
|
|
- kefu:{url:"",},
|
|
|
+ },
|
|
|
+ kefu: {
|
|
|
+ url: "",
|
|
|
+ },
|
|
|
vipLevel: 0,
|
|
|
iskq: 0,
|
|
|
uid: 0,
|
|
@@ -85,8 +95,8 @@
|
|
|
{
|
|
|
name: '我的追剧',
|
|
|
type: 'link',
|
|
|
- model: '',
|
|
|
- link: '/pages/client/tuan/zjjl',
|
|
|
+ model: 'tab',
|
|
|
+ link: '/pages/client/tuan/zui',
|
|
|
icon: this.$config.zystaticUrl + '/static/img/wode/zhuij.png',
|
|
|
show: 1
|
|
|
},
|
|
@@ -138,9 +148,10 @@
|
|
|
this.kefu = await getKefu();
|
|
|
},
|
|
|
async onShow() {
|
|
|
- let info = await getUserInfo();
|
|
|
+ let info = await getUserInfo();
|
|
|
+ this.userinfo = info;
|
|
|
},
|
|
|
- onShareAppMessage: function(res) {
|
|
|
+ onShareAppMessage: function(res) {
|
|
|
// #ifdef MP-WEIXIN
|
|
|
var href = '/pages/login/login?fxpid=' + this.uid
|
|
|
console.log(res)
|
|
@@ -183,16 +194,17 @@
|
|
|
},
|
|
|
memberLinkTo(e) {
|
|
|
let index = parseInt(e.currentTarget.dataset.index);
|
|
|
- if (this.isLogin == false && this.getMenus[index].model != 'integral') {
|
|
|
- this.showLogin = true;
|
|
|
- } else {
|
|
|
-
|
|
|
- }
|
|
|
+ console.log("this.getMenus[index].model", this.getMenus[index].model, 'this.getMenus[index].link', this
|
|
|
+ .getMenus[index].link)
|
|
|
if (this.getMenus[index].link != '') {
|
|
|
if (this.getMenus[index].model == 'integral') {
|
|
|
uni.redirectTo({
|
|
|
url: this.getMenus[index].link
|
|
|
})
|
|
|
+ } else if (this.getMenus[index].model == 'tab') {
|
|
|
+ uni.switchTab({
|
|
|
+ url: this.getMenus[index].link
|
|
|
+ })
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
url: this.getMenus[index].link
|
|
@@ -210,6 +222,26 @@
|
|
|
url: '/pages/client/member/info'
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ copyId(uid) {
|
|
|
+ console.log('uid', uid);
|
|
|
+ uni.setClipboardData({
|
|
|
+ data: uid,
|
|
|
+ success: () => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '复制成功',
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ },
|
|
|
+ error: (err) => {
|
|
|
+ uni.showToast({
|
|
|
+ title: err,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|