feat: 绑定逻辑
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
"name" : "信任桥",
|
"name" : "信任桥",
|
||||||
"appid" : "__UNI__4910728",
|
"appid" : "__UNI__4910728",
|
||||||
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : 125,
|
"versionCode" : 126,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
</up-input>
|
</up-input>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="register_info_item">
|
<view class="register_info_item">
|
||||||
<up-input placeholder="推荐码" border="surround" v-model="form.referralCode" :customStyle="inputCss"
|
<up-input placeholder="推荐码(选填)" border="surround" v-model="form.referralCode" :customStyle="inputCss"
|
||||||
:disabled="disabled"></up-input>
|
:disabled="disabled"></up-input>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
<view>上级ID:{{ performanceData.seniorId || 0 }}</view>
|
<view>上级ID:{{ performanceData.seniorId || 0 }}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 绑定 -->
|
<!-- 绑定 -->
|
||||||
<view v-else @click="bindHowShow = true;"> 点击绑定</view>
|
<view v-else @click="bindHowShow = true;" class="bind_how"> 点击绑定</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="my_team_content_warp">
|
<view class="my_team_content_warp">
|
||||||
@@ -181,6 +182,7 @@
|
|||||||
@cancel="bindHowShow = false" class="bind-show-model">
|
@cancel="bindHowShow = false" class="bind-show-model">
|
||||||
<up-input placeholder="输入邀请码" border="surround" v-model="bindValue"></up-input>
|
<up-input placeholder="输入邀请码" border="surround" v-model="bindValue"></up-input>
|
||||||
</up-modal>
|
</up-modal>
|
||||||
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -228,20 +230,22 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
formatDate,
|
formatDate,
|
||||||
getValue,
|
getValue,
|
||||||
onBindConfirm() {
|
async onBindConfirm() {
|
||||||
console.log(this.bindValue, '/user/bindInvitationCode');
|
const result = await bindInvitationCode({
|
||||||
bindInvitationCode({
|
|
||||||
inviteCode: this.bindValue,
|
inviteCode: this.bindValue,
|
||||||
}).then(res => {
|
|
||||||
if (res && res.bizcode === 100) {
|
|
||||||
this.$refs.uToastRef.show({
|
|
||||||
type: 'success',
|
|
||||||
message: "绑定成功",
|
|
||||||
});
|
|
||||||
this.bindHowShow = false;
|
|
||||||
this.getUserInfo();
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (result && result.bizcode === 100) {
|
||||||
|
this.bindHowShow = false;
|
||||||
|
this.$refs.uToastRef.show({
|
||||||
|
type: 'success',
|
||||||
|
message: "绑定成功",
|
||||||
|
});
|
||||||
|
this.getUserInfo();
|
||||||
|
this.getPerformance();
|
||||||
|
this.getAcctCategory();
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
jumpMine() {
|
jumpMine() {
|
||||||
uni.switchTab({// 首页
|
uni.switchTab({// 首页
|
||||||
@@ -558,4 +562,16 @@ export default {
|
|||||||
color: rgba(0, 0, 0, 0.4);
|
color: rgba(0, 0, 0, 0.4);
|
||||||
line-height: 38rpx;
|
line-height: 38rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bind_how {
|
||||||
|
width: 150rpx;
|
||||||
|
height: 45rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 45rpx;
|
||||||
|
border: 1rpx solid #fff;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user