Commit d9b9e975 authored by linxin's avatar linxin

Merge branch 'liuin' into uat

parents a9b2a7c9 ff9acc19
...@@ -639,12 +639,18 @@ export default { ...@@ -639,12 +639,18 @@ export default {
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'S') { if (res.code === '200') {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
vm.hlsPopup.showSuccess('提交成功') vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({ vm.$router.push({
name: 'MyInfo', name: 'MyInfo',
}) })
} else if (res.code === '201' || res.code === '202') {
vm.hlsPopup.hideLoading()
vm.hlsPopup.showLongCenter(res.message)
vm.$router.push({
name: 'MyInfo',
})
} else { } else {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
......
...@@ -72,6 +72,21 @@ export default { ...@@ -72,6 +72,21 @@ export default {
}) })
}, },
created () { created () {
const winSize = vum.$vumPlatform.getWinSize()
if (window.localStorage.isReadPolicy === 'false') {
window.localStorage.clear()
} else if (window.localStorage.isReadPolicy === 'true') {
window.localStorage.clear()
window.localStorage.setItem('isReadPolicy', true)
} else {
window.localStorage.clear()
}
if (winSize.width) {
window.localStorage.setItem('width', winSize.width)
}
if (winSize.height) {
window.localStorage.setItem('height', winSize.height)
}
}, },
mounted () { mounted () {
window.addEventListener('native.keyboardhide', function () { window.addEventListener('native.keyboardhide', function () {
......
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 to comment