update @模版修复
This commit is contained in:
parent
44518c4fea
commit
80e17e0bb7
|
@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|||
const { VantResolver } = require('@vant/auto-import-resolver');
|
||||
const AutoImport = require('unplugin-auto-import/webpack');
|
||||
const Components = require('unplugin-vue-components/webpack');
|
||||
|
||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
entry: path.join(__dirname, '../src/main.ts'), // 入口文件
|
||||
|
@ -96,6 +96,7 @@ module.exports = {
|
|||
},
|
||||
extractComments: false, // 不从代码中提取注释
|
||||
}),
|
||||
new CssMinimizerPlugin(),
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
|
|
|
@ -2,7 +2,6 @@ const CompressionPlugin = require("compression-webpack-plugin");
|
|||
const path = require("path");
|
||||
const { VueLoaderPlugin } = require("vue-loader");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
mode: 'production', // 生产模式,会开启 tree-shaking 和 压缩代码,以及其他优化
|
||||
|
@ -68,7 +67,6 @@ module.exports = {
|
|||
},
|
||||
extractComments: false, // 不从代码中提取注释
|
||||
}),
|
||||
new CssMinimizerPlugin(),
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
</li>
|
||||
</template>
|
||||
</ul>
|
||||
<!-- 遮罩 loading -->
|
||||
<van-overlay class="overlayLoadBody" :show="overlayLoad">
|
||||
<!-- 遮罩 loading (模版开发 通过 v-if 控制) -->
|
||||
<van-overlay class="overlayLoadBody" :show="true" v-if="overlayLoad">
|
||||
<div class="overlayLoadBox">
|
||||
<van-loading size="24px" vertical color="#0094ff">领取中</van-loading>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</div>
|
||||
<p class="line"/>
|
||||
<img class="defaultInputImg" v-if="!pageData" :src="cssData.defaultInputImg" alt="">
|
||||
<div v-if="!((pageData.degital.product_type === 2) && (pageData.degital.card_show === 2))" class="inputBox">
|
||||
<div v-if="pageData && !((pageData.degital.product_type === 2) && (pageData.degital.card_show === 2))" class="inputBox">
|
||||
<van-cell-group inset>
|
||||
<van-field v-model="inputVal" label="账号" placeholder="请输入手机号" />
|
||||
<van-field
|
||||
|
@ -32,10 +32,10 @@
|
|||
<p class="line"/>
|
||||
<div
|
||||
@click="receive"
|
||||
:class="['detailBtn', pageData.goods.err_code && 'btnPlacingAshes']"
|
||||
:class="['detailBtn', pageData && pageData.goods.err_code && 'btnPlacingAshes']"
|
||||
:style="{ color: cssData.btnColor, backgroundColor: cssData.btnBgc }"
|
||||
>
|
||||
{{ pageData.goods.err_code ? 'code文案' : '立即兑换' }}
|
||||
{{ pageData && pageData.goods.err_code ? 'code文案' : '立即兑换' }}
|
||||
</div>
|
||||
<img v-if="cssData.activityDescType === 1 && cssData.bottomImg.length" class="bottomImg" :src="cssData.bottomImg[0].url" alt="">
|
||||
<img v-if="cssData.activityDescType === 2 && cssData.floatImg" @click="changePopComStatus" class="floatImg" :src="cssData.floatImg" alt="">
|
||||
|
@ -46,8 +46,8 @@
|
|||
<p class="title">活动规则</p>
|
||||
<div v-if="cssData.floatText" class="description-2" v-html="cssData.floatText"></div>
|
||||
</div>
|
||||
<!-- 遮罩 loading -->
|
||||
<van-overlay class="overlayLoadBody" :show="overlayLoad">
|
||||
<!-- 遮罩 loading (模版开发 通过 v-if 控制) -->
|
||||
<van-overlay class="overlayLoadBody" :show="true" v-if="overlayLoad">
|
||||
<div class="overlayLoadBox">
|
||||
<van-loading size="24px" vertical color="#0094ff">领取中</van-loading>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<van-loading class="pageNoneLoading_Vant" v-if="loadingStatus" size="24px" color="#0094ff" vertical>加载中...</van-loading>
|
||||
<div v-else class="cmsListWrapper">
|
||||
<img @click="jumpBanner" class="bannerTop" :src="cssData.bannerTop.length ? cssData.bannerTop[0].url : 'https://lsxdmgoss.oss-cn-chengdu.aliyuncs.com/MarketingSystem/image/front/goodstop.png'" alt="">
|
||||
<img @click="jumpBanner" class="bannerTop" :src="cssData.bannerTop.length ? cssData.bannerTop[0].url : cssData.bannerTopDefault" alt="">
|
||||
<div class="content">
|
||||
<div v-if="cssData.contentType === 1" class="carouselBox">
|
||||
<img v-if="!pageData" class="carouselImg" :src="cssData.carouselImg" alt="">
|
||||
|
@ -52,9 +52,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div
|
||||
@click="jumpDetail(pageData[initialSlide])"
|
||||
@click="jumpDetail(pageData && pageData[initialSlide])"
|
||||
v-if="cssData.contentType === 1"
|
||||
:class="['btn', pageData[initialSlide].goods.err_code && 'btnPlacingAshes']"
|
||||
:class="['btn', pageData && pageData[initialSlide].goods.err_code && 'btnPlacingAshes']"
|
||||
:style="{ color: cssData.btnColor, backgroundColor: cssData.btnBgc }"
|
||||
>
|
||||
立即兑换
|
||||
|
@ -107,7 +107,8 @@ export default {
|
|||
pageData: null,
|
||||
cssData: {
|
||||
bannerUrl: '',
|
||||
bannerTop: [{ name: '', url: 'https://lsxdmgoss.oss-cn-chengdu.aliyuncs.com/MarketingSystem/image/front/goodstop.png'}],
|
||||
bannerTop: [],
|
||||
bannerTopDefault: 'https://lsxdmgoss.oss-cn-chengdu.aliyuncs.com/MarketingSystem/image/front/goodstop.png',
|
||||
btnColor: 'rgb(255, 255, 255)',
|
||||
btnBgc: 'rgb(250, 205, 106)',
|
||||
contentType: 1, // 样式:1 轮播 2 列表 3 矩阵
|
||||
|
|
|
@ -180,8 +180,8 @@
|
|||
<p v-html="info.instruction" v-if="info.instruction"></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 遮罩 loading -->
|
||||
<van-overlay class="overlayLoadBody" :show="overlayLoad">
|
||||
<!-- 遮罩 loading (模版开发 通过 v-if 控制) -->
|
||||
<van-overlay class="overlayLoadBody" :show="true" v-if="overlayLoad">
|
||||
<div class="overlayLoadBox">
|
||||
<van-loading size="24px" vertical color="#0094ff">领取中</van-loading>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue