Browse Source

[优化] 商品详情页生成海报高度

threedate
邓平艺 4 years ago
parent
commit
14f0ef096f
  1. 4
      pages/goodsDetail/index.vue

4
pages/goodsDetail/index.vue

@ -102,7 +102,7 @@
</skeleton>
<view class="canvas-box">
<canvas style="width: 375px;height: 667px;position:fixed;top:9999px" canvas-id="mycanvas" />
<canvas style="width: 375px;height: 496px;position:fixed;top:9999px" canvas-id="mycanvas" />
</view>
<view class='imagePathBox' v-if="maskHidden == true && imagePath" @click="maskHidden = false ">
@ -279,7 +279,7 @@
},
createNewImg() {
var that = this;
var context = uni.createCanvasContext('mycanvas');
var context = uni.createCanvasContext('mycanvas', this);
let goods = that.goods_detail;
let title = goods.name;
let price = '¥'+goods.specs[0].selling_price;

Loading…
Cancel
Save