Commit c9c79915 by 李伟康

commit 修复

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