From ff9668870b04193022183d064a9029f5c168c1a5 Mon Sep 17 00:00:00 2001
From: xuwenbo <717567226@qq.com>
Date: Thu, 3 Sep 2020 13:28:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B6=B3=E8=BF=B9=EF=BC=8C?=
=?UTF-8?q?=E6=94=B6=E8=97=8F=E5=90=8E=E7=AB=AF=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/yxStoreProductRelation.js | 27 ++++++
src/views/shop/collect/index.vue | 145 ++++++++++++++++++++++++++++
src/views/shop/foot/index.vue | 20 +++-
src/views/wechat/template/index.vue | 3 +-
4 files changed, 191 insertions(+), 4 deletions(-)
create mode 100644 src/views/shop/collect/index.vue
diff --git a/src/api/yxStoreProductRelation.js b/src/api/yxStoreProductRelation.js
index e69de29..b99f858 100644
--- a/src/api/yxStoreProductRelation.js
+++ b/src/api/yxStoreProductRelation.js
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+export function add(data) {
+ return request({
+ url: 'api/yxStoreProductRelation',
+ method: 'post',
+ data
+ })
+}
+
+export function del(ids) {
+ return request({
+ url: 'api/yxStoreProductRelation/',
+ method: 'delete',
+ data: ids
+ })
+}
+
+export function edit(data) {
+ return request({
+ url: 'api/yxStoreProductRelation',
+ method: 'put',
+ data
+ })
+}
+
+export default { add, edit, del }
diff --git a/src/views/shop/collect/index.vue b/src/views/shop/collect/index.vue
new file mode 100644
index 0000000..e918bbd
--- /dev/null
+++ b/src/views/shop/collect/index.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 收藏
+ 足迹
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ {{ parseTime(scope.row.updateTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shop/foot/index.vue b/src/views/shop/foot/index.vue
index 8f0d44e..a1e5a25 100644
--- a/src/views/shop/foot/index.vue
+++ b/src/views/shop/foot/index.vue
@@ -41,9 +41,22 @@
+
-
-
+
+
+
+
+
+
+
+
+
+ 收藏
+ 足迹
+
+
+
{{ parseTime(scope.row.createTime) }}
@@ -72,7 +85,7 @@ import pagination from '@crud/Pagination'
import MaterialList from "@/components/material";
// crud交由presenter持有
-const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', sort: 'id,desc', crudMethod: { ...crudYxStoreProductRelation }})
+const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', sort: 'creat_time,desc', crudMethod: { ...crudYxStoreProductRelation }})
const defaultForm = { id: null, uid: null, productId: null, type: null, category: null, createTime: null, updateTime: null, isDel: null }
export default {
name: 'YxStoreProductRelation',
@@ -103,6 +116,7 @@ export default {
methods: {
// 获取数据前设置好接口地址
[CRUD.HOOK.beforeRefresh]() {
+ this.crud.params[query.type] = 'foot'
return true
}, // 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
diff --git a/src/views/wechat/template/index.vue b/src/views/wechat/template/index.vue
index 36abb0f..8a93d12 100644
--- a/src/views/wechat/template/index.vue
+++ b/src/views/wechat/template/index.vue
@@ -128,7 +128,8 @@ export default {
content: data.content,
tempid: data.tempid,
addTime: data.addTime,
- status: data.status
+ status: data.status,
+ type: data.type
}
_this.dialog = true
}