app
wangxia 5 months ago
parent 9375cbb5ab
commit 8c052aad16

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

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

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

Loading…
Cancel
Save