|
|
@@ -81,7 +81,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 体验弹窗 -->
|
|
|
- <div class="tiyan" v-if="isexperience">
|
|
|
+ <div class="tiyan" v-show="isexperience">
|
|
|
<img @click="Closeexperience" class="tc-on ty-out" src="/static/img/qiye/x.png" alt="" />
|
|
|
<div><img class="ty-logo" src="/static/img/assets/dalogo@2x.png" alt=""></div>
|
|
|
<div class="ty-phone over">
|
|
|
@@ -89,7 +89,7 @@
|
|
|
<span><img style="margin: 6px 8px 10px 15px;" src="/static/img/assets/phone.png" alt=""></span>
|
|
|
<input ref="typhone" type="text" placeholder="请输入您的11位手机号">
|
|
|
</div>
|
|
|
- <div class="left" style="margin-left: 8px;"><button @click="openexperience">立即申请试用</button></div>
|
|
|
+ <div class="left" style="margin-left: 8px;"><button @click="openexperience">立即体验</button></div>
|
|
|
</div>
|
|
|
<div style="text-align: left;">
|
|
|
<span class="Caution" ref="Caution"></span>
|
|
|
@@ -410,22 +410,21 @@
|
|
|
},
|
|
|
//体验
|
|
|
experience(){
|
|
|
- this.isexperience = true;
|
|
|
- setTimeout(()=>{
|
|
|
- if (this.account) {
|
|
|
- this.$refs.typhone.value = this.account.mobile;
|
|
|
- this.openexperience();
|
|
|
- }
|
|
|
- },10)
|
|
|
+ if (this.account) {
|
|
|
+ let mobile = this.account.mobile;
|
|
|
+ this.openexperience(mobile);
|
|
|
+ } else {
|
|
|
+ this.isexperience = true;
|
|
|
+ }
|
|
|
},
|
|
|
//关闭体验
|
|
|
Closeexperience(){
|
|
|
this.isexperience = false;
|
|
|
},
|
|
|
//进入体验
|
|
|
- openexperience(){
|
|
|
- let me = this
|
|
|
- let phone = this.$refs.typhone.value;
|
|
|
+ openexperience(mobile){
|
|
|
+ let me = this;
|
|
|
+ let phone = this.$refs.typhone.value || mobile;
|
|
|
let reg = new RegExp('^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$')
|
|
|
if (phone == '') {
|
|
|
this.$refs.Caution.innerHTML = '号码不能为空'
|