diff --git a/pages/bd/bddetail.vue b/pages/bd/bddetail.vue index f1dfdc1..689fdff 100644 --- a/pages/bd/bddetail.vue +++ b/pages/bd/bddetail.vue @@ -23,7 +23,7 @@ 拜访人:{{info.name}} 电话:{{info.mobile}} 事由:{{info.reason}} - 停车区域:{{info.plate}} + 车辆:{{info.plate}} diff --git a/pages/bd/record.vue b/pages/bd/record.vue index 482fae8..b4f357e 100644 --- a/pages/bd/record.vue +++ b/pages/bd/record.vue @@ -16,7 +16,7 @@ {{item.audit_status_text}} - + 访问时间:{{item.date}} @@ -61,7 +61,8 @@ export default { data() { return { - btnActive: "", + btnActive: "", + nowadminID:'', btnList: [{ label: "全部", value: '' @@ -93,7 +94,9 @@ this.recordType = options.type this.select.my_audit = this.recordType=='mycheck'?1:0 this.select.my_self = this.recordType=='call'?1:0 - this.select.my_accept_admin = this.recordType=='myrecord'?1:0 + this.select.my_accept_admin = this.recordType=='myrecord'?1:0 + this.nowadminID = uni.getStorageSync('userInfo_Bd').id + console.log("this.nowadminID",this.nowadminID) this.loadList() }, onPullDownRefresh() { diff --git a/pages/bd/signpic.vue b/pages/bd/signpic.vue index 06d73cc..9eea132 100644 --- a/pages/bd/signpic.vue +++ b/pages/bd/signpic.vue @@ -118,7 +118,7 @@ duration: 2000, icon: 'none' }) - uni.navigateTo({ + uni.redirectTo({ url: '/pages/bd/record?type=myrecord' }) }, diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue index 7e11e24..75a2390 100644 --- a/pages/visit/addrecord.vue +++ b/pages/visit/addrecord.vue @@ -40,7 +40,7 @@ v-model="form.work_end_time" /> - + @@ -62,9 +62,25 @@ + + + + + + + + + 删除 + + - - + + @@ -73,7 +89,7 @@ style="margin-bottom:20rpx"> - 删除 @@ -645,9 +749,9 @@ padding: 40rpx } .configtitle { - font-size: 50rpx; - text-align: center; - padding: 20rpx 0; + font-size: 40rpx; + text-align: center; + margin-top:36rpx } .configvalue { padding: 40rpx; diff --git a/pages/visit/detail.vue b/pages/visit/detail.vue index 0322e1f..fd9e044 100644 --- a/pages/visit/detail.vue +++ b/pages/visit/detail.vue @@ -24,7 +24,7 @@ 拜访人:{{info.name}} 电话:{{info.mobile}} 事由:{{info.reason}} - 停车区域:{{info.plate}} + 车辆类型:{{info.plate}} diff --git a/pages/visit/study.vue b/pages/visit/study.vue index 5573352..fa3018e 100644 --- a/pages/visit/study.vue +++ b/pages/visit/study.vue @@ -3,7 +3,7 @@ - + + + + 通过测验后,{{studyInfo.expire_day}}天内可不再重复学习。 @@ -42,27 +45,22 @@ rate: 0, askList: [], correctNum: {}, - answerList: [], - result: {}, - resultArr: [ - [], - [], - [], - [], - [], - [], - [], - [], - [] - ], - formData: {} + answerList: [], + result: {}, //单选 + resultArr: [], // 多选 + formData: {}, + askData:{}, + askContent:[], } }, onLoad(options) { let that = this - this.type = options.type - + this.type = options.type + this.askData.type = parseInt(options.type) + // for(let i=0;i<20;i++){ + // this.resultArr.push([]) + // } this.getFormdata() this.getStudy() @@ -82,14 +80,20 @@ utilSuccess: function(res) { that.studyInfo = res that.askList = res.asks - that.rate = parseInt(res.rate) + that.rate = parseInt(res.rate) + that.askData.ask = res.asks + that.askData.expire_day = res.expire_day + for(let i=0;i{ + if(k.length>0){ + this.askContent[index] = k + } + }) + this.askData.content = this.askContent + console.log(this.result,this.resultArr,'---',this.askContent) + console.log("askdata",this.askData) + that.submitStudy() + // return this.util.request({ api: '/api/mobile/visit/visit-save', method: "POST", @@ -155,6 +169,26 @@ } }) }, + submitStudy() { + let that = this + this.util.request({ + api: '/api/mobile/visit/ask-save', + method: "POST", + data: that.askData, + utilSuccess: function(res) { + + }, + utilFail: function(res) { + uni.showToast({ + title: res, + duration: 2000, + icon: 'none' + }) + } + }) + }, + + newsSubscription() { uni.getSetting({ withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回 @@ -238,5 +272,11 @@ .steps { margin-bottom: 40rpx + } + .expire{ + text-align: center; + font-size: 40rpx; + /* padding: 10px; */ + margin-bottom: 40rpx; }