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

修改提示问题

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