营销系统V1_5,优惠券页面回显
This commit is contained in:
parent
8e9af90759
commit
482be84ee9
|
@ -57,18 +57,18 @@
|
|||
</div>
|
||||
<div class="center" id="center">
|
||||
<img :src="middleImg" style="position: absolute;z-index: 1;" id="center_img">
|
||||
<input class="key" :maxlength="16" v-if="pageType==3" :style={color:ftcolor?ftcolor:'#333'}
|
||||
<input class="key" :maxlength="16" v-if="[3,4].includes(pageType)" :style={color:ftcolor?ftcolor:'#333'}
|
||||
placeholder="请输入兑换码" v-model="key" />
|
||||
<input class="code" :maxlength="5" v-if="pageType==3" :style={color:ftcolor?ftcolor:'#333'}
|
||||
<input class="code" :maxlength="5" v-if="[3,4].includes(pageType)" :style={color:ftcolor?ftcolor:'#333'}
|
||||
placeholder="请输入验证码" v-model="code" />
|
||||
|
||||
<input class="key" :maxlength="11" v-if="pageType==1" :style={color:ftcolor?ftcolor:'#333'}
|
||||
<input class="key" :maxlength="11" v-if="[1,8].includes(pageType)" :style={color:ftcolor?ftcolor:'#333'}
|
||||
placeholder="请输入手机号" v-model="key" />
|
||||
<input class="code" :maxlength="6" v-if="pageType==1" :style={color:ftcolor?ftcolor:'#333'}
|
||||
<input class="code" :maxlength="6" v-if="[1,8].includes(pageType)" :style={color:ftcolor?ftcolor:'#333'}
|
||||
placeholder="请输入验证码" v-model="code" />
|
||||
|
||||
<img src="#" alt="" class="codeimg" v-if="pageType==3" id="captcha_img" @click="captchaimg()" />
|
||||
<button class="codeimg" :class="disabled?'disabledstyle':'active'" v-if="pageType==1" @click="getcode()"
|
||||
<img src="#" alt="" class="codeimg" v-if="[3,4].includes(pageType)" id="captcha_img" @click="captchaimg()" />
|
||||
<button class="codeimg" :class="disabled?'disabledstyle':'active'" v-if="[1,8].includes(pageType)" @click="getcode()"
|
||||
:disabled="disabled">{{codetip}}</button>
|
||||
<div class="submit" @click="submit"></div>
|
||||
</div>
|
||||
|
@ -111,6 +111,7 @@
|
|||
}
|
||||
},
|
||||
created () {
|
||||
captchaimg()
|
||||
let self = this;
|
||||
//获取链接携带的参数
|
||||
let linkId = this.getQueryString('id');
|
||||
|
@ -142,13 +143,6 @@
|
|||
sessionStorage.setItem('title', res.data.title);
|
||||
sessionStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list));
|
||||
sessionStorage.setItem('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail));
|
||||
// if (res.data.page == 3) {
|
||||
// sessionStorage.setItem('product_list', JSON.stringify(res.data['exchange'].product_list));
|
||||
// sessionStorage.setItem('product_detail', JSON.stringify(res.data['exchange'].product_detail));
|
||||
// } else if (res.data.page == 1) {
|
||||
// sessionStorage.setItem('product_list', JSON.stringify(res.data['access_conf'].product_list));
|
||||
// sessionStorage.setItem('product_detail', JSON.stringify(res.data['access_conf'].product_detail));
|
||||
// }
|
||||
self.loading = false;
|
||||
sessionStorage.setItem('linkId', linkId);
|
||||
//是否携带token
|
||||
|
|
Loading…
Reference in New Issue