Commit 8c58a3eb by sunerhu

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

parent 2738ca5f
...@@ -104,7 +104,6 @@ ...@@ -104,7 +104,6 @@
} }
this.applyParam = { this.applyParam = {
...this.applyParam, ...this.applyParam,
applyType:2,
operatStep:5, operatStep:5,
userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
} }
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</view> </view>
<view class="contentItem"> <view class="contentItem">
<text>所属组织</text> <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"/> :disabled="this.display"/>
<picker v-else @change="changeArea" :value="areaIdIdx" :range="cffpAreaQuerys" <picker v-else @change="changeArea" :value="areaIdIdx" :range="cffpAreaQuerys"
range-key="areaName" range-key="areaName"
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
partnerLevelName: null, partnerLevelName: null,
name: null, name: null,
mobile: null, mobile: null,
userId:uni.getStorageSync('cffp_userId'),
shareId: null, shareId: null,
display: false, display: false,
cffp_userInfo: { cffp_userInfo: {
...@@ -211,8 +212,7 @@ ...@@ -211,8 +212,7 @@
}, },
queryOrgList() { queryOrgList() {
const param = { const param = {
userId:this.shareId ? uni.getStorageSync('H5_cffpUserId') : uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('H5_cffpUserId') ? uni.getStorageSync('H5_cffpUserId') :this.userId,
// userId:1,
partnerLevel: this.applyParam.partnerLevel partnerLevel: this.applyParam.partnerLevel
} }
console.log(param) console.log(param)
...@@ -304,6 +304,7 @@ ...@@ -304,6 +304,7 @@
if (res['success']) { if (res['success']) {
this.applyParam = res['data']['data']; this.applyParam = res['data']['data'];
this.queryOrgList(); this.queryOrgList();
for (let m = 0; m < this.identityArr.length; m++) { for (let m = 0; m < this.identityArr.length; m++) {
if (this.applyParam.partnerLevel == this.identityArr[m].partnerLevel) { if (this.applyParam.partnerLevel == this.identityArr[m].partnerLevel) {
this.identityIdx = m; this.identityIdx = m;
...@@ -395,7 +396,7 @@ ...@@ -395,7 +396,7 @@
...this.applyParam, ...this.applyParam,
applyType: this.applyParam.inviterInvitationCode? '1': '2', applyType: this.applyParam.inviterInvitationCode? '1': '2',
operatStep: 1, 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' hasCrossDistrict: this.applyParam.hasCrossDistrict?this.applyParam.hasCrossDistrict: '0'
} }
api.saveApplyInfo(this.applyParam).then((res) => { api.saveApplyInfo(this.applyParam).then((res) => {
......
...@@ -139,7 +139,6 @@ ...@@ -139,7 +139,6 @@
} }
this.applyParam = { this.applyParam = {
...this.applyParam, ...this.applyParam,
applyType:2,
operatStep:3, operatStep:3,
userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
} }
......
...@@ -171,9 +171,7 @@ ...@@ -171,9 +171,7 @@
} }
this.applyParam = { this.applyParam = {
...this.applyParam, ...this.applyParam,
applyType:2,
operatStep:2, operatStep:2,
userId:uni.getStorageSync('cffp_userId'),
certificate:this.picList.join(',') certificate:this.picList.join(',')
} }
console.log(this.applyParam) console.log(this.applyParam)
......
...@@ -4,13 +4,8 @@ ...@@ -4,13 +4,8 @@
<menu-list :menuList="minorMenuLists"></menu-list> <menu-list :menuList="minorMenuLists"></menu-list>
</view> </view>
<view class="footer">
<view class="foter-btn">
<button class="btn" @click="outLing()">退出登录</button>
</view>
</view> </view>
</view>
</template> </template>
<script> <script>
...@@ -55,42 +50,11 @@ ...@@ -55,42 +50,11 @@
} }
}, },
methods:{ 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> </script>
<style scoped> <style scoped>
.footer{
width: 100vw;
position: fixed;
bottom: 40rpx;
}
.foter-btn{
padding: 0 20rpx;
}
.btn{
background: #20269B;
border-radius: 40rpx;
}
</style> </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