Commit d3c9bede authored by 乐宝呗666's avatar 乐宝呗666

修改提示问题

parent d94d382a
...@@ -71,6 +71,8 @@ function errorState(status, data) { ...@@ -71,6 +71,8 @@ function errorState(status, data) {
} }
if(data.message.indexOf("not have permission") !== -1){ if(data.message.indexOf("not have permission") !== -1){
Toast.fail("抱歉,你无权访问该页面!") Toast.fail("抱歉,你无权访问该页面!")
}else{
Toast.fail(data.message)
} }
} else { } else {
Toast.fail(data) Toast.fail(data)
...@@ -134,7 +136,6 @@ const httpServer = (opts, data, file, timeout) => { ...@@ -134,7 +136,6 @@ const httpServer = (opts, data, file, timeout) => {
}).catch((response) => { }).catch((response) => {
Toast.clear() Toast.clear()
clearTimeout(markIndex) clearTimeout(markIndex)
debugger
if (response && response.response && response.response.status && response.response.data) { if (response && response.response && response.response.status && response.response.data) {
errorState(response.response.status, response.response.data) errorState(response.response.status, response.response.data)
} }
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
.then((res) => { .then((res) => {
if (res.data.resultCode === "200") { if (res.data.resultCode === "200") {
if(status === '2'){ if(status === '2'){
this.$router.replace({path:"/success",query:{txt:'激活成功',url:'/opt'}}) this.$router.replace({path:"/success",query:{txt:'激活成功!机顶盒登录密码为'+res.data.data+',改密码为机顶盒登录密码,请妥善保存。',url:'/opt'}})
}else{ }else{
this.$router.replace({path:"/success",query:{txt:'上报成功',url:'/opt'}}) this.$router.replace({path:"/success",query:{txt:'上报成功',url:'/opt'}})
} }
......
...@@ -38,6 +38,7 @@ export default { ...@@ -38,6 +38,7 @@ export default {
margin-top: 30px; margin-top: 30px;
font-size: 18px; font-size: 18px;
color: #333; color: #333;
padding: 30px;
} }
.van-button--normal { .van-button--normal {
background: #a4151d; background: #a4151d;
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
/> />
<van-field <van-field
label="再次输入新密码" label="再次输入新密码"
type="password"
v-model="form.againPsd" v-model="form.againPsd"
placeholder="请再次输入新密码" placeholder="请再次输入新密码"
input-align="right" input-align="right"
......
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