💪 optimize: 优化代码

This commit is contained in:
wangsongsole 2024-01-08 19:14:48 +08:00
parent bb762e8380
commit b3480296d5
1 changed files with 130 additions and 130 deletions

View File

@ -12,8 +12,6 @@
<script type="text/javascript" src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/axios.js?v=1367936144322"> <script type="text/javascript" src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/axios.js?v=1367936144322">
</script> </script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/loading.js"></script>
</head> </head>
<body> <body>
@ -23,6 +21,7 @@
{{this.toastTip}} {{this.toastTip}}
</div> </div>
<div v-show="!loading">
<img class="backPresTy" @click="backHandler" <img class="backPresTy" @click="backHandler"
src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
<p class="nav-title">卡密</p> <p class="nav-title">卡密</p>
@ -49,7 +48,8 @@
</template> </template>
<div v-else class="generate" style="display: flex;flex: 1;"> <div v-else class="generate" style="display: flex;flex: 1;">
<p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p> <p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p>
<span @click="backHandler" style="color: #3558df;" v-if="cardData.status===3">重新兑换</span> <span @click="backHandler" style="color: #3558df;"
v-if="cardData.status===3">重新兑换</span>
<span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span> <span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span>
</div> </div>
</div> </div>
@ -65,7 +65,8 @@
</template> </template>
<div v-else class="generate" style="display: flex;flex: 1;"> <div v-else class="generate" style="display: flex;flex: 1;">
<p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p> <p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p>
<span @click="backHandler" style="color: #3558df;" v-if="cardData.status===3">重新兑换</span> <span @click="backHandler" style="color: #3558df;"
v-if="cardData.status===3">重新兑换</span>
<span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span> <span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span>
</div> </div>
</div> </div>
@ -83,16 +84,15 @@
</template> </template>
<div v-else class="generate" style="display: flex;flex: 1;"> <div v-else class="generate" style="display: flex;flex: 1;">
<p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p> <p style="flex:1">{{cardData.status===3?'卡密兑换失败,请重新兑换':'卡密正在生成中,请稍后刷新再查看'}} </p>
<span @click="backHandler" style="color: #3558df;" v-if="cardData.status===3">重新兑换</span> <span @click="backHandler" style="color: #3558df;"
v-if="cardData.status===3">重新兑换</span>
<span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span> <span @click="getInfo" style="color: #3558df;" v-else>点击刷新</span>
</div> </div>
</div> </div>
</template> </template>
</div> </div>
<div class="mask" @touchmove.prevent @mousewheel.prevent v-if="loading" ref="load">
<preload-component />
</div>
</div> </div>
</>
</div> </div>
<script> <script>
@ -109,7 +109,7 @@
}, },
toastShow: false, toastShow: false,
toastTip: '', toastTip: '',
loading: true loading: true,
}; };
}, },