|
|
@@ -84,6 +84,7 @@
|
|
|
import product from '../../mixins/product';
|
|
|
import html2canvas from 'html2canvas';
|
|
|
let inApp = /#cordova#/i.test(navigator.userAgent);
|
|
|
+import { ImagePreview } from 'vant';
|
|
|
export default {
|
|
|
mixins: [product],
|
|
|
props: {
|
|
|
@@ -190,6 +191,12 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ preview(index = 0, list = []) {
|
|
|
+ ImagePreview({
|
|
|
+ images: [...list],
|
|
|
+ startPosition: index
|
|
|
+ });
|
|
|
+ },
|
|
|
save() {
|
|
|
if (window.cordova) {
|
|
|
let _this = this;
|