| 1 |
- {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\components\\mobilePage\\home_news_roll.vue?vue&type=style&index=0&id=4c30eb27&scoped=true&lang=scss","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\components\\mobilePage\\home_news_roll.vue","mtime":1761614938972},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\css-loader\\index.js","mtime":1761614929364},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1761614937403},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\postcss-loader\\src\\index.js","mtime":1761614935133},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\sass-loader\\dist\\cjs.js","mtime":1761614936391},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js","mtime":1761614937402}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQoucGFnZU9uIHsNCiAgYm9yZGVyLXJhZGl1czogNnB4ICFpbXBvcnRhbnQ7DQp9DQoubmV3cy1ib3ggew0KICAubGlzdCB7DQogICAgcGFkZGluZzogMCAxMnB4IDE2cHggMTJweDsNCiAgICAudGl0bGUgew0KICAgICAgY29sb3I6ICM5OTk5OTk7DQogICAgICBmb250LXNpemU6IDEycHg7DQogICAgICBwYWRkaW5nOiAxNnB4IDA7DQoNCiAgICAgIC50b3Agew0KICAgICAgICBmb250LXNpemU6IDE2cHg7DQogICAgICB9DQoNCiAgICAgIC5waWN0cnVlIHsNCiAgICAgICAgaGVpZ2h0OiAxOHB4Ow0KICAgICAgICBpbWcgew0KICAgICAgICAgIGhlaWdodDogMTAwJTsNCiAgICAgICAgICB3aWR0aDogMTAwJTsNCiAgICAgICAgfQ0KICAgICAgfQ0KICAgICAgLmljb25mb250IHsNCiAgICAgICAgZm9udC1zaXplOiAxMnB4Ow0KICAgICAgfQ0KICAgIH0NCiAgICAudGV4dCB7DQogICAgICBjb2xvcjogIzI4MjgyODsNCiAgICAgIGZvbnQtc2l6ZTogMTRweDsNCg0KICAgICAgLm51bSB7DQogICAgICAgIGZvbnQtc2l6ZTogMTVweDsNCiAgICAgICAgbWFyZ2luLXJpZ2h0OiA3cHg7DQogICAgICAgIGNvbG9yOiAjOTk5OTk5Ow0KICAgICAgICAmLm9uIHsNCiAgICAgICAgICBjb2xvcjogI2U5MzMyMzsNCiAgICAgICAgfQ0KICAgICAgICAmLm9uMiB7DQogICAgICAgICAgY29sb3I6ICNmZjczMDA7DQogICAgICAgIH0NCiAgICAgICAgJi5vbjMgew0KICAgICAgICAgIGNvbG9yOiAjZmZjMzAwOw0KICAgICAgICB9DQogICAgICB9DQoNCiAgICAgICYgfiAudGV4dCB7DQogICAgICAgIG1hcmdpbi10b3A6IDEycHg7DQogICAgICB9DQogICAgfQ0KICB9DQogIC5pdGVtIHsNCiAgICBkaXNwbGF5OiBmbGV4Ow0KICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7DQogICAgaGVpZ2h0OiA0NHB4Ow0KICAgIHBhZGRpbmc6IDAgMTBweDsNCiAgICBmb250LXNpemU6IDEzcHg7DQogICAgY29sb3I6ICMzMzM7DQogICAgcG9zaXRpb246IHJlbGF0aXZlOw0KICAgIC50b3Agew0KICAgICAgbWF4LXdpZHRoOiA2NHB4Ow0KICAgICAgaGVpZ2h0OiAyMHB4Ow0KICAgICAgZm9udC1zaXplOiAxM3B4Ow0KICAgICAgdGV4dC1hbGlnbjogY2VudGVyOw0KICAgICAgbGluZS1oZWlnaHQ6IDIwcHg7DQogICAgICBwYWRkaW5nOiAwIDZweDsNCiAgICAgIGJvcmRlci1yYWRpdXM6IDRweDsNCiAgICAgIG1hcmdpbi1yaWdodDogOHB4Ow0KICAgIH0NCiAgICAuaWNvbmZvbnQgew0KICAgICAgY29sb3I6ICM5OTk7DQogICAgICBmb250LXNpemU6IDE0cHg7DQogICAgfQ0KICAgIC5pbWctYm94IHsNCiAgICAgIGhlaWdodDogMjRweDsNCiAgICAgIGltZyB7DQogICAgICAgIGhlaWdodDogMTAwJTsNCiAgICAgICAgbWFyZ2luLXJpZ2h0OiA4cHg7DQogICAgICB9DQogICAgfQ0KICAgIC5yaWdodC1ib3ggew0KICAgICAgZmxleDogMTsNCiAgICAgIG92ZXJmbG93OiBoaWRkZW47DQogICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsNCiAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7DQogICAgfQ0KICB9DQp9DQo="},{"version":3,"sources":["home_news_roll.vue"],"names":[],"mappings":";AAkeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"home_news_roll.vue","sourceRoot":"src/components/mobilePage","sourcesContent":["<template>\r\n <div\r\n class=\"news-box\"\r\n :style=\"{\r\n background: bottomBgColor,\r\n marginTop: slider + 'px',\r\n paddingTop: topConfig + 'px',\r\n paddingBottom: bottomConfig + 'px',\r\n paddingLeft: prConfig + 'px',\r\n paddingRight: prConfig + 'px',\r\n }\"\r\n v-if=\"list.length\"\r\n >\r\n <div\r\n class=\"item\"\r\n :style=\"{\r\n background: `linear-gradient(90deg,${bgColorLeft} 0%,${bgColorRight} 100%)`,\r\n borderRadius: bgRadius,\r\n }\"\r\n v-if=\"styleConfig == 0\"\r\n >\r\n <div class=\"img-box\" v-if=\"titleConfig == 0\"><img :src=\"imgUrl\" alt=\"\" /></div>\r\n <div\r\n class=\"top\"\r\n v-else\r\n :style=\"{\r\n color: toneConfig ? titleColor : '#fff',\r\n background: toneConfig\r\n ? `linear-gradient(90deg,${titleBgColorLeft} 0%,${titleBgColorRight} 100%)`\r\n : colorStyle.theme,\r\n }\"\r\n >\r\n {{ titleTxtConfig || '商城头条' }}\r\n </div>\r\n <div\r\n class=\"right-box\"\r\n :style=\"{\r\n color: newsColor,\r\n }\"\r\n >\r\n {{ list[0].chiild[0].val }}\r\n </div>\r\n <span\r\n class=\"iconfont iconjinru\"\r\n :style=\"{\r\n color: bntColor,\r\n }\"\r\n v-if=\"!buttonConfig\"\r\n ></span>\r\n </div>\r\n <div\r\n class=\"list\"\r\n v-else\r\n :style=\"{\r\n background: `linear-gradient(90deg,${bgColorLeft} 0%,${bgColorRight} 100%)`,\r\n borderRadius: bgRadius,\r\n }\"\r\n >\r\n <div class=\"title acea-row row-between-wrapper\">\r\n <div class=\"pictrue\" v-if=\"titleConfig == 0\">\r\n <img :src=\"imgUrl\" alt=\"\" />\r\n </div>\r\n <div\r\n class=\"top\"\r\n v-else\r\n :style=\"{\r\n color: !toneConfig ? titleColor : colorStyle.theme,\r\n }\"\r\n >\r\n {{ titleTxtConfig || '商城头条' }}\r\n </div>\r\n <div\r\n v-if=\"!buttonConfig\"\r\n :style=\"{\r\n color: bntColor,\r\n }\"\r\n >\r\n {{ textConfig }}<span class=\"iconfont iconjinru\"></span>\r\n </div>\r\n </div>\r\n <div\r\n class=\"text line1\"\r\n v-for=\"(item, index) in list\"\r\n :key=\"index\"\r\n :style=\"{\r\n color: newsColor,\r\n }\"\r\n >\r\n <span class=\"num\" :class=\"index == 0 ? 'on' : index == 1 ? 'on2' : index == 2 ? 'on3' : ''\">{{\r\n index + 1\r\n }}</span\r\n >{{ item.chiild[0].val }}\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapState } from 'vuex';\r\n// import theme from \"@/mixins/theme\";\r\nexport default {\r\n name: 'home_news_roll',\r\n cname: '新闻公告',\r\n configName: 'c_news_roll',\r\n type: 0, // 0 基础组件 1 营销组件 2工具组件\r\n defaultName: 'news', // 外面匹配名称\r\n icon: '#iconzujian-xinwenbobao',\r\n props: {\r\n index: {\r\n type: null,\r\n },\r\n num: {\r\n type: null,\r\n },\r\n colorStyle: {\r\n type: null,\r\n },\r\n },\r\n computed: {\r\n ...mapState('mobildConfig', ['defaultArray']),\r\n },\r\n watch: {\r\n pageData: {\r\n handler(nVal, oVal) {\r\n this.setConfig(nVal);\r\n },\r\n deep: true,\r\n },\r\n num: {\r\n handler(nVal, oVal) {\r\n let data = this.$store.state.mobildConfig.defaultArray[nVal];\r\n this.setConfig(data);\r\n },\r\n deep: true,\r\n },\r\n defaultArray: {\r\n handler(nVal, oVal) {\r\n let data = this.$store.state.mobildConfig.defaultArray[this.num];\r\n this.setConfig(data);\r\n },\r\n deep: true,\r\n },\r\n },\r\n // mixins: [theme],\r\n data() {\r\n return {\r\n // 默认初始化数据禁止修改\r\n defaultConfig: {\r\n cname: '新闻公告',\r\n name: 'news',\r\n timestamp: this.num,\r\n isHide: false,\r\n setUp: {\r\n tabVal: 0,\r\n },\r\n titleLeft: '展示设置',\r\n titleStyle: '公告风格',\r\n titleButton: '按钮设置',\r\n titleContent: '公告内容',\r\n titleRight: '标题样式',\r\n titleCurrency: '通用样式',\r\n styleConfig: {\r\n title: '选择风格',\r\n tabVal: 0,\r\n tabList: [\r\n {\r\n name: '样式一',\r\n },\r\n {\r\n name: '样式二',\r\n },\r\n ],\r\n },\r\n titleConfig: {\r\n title: '标题类型',\r\n tabVal: 0,\r\n tabList: [\r\n {\r\n name: '图片',\r\n },\r\n {\r\n name: '文字',\r\n },\r\n ],\r\n },\r\n imgConfig: {\r\n url: require('@/assets/images/news2.png'),\r\n type: 'code',\r\n delType: 0,\r\n name: '上传图片',\r\n },\r\n titleTxtConfig: {\r\n title: '标题文字',\r\n value: '商城头条',\r\n place: '请输入标题文字',\r\n max: 4,\r\n },\r\n rollConfig: {\r\n title: '滚动方式',\r\n tabVal: 0,\r\n tabList: [\r\n {\r\n name: '上下滚动',\r\n },\r\n {\r\n name: '左右滚动',\r\n },\r\n ],\r\n },\r\n buttonConfig: {\r\n title: '右侧按钮',\r\n tabVal: 0,\r\n tabList: [\r\n {\r\n name: '显示',\r\n },\r\n {\r\n name: '隐藏',\r\n },\r\n ],\r\n },\r\n textConfig: {\r\n title: '右侧文字',\r\n value: '更多',\r\n place: '请输入右侧文字',\r\n max: 4,\r\n },\r\n linkConfig: {\r\n title: '链接',\r\n value: '',\r\n place: '选择跳转链接',\r\n max: 100,\r\n type: 'link',\r\n },\r\n listConfig: {\r\n max: 10,\r\n type: 1,\r\n list: [\r\n {\r\n chiild: [\r\n {\r\n title: '标题',\r\n val: '标题',\r\n max: 20,\r\n pla: '输入标题',\r\n },\r\n {\r\n title: '链接',\r\n val: '',\r\n max: 200,\r\n pla: '输入连接',\r\n },\r\n ],\r\n show: true,\r\n },\r\n ],\r\n },\r\n toneConfig: {\r\n title: '色调',\r\n tabVal: 0,\r\n tabList: [\r\n {\r\n name: '跟随主题风格',\r\n },\r\n {\r\n name: '自定义',\r\n },\r\n ],\r\n },\r\n titleBgColor: {\r\n title: '标题背景',\r\n default: [\r\n {\r\n item: '#FCEAE9',\r\n },\r\n {\r\n item: '#FCEAE9',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#FCEAE9',\r\n },\r\n {\r\n item: '#FCEAE9',\r\n },\r\n ],\r\n },\r\n titleColor: {\r\n title: '标题文字',\r\n default: [\r\n {\r\n item: '#E93323',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#E93323',\r\n },\r\n ],\r\n },\r\n newsColor: {\r\n title: '新闻标题',\r\n default: [\r\n {\r\n item: '#333333',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#333333',\r\n },\r\n ],\r\n },\r\n bntColor: {\r\n title: '按钮颜色',\r\n default: [\r\n {\r\n item: '#999999',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#999999',\r\n },\r\n ],\r\n },\r\n moduleColor: {\r\n title: '组件背景',\r\n default: [\r\n {\r\n item: '#fff',\r\n },\r\n {\r\n item: '#fff',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#fff',\r\n },\r\n {\r\n item: '#fff',\r\n },\r\n ],\r\n },\r\n bottomBgColor: {\r\n title: '底部背景',\r\n default: [\r\n {\r\n item: '#f5f5f5',\r\n },\r\n ],\r\n color: [\r\n {\r\n item: '#f5f5f5',\r\n },\r\n ],\r\n },\r\n topConfig: {\r\n title: '上边距',\r\n val: 0,\r\n min: 0,\r\n },\r\n bottomConfig: {\r\n title: '下边距',\r\n val: 0,\r\n min: 0,\r\n },\r\n prConfig: {\r\n title: '左右边距',\r\n val: 0,\r\n min: 0,\r\n },\r\n mbConfig: {\r\n title: '页面上间距',\r\n val: 0,\r\n min: 0,\r\n },\r\n fillet: {\r\n title: '背景圆角',\r\n type: 0,\r\n list: [\r\n {\r\n val: '全部',\r\n icon: 'iconcaozuo-zhengti',\r\n },\r\n {\r\n val: '单个',\r\n icon: 'iconcaozuo-bianjiao',\r\n },\r\n ],\r\n valName: '圆角值',\r\n val: 0,\r\n min: 0,\r\n valList: [{ val: 0 }, { val: 0 }, { val: 0 }, { val: 0 }],\r\n },\r\n // logoConfig: {\r\n // header: '图标设置',\r\n // title: '最多可添加1张图片,建议宽度130 * 36px',\r\n // url: require('@/assets/images/news.png')\r\n // }\r\n },\r\n tabVal: '',\r\n rollStyle: '',\r\n txtPosition: '',\r\n pageData: {},\r\n\r\n list: [],\r\n slider: 0,\r\n styleConfig: 0,\r\n imgUrl: '',\r\n buttonConfig: 0,\r\n textConfig: '',\r\n toneConfig: 0,\r\n newsColor: '',\r\n bntColor: '',\r\n bgColorLeft: '',\r\n bgColorRight: '',\r\n bottomBgColor: '',\r\n topConfig: 0,\r\n bottomConfig: 0,\r\n prConfig: 0,\r\n bgRadius: 0,\r\n titleConfig: 0,\r\n titleBgColorLeft: '',\r\n titleBgColorRight: '',\r\n titleColor: '',\r\n titleTxtConfig: '',\r\n };\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n this.pageData = this.$store.state.mobildConfig.defaultArray[this.num];\r\n this.setConfig(this.pageData);\r\n });\r\n },\r\n methods: {\r\n setConfig(data) {\r\n if (!data) return;\r\n if (data.mbConfig) {\r\n this.slider = data.mbConfig.val;\r\n this.styleConfig = data.styleConfig.tabVal;\r\n this.imgUrl = data.imgConfig.url;\r\n this.buttonConfig = data.buttonConfig.tabVal;\r\n this.textConfig = data.textConfig.value;\r\n let lists = data.listConfig.list;\r\n let list = [];\r\n lists.forEach((item) => {\r\n if (item.show) {\r\n list.push(item);\r\n }\r\n });\r\n console.log(data.titleColor,'data.titleColor')\r\n this.list = list;\r\n this.toneConfig = data.toneConfig.tabVal;\r\n this.newsColor = data.newsColor.color[0].item;\r\n this.bntColor = data.bntColor.color[0].item;\r\n this.bgColorLeft = data.moduleColor.color[0].item;\r\n this.bgColorRight = data.moduleColor.color[1].item;\r\n this.bottomBgColor = data.bottomBgColor.color[0].item;\r\n this.prConfig = data.prConfig.val;\r\n this.topConfig = data.topConfig.val;\r\n this.bottomConfig = data.bottomConfig.val;\r\n this.titleConfig = data.titleConfig.tabVal;\r\n this.titleBgColorLeft = data.titleBgColor.color[0].item;\r\n this.titleBgColorRight = data.titleBgColor.color[1].item;\r\n this.titleColor = data.titleColor.color[0].item;\r\n this.titleTxtConfig = data.titleTxtConfig.value;\r\n let fillet = data.fillet.type;\r\n let filletVal = data.fillet.val;\r\n let valList = data.fillet.valList;\r\n this.bgRadius = fillet\r\n ? valList[0].val + 'px ' + valList[1].val + 'px ' + valList[3].val + 'px ' + valList[2].val + 'px'\r\n : filletVal + 'px';\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n.pageOn {\r\n border-radius: 6px !important;\r\n}\r\n.news-box {\r\n .list {\r\n padding: 0 12px 16px 12px;\r\n .title {\r\n color: #999999;\r\n font-size: 12px;\r\n padding: 16px 0;\r\n\r\n .top {\r\n font-size: 16px;\r\n }\r\n\r\n .pictrue {\r\n height: 18px;\r\n img {\r\n height: 100%;\r\n width: 100%;\r\n }\r\n }\r\n .iconfont {\r\n font-size: 12px;\r\n }\r\n }\r\n .text {\r\n color: #282828;\r\n font-size: 14px;\r\n\r\n .num {\r\n font-size: 15px;\r\n margin-right: 7px;\r\n color: #999999;\r\n &.on {\r\n color: #e93323;\r\n }\r\n &.on2 {\r\n color: #ff7300;\r\n }\r\n &.on3 {\r\n color: #ffc300;\r\n }\r\n }\r\n\r\n & ~ .text {\r\n margin-top: 12px;\r\n }\r\n }\r\n }\r\n .item {\r\n display: flex;\r\n align-items: center;\r\n height: 44px;\r\n padding: 0 10px;\r\n font-size: 13px;\r\n color: #333;\r\n position: relative;\r\n .top {\r\n max-width: 64px;\r\n height: 20px;\r\n font-size: 13px;\r\n text-align: center;\r\n line-height: 20px;\r\n padding: 0 6px;\r\n border-radius: 4px;\r\n margin-right: 8px;\r\n }\r\n .iconfont {\r\n color: #999;\r\n font-size: 14px;\r\n }\r\n .img-box {\r\n height: 24px;\r\n img {\r\n height: 100%;\r\n margin-right: 8px;\r\n }\r\n }\r\n .right-box {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n }\r\n}\r\n</style>\r\n"]}]}
|