diff --git a/package-lock.json b/package-lock.json index 925ac5f..675b792 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "as-editor", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2852,6 +2852,63 @@ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.1.tgz", + "integrity": "sha512-g4miPa9uUrZz4iElkaVJgDFwKJGh8aQGM7pUL4ejXl6cu7kSb30seQOVGNMP6sW8j7DW77X68hJZ+GM7UGhXeQ==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, "minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", @@ -2866,6 +2923,28 @@ "requires": { "minipass": "^3.1.1" } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.8.2", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.2.tgz", + "integrity": "sha512-Nkq+z9mAsMEK+qkXgK+9Ia7D8w9uu9j4ut0IMT5coMfux3rCgIp1QBB1CYwY0M34A1nRMSONEaWXxAAw6xSl/Q==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + } } } }, @@ -13204,87 +13283,6 @@ } } }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.8.2", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.2.tgz", - "integrity": "sha512-Nkq+z9mAsMEK+qkXgK+9Ia7D8w9uu9j4ut0IMT5coMfux3rCgIp1QBB1CYwY0M34A1nRMSONEaWXxAAw6xSl/Q==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "optional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "optional": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, - "loader-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", - "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "vue-router": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.3.tgz", diff --git a/src/components/rightslider/entertheshopstyle/index.vue b/src/components/rightslider/entertheshopstyle/index.vue index 1f10e89..6f60640 100644 --- a/src/components/rightslider/entertheshopstyle/index.vue +++ b/src/components/rightslider/entertheshopstyle/index.vue @@ -46,7 +46,6 @@ v-model="datas.type" placeholder="请选择跳转类型" size="mini" - @change="selectType(index)" > - - - - - - - + { - this.activ = 0 - - res.data.length === 0 ? (this.emptyText = '暂无数据') : null - this.options = res.data - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } else if (linkType === '10') { - // 历史页面 - this.$httpApi.shopTemplate().then((res) => { - - this.options = res.data.shopTemplateList - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } - } - }, - // 保存跳转的地方 - changeId(res) { - console.log(res) - if (res.component) delete res.component - this.datas.http = res - }, - }, + } } diff --git a/src/components/rightslider/graphicnavigationstyle/index.vue b/src/components/rightslider/graphicnavigationstyle/index.vue index 064e8e3..bfb658a 100644 --- a/src/components/rightslider/graphicnavigationstyle/index.vue +++ b/src/components/rightslider/graphicnavigationstyle/index.vue @@ -36,7 +36,6 @@ v-model="item.linktype" placeholder="请选择跳转类型" size="mini" - @change="selectType(index)" > - - - - - - - + { - if (item.http.component) { - item.http.component = '' - } - }) - console.log(this.datas.imageList, '-----------------------save data') - }, - - // 选择类型 - changeType(isVisible, linkType) { - if (isVisible && linkType) { - this.emptyText = '正在搜索中' - - if ( - linkType === '1' || - linkType === '2' || - linkType === '6' || - linkType === '3' || - linkType === '7' - ) { - /* 获取视频,音频,直播信息 */ - this.$httpApi.newsList({ type: linkType }).then((res) => { - this.activ = 0 - - res.data.length === 0 ? (this.emptyText = '暂无数据') : null - this.options = res.data - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } else if (linkType === '10') { - // 历史页面 - this.$httpApi.shopTemplate().then((res) => { - - this.options = res.data.shopTemplateList - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - console.log(this.options, '----------this.options') - }) - } - } - }, }, components: { uploadimg, vuedraggable }, } diff --git a/src/components/rightslider/magiccubestyle/index.vue b/src/components/rightslider/magiccubestyle/index.vue index 4a3ef0e..fabcf3b 100644 --- a/src/components/rightslider/magiccubestyle/index.vue +++ b/src/components/rightslider/magiccubestyle/index.vue @@ -268,7 +268,6 @@ v-model="item.linktype" placeholder="请选择跳转类型" size="mini" - @change="selectType(index)" > - - - - - - - + { - if(res.code !== 0) return this.$message.error(res.msg); - this.options = res.data.shopTemplateList - }) - }, */ - changeId(res) { - // 商品类型只匹配 1 2 3 6 - if ( - this.$utils.coursewareMetchArr.includes( - this.datas.imageList[res[0]].linktype - ) - ) { - // 查询本地动态数据 然后再赋值 - let dynamic = this.$utils.getCoursewareData( - this.datas.imageList[res[0]].linktype, - res[1].id - ) - this.datas.imageList[res[0]].http = dynamic - } else { - this.datas.imageList[res[0]].http = res[1] - } - this.datas.imageList.forEach((item) => { - if (item.http.component) { - item.http.component = '' - } - }) - console.log(this.datas.imageList, '-----------------------save data') - }, - - // 选择类型 - changeType(isVisible, linkType) { - if (isVisible && linkType) { - this.emptyText = '正在搜索中' - if ( - linkType === '1' || - linkType === '2' || - linkType === '6' || - linkType === '3' || - linkType === '7' - ) { - /* 获取视频,音频,直播信息 */ - this.$httpApi.newsList({ type: linkType }).then((res) => { - this.activ = 0 - - res.data.length === 0 ? (this.emptyText = '暂无数据') : null - this.options = res.data - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } else if (linkType === '10') { - this.$httpApi.shopTemplate().then((res) => { - - this.options = res.data.shopTemplateList - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } - } - }, }, } diff --git a/src/components/rightslider/pictureadsstyle/index.vue b/src/components/rightslider/pictureadsstyle/index.vue index db56b67..b3c4298 100644 --- a/src/components/rightslider/pictureadsstyle/index.vue +++ b/src/components/rightslider/pictureadsstyle/index.vue @@ -98,14 +98,6 @@ placeholder="请输入标题,也可不填" size="mini" > -
@@ -114,7 +106,6 @@ v-model="item.linktype" placeholder="请选择跳转类型" size="mini" - @change="selectType(index)" > - - - - - - + { - this.activ = 0 - - res.data.length === 0 ? (this.emptyText = '暂无数据') : null - this.options = res.data - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } else if (linkType === '10') { - // 历史页面 - this.$httpApi.shopTemplate().then((res) => { - - this.options = res.data.shopTemplateList - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } - } - }, - - changeId(res) { - // 商品类型只匹配 1 2 3 6 - if ( - this.$utils.coursewareMetchArr.includes( - this.datas.imageList[res[0]].linktype - ) - ) { - // 查询本地动态数据 然后再赋值 - let dynamic = this.$utils.getCoursewareData( - this.datas.imageList[res[0]].linktype, - res[1].id - ) - this.datas.imageList[res[0]].http = dynamic - } else { - this.datas.imageList[res[0]].http = res[1] - } - this.datas.imageList.forEach((item) => { - if (item.http.component) { - item.http.component = '' - } - }) - console.log(this.datas.imageList, '-----------------------save data') - }, }, computed: { diff --git a/src/components/rightslider/suspensionstyle/index.vue b/src/components/rightslider/suspensionstyle/index.vue index 3f5d4c1..ae6a895 100644 --- a/src/components/rightslider/suspensionstyle/index.vue +++ b/src/components/rightslider/suspensionstyle/index.vue @@ -29,34 +29,9 @@ - - - - - - - + { - this.activ = 0 - - res.data.length === 0 ? (this.emptyText = '暂无数据') : null - this.options = res.data - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } else if (linkType === '10') { - // 历史页面 - this.$httpApi.shopTemplate().then((res) => { - - this.options = res.data.shopTemplateList - - // 校验数据 - this.options = this.$utils.filterCommodityData( - linkType, - this.options - ) - }) - } - } - }, - // 保存跳转的地方 - changeId(res) { - console.log(res) - if (res.component) delete res.component - this.datas.http = res - }, - }, }