提交了
This commit is contained in:
parent
7d1bce8174
commit
deb2985432
@ -382,6 +382,9 @@ Page({
|
||||
|
||||
popUpdate.value = [popUpdate.slider1Value, popUpdate.slider2Value]
|
||||
|
||||
console.log("popUpdate", popUpdate);
|
||||
this.data.popUpdate = popUpdate
|
||||
this.data.newinfo[popUpdate.field] = popUpdate.value
|
||||
},
|
||||
changed: function (e) {
|
||||
let popUpdate = this.data.popUpdate
|
||||
@ -598,7 +601,7 @@ Page({
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
if (element.field == 'rentalduration') {
|
||||
if (this.data.types == 'edit' || this.data.types == 'edit1') {
|
||||
element.choices.forEach((el, i) => {
|
||||
@ -2250,6 +2253,7 @@ Page({
|
||||
if (!element) return
|
||||
// 出租方式
|
||||
if (element.field == "type") {
|
||||
console.log("this.data.fieldinfoNew", this.data.fieldinfoNew);
|
||||
this.data.fieldinfoNew[element.field].choices.forEach(el => {
|
||||
el.choices.forEach(e => {
|
||||
if (newinfo.type && newinfo.type.indexOf(e.value) >= 0) {
|
||||
@ -2308,7 +2312,9 @@ Page({
|
||||
})
|
||||
}
|
||||
|
||||
miucms.request(app.globalData.baseURL + '/tenement/publish/submit', {
|
||||
// /tenement/v2/api/publish/submit
|
||||
// miucms.request(app.globalData.baseURL + '/tenement/publish/submit', {
|
||||
miucms.request(app.globalData.baseURL + '/tenement/v2/api/publish/submit', {
|
||||
info: newinfo,
|
||||
token: this.data.newToken,
|
||||
status
|
||||
@ -2486,25 +2492,52 @@ Page({
|
||||
// 用户提交后返回没有填写字段需要弹出字段窗
|
||||
calculateTargetPopup(field) {
|
||||
let fieldinfo = this.data.fieldinfo
|
||||
|
||||
let popUpdate = this.data.fieldinfoNew[field]
|
||||
|
||||
for (const key in fieldinfo) {
|
||||
fieldinfo[key].forEach((element, index) => {
|
||||
console.log("element, index", element, index, key);
|
||||
if (element.field == field) {
|
||||
this.data.aa.forEach(el => {
|
||||
if (el.name == element.title) {
|
||||
this.setData({
|
||||
popUpIs: el.popUpIs,
|
||||
popUpTitle: this.data.fieldinfo[key][index].title,
|
||||
popUpdate: this.data.fieldinfoNew[this.data.fieldinfo[key][index].field],
|
||||
step: index,
|
||||
popUpit: key,
|
||||
popUpStepState: el.popUpStepState
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
popUpIs: popUpdate.popUpIs,
|
||||
popUpTitle: popUpdate.title,
|
||||
popUpdate,
|
||||
step: index,
|
||||
popUpit: key,
|
||||
popUpStepState: popUpdate.popUpStepState
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
console.log("popUpit", this.data.popUpit);
|
||||
|
||||
|
||||
// for (const key in fieldinfo) {
|
||||
// console.log("fieldinfo", fieldinfo);
|
||||
|
||||
// fieldinfo[key].forEach((element, index) => {
|
||||
// if (element.field == field) {
|
||||
// this.data.aa.forEach(el => {
|
||||
// if (el.name == element.title) {
|
||||
// this.setData({
|
||||
// popUpIs: el.popUpIs,
|
||||
// popUpTitle: this.data.fieldinfo[key][index].title,
|
||||
// popUpdate: this.data.fieldinfoNew[this.data.fieldinfo[key][index].field],
|
||||
// step: index,
|
||||
// popUpit: key,
|
||||
// popUpStepState: el.popUpStepState
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
|
||||
// }
|
||||
},
|
||||
|
||||
// 检查输入的微信号是否是 wxid_开头的
|
||||
|
Loading…
x
Reference in New Issue
Block a user