cmy 9 月之前
父節點
當前提交
dfc20fecee
共有 6 個文件被更改,包括 46 次插入27 次删除
  1. 22 21
      components/payment/index.vue
  2. 11 6
      manifest.json
  3. 7 0
      pages.json
  4. 5 0
      pages/goods/order_confirm/index.vue
  5. 1 0
      unpackage/debug/.roid.ins
  6. 二進制
      unpackage/debug/android_debug.apk

+ 22 - 21
components/payment/index.vue

@@ -115,28 +115,29 @@
 				uni.showLoading({
 					title: '支付中'
 				});
-
-				orderPay({
-					uni: that.order_id,
-					paytype: paytype,
-					// #ifdef MP 
-					'from': 'routine',
-					// #endif
-					// #ifdef H5
-					'from': this.$wechat.isWeixin() ? 'weixin' : 'weixinh5',
-					// #endif
-					// #ifdef H5
-					quitUrl: location.port ? location.protocol + '//' + location.hostname + ':' + location
-						.port +
-						'/pages/goods/order_details/index?order_id=' + this.order_id : location.protocol +
-						'//' + location.hostname +
-						'/pages/goods/order_details/index?order_id=' + this.order_id
-					// #endif
-					// #ifdef APP-PLUS
-					quitUrl: '/pages/goods/order_details/index?order_id=' + this.order_id
-					// #endif
-				}).then(res => {
+				let upData={
+						uni: that.order_id,
+						paytype: paytype,
+						// #ifdef MP 
+						'from': 'routine',
+						// #endif
+						// #ifdef H5
+						'from': this.$wechat.isWeixin() ? 'weixin' : 'weixinh5',
+						// #endif
+						// #ifdef H5
+						quitUrl: location.port ? location.protocol + '//' + location.hostname + ':' + location
+							.port +
+							'/pages/goods/order_details/index?order_id=' + this.order_id : location.protocol +
+							'//' + location.hostname +
+							'/pages/goods/order_details/index?order_id=' + this.order_id
+						// #endif
+						// #ifdef APP-PLUS
+						quitUrl: '/pages/goods/order_details/index?order_id=' + this.order_id
+						// #endif
+				}
+				orderPay(upData).then(res => {
 					let jsConfig = res.data.result.jsConfig;
+					// console.log(res,upData,'神英优选')
 					switch (paytype) {
 						case 'weixin':
 							if (res.data.result === undefined) return that.$util.Tips({

+ 11 - 6
manifest.json

@@ -2,8 +2,8 @@
     "name" : "神英优选",
     "appid" : "__UNI__3F43051",
     "description" : "神英优选商城",
-    "versionName" : "2.9.6",
-    "versionCode" : 296,
+    "versionName" : "2.9.8",
+    "versionCode" : 298,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {
@@ -96,12 +96,17 @@
                 "payment" : {
                     "alipay" : {
                         "__platform__" : [ "ios", "android" ]
+                    },
+                    "weixin" : {
+                        "__platform__" : [ "ios", "android" ],
+                        "appid" : "wxea55f49e0c163c37",
+                        "UniversalLinks" : "https://www.senyinkj.cn/appopen/"
                     }
                 },
                 "share" : {
                     "weixin" : {
-                        "appid" : "wx69a5bfe28c8b39e6",
-                        "UniversalLinks" : "https://pro.crmeb.net/uni-universallinks/__UNI__7E0054B/"
+                        "appid" : "wxea55f49e0c163c37",
+                        "UniversalLinks" : "https://www.senyinkj.cn/appopen/"
                     }
                 },
                 "push" : {},
@@ -114,9 +119,9 @@
                 },
                 "oauth" : {
                     "weixin" : {
-                        "appid" : "wx69a5bfe28c8b39e6",
+                        "appid" : "wxea55f49e0c163c37",
                         "appsecret" : "ee83a6c94edbc5dd7a5b4614316d85a7",
-                        "UniversalLinks" : "https://pro.crmeb.net/uni-universallinks/__UNI__7E0054B/"
+                        "UniversalLinks" : "https://www.senyinkj.cn/appopen/"
                     },
                     "apple" : {}
                 },

+ 7 - 0
pages.json

@@ -88,6 +88,13 @@
 			"style": {
 				"navigationBarTitleText": ""
 			}
+		},
+		{
+			"path" : "pages/goods/order_confirm/111/111",
+			"style" : 
+			{
+				"navigationBarTitleText" : ""
+			}
 		}
 		//#endif
 	],

+ 5 - 0
pages/goods/order_confirm/index.vue

@@ -1104,6 +1104,8 @@
           addressId = ''
           storeid = that.storeId
         }
+		
+		
         orderConfirm(that.cartId, that.news, addressId, shippingType, storeid, that.couponId).then(res => {
           if (res.data.upgrade_addr == 1) {
             that.id = res.data.addressInfo.id
@@ -1352,7 +1354,9 @@
       },
       payment: function(data) {
         let that = this;
+		console.log(data,'data')
         orderCreate(that.orderKey, data).then(res => {
+			console.log(res,'resres')
           let status = res.data.status,
             orderId = res.data.result.orderId,
             jsConfig = res.data.result.jsConfig,
@@ -1486,6 +1490,7 @@
                   }, 2000)
                 },
                 fail: (e) => {
+					console.log(e,'ee')
                   let url = '/pages/goods/order_pay_status/index?order_id=' + orderId +
                     '&msg=支付失败';
                   uni.showModal({

+ 1 - 0
unpackage/debug/.roid.ins

@@ -0,0 +1 @@
+forceInstall

二進制
unpackage/debug/android_debug.apk