Browse Source

扫码支付

aleyds 3 years ago
parent
commit
2cdf79fd46
2 changed files with 27 additions and 29 deletions
  1. 11 16
      package-lock.json
  2. 16 13
      pages/getout/getoutpage/getoutpage.vue

+ 11 - 16
package-lock.json

@@ -45,7 +45,7 @@
     },
     "buffer-fill": {
       "version": "1.0.0",
-      "resolved": "https://registry.npm.taobao.org/buffer-fill/download/buffer-fill-1.0.0.tgz",
+      "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
       "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw="
     },
     "buffer-from": {
@@ -78,17 +78,17 @@
     },
     "color-name": {
       "version": "1.1.3",
-      "resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz",
+      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
       "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
     },
     "decamelize": {
       "version": "1.2.0",
-      "resolved": "https://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz?cache=0&sync_timestamp=1610348702723&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdecamelize%2Fdownload%2Fdecamelize-1.2.0.tgz",
+      "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
       "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
     },
     "dijkstrajs": {
       "version": "1.0.1",
-      "resolved": "https://registry.npm.taobao.org/dijkstrajs/download/dijkstrajs-1.0.1.tgz",
+      "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.1.tgz",
       "integrity": "sha1-082BIh4+pAdCz83lVtTpnpjdxxs="
     },
     "emoji-regex": {
@@ -116,7 +116,7 @@
     },
     "is-fullwidth-code-point": {
       "version": "2.0.0",
-      "resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-2.0.0.tgz?cache=0&sync_timestamp=1618552469710&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-fullwidth-code-point%2Fdownload%2Fis-fullwidth-code-point-2.0.0.tgz",
+      "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
       "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
     },
     "isarray": {
@@ -156,7 +156,7 @@
     },
     "path-exists": {
       "version": "3.0.0",
-      "resolved": "https://registry.npm.taobao.org/path-exists/download/path-exists-3.0.0.tgz",
+      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
       "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
     },
     "pngjs": {
@@ -180,7 +180,7 @@
     },
     "require-directory": {
       "version": "2.1.1",
-      "resolved": "https://registry.npm.taobao.org/require-directory/download/require-directory-2.1.1.tgz",
+      "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
       "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
     },
     "require-main-filename": {
@@ -190,7 +190,7 @@
     },
     "set-blocking": {
       "version": "2.0.0",
-      "resolved": "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz",
+      "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
       "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
     },
     "string-width": {
@@ -213,17 +213,12 @@
     },
     "tki-qrcode": {
       "version": "0.1.6",
-      "resolved": "https://registry.npm.taobao.org/tki-qrcode/download/tki-qrcode-0.1.6.tgz",
-      "integrity": "sha1-cTc9nEs/iUT6pU0+6Ziroz2X3n8="
-    },
-    "vue": {
-      "version": "2.6.12",
-      "resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz",
-      "integrity": "sha1-9evU+mvShpQD4pqJau1JBEVskSM="
+      "resolved": "https://registry.npmjs.org/tki-qrcode/-/tki-qrcode-0.1.6.tgz",
+      "integrity": "sha512-EnnlS8psowC7PsW3MDYcxvJYkuklX3WAZ/BYanR4TdBHTu74GfjTBX8Y16REP+AeDENiVtBPh4jtTRL2P736hQ=="
     },
     "which-module": {
       "version": "2.0.0",
-      "resolved": "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz",
+      "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
       "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
     },
     "wrap-ansi": {

+ 16 - 13
pages/getout/getoutpage/getoutpage.vue

@@ -210,28 +210,31 @@
 				console.log('this.payParams',this.payParams);
 				uni.scanCode({
 				    onlyFromCamera: true,
-				    success: function (res) {
+				    success:  (res) => {
 						//#ifdef APP-PLUS
 						ALog.info({msg:'条码内容:' + res.result});
 						//#endif
 						this.payParams.code = res.result;
 						this.$u.api.gzbankSwept(this.payParams)
 						.then(res=>{
-							this.$refs.uToast.show({
-								title: res.msg,
-								type: 'success',
-							});
-							console.log('gzbankSwept',res)
+							//#ifdef APP-PLUS
+							plus.nativeUI.toast(res.msg);
+							ALog.info({msg:'条码类型:err' + err});
+							//#endif
+							// this.$refs.uToast.show({
+							// 	title: res.msg,
+							// 	type: 'success',
+							// });
+
 						}).catch(err=>{
-							this.$refs.uToast.show({
-								title: err.msg,
-								type: 'error',
-							});
-							console.log('gzbankSwept ',err)
+							//#ifdef APP-PLUS
+							plus.nativeUI.toast(err.msg);
+							ALog.info({msg:'条码类型:err' + err});
+							//#endif
 						});
 						
-				        console.log('条码类型:' + res.scanType);
-				        console.log('条码内容:' + res.result);
+				        // console.log('条码类型:' + res.scanType);
+				        // console.log('条码内容:' + res.result);
 				    },
 					fail:function(err){
 						//#ifdef APP-PLUS