bayi 1 year ago
parent
commit
4e78cf7a2f

+ 1 - 1
components/yeyouzi-cropper/yeyouzi-cropper.js

@@ -95,7 +95,7 @@ Component({
                 .exec((res) => {
                     const canvas = res[0].node
                     const ctx = canvas.getContext('2d')
-                    const dpr = wx.getSystemInfoSync().pixelRatio
+                    const dpr = 0.84
                     canvas.width = res[0].width * dpr
                     canvas.height = res[0].height * dpr
                     ctx.scale(dpr, dpr)

+ 1 - 1
mixins/video.js

@@ -107,7 +107,7 @@ module.exports = Behavior({
                     }).exec((res) => {
                         const canvas = res[0].node;
                         const ctx = canvas.getContext('2d');
-                        const dpr = wx.getSystemInfoSync().pixelRatio;
+                        const dpr = 0.84
                         canvas.width = res[0].width * dpr;
                         canvas.height = res[0].height * dpr;
                         ctx.scale(dpr, dpr);

+ 1 - 2
pages/commodity/index.js

@@ -60,7 +60,6 @@ Page({
             mask: true
         })
         // #if MP
-
         let res = await buyVip({
             productId: this.data.active
         }).finally(() => {
@@ -103,7 +102,7 @@ Page({
         })
         // #elif ANDROID
         let res = await androidbuyVip({
-            productId: currentTarget.dataset.id
+            productId: this.data.active
         }).finally(() => {
             wx.hideLoading()
         })

+ 1 - 0
pages/my/index.js

@@ -206,6 +206,7 @@ Page({
                 })
             },
             fail(res) {
+                console.log(res);
                 wx.showToast({
                     title: "支付失败",
                     icon: "none",

+ 1 - 1
pages/pkResult/index.js

@@ -150,7 +150,7 @@ Page({
                 }).exec((res) => {
                     const canvas = res[0].node;
                     const ctx = canvas.getContext('2d');
-                    const dpr = wx.getSystemInfoSync().pixelRatio;
+                    const dpr = 0.84;
                     canvas.width = res[0].width * dpr;
                     canvas.height = res[0].height * dpr;
                     ctx.scale(dpr, dpr);