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

edit-file

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