3333
This commit is contained in:
parent
a3467d074a
commit
2577d7c817
|
|
@ -57,8 +57,10 @@
|
|||
<view class="" style="flex-direction: row; display: flex; width: 686rpx; margin: 40rpx auto;">
|
||||
<button v-if="!ish5" open-type="share" class="invite-btn">立即邀请</button>
|
||||
<button v-if="ish5" class="invite-btn" @click="yaoaing()">立即邀请</button>
|
||||
<button v-if="!isApp" class="invite-btn2" style="margin-left: 20rpx;" @click="showPosterPopup">生成海报</button>
|
||||
<button v-if="isApp && !hasBoundCode" class="invite-btn2" style="margin-left: 20rpx;" @click="showBindCodePopup">绑定邀请码</button>
|
||||
<button v-if="!isApp" class="invite-btn2" style="margin-left: 20rpx;"
|
||||
@click="showPosterPopup">生成海报</button>
|
||||
<button v-if="isApp && !hasBoundCode" class="invite-btn2" style="margin-left: 20rpx;"
|
||||
@click="showBindCodePopup">绑定邀请码</button>
|
||||
<button v-if="isApp && hasBoundCode" class="invite-btn2 " style="margin-left: 20rpx;">已绑定上级</button>
|
||||
</view>
|
||||
|
||||
|
|
@ -153,9 +155,9 @@ export default {
|
|||
onLoad() {
|
||||
console.log(uni.getStorageSync('userinfo').ID)
|
||||
console.log(this.$platform.code);
|
||||
if (this.$platform.code == 'WEB_APP') {
|
||||
this.isApp=true;
|
||||
this.ish5=true;
|
||||
if (this.$platform.code == 'WEB_APP' || this.$platform.code == 'APP_IOS' || this.$platform.code == 'APP_ANDROID') {
|
||||
this.isApp = true;
|
||||
this.ish5 = true;
|
||||
}
|
||||
if (this.$platform.code == 'WEB_H5') {
|
||||
this.isApp = false;
|
||||
|
|
@ -164,18 +166,18 @@ export default {
|
|||
var that = this;
|
||||
getUserInfo().then(res => {
|
||||
console.log(res);
|
||||
|
||||
|
||||
that.userInfo = res;
|
||||
if(res.pid!=0){
|
||||
if (res.pid != 0) {
|
||||
that.hasBoundCode = true;
|
||||
|
||||
|
||||
}
|
||||
// this.hasBoundCode = res.data.hasBound;
|
||||
// if (this.hasBoundCode) {
|
||||
// this.inviteCode = res.data.inviteCode || '';
|
||||
// }
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
yaoaing() {
|
||||
|
|
@ -248,8 +250,8 @@ export default {
|
|||
},
|
||||
showBindCodePopup() {
|
||||
// 查询是否已绑定邀请码
|
||||
console.log(this.userInfo );
|
||||
if(this.userInfo.pid!=0){
|
||||
console.log(this.userInfo);
|
||||
if (this.userInfo.pid != 0) {
|
||||
this.$c.msg("您已绑定邀请码,不可更改");
|
||||
return;
|
||||
}
|
||||
|
|
@ -263,7 +265,7 @@ export default {
|
|||
this.$c.msg("请输入邀请码");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
let that = this;
|
||||
that.req({
|
||||
url: 'bind_invite_code',
|
||||
|
|
@ -539,7 +541,7 @@ page {
|
|||
color: #D8FD24;
|
||||
font-size: 24rpx;
|
||||
// background: url($imgurl+'my/promotion_poster.png') no-repeat 0 0 / 100% 100%;
|
||||
|
||||
|
||||
&.disabled {
|
||||
background-color: #666666;
|
||||
color: #AAAAAA;
|
||||
|
|
@ -701,7 +703,7 @@ page {
|
|||
border-radius: 16rpx;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
.bind-code-title {
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
|
|
@ -709,10 +711,10 @@ page {
|
|||
font-weight: 500;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
|
||||
.bind-code-content {
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
|
||||
.bind-code-input {
|
||||
height: 80rpx;
|
||||
background-color: #F5F5F5;
|
||||
|
|
@ -721,34 +723,34 @@ page {
|
|||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
|
||||
.bind-code-tips {
|
||||
font-size: 24rpx;
|
||||
color: #FF6B00;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.bind-code-btns {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
|
||||
button {
|
||||
width: 240rpx;
|
||||
height: 76rpx;
|
||||
border-radius: 38rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
|
||||
.bind-code-cancel {
|
||||
background-color: #F5F5F5;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
|
||||
.bind-code-confirm {
|
||||
background-color: #D8FD24;
|
||||
color: #333333;
|
||||
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
|
@ -763,13 +765,13 @@ page {
|
|||
border-radius: 16rpx;
|
||||
padding: 30rpx 0;
|
||||
text-align: center;
|
||||
|
||||
|
||||
.invite-code-title {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
|
||||
.invite-code-value {
|
||||
font-size: 48rpx;
|
||||
font-weight: bold;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user