Commit a07a0d26 by LJM

bug

parent 3a1c28d5
......@@ -8,7 +8,7 @@
<text class="t2">{{ info.user_info.name }}</text>
</view>
</view>
<view class="row verCenter">
<view class="row verCenter" @click="exit()">
<text class="iconfont icon-a-juxing1"></text>
<text class="t2">设置</text>
</view>
......@@ -76,6 +76,26 @@ export default {
this.info = res.data;
}
});
},
exit() {
uni.showModal({
title: '提示',
content: '确定要退出系统吗?',
showCancel: true,
success: res => {
if (res.confirm) {
uni.removeStorageSync('oa_skey');
uni.removeStorageSync('oa_user_id');
uni.removeStorageSync('company_id');
uni.redirectTo({
url: '/pages/mine/login'
});
} else if (res.cancel) {
// 用户点击取消操作
console.log('用户点击取消');
}
}
});
}
}
};
......
......@@ -295,6 +295,9 @@ export default {
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
if (res.data.list[0].mobile_default_img) {
this.image_list = res.data.list[0].mobile_default_img.split(',');
}
uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货'
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment