From 6f197fe44e1c1fd33f93a39f08df06b7957ac646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Mon, 8 Nov 2021 14:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E6=8E=A8=E5=B9=BF=E9=9D=99?= =?UTF-8?q?=E6=80=81=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/storePoster/index.js | 14 ++++++-------- components/storePoster/index.wxml | 4 ++-- pages/distribute/storePoster/index.js | 6 +++--- pages/distribute/storePoster/index.wxml | 10 +++++----- pages/distribute/storePoster/index.wxss | 10 +++++----- 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/components/storePoster/index.js b/components/storePoster/index.js index e2c29da..7c730fe 100644 --- a/components/storePoster/index.js +++ b/components/storePoster/index.js @@ -29,7 +29,7 @@ Component({ //组件的初始数据 data: { - storePosterFt: _.config.imgUrl + 'distribute/storePosterFt.jpg?211111', + storePosterFt: _.config.imgUrl + 'distribute/storePosterFt.jpg?211108', imgs: [], tempPosterPath: '', showOptBtn:false,//操作按钮显示 @@ -108,7 +108,7 @@ Component({ let width = 580 let picheight = (parseFloat(this.data.imgs[1].height)/parseFloat(this.data.imgs[1].width))*580 let optheight = 20 - let ftheight = 348 + let ftheight = 345 this.setData({ canvasInfo:{ width: width+20+'px', @@ -126,24 +126,22 @@ Component({ //底图 if (that.data.imgs[0]) { - CTX.drawImage(that.data.imgs[0].path, 0, 0, that.data.imgs[1].width, that.data.imgs[1].height, 10, 10+picheight+optheight, width, ftheight) + CTX.drawImage(that.data.imgs[0].path, 0, 0, that.data.imgs[0].width, that.data.imgs[0].height, 10, 10+picheight+optheight, width, ftheight) } //二维码 if (that.data.imgs[2]) { - Canvas.circleImage(CTX,that.data.imgs[2].path,420, 10+picheight+optheight+153,67) + Canvas.circleImage(CTX,that.data.imgs[2].path,417, 10+picheight+optheight+175,70) } //店铺名 - Canvas.drawTextOverflow(CTX, '店铺名店铺名店铺名店铺名店铺名店铺名店铺名店铺名', 230, 1, 24, '#fff', 30, 88, 10+picheight+optheight+52) if (that.data.storName) { - Canvas.drawTextOverflow(CTX, that.data.storName, 340, 1, 24, '#f00', 30, 40, 250) + Canvas.drawTextOverflow(CTX, that.data.storName, 230, 1, 24, '#fff', 30, 88, 10+picheight+optheight+57) } //地址 - Canvas.drawTextOverflow(CTX, '店铺名店铺名店铺名店铺名店铺名店铺名店铺名店铺名', 200, 1, 18, '#fff', 24, 108, 10+picheight+optheight+89) if (that.data.storaAddress) { - //Canvas.drawTextOverflow(CTX, that.data.storaAddress, 180, 1, 11, '#666', 17, 20, (that.data.imgs[3].height-100)/2) + Canvas.drawTextOverflow(CTX, that.data.storaAddress, 200, 1, 18, '#fff', 24, 113, 10+picheight+optheight+99) } setTimeout(function(){ diff --git a/components/storePoster/index.wxml b/components/storePoster/index.wxml index 50e83fa..091c6df 100644 --- a/components/storePoster/index.wxml +++ b/components/storePoster/index.wxml @@ -4,8 +4,8 @@ - - + + diff --git a/pages/distribute/storePoster/index.js b/pages/distribute/storePoster/index.js index 0ffec2c..bfdc49b 100644 --- a/pages/distribute/storePoster/index.js +++ b/pages/distribute/storePoster/index.js @@ -2,15 +2,15 @@ import _ from '../../../commons/js/commons' const app = getApp() Page({ data: { - poster_full_url:'https://img.liche.cn/liche/liche/202111/p_a403eaaf794e8ab54e1e1c22b0c8e30f.jpg', + poster_full_url:'', poster_url:'', imgUrl: _.config.imgUrl,//静态图片路径 poster: { isShow: false, isCreateQrcode: false, customPoster:'', - storName: '泉州鲤城区4s店泉州鲤城区4s店', - storaAddress:'泉州市鲤城区泉州市鲤城区>', + storName: '泉州鲤城区4s店', + storaAddress:'泉州市鲤城区>', }, }, onLoad: function (options) { diff --git a/pages/distribute/storePoster/index.wxml b/pages/distribute/storePoster/index.wxml index 43c637e..e54b135 100644 --- a/pages/distribute/storePoster/index.wxml +++ b/pages/distribute/storePoster/index.wxml @@ -2,16 +2,16 @@ - 换个美图 + 换个美图 - - 泉州鲤城区4s店泉州鲤城区4s店 - 泉州市鲤城区泉州市鲤城区> + + {{poster.storName}} + {{poster.storaAddress}} @@ -21,4 +21,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pages/distribute/storePoster/index.wxss b/pages/distribute/storePoster/index.wxss index ccbe172..657991d 100644 --- a/pages/distribute/storePoster/index.wxss +++ b/pages/distribute/storePoster/index.wxss @@ -1,21 +1,21 @@ .posterFt{ width:670rpx; - height:402rpx; + height:399rpx; } .poster-name{ position:absolute; - top:40rpx; + top:35rpx; left:90rpx; width:280rpx; } .poster-address{ position:absolute; - top:92rpx; - left:115rpx; + top:89rpx; + left:113rpx; width:255rpx; } .poster-code{ position:absolute; - top:206rpx; + top:202rpx; left:470rpx; } \ No newline at end of file