Browse Source

添加 弹出信息

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
19ec410c4e
2 changed files with 17 additions and 6 deletions
  1. 5
      src/view/put-money.vue
  2. 18
      src/view/service-evaluation.vue

5
src/view/put-money.vue

@ -44,6 +44,7 @@
export default{
data() {
return {
//
inputCue : '(请输入整数金额)',
//
isActive:false,
@ -73,7 +74,8 @@
methods:{
//
submit() {
if(this.isActive) {
if(this.isActive) {
console.log(this.inputVal)
putMoney.putMoney(
{amount:this.inputVal}
).then(res => {
@ -82,6 +84,7 @@
}else {
this.$vux.toast.text(res.msg,'middle')
}
this.$vux.toast.text(res)
})
}
},

18
src/view/service-evaluation.vue

@ -68,7 +68,7 @@
</transition>
<transition name="alertFade">
<div class="tips" v-show="alertShow">
请完整填写评价
{{alertTip}}
</div>
</transition>
<status :code="code" v-show="statusShow"></status>
@ -94,7 +94,9 @@ export default {
content: "",
alertShow: false,
code: 4,
statusShow: false
statusShow: false,
//
alertTip: '请完整填写评价',
};
},
components: {
@ -118,6 +120,7 @@ export default {
this.serviceScore == 0 ||
this.professionScore == 0
) {
this.alertTip = '请完整填写评价'
this.alertShow = true;
setTimeout(() => {
this.alertShow = false;
@ -146,6 +149,11 @@ export default {
this.statusShow = true;
} else if (code == 1) {
//
this.alertTip = res.msg
this.alertShow = true;
setTimeout(() => {
this.alertShow = false;
}, 3000);
} else if (code == 2) {
//
this.code = 2;
@ -164,9 +172,9 @@ export default {
},
getParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
// var r = window.location.search.substr(1).match(reg);
var url = '?name=林同学&time=2018:07:07';
var r = url.substr(1).match(reg);
var r = window.location.search.substr(1).match(reg);
// var url = '?name=&time=2018:07:07';
// var r = url.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
},

Loading…
Cancel
Save