Commit c9c79915 by 李伟康

commit 修复

1 parent 02f1dc1d
...@@ -13,12 +13,14 @@ export default { ...@@ -13,12 +13,14 @@ export default {
let userInfo = uni.$storage.get('userInfo') let userInfo = uni.$storage.get('userInfo')
uni.$api.userApi.getListSelectAccount().then(res => { uni.$api.userApi.getListSelectAccount().then(res => {
uni.hideLoading() uni.hideLoading()
if (res.code == 0 && userInfo) uni.reLaunch({ setTimeout(() => {
url: '/pages/home/home' if (res.code == 0 && userInfo) uni.reLaunch({
}) url: '/pages/home/home'
else uni.reLaunch({ })
url: '/pages/common/login' else uni.reLaunch({
}) url: '/pages/common/login'
})
}, 300)
}) })
}, },
methods: { methods: {
......
...@@ -82,7 +82,16 @@ ...@@ -82,7 +82,16 @@
ref="employeeBoxVisible" ref="employeeBoxVisible"
@select="handleSelect($event,'employeeBoxVisible')" @select="handleSelect($event,'employeeBoxVisible')"
/> />
<uni-popup
ref="successRef"
type="message"
>
<uni-popup-message
type="success"
message="保存成功"
:duration="1500"
></uni-popup-message>
</uni-popup>
</view> </view>
</template> </template>
...@@ -185,6 +194,7 @@ export default { ...@@ -185,6 +194,7 @@ export default {
title: '请完善本次接待结果', title: '请完善本次接待结果',
icon: 'none' icon: 'none'
}) })
this.$refs.successRef.open();
this.setReceptionStatus(receptionStatus); this.setReceptionStatus(receptionStatus);
this.$emit('submit', receptionStatus) this.$emit('submit', receptionStatus)
} }
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
} }
} }
.canvas-box { .canvas-box {
padding-top: 4rpx; padding-top: 6rpx;
.left { .left {
animation: show-view-left 0.3s; animation: show-view-left 0.3s;
} }
......
...@@ -263,10 +263,12 @@ export default { ...@@ -263,10 +263,12 @@ export default {
this.$refs.finish.close() this.$refs.finish.close()
this.stopAudio(); this.stopAudio();
// uni.navigateBack(); // uni.navigateBack();
this.id = ""; setTimeout(() => {
this.type = ""; this.id = "";
this.$store.dispatch("clearCanvas", true); this.type = "";
this.setReceptionStatus(e); this.$store.dispatch("clearCanvas", true);
this.setReceptionStatus(e);
}, 1500);
}, },
back () { back () {
if (!this.id) return uni.navigateBack(); if (!this.id) return uni.navigateBack();
...@@ -294,7 +296,7 @@ export default { ...@@ -294,7 +296,7 @@ export default {
this.type = 'preview' this.type = 'preview'
this.id = id this.id = id
}, },
openStep(){ openStep () {
this.$refs.finish.close() this.$refs.finish.close()
this.$refs.detail.open() this.$refs.detail.open()
} }
......
...@@ -68,16 +68,6 @@ ...@@ -68,16 +68,6 @@
ref="stepRef" ref="stepRef"
@submit="submit" @submit="submit"
/> />
<uni-popup
ref="successRef"
type="message"
>
<uni-popup-message
type="success"
message="保存成功"
:duration="1500"
></uni-popup-message>
</uni-popup>
<update-box /> <update-box />
</view> </view>
</template> </template>
...@@ -158,7 +148,6 @@ export default { ...@@ -158,7 +148,6 @@ export default {
this.setBooks(utils.deepClone(this.infoList)); this.setBooks(utils.deepClone(this.infoList));
this.stopAudio(); this.stopAudio();
this.infoList = INFO_LIST.map((item) => delete item.imgUrl); this.infoList = INFO_LIST.map((item) => delete item.imgUrl);
this.$refs.successRef.open();
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/home/home", url: "/pages/home/home",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!