Commit 0ccae931 by huSun

我的邀请--传参更改

parent 182bc34c
......@@ -31,7 +31,7 @@
methods:{
getqueryById(id){
console.log(id)
api.queryById(id).then(res =>{
api.queryById({id}).then(res =>{
console.log(res, 77414)
this.areaName = res.data.data.areaName
this.invitationName = res.data.data.invitationName
......
......@@ -97,7 +97,7 @@
<text v-else-if="item.approvalStatus=='3'" class="success">邀请成功</text>
<text v-else class="fail">邀请失败</text>
</view>
<view class="liBox-footer" v-if="item.approvalStatus == 0 || item.approvalStatus== '2'" @click="reinvite()">
<view class="liBox-footer" v-if="item.approvalStatus == 0 || item.approvalStatus== '2'" @click="reinvite(item.id)">
<text>重新邀请</text>
</view>
</view>
......@@ -191,8 +191,17 @@
// 发起邀请事件
shareToggle() {
if (this.isCross == true && this.dataForm.areaName == '') {
if (this.dataForm.name == "" || this.dataForm.mobileNumber == ""|| this.dataForm.areaName =='') {
this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'B1' : 'A1'
this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0'
this.dataForm.areaId = this.queryorgList[this.index].areaId
this.dataForm.areaName = this.isCross == false ? this.queryorgList[this.index].areaName : this.dataForm.areaName
// this.dataForm.b1Name = this.applyIdentity == 'B1' ? this.dataForm.b1Name : null
// if(this.applyIdentity == 'B1'){
// if(this.dataForm.b1Name ==''){
// }
// }
if (this.dataForm.name == "" || this.dataForm.mobileNumber == "" || this.dataForm.areaName =='' || this.applyIdentity == 'B1' && this.dataForm.b1Name =='') {
uni.showToast({
title: '请将信息补充完整',
duration: 2000,
......@@ -200,11 +209,7 @@
});
return false
}
}
this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'B1' : 'A1'
this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0'
this.dataForm.areaId = this.queryorgList[this.index].areaId
this.dataForm.areaName = this.isCross == false ? this.queryorgList[this.index].areaName : ''
api.saveApplyInfo(this.dataForm).then(res => {
if (res['success']) {
// this.switchTab(2)
......@@ -224,10 +229,12 @@
closeShare() {
this.$refs.share.close()
},
reinvite(){
reinvite(id){
this.shareId = id
this.$refs.share.open()
},
uniShare(type) {
console.log(type, 4455)
if (type === 1) {
uni.share({
provider: "weixin",
......
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