bayi 1 年之前
父節點
當前提交
4e78cf7a2f
共有 5 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      components/yeyouzi-cropper/yeyouzi-cropper.js
  2. 1 1
      mixins/video.js
  3. 1 2
      pages/commodity/index.js
  4. 1 0
      pages/my/index.js
  5. 1 1
      pages/pkResult/index.js

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

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

+ 1 - 1
mixins/video.js

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

+ 1 - 2
pages/commodity/index.js

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

+ 1 - 0
pages/my/index.js

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

+ 1 - 1
pages/pkResult/index.js

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