|
@@ -35,8 +35,6 @@
|
|
|
<u-button class="u-m-t-40 btn-back-color" type="error" @click="sumbit">提交</u-button>
|
|
<u-button class="u-m-t-40 btn-back-color" type="error" @click="sumbit">提交</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-card>
|
|
</uni-card>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -83,6 +81,7 @@
|
|
|
'&access_token=' +
|
|
'&access_token=' +
|
|
|
token + '&tenantId='
|
|
token + '&tenantId='
|
|
|
}
|
|
}
|
|
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
}
|
|
|
}).catch(e => {})
|
|
}).catch(e => {})
|
|
|
},
|
|
},
|
|
@@ -95,28 +94,15 @@
|
|
|
return true
|
|
return true
|
|
|
},
|
|
},
|
|
|
sumbit() {
|
|
sumbit() {
|
|
|
- uni.showLoading({
|
|
|
|
|
- mask: true,
|
|
|
|
|
- title: "加载中"
|
|
|
|
|
- })
|
|
|
|
|
if (this.user.name == '') {
|
|
if (this.user.name == '') {
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '请填写姓名',
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- })
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
|
|
+ this.$methCommon.getPrompt('请填写姓名')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (!this.checkPhone(this.user.mobile)) {
|
|
if (!this.checkPhone(this.user.mobile)) {
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '请填写正确的手机号码',
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- })
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
|
|
+ this.$methCommon.getPrompt('请填写正确的手机号码')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ this.$methCommon.getShowToast()
|
|
|
this.$http.post('ibps/platform/v3/employee/update', {
|
|
this.$http.post('ibps/platform/v3/employee/update', {
|
|
|
partyEmployeePo: this.user,
|
|
partyEmployeePo: this.user,
|
|
|
user: this.user,
|
|
user: this.user,
|
|
@@ -127,12 +113,7 @@
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.data.state == '200') {
|
|
if (res.data.state == '200') {
|
|
|
let datas = res.data
|
|
let datas = res.data
|
|
|
- uni.showToast({
|
|
|
|
|
- title: datas.message,
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.$methCommon.getPrompt(datas.message)
|
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
|
info.user = this.user
|
|
info.user = this.user
|
|
|
uni.setStorage({
|
|
uni.setStorage({
|
|
@@ -141,20 +122,12 @@
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
let datas = res.data
|
|
let datas = res.data
|
|
|
- uni.showToast({
|
|
|
|
|
- title: datas.cause,
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$methCommon.getPrompt(datas.cause)
|
|
|
}
|
|
}
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
|
let datas = res.data
|
|
let datas = res.data
|
|
|
- uni.showToast({
|
|
|
|
|
- title: datas.cause,
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 2000
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$methCommon.getPrompt(datas.cause)
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -249,4 +222,4 @@
|
|
|
/deep/ .u-form-item--left__content__label {
|
|
/deep/ .u-form-item--left__content__label {
|
|
|
color: #8799a3;
|
|
color: #8799a3;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|