cr 4 роки тому
батько
коміт
29abe31c17
2 змінених файлів з 11 додано та 6 видалено
  1. 4 0
      src/pages/goods/detail.vue
  2. 7 6
      src/pages/recommend/list.vue

+ 4 - 0
src/pages/goods/detail.vue

@@ -2091,6 +2091,10 @@ page {
2091 2091
     background-color: #fff;
2092 2092
     visibility: hidden;
2093 2093
     opacity: 0;
2094
+    position: fixed;
2095
+    left: -999px;
2096
+    top: -999px;
2097
+    z-index: -1;
2094 2098
 }
2095 2099
 .explain{
2096 2100
     padding: px(60) px(40);

+ 7 - 6
src/pages/recommend/list.vue

@@ -246,7 +246,7 @@ export default {
246 246
         let title =
247 247
             self.activityData.brandName +
248 248
             ` (${self.activityData.onlineProductCount}款)`;
249
-            title += `【${self.activityData.minPrice / 100}元起】`;
249
+        title += `【${self.activityData.minPrice / 100}元起】`;
250 250
         return {
251 251
             title: title,
252 252
             imageUrl: self.canvasforwardPath || self.activityData.brandLogo,
@@ -620,6 +620,9 @@ export default {
620 620
             const ctx = uni.createCanvasContext("canvas2", self);
621 621
 
622 622
             return new Promise((resolve) => {
623
+                let logoUrl =
624
+                    "https://youxuan.ixiaokejia.com/home/forwardimg?url=" +
625
+                    encodeURI(self.activityData.brandLogo);
623 626
                 self.router.getScene(self.$mp.query).then((res) => {
624 627
                     res.uid = self.user.id;
625 628
                     res.shopId = self.activeShop.id;
@@ -634,7 +637,7 @@ export default {
634 637
                                 "https://oss.ixiaokejia.com/images/common/share_bg_box.png",
635 638
                         }),
636 639
                         uni.getImageInfo({
637
-                            src: self.activityData.brandLogo,
640
+                            src: logoUrl,
638 641
                         }),
639 642
                         uni.getImageInfo({
640 643
                             src:
@@ -680,14 +683,12 @@ export default {
680 683
                             ctx.fillText(tagPrice, 325, 215);
681 684
                             ctx.stroke();
682 685
 
683
-
684
-                            let itemPrice =self.activityData.minDiscount * 10;
685
-                            itemPrice = itemPrice.toFixed(1)+'折';
686
+                            let itemPrice = self.activityData.minDiscount * 10;
687
+                            itemPrice = itemPrice.toFixed(1) + "折";
686 688
                             ctx.setFontSize(40);
687 689
                             ctx.setFillStyle("#f00");
688 690
                             ctx.fillText(itemPrice, 320, 265);
689 691
                             ctx.stroke();
690
-
691 692
                         } else {
692 693
                             // 价格
693 694
                             let itemPrice =