| 1 |
- {"remainingRequest":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\src\\components\\mobileConfig\\c_home_coupon.vue?vue&type=style&index=0&id=0156bbef&scoped=true&lang=scss","dependencies":[{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\src\\components\\mobileConfig\\c_home_coupon.vue","mtime":1761185179976},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\sass-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\Administrator\\Desktop\\crmeb5.0\\template\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQoudGl0bGUtdGlwcyB7DQogIHBhZGRpbmctYm90dG9tOiAxMHB4Ow0KICBmb250LXNpemU6IDE0cHg7DQogIGNvbG9yOiAjMzMzOw0KICBzcGFuIHsNCiAgICBtYXJnaW4tcmlnaHQ6IDE0cHg7DQogICAgY29sb3I6ICM5OTk7DQogIH0NCn0NCg=="},{"version":3,"sources":["c_home_coupon.vue"],"names":[],"mappings":";AAuSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"c_home_coupon.vue","sourceRoot":"src/components/mobileConfig","sourcesContent":["<template>\r\n <div class=\"mobile-config\">\r\n <div v-for=\"(item, key) in rCom\" :key=\"key\">\r\n <component\r\n :is=\"item.components.name\"\r\n :configObj=\"configObj\"\r\n ref=\"childData\"\r\n :configNme=\"item.configNme\"\r\n :key=\"key\"\r\n @getConfig=\"getConfig\"\r\n ></component>\r\n </div>\r\n <rightBtn :activeIndex=\"activeIndex\" :configObj=\"configObj\"></rightBtn>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport toolCom from '@/components/mobileConfigRight/index.js';\r\nimport rightBtn from '@/components/rightBtn/index.vue';\r\nimport { mapMutations } from 'vuex';\r\nexport default {\r\n name: 'c_home_coupon',\r\n componentsName: 'home_coupon',\r\n components: {\r\n ...toolCom,\r\n rightBtn,\r\n },\r\n props: {\r\n activeIndex: {\r\n type: null,\r\n },\r\n num: {\r\n type: null,\r\n },\r\n index: {\r\n type: null,\r\n },\r\n },\r\n data() {\r\n return {\r\n configObj: {},\r\n rCom: [\r\n {\r\n components: toolCom.c_set_up,\r\n configNme: 'setUp',\r\n },\r\n ],\r\n oneStyle: [\r\n {\r\n components: toolCom.c_title,\r\n configNme: 'titleRight',\r\n },\r\n {\r\n components: toolCom.c_radio,\r\n configNme: 'toneConfig',\r\n },\r\n ],\r\n twoStyle: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'couponMoneyColor',\r\n },\r\n ],\r\n bntBgStyle: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'bntBgColor',\r\n },\r\n ],\r\n couponBgStyle: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'couponBgColor',\r\n },\r\n ],\r\n currencyTitleStyle: [\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'spacingConfig',\r\n },\r\n {\r\n components: toolCom.c_title,\r\n configNme: 'titleCurrency',\r\n },\r\n ],\r\n moduleColorStyle: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'moduleColor',\r\n },\r\n ],\r\n moduleColorStyle2: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'moduleColor2',\r\n },\r\n ],\r\n currencyStyle: [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'bottomBgColor',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'topConfig',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'bottomConfig',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'prConfig',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'mbConfig',\r\n },\r\n {\r\n components: toolCom.c_fillet,\r\n configNme: 'fillet',\r\n },\r\n ],\r\n setUp: 0,\r\n type: 0,\r\n type2: 0,\r\n };\r\n },\r\n watch: {\r\n num(nVal) {\r\n this.configObj = this.$store.state.mobildConfig.defaultArray[nVal];\r\n },\r\n configObj: {\r\n handler(nVal, oVal) {\r\n this.$store.commit('mobildConfig/UPDATEARR', { num: this.num, val: nVal });\r\n },\r\n deep: true,\r\n },\r\n 'configObj.setUp.tabVal': {\r\n handler(nVal, oVal) {\r\n this.setUp = nVal;\r\n var arr = [this.rCom[0]];\r\n if (nVal == 0) {\r\n let tempArr = [\r\n {\r\n components: toolCom.c_title,\r\n configNme: 'titleLeft',\r\n },\r\n {\r\n components: toolCom.c_button_style,\r\n configNme: 'styleConfig',\r\n },\r\n {\r\n components: toolCom.c_title,\r\n configNme: 'titleData',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'numberConfig',\r\n },\r\n ];\r\n this.rCom = arr.concat(tempArr);\r\n } else {\r\n this.getRComStyle(arr, this.type, this.type2);\r\n }\r\n },\r\n deep: true,\r\n },\r\n 'configObj.styleConfig.tabVal': {\r\n handler(nVal, oVal) {\r\n this.type = nVal;\r\n var arr = [this.rCom[0]];\r\n if (this.setUp) {\r\n this.getRComStyle(arr, nVal, this.type2);\r\n }\r\n },\r\n deep: true,\r\n },\r\n 'configObj.toneConfig.tabVal': {\r\n handler(nVal, oVal) {\r\n this.type2 = nVal;\r\n var arr = [this.rCom[0]];\r\n if (this.setUp) {\r\n this.getRComStyle(arr, this.type, nVal);\r\n }\r\n },\r\n deep: true,\r\n },\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n let value = JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[this.num]));\r\n this.configObj = value;\r\n });\r\n },\r\n methods: {\r\n getRComStyle(arr, type, type2) {\r\n if (type == 0 || type == 3) {\r\n if (type2 == 0) {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n } else {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.twoStyle,\r\n ...this.bntBgStyle,\r\n ...this.couponBgStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n }\r\n } else if (type == 1) {\r\n if (type2 == 0) {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle,\r\n ...this.currencyStyle,\r\n ];\r\n } else {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.twoStyle,\r\n ...this.bntBgStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle,\r\n ...this.currencyStyle,\r\n ];\r\n }\r\n } else if (type == 2) {\r\n if (type2 == 0) {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n } else {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.twoStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n }\r\n } else {\r\n if (type2 == 0) {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n } else {\r\n this.rCom = [\r\n ...arr,\r\n ...this.oneStyle,\r\n ...this.twoStyle,\r\n ...this.bntBgStyle,\r\n ...this.currencyTitleStyle,\r\n ...this.moduleColorStyle2,\r\n ...this.currencyStyle,\r\n ];\r\n }\r\n }\r\n },\r\n // 获取组件参数\r\n getConfig(data) {},\r\n handleSubmit(name) {\r\n let obj = {};\r\n obj.activeIndex = this.activeIndex;\r\n obj.data = this.configObj;\r\n this.add(obj);\r\n },\r\n ...mapMutations({\r\n add: 'mobildConfig/UPDATEARR',\r\n }),\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n.title-tips {\r\n padding-bottom: 10px;\r\n font-size: 14px;\r\n color: #333;\r\n span {\r\n margin-right: 14px;\r\n color: #999;\r\n }\r\n}\r\n</style>\r\n"]}]}
|