diff --git a/coupon/details.html b/coupon/details.html
index f44d8bc..01fc02b 100644
--- a/coupon/details.html
+++ b/coupon/details.html
@@ -305,6 +305,9 @@
case 14:
this.placeholder = "请输入邮箱/QQ号/微信号";
break;
+ case 99:
+ this.placeholder = "请输入昵称";
+ break;
default:
this.placeholder = "请输入手机号/邮箱/QQ号/微信号";
break;
@@ -364,6 +367,12 @@
} else {
this.productType = data.entity.account_type;
}
+
+ /* 微博 */
+ if (goodsDetail.entity.account_type == 0 && this.goodInfo.product_name.indexOf('微博') !== -1) {
+ this.productType = 99;
+ }
+
this.receive_time = data.entity.time_limit;
this.$nextTick(function () {
var swiper = new Swiper('.swiper-container', {
@@ -453,9 +462,6 @@
let weiXinReg = /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/.test(this.account);
let regFlag = true;
switch (Number(this.productType)) {
- case 0:
- this.placeholder = "请输入昵称";
- break;
case 1:
regFlag = phoneReg;
break;
diff --git a/exchange.html b/exchange.html
index 5b5f204..c8e67cd 100644
--- a/exchange.html
+++ b/exchange.html
@@ -192,6 +192,12 @@
} else {
this.productType = goodsInform.account_type;
}
+
+ /* 微博 */
+ if (goodsDetail.entity.account_type == 0 && goodsInform.product_name.indexOf('微博') !== -1) {
+ this.productType = 99;
+ }
+
this.$nextTick(function () {
var swiper = new Swiper('.swiper-container', {
loop: true, // 循环模式选项
@@ -269,9 +275,7 @@
let emailsreg = /^[A-Za-z0-9\u4e00-\u9fa5\.]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(this.account);
let weixinreg = /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/.test(this.account);
let regflag = true;
- if (this.productType == 0) {
- this.placeholder = "请输入昵称";
- } else if (this.productType == 1) {
+ if (this.productType == 1) {
regflag = phonereg;
} else if (this.productType == 2) {
regflag = emailsreg;
@@ -420,7 +424,7 @@
this.maxlen = 50;
this.acctype = "text";
if (newVal == 0) {
- this.placeholder = "请输入昵称";
+ this.placeholder = "请输入账号";
} else if (newVal == 1) {
this.acctype = "tel";
this.placeholder = "请输入手机号";
@@ -459,6 +463,8 @@
this.maxlen = 20;
} else if (newVal == 14) {
this.placeholder = "请输入邮箱/QQ号/微信号";
+ } else if (newVal == 99) {
+ this.placeholder = "请输入昵称";
} else {
this.placeholder = "请输入手机号/邮箱/QQ号/微信号";
}