no message

cyl/master
jscyl13849007907 1 week ago
parent 912f1504fd
commit 5657621762

@ -116,7 +116,7 @@ export function createApp () {
}) })
}) })
}, },
getAgencyInfo () { getAgencyInfo (callback=()=>{}) {
let that = this let that = this
G.Get("/yishoudan/agency/getInfo", {}, (res) => { G.Get("/yishoudan/agency/getInfo", {}, (res) => {
let obj = { ...res.agency, ...res.weixinConfig } let obj = { ...res.agency, ...res.weixinConfig }
@ -130,6 +130,7 @@ export function createApp () {
uni.setStorageSync("pgy-agency-id", res.agency.id); uni.setStorageSync("pgy-agency-id", res.agency.id);
uni.setStorageSync("ai-name", res.agency.aiRobotName); uni.setStorageSync("ai-name", res.agency.aiRobotName);
uni.setStorageSync("ai-logo", res.agency.aiLogo); uni.setStorageSync("ai-logo", res.agency.aiLogo);
callback();
// app.$forceUpdate(); // app.$forceUpdate();
}); });
}, },

@ -12,7 +12,7 @@
<view class=""> <view class="">
<view class="g_mb_4 g_pl_10 g_c_6" v-if="false"></view> <view class="g_mb_4 g_pl_10 g_c_6" v-if="false"></view>
<view class="g_bg_f g_pl_10 g_radius_8"> <view class="g_bg_f g_pl_10 g_radius_8">
<u-input type="textarea" height="240" :customStyle="{ fontSize: '34rpx' }" :clearable="false" autoHeight :value="notice" @input="changeNotice"></u-input> <u-input type="textarea" height="240" :customStyle="{ fontSize: '34rpx' }" :clearable="false" autoHeight v-model="notice" @input="changeNotice"></u-input>
</view> </view>
<view class="g_mt_32" hover-class="none" hover-stop-propagation="false" style="margin-top: 214px;"> <view class="g_mt_32" hover-class="none" hover-stop-propagation="false" style="margin-top: 214px;">
<rh-button primaryColor='#3578f6' :type="isChange ? 'primary' : 'disabled'" btnText="完成" @clickBtn="subNameInfo" <rh-button primaryColor='#3578f6' :type="isChange ? 'primary' : 'disabled'" btnText="完成" @clickBtn="subNameInfo"
@ -99,7 +99,11 @@ export default {
icon: "none", icon: "none",
}); });
that.isChange = false; that.isChange = false;
that.G.getAgencyInfo(); that.G.getAgencyInfo(()=>{
uni.switchTab({
url:'/pages/home/index'
})
});
},()=>{ },()=>{
that.isSubmit = false; that.isSubmit = false;
}); });

Loading…
Cancel
Save