|
|
|
|
@ -179,7 +179,10 @@
|
|
|
|
|
this.submitWatchOnly()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
const form = uni.getStorageSync('formdata') || {}
|
|
|
|
|
// 与 submitWatchOnly 一致:首页「学习培训」只有 studydata,拜访预约以 formdata 为准
|
|
|
|
|
const prev = uni.getStorageSync('studydata') || {}
|
|
|
|
|
const fd = uni.getStorageSync('formdata') || {}
|
|
|
|
|
const form = Object.assign({}, prev, fd)
|
|
|
|
|
const base = {
|
|
|
|
|
type: parseInt(this.type),
|
|
|
|
|
name: form.name,
|
|
|
|
|
@ -187,7 +190,6 @@
|
|
|
|
|
idcard: form.idcard || form.passcard,
|
|
|
|
|
expire_day: this.studyInfo.expire_day
|
|
|
|
|
}
|
|
|
|
|
const prev = uni.getStorageSync('studydata') || {}
|
|
|
|
|
uni.setStorageSync('studydata', Object.assign({}, prev, base))
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/pages/visit/testStudy?type=' + this.type
|
|
|
|
|
|