复制推广链接
- - -- 下载完整海报 - 仅下载二维码 -
-diff --git a/public/config/config.js b/public/config/config.js index 6cc59c3..0dc647b 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1,4 +1,4 @@ window.global_config = { - BASE_URL: '/api', + BASE_URL: '/api/', NODE_ENV: 'prd', } diff --git a/script/verify-commit.js b/script/verify-commit.js index 19ea291..afdb2d2 100644 --- a/script/verify-commit.js +++ b/script/verify-commit.js @@ -1,14 +1,14 @@ -const msgPath = process.env.HUSKY_GIT_PARAMS -const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() +// const msgPath = process.env.HUSKY_GIT_PARAMS +// const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() -const commitRE = /^(merge|feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|release|workflow)(\(.+\))?: .{1,50}/ +// const commitRE = /^(merge|feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|release|workflow)(\(.+\))?: .{1,50}/ -if (!commitRE.test(msg)) { - console.log() - console.error(` - 不合法的 commit 消息格式。 - 请查看 git commit 提交规范:https://gitee.com/OKGENE_1/dashboard/projects/OKGENE_1/vue2.x-template/wikis/OKGENE_1%2Fvue2.x-template?doc_id=1047366&sort_id=3095531 - `) +// if (!commitRE.test(msg)) { +// console.log() +// console.error(` +// 不合法的 commit 消息格式。 +// 请查看 git commit 提交规范:feat: XXXXX +// `) - process.exit(1) -} +// process.exit(1) +// } diff --git a/src/App.vue b/src/App.vue index c2a0fa2..6d6041a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,7 +17,6 @@ export default { data() { return { isRouterAlive: true, - permissionsJson: {}, } }, created() { @@ -25,16 +24,9 @@ export default { .loginAdminTest({ loginname: 'admin', pwd: '123456' }) .then((res) => { console.log(res) - this.getPermission() - this.getShopCommodity() }) }, - mounted() { - //将hasPermission挂载到window - window['hasPermission'] = (data) => { - return this.hasPermission(data) - } - }, + mounted() {}, methods: { // 刷新页面 reload() { @@ -43,36 +35,6 @@ export default { this.isRouterAlive = true }) }, - // 获取当前用户权限 - getPermission() { - this.$httpApi.getPermission().then((res) => { - let permissionsList = res.data.permissionsList - - for (let i in permissionsList) { - this.permissionsJson[permissionsList[i].funkey] = 1 - } - }) - }, - // 返回一个布尔值,判断对象是否包含特定的自身(非继承)属性 - hasPermission(permission) { - return this.permissionsJson.hasOwnProperty(permission) - }, - // 获取商品数据 - getShopCommodity() { - this.$httpApi - .getShopCommodity() - .then((res) => { - this.loading = false - console.log(res.data.shopCommodity, '------------------shopCommodity') - localStorage.setItem( - 'shopCommodity', - JSON.stringify(res.data.shopCommodity) - ) - }) - .catch(() => { - this.loading = false - }) - }, }, } diff --git a/src/api/api.js b/src/api/api.js index 421cfac..70c494a 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -1,103 +1,6 @@ import httpAjax from './http.js' class httpApi { - - // 上传图片base64 - miniShop = (data) => httpAjax({ - url: '/upload/base64/miniShop', - method: 'post', - data - }) - - // 保存 - save = (data) => httpAjax({ - url: '/adm/component/save', - method: 'post', - header: 'json', - data - }) - - //获取创建过的页面列表 - shopTemplate = (data) => httpAjax({ - url: '/adm/shopTemplate/list', - method: 'post', - header: 'json', - data - }) - - //获取页面模板 - shopTemplates = data => httpAjax({ - url: '/apiShop/shopTemplate', - data, - method: 'post' - }) - - //获取历史页面 - listData = data => httpAjax({ - url: '/adm/shopTemplate/list.data', - data, - method: 'post' - }) - - //设为主页 - homePage = data => httpAjax({ - url: '/adm/shopTemplate/homePage', - data, - method: 'post' - }) - - //删除选项 - delete = data => httpAjax({ - url: '/adm/shopTemplate/delete', - data, - method: 'post' - }) - - //获取下拉框模板类型 - selectData = data => httpAjax({ - url: '/adm/poster/select.data', - data, - method: 'post' - }) - - //获取海报 - poster = data => httpAjax({ - url: '/adm/shopTemplate/poster', - data, - method: 'post' - }) - - //复制 - copy = data => httpAjax({ - url: '/adm/shopTemplate/copy', - data, - method: 'post' - }) - - //导出 - exportTemplate = data => httpAjax({ - url: '/adm/shopTemplate/export', - data, - method: 'post' - }) - //导入 - importTemplate = data => httpAjax({ - url: '/adm/shopTemplate/import', - data, - method: 'post' - }) - //获取系统模板 - defaultTemplate = data => httpAjax({ - url: '/adm/shopTemplate/defaultTemplate', - data, - method: 'post' - }) - //获取当前用户权限 - getPermission = data => httpAjax({ - url: '/adm/permission/getPermission', - data, - method: 'post' - }) //手机登录接口 loginAdminTest = data => httpAjax({ @@ -106,36 +9,6 @@ class httpApi { method: 'post' }) - //设置为模板 - saveDefaultTemplate = data => httpAjax({ - url: '/adm/shopTemplate/saveDefaultTemplate', - data, - method: 'post' - }) - - //查看店铺概要信息 - queryShopInfo = data => httpAjax({ - url: '/adm/shop/queryShopInfo', - data, - method: 'post' - }) - - //修改店铺信息,目前只支持名称和头像链接修改 - updateShopInfo = data => httpAjax({ - url: '/adm/shop/updateShopInfo', - data, - method: 'post' - }) - - - //动态获取商品数据 - getShopCommodity = data => httpAjax({ - url: '/adm/shop/getShopCommodity', - data, - method: 'post' - }) - - } export default new httpApi() \ No newline at end of file diff --git a/src/components/componentscom/listswitching/index.vue b/src/components/componentscom/listswitching/index.vue index a9ee6cf..c9a6bc5 100644 --- a/src/components/componentscom/listswitching/index.vue +++ b/src/components/componentscom/listswitching/index.vue @@ -205,12 +205,6 @@ >
{{ item.introduce }} -
{{ item.introduce }} -
{{ item.introduce }} -
复制推广链接
- - -- 下载完整海报 - 仅下载二维码 -
-
@@ -549,22 +527,8 @@ export default {
}
},
created() {
- // if(this.datas.moreUrl) {
- // this.moreName = this.datas.moreUrl[1]
- // }
- // this.changeImageListData()
},
methods: {
- changeImageListData() {
- let shopCommodity = JSON.parse(localStorage.getItem('shopCommodity'))
- console.log(shopCommodity, '--------------listswitching datas')
- // let newList = []
- // this.datas.imageList.forEach((element) => {
- // newList.push(shopCommodity[element.type][element.id])
- // })
-
- // this.datas.imageList = newList
- },
/* 上传图片弹框 */
dialogVisibleshow(text, number) {
this.$refs.upload.showUpload()
@@ -623,19 +587,6 @@ export default {
delecommoditylisttypetab(index) {
this.datas.commoditylisttypetab.splice(index, 1)
},
-
- /* 获取下拉框内容 */
- getOption() {
- this.$httpApi.shopTemplate().then((res) => {
-
- this.options = res.data.shopTemplateList
- })
- },
-
- selectMore() {
- this.datas.showMore = true
- this.datas.moreUrl = this.moreName
- },
},
computed: {
styleText() {
diff --git a/src/components/rightslider/listswitchingstyle/productUpload.vue b/src/components/rightslider/listswitchingstyle/productUpload.vue
deleted file mode 100644
index bb5d63a..0000000
--- a/src/components/rightslider/listswitchingstyle/productUpload.vue
+++ /dev/null
@@ -1,382 +0,0 @@
-
-
-
- 点击跟换图片图片
-
- 创建时间:{{ homepageData.createTime }}
- 编辑
- 推广
- 复制
- 导出配置
-
- 状态:
- 已上架
- 未上架
-
-
-
-
-
-