chore(组件): 组件尽量使用异步导入模式

This commit is contained in:
2026-01-04 14:40:00 +08:00
parent 4da852944e
commit 9415f397d2
172 changed files with 11520 additions and 10979 deletions

View File

@@ -12,15 +12,15 @@ export default {
name: 'wx_pay',
data() {
return {
show : true,
wx_alipay : "",
out_trade_no : ""
show: true,
wx_alipay: "",
out_trade_no: ""
};
},
onLoad(options) {
this.wx_alipay = options.wx_alipay || '';
this.out_trade_no = options.out_trade_no || '';
if(!this.$util.isWeiXin() && this.wx_alipay){
if (!this.$util.isWeiXin() && this.wx_alipay) {
this.show = false;
location.href = this.wx_alipay;
}
@@ -36,7 +36,7 @@ export default {
success: res => {
if (res.code >= 0 && res.data) {
this.checkPayStatus();
}
}
}
});
},
@@ -64,29 +64,33 @@ export default {
</script>
<style lang="scss">
.launch-mask{
position:fixed;
top:0px;
.launch-mask {
position: fixed;
top: 0px;
left: 0px;
width:100%;
width: 100%;
height: 100%;
background:rgba(0,0,0,0.8);
.mask-img{
background: rgba(0, 0, 0, 0.8);
.mask-img {
text-align: right;
margin:10% 10px 10px 30px;
image{
margin: 10% 10px 10px 30px;
image {
width: 50px;
height:117px;
margin-right:9%
height: 117px;
margin-right: 9%
}
}
.mask-word{
.mask-word {
color: #fff;
text-align: center;
font-weight: bold;
font-size: 18px;
text{
color:#FF0036 !important
text {
color: #FF0036 !important
}
}
}