|
@@ -11,12 +11,15 @@
|
|
|
<view class="self-search-box">
|
|
<view class="self-search-box">
|
|
|
<view class="search-content">
|
|
<view class="search-content">
|
|
|
<view class="search-content-value">{{userTime}}</view>
|
|
<view class="search-content-value">{{userTime}}</view>
|
|
|
- <view class="search-content-text">剩余查询次数(次)</view>
|
|
|
|
|
|
|
+ <view class="search-content-text">剩余查询(次)</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="line"></view>
|
|
<view class="line"></view>
|
|
|
<view class="search-content">
|
|
<view class="search-content">
|
|
|
<view class="search-content-value">{{userTotalTime}}</view>
|
|
<view class="search-content-value">{{userTotalTime}}</view>
|
|
|
- <view class="search-content-text">总查询次数(次)</view>
|
|
|
|
|
|
|
+ <view class="search-content-text">累计查询(次)</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="share-detail" @click.stop="goShareDetail">
|
|
|
|
|
+ <text>明细></text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -48,7 +51,7 @@
|
|
|
<text>邀好友</text>
|
|
<text>邀好友</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="margin-right: 2%;margin-top:2%;display: flex;">
|
|
<view style="margin-right: 2%;margin-top:2%;display: flex;">
|
|
|
- <text style="font-size: 25upx;color:#999999;padding-right: 20rpx;">邀1人得10次查询机会</text>
|
|
|
|
|
|
|
+ <text style="font-size: 25upx;color:#999999;padding-right: 20rpx;">邀1人得{{shareCounts}}次查询机会</text>
|
|
|
<image src="../../static/icon/arrowIcon.png" mode="" style="width: 32upx;height:32upx;"></image>
|
|
<image src="../../static/icon/arrowIcon.png" mode="" style="width: 32upx;height:32upx;"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -80,10 +83,12 @@
|
|
|
userHeadUrl:getApp().globalData.user_headUrl,
|
|
userHeadUrl:getApp().globalData.user_headUrl,
|
|
|
userTime:getApp().globalData.times,
|
|
userTime:getApp().globalData.times,
|
|
|
userTotalTime:getApp().globalData.total_times,
|
|
userTotalTime:getApp().globalData.total_times,
|
|
|
- isIos:getApp().globalData.isIos
|
|
|
|
|
|
|
+ isIos:getApp().globalData.isIos,
|
|
|
|
|
+ shareCounts:'10',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
|
|
+ this.getShareCounts();
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
this.getUserTimes();
|
|
this.getUserTimes();
|
|
@@ -104,6 +109,34 @@
|
|
|
this.isShowAuthBtn = true;
|
|
this.isShowAuthBtn = true;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ getShareCounts(){
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ uni.request({
|
|
|
|
|
+ url:getApp().globalData.shareUrl, //需要设置为全局
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ header: {
|
|
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
|
+ },
|
|
|
|
|
+ data: {
|
|
|
|
|
+ method: 'get_invite_rule',
|
|
|
|
|
+ timestamp: getApp().globalData.globalTimestamp, //Date.now()
|
|
|
|
|
+ uid:getApp().globalData.user_id,
|
|
|
|
|
+ sign: md5('get_invite_rule' + getApp().globalData.globalTimestamp),
|
|
|
|
|
+ },
|
|
|
|
|
+ success: res => {
|
|
|
|
|
+ getApp().globalData.globalShareCounts = res.data.msg || 10;
|
|
|
|
|
+ that.shareCounts = res.data.msg || 10
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ goShareDetail(){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pages/selfInfo/shareDetail/shareDetail',
|
|
|
|
|
+ success: res => {},
|
|
|
|
|
+ fail: () => {},
|
|
|
|
|
+ complete: () => {}
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getUserTimes(){
|
|
getUserTimes(){
|
|
|
let that = this;
|
|
let that = this;
|
|
|
uni.request({
|
|
uni.request({
|
|
@@ -228,13 +261,25 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.self-search-box {
|
|
.self-search-box {
|
|
|
- height: 200upx;
|
|
|
|
|
|
|
+ height: 230upx;
|
|
|
width: 85%;
|
|
width: 85%;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
margin-top: 5%;
|
|
margin-top: 5%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .share-detail {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 175upx;
|
|
|
|
|
+ right: 10upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ .share-detail text {
|
|
|
|
|
+ font-size: 26upx;
|
|
|
|
|
+ text-decoration: underline;
|
|
|
|
|
+ color: #999;
|
|
|
}
|
|
}
|
|
|
.line {
|
|
.line {
|
|
|
height: 150rpx;
|
|
height: 150rpx;
|
|
@@ -256,8 +301,9 @@
|
|
|
font-size: 42rpx;
|
|
font-size: 42rpx;
|
|
|
}
|
|
}
|
|
|
.search-content-text {
|
|
.search-content-text {
|
|
|
- color: #888;
|
|
|
|
|
|
|
+ color:#000;
|
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
|
|
|
+ margin-top: -10%;
|
|
|
}
|
|
}
|
|
|
.self-pay-box {
|
|
.self-pay-box {
|
|
|
height: 200upx;
|
|
height: 200upx;
|
|
@@ -315,4 +361,5 @@
|
|
|
.setting-content-text text {
|
|
.setting-content-text text {
|
|
|
font-size:30rpx;
|
|
font-size:30rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|