diff --git a/supplier/components/lf-previewImage/lf-previewImage.vue b/supplier/components/lf-previewImage/lf-previewImage.vue
new file mode 100644
index 0000000..9bb782d
--- /dev/null
+++ b/supplier/components/lf-previewImage/lf-previewImage.vue
@@ -0,0 +1,220 @@
+
+
+ switchItem(e.detail.current)">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ swiper_current + 1 }} / {{ images.length }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/supplier/components/wyb-table/wyb-table.vue b/supplier/components/wyb-table/wyb-table.vue
index d3bfbe5..cfa3ce1 100644
--- a/supplier/components/wyb-table/wyb-table.vue
+++ b/supplier/components/wyb-table/wyb-table.vue
@@ -748,7 +748,7 @@
},
scrollToInput: {
type: Boolean, // 是否自动滚动到含有input的位置
- default: true
+ default: false
},
searchKey: {
type: String,
diff --git a/supplier/main.js b/supplier/main.js
index 3733b29..7844d01 100644
--- a/supplier/main.js
+++ b/supplier/main.js
@@ -30,6 +30,9 @@ Vue.component('self-line', selfLine);
// 将步骤条组件注入全局
import lfStepbar from '@/components/lf-stepbar/lf-stepbar';
Vue.component('lf-stepbar', lfStepbar);
+// 预览图片组件
+import lfPreviewImage from '@/components/lf-previewImage/lf-previewImage';
+Vue.component('lf-previewimage', lfPreviewImage);
const app = new Vue({
...App
diff --git a/supplier/pages/gonghuo/detail.vue b/supplier/pages/gonghuo/detail.vue
index 371073d..b7ce5ac 100644
--- a/supplier/pages/gonghuo/detail.vue
+++ b/supplier/pages/gonghuo/detail.vue
@@ -137,6 +137,8 @@
+
+
@@ -281,11 +283,10 @@
lookImage(current, list){
if(this[list].length <= 0) return;
this.$u.throttle(() => {
- uni.previewImage({
- urls: this[list],
- current: current,
- indicator: "default"
- })
+ this.$refs.previewimage.show({
+ images: this[list],
+ current: current
+ });
}, 500);
},
// 移除图片