|
|
@@ -12,35 +12,19 @@
|
|
|
</view>
|
|
|
<view class="flex_r flex_ac mar_t16">
|
|
|
<view class="account">{{ higherInfo.mobile || "" }}</view>
|
|
|
- <view class="copyBalance" @tap="copyAccount(higherInfo.mobile)"
|
|
|
- >复制</view
|
|
|
- >
|
|
|
+ <view class="copyBalance" @tap="copyAccount(higherInfo.mobile)">复制</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="head_option flex_r flex_ac">
|
|
|
- <!-- <image
|
|
|
- class="option_weixin"
|
|
|
- src="/static/img/weixin.png"
|
|
|
- mode=""
|
|
|
- @tap="copyText"
|
|
|
- ></image> -->
|
|
|
+ <!-- <image class="option_weixin" src="/static/img/weixin.png" mode="" @tap="copyText"></image> -->
|
|
|
<view class="option_hr"></view>
|
|
|
- <image
|
|
|
- class="option_phone"
|
|
|
- src="/static/img/dianhua.png"
|
|
|
- mode=""
|
|
|
- @tap="dial(higherInfo.mobile)"
|
|
|
- ></image>
|
|
|
+ <image class="option_phone" src="/static/img/dianhua.png" mode="" @tap="dial(higherInfo.mobile)"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="head_time flex_r flex_ac"
|
|
|
- >注册时间:{{ $day(higherInfo.reg_time * 1000).format('YYYY-MM-DD HH:mm:ss') }}</view
|
|
|
- >
|
|
|
+ <view class="head_time flex_r flex_ac">注册时间:{{ $day(higherInfo.reg_time * 1000).format('YYYY-MM-DD HH:mm:ss') }}</view>
|
|
|
</view>
|
|
|
<!-- 顶部-end -->
|
|
|
-
|
|
|
<!-- 茶友数量 -->
|
|
|
<view class="tea_con mar_t30">
|
|
|
<view class="tea_total flex_r flex_ac flex_jc">
|
|
|
@@ -58,58 +42,26 @@
|
|
|
<view class="info_list flex_c flex_ac flex_jc borRight" @tap="getToTeaList">
|
|
|
<view class="list_num">{{ myTeaFriendNum || 0 }}<text>人</text></view>
|
|
|
<view class="list_text">推广用户</view>
|
|
|
- <div class="untotal_info">
|
|
|
- 本日新增:{{ myChayoyDirect.day }}<br />
|
|
|
- 本周新增:{{ myChayoyDirect.week }}<br />
|
|
|
- 本月新增:{{ myChayoyDirect.month }}<br />
|
|
|
- </div>
|
|
|
+ <div class="untotal_info">
|
|
|
+ 本日新增:{{ myChayoyDirect.day }}<br />
|
|
|
+ 本周新增:{{ myChayoyDirect.week }}<br />
|
|
|
+ 本月新增:{{ myChayoyDirect.month }}<br />
|
|
|
+ </div>
|
|
|
</view>
|
|
|
<view class="info_list flex_c flex_ac flex_jc">
|
|
|
<view class="list_num">{{ myZhuanTeaFriendNum || 0 }}<text>人</text></view>
|
|
|
<view class="list_text">转介绍用户</view>
|
|
|
- <div class="untotal_info">
|
|
|
- 本日新增:{{ myChayoyIndirect.day }}<br />
|
|
|
- 本周新增:{{ myChayoyIndirect.week }}<br />
|
|
|
- 本月新增:{{ myChayoyIndirect.month }}<br />
|
|
|
- </div>
|
|
|
+ <div class="untotal_info">
|
|
|
+ 本日新增:{{ myChayoyIndirect.day }}<br />
|
|
|
+ 本周新增:{{ myChayoyIndirect.week }}<br />
|
|
|
+ 本月新增:{{ myChayoyIndirect.month }}<br />
|
|
|
+ </div>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 茶友数量-end -->
|
|
|
-
|
|
|
- <!-- <view class="setBtn flex_r flex_ac flex_jc" @tap="setContact"
|
|
|
- >设置联系方式</view
|
|
|
- > -->
|
|
|
-
|
|
|
- <!-- 设置联系方式 -->
|
|
|
- <popup ref="popup" type="center">
|
|
|
- <view class="msg_con">
|
|
|
- <view class="msg_head flex_r flex_ac flex_jb">
|
|
|
- <view class="msg_title">填写信息</view>
|
|
|
- <image
|
|
|
- class="msg_close"
|
|
|
- src="/static/cuowu_icon.png"
|
|
|
- mode=""
|
|
|
- @tap="closePopup"
|
|
|
- ></image>
|
|
|
- </view>
|
|
|
- <view class="from">
|
|
|
- <view class="from_list">
|
|
|
- <input type="text" v-model="wxcode" placeholder="请输入微信号" />
|
|
|
- </view>
|
|
|
- <view class="from_list">
|
|
|
- <input type="text" v-model="mobile" placeholder="请输入手机号" />
|
|
|
- </view>
|
|
|
- <view class="confimBtn flex_r flex_ac flex_jc" @tap="setUserInfo"
|
|
|
- >提交</view
|
|
|
- >
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </popup>
|
|
|
- <!-- 设置联系方式-end -->
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
let app = getApp();
|
|
|
var appEv = app.$vm.$options;
|
|
|
@@ -134,7 +86,7 @@ export default {
|
|
|
myChayoyIndirect: {},
|
|
|
};
|
|
|
},
|
|
|
- onLoad: function () {
|
|
|
+ onLoad: function() {
|
|
|
this.loadData();
|
|
|
|
|
|
this.getmyChayoyTotal()
|
|
|
@@ -177,7 +129,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 填写我的信息
|
|
|
- setUserInfo: function () {
|
|
|
+ setUserInfo: function() {
|
|
|
let that = this;
|
|
|
let data = {
|
|
|
phone: this.mobile,
|
|
|
@@ -198,7 +150,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 复制微信号
|
|
|
- copyText: function () {
|
|
|
+ copyText: function() {
|
|
|
let that = this;
|
|
|
if (that.higherInfo.higherNumber == "") {
|
|
|
appEv.errTips("用户暂未设置微信");
|
|
|
@@ -211,7 +163,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 复制账号
|
|
|
- copyAccount: function (e) {
|
|
|
+ copyAccount: function(e) {
|
|
|
uniCopy({
|
|
|
content: e,
|
|
|
success: (res) => {},
|
|
|
@@ -219,22 +171,22 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 设置联系方式
|
|
|
- setContact: function () {
|
|
|
+ setContact: function() {
|
|
|
let that = this;
|
|
|
that.$refs.popup.open();
|
|
|
},
|
|
|
// 关闭窗口
|
|
|
- closePopup: function () {
|
|
|
+ closePopup: function() {
|
|
|
this.$refs.popup.close();
|
|
|
},
|
|
|
// 跳转到我的茶友列表
|
|
|
- getToTeaList: function () {
|
|
|
+ getToTeaList: function() {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/tea-list/index",
|
|
|
});
|
|
|
},
|
|
|
// 拨打电话
|
|
|
- dial: function (e) {
|
|
|
+ dial: function(e) {
|
|
|
let that = this;
|
|
|
if (that.higherInfo.higherPhone == "") {
|
|
|
appEv.errTips("用户暂未设置电话");
|
|
|
@@ -247,16 +199,17 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
page {
|
|
|
background: #f5f5f5;
|
|
|
}
|
|
|
+
|
|
|
// 页面配置
|
|
|
.container {
|
|
|
padding: 20rpx 30rpx;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
// 页面配置-end
|
|
|
|
|
|
// 顶部
|
|
|
@@ -264,20 +217,24 @@ page {
|
|
|
font-size: 24rpx;
|
|
|
color: #7f7f7f;
|
|
|
}
|
|
|
+
|
|
|
.option_weixin {
|
|
|
width: 42rpx;
|
|
|
height: 35rpx;
|
|
|
}
|
|
|
+
|
|
|
.option_phone {
|
|
|
width: 36rpx;
|
|
|
height: 36rpx;
|
|
|
margin-left: 30rpx;
|
|
|
}
|
|
|
+
|
|
|
.user_name {
|
|
|
font-size: 30rpx;
|
|
|
color: #363638;
|
|
|
margin-right: 12rpx;
|
|
|
}
|
|
|
+
|
|
|
.head {
|
|
|
width: 100%;
|
|
|
overflow: hidden;
|
|
|
@@ -285,18 +242,21 @@ page {
|
|
|
background: #fff;
|
|
|
border-bottom: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
}
|
|
|
+
|
|
|
.head_img {
|
|
|
width: 79rpx;
|
|
|
height: 79rpx;
|
|
|
margin-right: 30rpx;
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
+
|
|
|
.option_hr {
|
|
|
width: 3rpx;
|
|
|
height: 66rpx;
|
|
|
background: rgba(0, 0, 0, 0.12);
|
|
|
margin-left: 30rpx;
|
|
|
}
|
|
|
+
|
|
|
.copyBalance {
|
|
|
padding: 0 10rpx;
|
|
|
background: #1cbe8c;
|
|
|
@@ -304,6 +264,7 @@ page {
|
|
|
font-size: 22rpx;
|
|
|
margin-left: 12rpx;
|
|
|
}
|
|
|
+
|
|
|
.level {
|
|
|
width: 74rpx;
|
|
|
height: 26rpx;
|
|
|
@@ -312,6 +273,7 @@ page {
|
|
|
font-size: 20rpx;
|
|
|
line-height: 1;
|
|
|
}
|
|
|
+
|
|
|
.head_time {
|
|
|
width: 100%;
|
|
|
height: 60rpx;
|
|
|
@@ -320,13 +282,15 @@ page {
|
|
|
font-size: 22rpx;
|
|
|
color: #606060;
|
|
|
}
|
|
|
+
|
|
|
.head_info {
|
|
|
width: 100%;
|
|
|
overflow: hidden;
|
|
|
padding: 40rpx 24rpx 20rpx;
|
|
|
box-sizing: border-box;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
// 顶部-end
|
|
|
|
|
|
// 茶友数量
|
|
|
@@ -334,129 +298,81 @@ page {
|
|
|
font-size: 36rpx;
|
|
|
color: #1cbe8c;
|
|
|
}
|
|
|
+
|
|
|
.total_num {
|
|
|
font-size: 40rpx;
|
|
|
color: #232323;
|
|
|
}
|
|
|
+
|
|
|
.list_text {
|
|
|
font-size: 26rpx;
|
|
|
color: #606060;
|
|
|
}
|
|
|
+
|
|
|
.list_num text {
|
|
|
font-size: 26rpx;
|
|
|
color: #1cbe8c;
|
|
|
}
|
|
|
+
|
|
|
.total_num text {
|
|
|
font-size: 26rpx;
|
|
|
color: #232323;
|
|
|
}
|
|
|
+
|
|
|
.borRight {
|
|
|
border-right: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
}
|
|
|
+
|
|
|
.info_list {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
.total_text {
|
|
|
font-size: 26rpx;
|
|
|
color: #606060;
|
|
|
margin-top: 12rpx;
|
|
|
}
|
|
|
-.total_info{
|
|
|
+
|
|
|
+.total_info {
|
|
|
font-size: 22rpx;
|
|
|
color: #333;
|
|
|
margin-left: 32rpx;
|
|
|
}
|
|
|
-.untotal_info{
|
|
|
+
|
|
|
+.untotal_info {
|
|
|
font-size: 22rpx;
|
|
|
color: #333;
|
|
|
- margin-top: 32rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
.tea_con {
|
|
|
width: 100%;
|
|
|
overflow: hidden;
|
|
|
border-radius: 8rpx;
|
|
|
background: #fff;
|
|
|
}
|
|
|
+
|
|
|
.tea_info {
|
|
|
width: 100%;
|
|
|
// height: 156rpx;s
|
|
|
- padding: 16rpx 0;
|
|
|
+ padding: 26rpx 0;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
.tea_total {
|
|
|
width: 100%;
|
|
|
height: 260rpx;
|
|
|
border-bottom: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
}
|
|
|
+
|
|
|
.total_con {
|
|
|
width: 164rpx;
|
|
|
height: 164rpx;
|
|
|
border: 6rpx solid #1cbe8c;
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
-// 茶友数量-end
|
|
|
-
|
|
|
-// 设置联系方式
|
|
|
-.setBtn {
|
|
|
- width: 100%;
|
|
|
- height: 83rpx;
|
|
|
- background: #1cbe8c;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 36rpx;
|
|
|
- border-radius: 4rpx;
|
|
|
- margin-top: 128rpx;
|
|
|
-}
|
|
|
-// 设置联系方式-end
|
|
|
|
|
|
-// 设置联系方式弹窗
|
|
|
-.msg_close {
|
|
|
- width: 31rpx;
|
|
|
- height: 31rpx;
|
|
|
-}
|
|
|
-.msg_title {
|
|
|
- font-size: 28rpx;
|
|
|
- color: #252525;
|
|
|
-}
|
|
|
-.from_list input {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
-}
|
|
|
-.msg_con {
|
|
|
- width: 650rpx;
|
|
|
- overflow: hidden;
|
|
|
- border-radius: 12rpx;
|
|
|
- background: #fff;
|
|
|
-}
|
|
|
-.from {
|
|
|
- width: 100%;
|
|
|
- overflow: hidden;
|
|
|
- padding: 24rpx 30rpx;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-.confimBtn {
|
|
|
- width: 100%;
|
|
|
- height: 60rpx;
|
|
|
- background: #1cbe8c;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 34rpx;
|
|
|
-}
|
|
|
-.msg_head {
|
|
|
- width: 100%;
|
|
|
- height: 88rpx;
|
|
|
- padding: 0 30rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- border-bottom: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
-}
|
|
|
-.from_list {
|
|
|
- width: 100%;
|
|
|
- height: 60rpx;
|
|
|
- padding: 0 30rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- border-radius: 2rpx;
|
|
|
- margin-bottom: 24rpx;
|
|
|
- background: #efefef;
|
|
|
-}
|
|
|
-// 设置联系方式弹窗-end
|
|
|
-</style>
|
|
|
+// 茶友数量-end
|
|
|
+</style>
|