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
}