diff --git a/pages/device-info/index.vue b/pages/device-info/index.vue index 42daae0..103f82c 100644 --- a/pages/device-info/index.vue +++ b/pages/device-info/index.vue @@ -20,7 +20,7 @@ - + 删除 @@ -40,13 +40,17 @@ export default { return { info: { imgItemList: [] }, id: null, - swiperCurrent: 0 + swiperCurrent: 0, + operation: 'edit' } }, onLoad(options) { if (options.id) { this.id = options.id } + if (options.operation) { + this.operation = options.operation + } }, onShow() { if (this.id) { diff --git a/pages/factory-info/index.vue b/pages/factory-info/index.vue index 92e856f..2d7d47b 100644 --- a/pages/factory-info/index.vue +++ b/pages/factory-info/index.vue @@ -53,7 +53,7 @@ - + @@ -67,7 +67,12 @@ - + {{ production.name }} @@ -78,7 +83,7 @@ {{ item.name }} - + {{ hasMore ? '加载中~' : '没有更多~' }} diff --git a/pages/production-info/index.vue b/pages/production-info/index.vue index 4f32399..15fb9f1 100644 --- a/pages/production-info/index.vue +++ b/pages/production-info/index.vue @@ -20,7 +20,7 @@ - + 删除 @@ -40,13 +40,17 @@ export default { return { info: { imgItemList: [] }, id: null, - swiperCurrent: 0 + swiperCurrent: 0, + operation: 'edit' } }, onLoad(options) { if (options.id) { this.id = options.id } + if (options.operation) { + this.operation = options.operation + } }, onShow() { if (this.id) {