Commit 8c58a3eb by sunerhu

1.提交邀请加盟userId传参错误

parent 2738ca5f
......@@ -104,7 +104,6 @@
}
this.applyParam = {
...this.applyParam,
applyType:2,
operatStep:5,
userId:uni.getStorageSync('cffp_userId'),
}
......
......@@ -50,7 +50,7 @@
</view>
<view class="contentItem">
<text>所属组织</text>
<input type="text" v-if="applyParam.hasCrossDistrict == 1" class="form-control" v-model="applyParam.areaName" placeholder="请输入工作室名称"
<input type="text" v-if="applyParam.applyType == 1" class="form-control" v-model="applyParam.areaName" placeholder="请输入工作室名称"
:disabled="this.display"/>
<picker v-else @change="changeArea" :value="areaIdIdx" :range="cffpAreaQuerys"
range-key="areaName"
......@@ -159,6 +159,7 @@
partnerLevelName: null,
name: null,
mobile: null,
userId:uni.getStorageSync('cffp_userId'),
shareId: null,
display: false,
cffp_userInfo: {
......@@ -211,8 +212,7 @@
},
queryOrgList() {
const param = {
userId:this.shareId ? uni.getStorageSync('H5_cffpUserId') : uni.getStorageSync('cffp_userId'),
// userId:1,
userId:uni.getStorageSync('H5_cffpUserId') ? uni.getStorageSync('H5_cffpUserId') :this.userId,
partnerLevel: this.applyParam.partnerLevel
}
console.log(param)
......@@ -304,6 +304,7 @@
if (res['success']) {
this.applyParam = res['data']['data'];
this.queryOrgList();
for (let m = 0; m < this.identityArr.length; m++) {
if (this.applyParam.partnerLevel == this.identityArr[m].partnerLevel) {
this.identityIdx = m;
......@@ -395,7 +396,7 @@
...this.applyParam,
applyType: this.applyParam.inviterInvitationCode? '1': '2',
operatStep: 1,
userId:this.shareId ? uni.getStorageSync('H5_cffpUserId') : uni.getStorageSync('cffp_userId'),
userId:uni.getStorageSync('H5_cffpUserId') ? uni.getStorageSync('H5_cffpUserId') : this.userId,
hasCrossDistrict: this.applyParam.hasCrossDistrict?this.applyParam.hasCrossDistrict: '0'
}
api.saveApplyInfo(this.applyParam).then((res) => {
......
......@@ -139,7 +139,6 @@
}
this.applyParam = {
...this.applyParam,
applyType:2,
operatStep:3,
userId:uni.getStorageSync('cffp_userId'),
}
......
......@@ -171,9 +171,7 @@
}
this.applyParam = {
...this.applyParam,
applyType:2,
operatStep:2,
userId:uni.getStorageSync('cffp_userId'),
certificate:this.picList.join(',')
}
console.log(this.applyParam)
......
......@@ -4,12 +4,7 @@
<menu-list :menuList="minorMenuLists"></menu-list>
</view>
<view class="footer">
<view class="foter-btn">
<button class="btn" @click="outLing()">退出登录</button>
</view>
</view>
</view>
</template>
......@@ -55,42 +50,11 @@
}
},
methods:{
outLing(){
uni.showModal({
title: '退出登录',
content: '确定要退出登录吗?',
showCancel: true,
success: function(res) {
if (res.confirm) {
uni.clearStorageSync();
uni.reLaunch({
url:'/components/login/login'
})
uni.showToast({
title: '操作成功',
icon: 'none'
});
} else {
console.log('已取消')
}
}
});
},
}
}
</script>
<style scoped>
.footer{
width: 100vw;
position: fixed;
bottom: 40rpx;
}
.foter-btn{
padding: 0 20rpx;
}
.btn{
background: #20269B;
border-radius: 40rpx;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment