update @优化

This commit is contained in:
huangzhen 2024-10-15 18:53:59 +08:00
parent be6074dd1c
commit adf968871d
3 changed files with 9 additions and 11 deletions

View File

@ -57,7 +57,7 @@ module.exports = {
template: path.resolve(__dirname, '../public/index.html'), // 模板取定义root节点的模板 template: path.resolve(__dirname, '../public/index.html'), // 模板取定义root节点的模板
inject: true, // 自动注入静态资源 inject: true, // 自动注入静态资源
title: '营销模版H5', title: '营销模版H5',
favicon: path.resolve(__dirname, `../public/favicon.ico`), // favicon: path.resolve(__dirname, `../public/favicon.ico`),
}), }),
// new DefinePlugin({ // new DefinePlugin({
// __VUE_OPTIONS_API__: 'true', // __VUE_OPTIONS_API__: 'true',

View File

@ -5,7 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover" /> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover" />
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<script type="text/javascript" src="https://o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js"></script> <link rel="icon" href="data:,">
<!-- <script type="text/javascript" src="https://o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js"></script> -->
</head> </head>
<body> <body>
<noscript> <noscript>

View File

@ -23,7 +23,7 @@
<li v-for="(item, index) in listData" :key="index"> <li v-for="(item, index) in listData" :key="index">
<div class="top"> <div class="top">
<p class="time">{{ item.create_time }}</p> <p class="time">{{ item.create_time }}</p>
<p class="status" :style="{ color: item.status === 3 ? '#44d27d' : item.status < 3 ? '#f28542' : '#fd553d' }">{{ statusMap.get(item.status) }}</p> <p class="status" :style="{ color: item.status === 3 ? '#44d27d' : item.status < 3 ? '#f28542' : '#fd553d' }">{{ statusObj[`${item.type}`][item.status] || '' }}</p>
</div> </div>
<div class="content"> <div class="content">
<img class="proImg" :src="item.icon" alt=""> <img class="proImg" :src="item.icon" alt="">
@ -73,14 +73,11 @@ export default {
[2, '直充/卡密'], [2, '直充/卡密'],
[3, '立减金'], [3, '立减金'],
]), ]),
statusMap: new Map([ statusObj: { // status
[1, '充值中'], // '1': ['', '发放中', '发放中', '发放成功', '发放失败', '已过期', '已作废'], //
[2, '充值中'], '2': ['', '充值中', '充值中', '充值成功', '充值失败', '已过期', '已作废'], // /
[3, '充值成功'], '3': ['', '发放中', '发放中', '发放成功', '发放失败', '已过期', '已作废'], //
[4, '充值失败'], },
[5, '已过期'],
[6, '已作废'],
]),
dialogType: '', dialogType: '',
dialogTitle: '', dialogTitle: '',