shish 2 лет назад
Родитель
Сommit
e87b4974f1
1 измененных файлов с 19 добавлено и 18 удалено
  1. 19 18
      hdApp/src/admin/cg/member.vue

+ 19 - 18
hdApp/src/admin/cg/member.vue

@@ -31,24 +31,25 @@ export default {
       });
     },
     downloadImg(){
-				// #ifdef APP-PLUS
-				let platformType = uni.getSystemInfoSync().platform
-				if(platformType == 'android'){
-					let store = plus.navigator.checkPermission('android.permission.READ_EXTERNAL_STORAGE')
-					if(store != 'authorized'){
-						this.$util.confirmModal({content:'将申请您的存储权限,用于保存小程序码'},() => {
-							this.downloadImg2()
-      			})
-					}else{
-						this.downloadImg2()
-					}
-				}else{
-					this.downloadImg2()
-				}
-				// #endif
-				// #ifdef MP-WEIXIN
-				this.downloadImg2()
-				// #endif
+      let that = this
+      // #ifdef APP-PLUS
+      let platformType = uni.getSystemInfoSync().platform
+      if(platformType == 'android'){
+        let store = plus.navigator.checkPermission('android.permission.READ_EXTERNAL_STORAGE')
+        if(store != 'authorized'){
+          this.$util.confirmModal({content:'将申请您的存储权限,用于保存小程序码'},() => {
+            this.downloadImg2()
+          })
+        }else{
+          this.downloadImg2()
+        }
+      }else{
+        this.downloadImg2()
+      }
+      // #endif
+      // #ifdef MP-WEIXIN
+      this.downloadImg2()
+      // #endif
     },
     downloadImg2(){
       uni.downloadFile({