diff --git a/src/api/bxg/yxStoreHotList.js b/src/api/bxg/yxStoreHotList.js new file mode 100644 index 0000000..23b74da --- /dev/null +++ b/src/api/bxg/yxStoreHotList.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'bxg/api/yxStoreHotList', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'bxg/api/yxStoreHotList/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'bxg/api/yxStoreHotList', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/components/editorMaterial/index.vue b/src/components/editorMaterial/index.vue index 3ed6346..6568ee8 100644 --- a/src/components/editorMaterial/index.vue +++ b/src/components/editorMaterial/index.vue @@ -190,7 +190,7 @@ export default { data() { return { headers: { - Authorization: "Bearer " + getToken() + Authorization: "Bearer" + getToken() }, dialogVisible: true, url: '', diff --git a/src/components/file-upload/index.vue b/src/components/file-upload/index.vue index 68880fa..be35fc9 100644 --- a/src/components/file-upload/index.vue +++ b/src/components/file-upload/index.vue @@ -29,7 +29,7 @@ export default { return { resourcesUrl: '', headers: { - 'Authorization': getToken() + 'Authorization':"Bearer"+getToken() } } }, diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f6c36ee..31c374f 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -50,15 +50,15 @@ const user = { let params = {}; params.currentPage = 1; params.pageSize = 100; - getAction('/erp/materialProperty/list', params).then((mp) => { - console.log(mp); - if(mp && mp.code === 200){ - if(mp.data) { - let thisRows = mp.data.rows; //属性列表 - Vue.ls.set('materialPropertyList', thisRows); - } - } - }) + // getAction('/erp/materialProperty/list', params).then((mp) => { + // console.log(mp); + // if(mp && mp.code === 200){ + // if(mp.data) { + // let thisRows = mp.data.rows; //属性列表 + // Vue.ls.set('materialPropertyList', thisRows); + // } + // } + // }) resolve() }).catch(error => { reject(error) diff --git a/src/views/bxg/shop/goods/form.vue b/src/views/bxg/shop/goods/form.vue index 3a09875..bf31408 100644 --- a/src/views/bxg/shop/goods/form.vue +++ b/src/views/bxg/shop/goods/form.vue @@ -516,15 +516,15 @@ export default { store_info: [ { required: true, message: '请输入商品简介', trigger: 'blur' } ], - // spec_type: [ - // { required: true, message: '请选择商品规格', trigger: 'change' } - // ], - // selectRule: [ - // { required: true, message: '请选择商品规格属性', trigger: 'change' } - // ], - // temp_id: [ - // { required: true, message: '请选择运费模板', trigger: 'change', type: 'number' } - // ] + spec_type: [ + { required: true, message: '请选择商品规格', trigger: 'change' } + ], + selectRule: [ + { required: true, message: '请选择商品规格属性', trigger: 'change' } + ], + temp_id: [ + { required: true, message: '请选择运费模板', trigger: 'change', type: 'number' } + ] }, attrs: [] } @@ -757,9 +757,13 @@ export default { if(this.formValidate.spec_type === 1 && this.manyFormValidate.length===0){ return this.$message.warning('请点击生成规格!'); } - console.log(this.formValidate,'提交的') + // console.log(this.formValidate,'提交的') // return add(this.formValidate).then(async res => { + if (res.status==500){ + this.$message.error(res.msg) + return + } //成功后返回的Status Code为201 this.$message({ message:'操作成功', @@ -769,10 +773,10 @@ export default { this.$router.push({ path: '/bxg/shop/goods' }); }, 500); }).catch(res => { - // this.$message({ - // message:res.message, - // type: 'error' - // }); + this.$message({ + message:res.message, + type: 'error' + }); }) } else { if(!this.formValidate.store_name || !this.formValidate.cate_id || !this.formValidate.keyword diff --git a/src/views/bxg/shop/set/form.vue b/src/views/bxg/shop/set/form.vue index 3b36952..3549382 100644 --- a/src/views/bxg/shop/set/form.vue +++ b/src/views/bxg/shop/set/form.vue @@ -49,7 +49,7 @@ export default { loading: false, dialog: false, form: { id: '', - groupName: 'yshop_home_banner', + groupName: 'zsw_home_banner', name: '', url: '', wxapp_url: '', @@ -116,7 +116,7 @@ export default { this.$refs['form'].resetFields() this.form = { id: '', - groupName: 'yshop_home_banner', + groupName: 'zsw_home_banner', name: '', url: '', wxapp_url: '', diff --git a/src/views/bxg/shop/set/index.vue b/src/views/bxg/shop/set/index.vue index 85854c7..167dbda 100644 --- a/src/views/bxg/shop/set/index.vue +++ b/src/views/bxg/shop/set/index.vue @@ -91,7 +91,7 @@ export default { beforeInit() { this.url = 'bxg/api/yxSystemGroupData' const sort = 'id,desc' - this.params = { page: this.page, size: this.size, sort: sort, groupName: 'yshop_home_banner' } + this.params = { page: this.page, size: this.size, sort: sort, groupName: 'zsw_home_banner' } return true }, subDelete(id) { diff --git a/src/views/bxg/shop/set/menu.vue b/src/views/bxg/shop/set/menu.vue index 4835ffa..cff1d54 100644 --- a/src/views/bxg/shop/set/menu.vue +++ b/src/views/bxg/shop/set/menu.vue @@ -90,7 +90,7 @@ export default { beforeInit() { this.url = 'bxg/api/yxSystemGroupData' const sort = 'id,desc' - this.params = { page: this.page, size: this.size, sort: sort, groupName: 'yshop_home_menus' } + this.params = { page: this.page, size: this.size, sort: sort, groupName: 'zsw_home_menus' } return true }, subDelete(id) { diff --git a/src/views/bxg/shop/set/menuform.vue b/src/views/bxg/shop/set/menuform.vue index 1af9c0e..3b31fab 100644 --- a/src/views/bxg/shop/set/menuform.vue +++ b/src/views/bxg/shop/set/menuform.vue @@ -46,7 +46,7 @@ export default { loading: false, dialog: false, form: { id: '', - groupName: 'yshop_home_menus', + groupName: 'zsw_home_menus', name: '', url: '', wxapp_url: '', @@ -112,7 +112,7 @@ export default { this.$refs['form'].resetFields() this.form = { id: '', - groupName: 'yshop_home_menus', + groupName: 'zsw_home_menus', name: '', url: '', wxapp_url: '', diff --git a/src/views/bxg/shop/set/seckillform.vue b/src/views/bxg/shop/set/seckillform.vue index a469fbd..9b28ee0 100644 --- a/src/views/bxg/shop/set/seckillform.vue +++ b/src/views/bxg/shop/set/seckillform.vue @@ -93,6 +93,7 @@ export default { }) }, doEdit() { + this.form.time=Number(this.form.time.slice(0,2)) edit(this.form).then(res => { if (res.status==500){ this.$message.error(res.msg) diff --git a/src/views/bxg/shop/set/usermenu.vue b/src/views/bxg/shop/set/usermenu.vue index 7ef8e73..871983c 100644 --- a/src/views/bxg/shop/set/usermenu.vue +++ b/src/views/bxg/shop/set/usermenu.vue @@ -92,7 +92,7 @@ export default { beforeInit() { this.url = 'bxg/api/yxSystemGroupData' const sort = 'id,desc' - this.params = { page: this.page, size: this.size, sort: sort, groupName: 'yshop_my_menus' } + this.params = { page: this.page, size: this.size, sort: sort, groupName: 'zsw_my_menus' } return true }, subDelete(id) { diff --git a/src/views/bxg/shop/set/usermenuform.vue b/src/views/bxg/shop/set/usermenuform.vue index 35a545a..4e22acc 100644 --- a/src/views/bxg/shop/set/usermenuform.vue +++ b/src/views/bxg/shop/set/usermenuform.vue @@ -46,7 +46,7 @@ export default { loading: false, dialog: false, form: { id: '', - groupName: 'yshop_my_menus', + groupName: 'zsw_my_menus', name: '', url: '', wxapp_url: '', @@ -112,7 +112,7 @@ export default { this.$refs['form'].resetFields() this.form = { id: '', - groupName: 'yshop_my_menus', + groupName: 'zsw_my_menus', name: '', url: '', wxapp_url: '', diff --git a/src/views/bxg/shop/storeBrand/index.vue b/src/views/bxg/shop/storeBrand/index.vue index 0abf9ca..fc21c6f 100644 --- a/src/views/bxg/shop/storeBrand/index.vue +++ b/src/views/bxg/shop/storeBrand/index.vue @@ -12,9 +12,9 @@ - - - + + + diff --git a/src/views/bxg/shop/yxStoreHotList/index.vue b/src/views/bxg/shop/yxStoreHotList/index.vue new file mode 100644 index 0000000..7439aa1 --- /dev/null +++ b/src/views/bxg/shop/yxStoreHotList/index.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/src/views/bxg/yxEvaluation/index.vue b/src/views/bxg/yxEvaluation/index.vue index d2a63b5..b0e831e 100644 --- a/src/views/bxg/yxEvaluation/index.vue +++ b/src/views/bxg/yxEvaluation/index.vue @@ -338,7 +338,6 @@ export default { // this.product=[50,105] // this.product=data console.log( '111',this.product,typeof(this.product)); - } },