Browse Source

微信 环境 判断

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
1e1cbf8e6c
4 changed files with 10 additions and 9 deletions
  1. 4
      src/assets/styles/style.css
  2. 9
      src/view/put-money.vue
  3. 2
      src/view/service-evaluation-status.vue
  4. 4
      src/view/service-evaluation.vue

4
src/assets/styles/style.css

@ -688,11 +688,11 @@ html,body {
margin-top: 1.8rem;
}
.service-evaluation-status .evaluation-status-box span {
font-size:0.28rem;
font-size:0.36rem;
font-family:PingFang-SC-Medium;
color:rgba(0,186,134,1);
display: block;
margin: auto;
margin-top: 0.25rem;
margin-top: 0.3rem;
text-align: center;
}

9
src/view/put-money.vue

@ -78,10 +78,11 @@
if(this.isActive) {
//
var ua = navigator.userAgent.toLowerCase();
if(!ua.match(/MicroMessenger/i) == "micromessenger") {
this.$vux.toast.text("请登录微信进行操作", "middle");
return;
var ua = window.navigator.userAgent.toLowerCase();
//uaMicroMessenger
if(ua.match(/MicroMessenger/i) !== 'micromessenger'){
this.$vux.toast.text("请登录微信进行操作", "middle");
return;
}
putMoney.putMoney({
amount: this.inputVal * 100

2
src/view/service-evaluation-status.vue

@ -26,7 +26,7 @@
<span v-show="code==2" style="color:#666">不可重复评价</span>
<span v-show="code==3" style="color:#666">已过期</span>
<span v-show="code==4" style="color:#666">账号不一致</span>
<span v-show="code==5" style="color:#666">订单不存在</span>·
<span v-show="code==5" style="color:#666">服务单号不存在</span>·
</div>
</div>
</div>

4
src/view/service-evaluation.vue

@ -96,7 +96,7 @@ export default {
content: "",
alertShow: false,
code: 4,
statusShow: false,
statusShow: true,
//
alertTip: "请完整填写评价",
//
@ -222,7 +222,7 @@ export default {
//
this.code = 4;
this.statusShow = true;
} else if (res.msg == "订单不存在") {
} else if (res.msg == "服务单号不存在") {
//
this.code = 5;
this.statusShow = true;

Loading…
Cancel
Save