| 1 |
- {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\components\\mobileConfig\\c_home_hot.vue?vue&type=style&index=0&id=57ec79d4&scoped=true&lang=scss","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\components\\mobileConfig\\c_home_hot.vue","mtime":1761614938959},{"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:DQouaG90IHsNCiAgcGFkZGluZy1yaWdodDogMTRweDsNCiAgcGFkZGluZy1sZWZ0OiAxNHB4Ow0KfQ0K"},{"version":3,"sources":["c_home_hot.vue"],"names":[],"mappings":";AAkIA;AACA;AACA;AACA","file":"c_home_hot.vue","sourceRoot":"src/components/mobileConfig","sourcesContent":["<template>\r\n <div class=\"mobile-config hot\">\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 :index=\"activeIndex\"\r\n :num=\"item.num\"\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 { mapState, mapMutations, mapActions } from 'vuex';\r\nexport default {\r\n name: 'c_home_hot',\r\n componentsName: 'home_hot',\r\n cname: '超值爆款',\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 components: {\r\n ...toolCom,\r\n rightBtn,\r\n },\r\n watch: {\r\n num(nVal) {\r\n // debugger;\r\n let value = JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[nVal]));\r\n this.configObj = value;\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 var arr = [this.rCom[0]];\r\n if (nVal == 0) {\r\n let tempArr = [\r\n {\r\n components: toolCom.c_input_item,\r\n configNme: 'titleConfig',\r\n },\r\n {\r\n components: toolCom.c_input_item,\r\n configNme: 'desConfig',\r\n },\r\n {\r\n components: toolCom.c_menu_list,\r\n configNme: 'menuConfig',\r\n },\r\n ];\r\n this.rCom = arr.concat(tempArr);\r\n } else {\r\n let tempArr = [\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'themeColor',\r\n },\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'bgColor',\r\n },\r\n {\r\n components: toolCom.c_bg_color,\r\n configNme: 'boxColor',\r\n },\r\n {\r\n components: toolCom.c_slider,\r\n configNme: 'mbConfig',\r\n },\r\n ];\r\n this.rCom = arr.concat(tempArr);\r\n }\r\n },\r\n deep: true,\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 };\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 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.hot {\r\n padding-right: 14px;\r\n padding-left: 14px;\r\n}\r\n</style>\r\n"]}]}
|