Commit ab1b8118 authored by 李俊赕's avatar 李俊赕

edit-file

parents 8cec2f31 0dade5e4
...@@ -12,24 +12,24 @@ ...@@ -12,24 +12,24 @@
"navigationBarTitleText": "充电桩安装招募" "navigationBarTitleText": "充电桩安装招募"
} }
},{ },{
"path": "pages/exam/index", "path": "pages/exam/index",
"style": { "style": {
"navigationBarTitleText": "入驻考试" "navigationBarTitleText": "入驻考试"
} }
},{ },{
"path": "pages/exam/start", "path": "pages/exam/start",
"style": { "style": {
"navigationBarTitleText": "考试" "navigationBarTitleText": "考试"
} }
},{ },{
"path": "pages/settle/sign-contract", "path": "pages/settle/sign-contract",
"style": { "style": {
"navigationBarTitleText": "签约页面" "navigationBarTitleText": "签约页面"
} }
},{ },{
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
...@@ -59,13 +59,7 @@ ...@@ -59,13 +59,7 @@
{
"path": "pages/settle/base",
"style": {
"navigationBarTitleText": "入驻信息"
}
},
{ {
"path": "pages/settle/select", "path": "pages/settle/select",
"style": { "style": {
......
...@@ -81,7 +81,12 @@ ...@@ -81,7 +81,12 @@
</view> </view>
<view class="seat"></view> <view class="seat"></view>
<view class="btn-wrap flex-xc"> <view class="btn-wrap flex-xc">
<<<<<<< HEAD
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)"> <button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
=======
<!--view class="">submitBaseInfo</view-->
<button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo()">
>>>>>>> 0dade5e4a5ee0777e1ef0c34a1dacaef53b723bb
确定 确定
</button> </button>
</view> </view>
...@@ -109,7 +114,8 @@ ...@@ -109,7 +114,8 @@
areaTxts: [], areaTxts: [],
workingAgeTxt: '', workingAgeTxt: '',
protocolContent: '', protocolContent: '',
address:'' address:'',
isPosting:false
} }
}, },
onLoad(e) { onLoad(e) {
...@@ -119,6 +125,12 @@ ...@@ -119,6 +125,12 @@
} }
this.initLocation() this.initLocation()
}, },
onShow() {
if (this.isPosting) {
this.isPosting = false
}
},
computed: { computed: {
submitStatus() { submitStatus() {
const baseInfo = this.baseInfo const baseInfo = this.baseInfo
...@@ -302,15 +314,31 @@ ...@@ -302,15 +314,31 @@
}); });
return !flagArr || flagArr.length < 1; return !flagArr || flagArr.length < 1;
}, },
/*
shakeCLick: function() {
let timer = setTimeout(() => {
clearTimeout(timer)
this.submitBaseInfo()
}, 2000)
},
*/
async submitBaseInfo() { async submitBaseInfo() {
// this.newSubmitBaseInfo() // this.newSubmitBaseInfo()
// return // return
const baseInfo = this.baseInfo; const baseInfo = this.baseInfo;
if (!this.checkBaseInfo()) { if (!this.checkBaseInfo()) {
return; return;
} }
if (this.isPosting){
return
}
this.isPosting = true//尝试防抖
this.saving = true; this.saving = true;
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
...@@ -322,6 +350,9 @@ ...@@ -322,6 +350,9 @@
const res = await this.$u.api.submitSettleBaseInfo(params) const res = await this.$u.api.submitSettleBaseInfo(params)
this.saving = false; this.saving = false;
uni.hideLoading() uni.hideLoading()
//this.isPosting = false
if (res.code != 200) { if (res.code != 200) {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
......
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