app
wangxia 5 months ago
parent 9375cbb5ab
commit 8c052aad16

@ -86,7 +86,7 @@ export default {
}
})
},
uploadPhoto($sourceType = ['album', 'camera']) {
uploadPhoto($sourceType) {
let that = this
console.log('$sourceType', $sourceType)
uni.chooseImage({

@ -1,6 +1,6 @@
<template>
<view class="p-root-detail-fellow g_w_all g_h_all g_bg_f_5 g_kuaishou">
<view>
<view style="padding-bottom: 200rpx;">
<AiApply class @outputInfo="getTownsManInfo" />
<view class="g_h_10"></view>
<g-panel-form-slot :list="[
@ -204,7 +204,8 @@ export default {
let that = this
console.log('info', info)
that.info = {
...info,
...info,
index: that.info.index,
nation: info.nation + '族',
}
},

@ -116,11 +116,12 @@ export default {
console.log("getTownsman", data);
if (that.persenInfo.length == 0) {
that.persenInfo[0] = { ...data.info, index: that.persenInfo.length };
} else if (data.info.index) {
} else if (data.info.index || data.info.index === 0) {
that.persenInfo[data.info.index] = data.info;
} else {
that.persenInfo[that.persenInfo.length] = { ...data.info, index: that.persenInfo.length };
}
console.log("that.persenInfo", that.persenInfo);
that.$forceUpdate();
});
uni.$on("changeJobInfo", function (data) {
@ -407,7 +408,7 @@ export default {
index: $index,
};
}
console.log('params',params);
if (info) {
uni.navigateTo({
url: "/root/home/editTownsman?" + that.G.objToStr(params),

Loading…
Cancel
Save