bng1016 1 vecka sedan
förälder
incheckning
3b95b5eeb9
3 ändrade filer med 5 tillägg och 4 borttagningar
  1. 1 1
      .hbuilderx/launch.json
  2. 2 1
      manifest.json
  3. 2 2
      pages/vip/index.vue

+ 1 - 1
.hbuilderx/launch.json

@@ -21,7 +21,7 @@
         },
         {
             "openVueDevtools" : true,
-            "playground" : "standard",
+            "playground" : "custom",
             "type" : "uni-app:app-ios"
         },
         {

+ 2 - 1
manifest.json

@@ -79,7 +79,8 @@
                     },
                     "alipay" : {
                         "__platform__" : [ "ios", "android" ]
-                    }
+                    },
+                    "appleiap" : {}
                 },
                 "speech" : {},
                 "oauth" : {},

+ 2 - 2
pages/vip/index.vue

@@ -676,7 +676,7 @@ export default {
 			uni.requestPayment({
 				provider: 'appleiap',
 				orderInfo: {
-					productId: productId
+					productid: productId
 				},
 				success: function (res) {
 					console.log('苹果内购VIP支付成功:', res);
@@ -686,7 +686,7 @@ export default {
 				fail: function (err) {
 					console.log('苹果内购VIP支付失败:', err);
 					uni.showToast({
-						title: '支付失败',
+						title: '支付失败:' + err,
 						icon: 'none'
 					});
 					that.isSubmitting = false;