谢杰标 2 年之前
父节点
当前提交
a4d1885777
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      common/compressPhoto.js
  2. 1 1
      pages3/polyv/detail.vue

+ 1 - 1
common/compressPhoto.js

@@ -30,7 +30,7 @@ function imageSizeIsLessLimitSize(imagePath, limitSize) {
 function getLessLimitSizeImage(imagePath, quality) {
   uni.compressImage({
     src: imagePath,
-    quality,
+    quality: quality * 100,
     success: (res) => {
       console.log(res.tempFilePath, res, "压缩后");
       _resolve(res.tempFilePath);

+ 1 - 1
pages3/polyv/detail.vue

@@ -1939,7 +1939,7 @@ export default {
           courseId: this.courseId,
           gradeId: this.gradeId,
           goodsId: this.goodsId,
-          orderGoodsId: this.orderGoodsId
+          orderGoodsId: this.orderGoodsId,
         })
         .then((res) => {
           let nowTime = Number(new Date().getTime() / 1000).toFixed(0);