From f4dfe7df479ffb980b32c1375bfc97c0731448e1 Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Thu, 22 Apr 2021 20:49:55 +0800
Subject: [PATCH] 和微分改造
---
src/views/old/store/wx-pay-score.vue | 23 +++++++++--------------
1 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/src/views/old/store/wx-pay-score.vue b/src/views/old/store/wx-pay-score.vue
index 468bcea..33e1e1a 100644
--- a/src/views/old/store/wx-pay-score.vue
+++ b/src/views/old/store/wx-pay-score.vue
@@ -106,7 +106,7 @@
clearable
maxlength="11"
type="number"
- placeholder="手机号码"
+ placeholder="请输入手机号码"
>
<van-button
v-if="mblNoType == 0 || mblNoType == 1"
@@ -149,6 +149,7 @@
data() {
return {
creditId: '',
+ contType:'',
contId: '', //合约id
contSendCode: '', //合约code
mblType: '',
@@ -188,14 +189,16 @@
},
computed: {},
created() {
+ this.contType = this.$route.query.code;
this.mblNoType = this.$route.query.mblNoType;
- this.$api.wxScoreInit({ type: this.mblNoType }).then(
+ this.$api.wxScoreInit2({ type: this.contType }).then(
(res) => {
this.form = res.body || {};
var arr = res.body.terms;
},
(err) => err
);
+
},
methods: {
//顶部tabbar返回按钮
@@ -225,10 +228,6 @@
// 账号类型
mblVertify(val) {
let v = this.$tool;
- if (v.checkValEmpty(this.mblNoType)) {
- v.toast('请选择手机号类型');
- return false;
- }
if (v.checkValEmpty(this.contSendCode)) {
v.toast('请选择活动套餐');
return false;
@@ -277,7 +276,7 @@
v.toast('号码可用');
return false;
}
-
+
},
(err) => err
);
@@ -287,10 +286,6 @@
let v = this.$tool;
if (v.checkValEmpty(this.contSendCode)) {
v.toast('请选择活动套餐');
- return false;
- }
- if (v.checkValEmpty(this.mblNoType)) {
- v.toast('请选择手机号类型');
return false;
}
if (v.checkValEmpty(this.userName)) {
@@ -321,8 +316,8 @@
this.vertifyStatus = 1;
}else{
if(!this.isClick){
- v.toast('请先点击可用查询后生成二维码');
- return false;
+ v.toast('请先点击可用查询再生成二维码');
+ return false;
}
}
// console.log('ces', this.vertifyStatus + '你');
@@ -332,7 +327,7 @@
}
this.$api
.wxScoreCreate({
- mblNoType: this.mblNoType,
+ contType: this.contType,
creditId: this.creditId,
contId: this.contId,
cardNo: this.idCardNo,
--
Gitblit v1.8.0