解决c端提示

This commit is contained in:
red-deng-deng 2021-11-27 12:00:29 +08:00
parent cb7163f194
commit 77e72e5957
1 changed files with 12 additions and 8 deletions

View File

@ -14,6 +14,7 @@
<link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet"> <link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage.css"> <link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api.js"></script>
<!-- <link rel="stylesheet" href="./pagehome.css"> -->
</head> </head>
<style scoped> <style scoped>
* { * {
@ -72,7 +73,7 @@
<img :src="item.show_url" alt="" :class="item.stock&&item.stock<0?'changegray':''"> <img :src="item.show_url" alt="" :class="item.stock&&item.stock<0?'changegray':''">
<font :class="item.stock&&item.stock<0?'changegray':''">{{item.product_name}}</font> <font :class="item.stock&&item.stock<0?'changegray':''">{{item.product_name}}</font>
</div> </div>
<span :style="{'background':bgcolor}" @click="exchangeBtn(item)">兑换</span> <span :style="{'background':bgcolor?bgcolor:'#F98F5B'}" @click="exchangeBtn(item)">兑换</span>
</li> </li>
</ul> </ul>
</div> </div>
@ -99,9 +100,9 @@
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/cance.png" alt="" @click="cancelBtn()"> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/cance.png" alt="" @click="cancelBtn()">
<div> <div>
<input type="text" type="tel" onkeyup="this.value=this.value.replace(/\D/g,'')" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" maxlength="11" v-model="account" :placeholder="placeholder"> <input type="text" type="tel" onkeyup="this.value=this.value.replace(/\D/g,'')" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" maxlength="11" v-model="account" :placeholder="placeholder">
<input type="text" type="tel" onkeyup="this.value=this.value.replace(/\D/g,'')" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" maxlength="11" v-model="reaccount" :placeholder="placeholder"> <input type="text" type="tel" onkeyup="this.value=this.value.replace(/\D/g,'')" onKeypress="return(/[\d]/.test(String.fromCharCode(event.keyCode)))" maxlength="11" v-model="reaccount" placeholder="请再次确认账号">
</div> </div>
<span class="sureBtn" @click="defineBtn()" :style="{'background':bgcolor}">确认</span> <span class="sureBtn" @click="defineBtn()" :style="{'background':'bgcolor'}">确认</span>
</div> </div>
<!-- 单条弹出框 --> <!-- 单条弹出框 -->
@ -127,7 +128,7 @@
<!-- 成功 --> <!-- 成功 -->
<div class="popboxshow successbox" v-if="popboxshow&&popboxtype=='成功'" :class="popboxshow?'active':''"> <div class="popboxshow successbox" v-if="popboxshow&&popboxtype=='成功'" :class="popboxshow?'active':''">
<div > <div >
<p>恭喜您,兑换成功!</p> <p>{{this.successTip}}</p>
<span @click="successchangeBtn">我知道啦</span> <span @click="successchangeBtn">我知道啦</span>
</div> </div>
</div> </div>
@ -156,7 +157,8 @@
popboxshow:false, popboxshow:false,
popboxtype:'兑换', popboxtype:'兑换',
topImg:'', topImg:'',
bgcolor:'' bgcolor:'',
successTip:'兑换成功,请关注短信通知!'
} }
}, },
created() { created() {
@ -264,8 +266,9 @@
"account":this.account, "account":this.account,
} }
req.axiosPostusage('/key/usage',data).then(res=>{ req.axiosPostusage('/key/usage',data).then(res=>{
if(res.code!=200){ if(res.code==200){
this.popboxtype='失败'; this.popboxtype='成功';
this.successTip=res.message;
} }
}).catch(err=>{ }).catch(err=>{
@ -288,10 +291,11 @@
}); });
}, },
//成功 //成功-我知道了
successchangeBtn(){ successchangeBtn(){
this.popboxtype='兑换'; this.popboxtype='兑换';
this.popboxshow=false; this.popboxshow=false;
this.maskshow=false;
} }
}, },
watch:{ watch:{