修改小程序bug
This commit is contained in:
@@ -21,32 +21,32 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSureClick() {
|
||||
let name = this.$refs.nameAndphone.model.userInfo.name
|
||||
let phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
if (!/^1[3456789]\d{9}$/.test(phone)) {
|
||||
this.$toast.warn('请输入正确的手机号')
|
||||
return false
|
||||
}
|
||||
this.$apiServe.bindComponyAndUpdate({
|
||||
uid: 1,
|
||||
type: 1,
|
||||
companyName: name,
|
||||
companyPhone: phone
|
||||
}).then(res => {
|
||||
console.log('绑定公司', res.data);
|
||||
if (res.data.code == 20003) {
|
||||
this.showM = true
|
||||
} else if (res.data.code == 20005) {
|
||||
this.$toast.warn('请完善数据')
|
||||
}
|
||||
}).finally(_ => {})
|
||||
},
|
||||
confirm() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/my/my'
|
||||
})
|
||||
}
|
||||
// handleSureClick() {
|
||||
// let name = this.$refs.nameAndphone.model.userInfo.name
|
||||
// let phone = this.$refs.nameAndphone.model.userInfo.phone
|
||||
// if (!/^1[3456789]\d{9}$/.test(phone)) {
|
||||
// this.$toast.warn('请输入正确的手机号')
|
||||
// return false
|
||||
// }
|
||||
// // this.$apiServe.bindComponyAndUpdate({
|
||||
// // uid: 1,
|
||||
// // type: 1,
|
||||
// // companyName: name,
|
||||
// // companyPhone: phone
|
||||
// // }).then(res => {
|
||||
// // console.log('绑定公司', res.data);
|
||||
// // if (res.data.code == 20003) {
|
||||
// // this.showM = true
|
||||
// // } else if (res.data.code == 20005) {
|
||||
// // this.$toast.warn('请完善数据')
|
||||
// // }
|
||||
// // }).finally(_ => {})
|
||||
// },
|
||||
// confirm() {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/my/my'
|
||||
// })
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -49,6 +49,11 @@
|
||||
if (option.ask == 1) {
|
||||
this.needAsk = option.ask
|
||||
}
|
||||
if (uni.getStorageSync('com_name') && uni.getStorageSync('com_mobile')) {
|
||||
this.$refs.nameAndphone.model.userInfo.name = uni.getStorageSync('com_name')
|
||||
this.$refs.nameAndphone.model.userInfo.phone = uni.getStorageSync('com_mobile')
|
||||
this.$refs.nameAndphone.disabled = true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSureClick() {
|
||||
@@ -69,7 +74,7 @@
|
||||
if (name && phone) {
|
||||
console.log('数据已完善');
|
||||
this.$apiServe.bindComponyAndUpdate({
|
||||
uid: 1,
|
||||
uid: uni.getStorageSync('user_id'),
|
||||
type: 2,
|
||||
companyName: name,
|
||||
companyPhone: phone
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="time_line">
|
||||
<view class="release_time">
|
||||
<text v-if="updateIndex==0||updateIndex==1">{{item.update_time}}</text>
|
||||
<text v-else>{{item.pub_time}}</text>
|
||||
<text v-else>{{item.update_time}}</text>
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="btn" @click="viewIdeasOrNeeds(item)" v-if="item.status==1">
|
||||
@@ -39,7 +39,7 @@
|
||||
<view class="release_time">
|
||||
|
||||
<text v-if="updateIndex==0||updateIndex==1">{{item.update_time}}</text>
|
||||
<text v-else>{{item.pub_time}}</text>
|
||||
<text v-else>{{item.update_time}}</text>
|
||||
</view>
|
||||
<view style="display: flex;">
|
||||
<view class="btn" @click="viewIdeasOrNeeds(item)" v-if="item.status==1">
|
||||
|
||||
Reference in New Issue
Block a user