diff --git a/pages/index/member.vue b/pages/index/member.vue index 05ff505..730e4b7 100644 --- a/pages/index/member.vue +++ b/pages/index/member.vue @@ -13,7 +13,7 @@ keyName="image"> - + + + + + 已成为会员, + 去购买 - + + + 开通会员 + + + - 会员权益 - 会员条件:{{ configList.vip_rloe }} + + - {{ configList.vip_text }} + diff --git a/pages_order/home/addEnterprise.vue b/pages_order/home/addEnterprise.vue index 7c71e8c..86de42a 100644 --- a/pages_order/home/addEnterprise.vue +++ b/pages_order/home/addEnterprise.vue @@ -2,21 +2,24 @@ - + + 成为渠道商 - - + configList.qu_price + ①{{ configList.qu_price_keyValue }}
②{{ configList.qu_price_money_keyValue }}
-
+
--> + + @@ -323,7 +326,7 @@ .applyLaundryStore { background-color: #f5f5f5; - + padding-bottom: 100rpx; .frame { display: flex; flex-direction: column; diff --git a/pages_order/mine/promotion.vue b/pages_order/mine/promotion.vue index cabde13..7220c19 100644 --- a/pages_order/mine/promotion.vue +++ b/pages_order/mine/promotion.vue @@ -2,35 +2,53 @@ - - - - - - - - - + + + + + 推荐二维码海报生成 + + + + + + + + + + + + + + 加油站: {{ title }} 保存二维码 - + --> @@ -48,6 +66,7 @@ baseUrl: 'https://image.hhlm1688.com/', canvas: {}, imagePath: '', + show : false, } }, onShow() { @@ -56,6 +75,7 @@ }, methods: { getQrCode() { + // this.show = true this.$api('getInviteCode', res => { if (res.code == 200) { this.url = res.result.url @@ -66,9 +86,9 @@ }, draw() { - uni.showLoading({ - title: "拼命绘画中..." - }) + // uni.showLoading({ + // title: "拼命绘画中..." + // }) wx.createSelectorQuery() .select('#myCanvas') // 绘制的canvas的id @@ -83,6 +103,8 @@ // Canvas 画布的实际绘制宽高 const width = res[0].width const height = res[0].height + + console.log(width, height); // 初始化画布大小 const dpr = wx.getWindowInfo().pixelRatio @@ -98,8 +120,20 @@ ctx.scale(dpr, dpr) ctx.clearRect(0, 0, width, height) - ctx.fillStyle = '#fff' - ctx.fillRect(0, 0, canvas.width, canvas.height) + // ctx.fillStyle = '#fff' + // ctx.fillRect(0, 0, canvas.width, canvas.height) + + const bgImage = canvas.createImage() + bgImage.src = this.configList.qr_image + + bgImage.onload = () => { + + canvas.width = bgImage.width + canvas.height = bgImage.height + + ctx.drawImage(bgImage, + 0, 0, bgImage.width, bgImage.height) + } //用户图片 // const image = canvas.createImage() @@ -119,14 +153,14 @@ // 绘制欢迎语 let s = this.title || '' - ctx.fillText(s, canvas.width / Ratio - s.length * 11, 50); + // ctx.fillText(s, canvas.width / Ratio - s.length * 11, 50); //二维码图片 const coderImage = canvas.createImage() coderImage.src = this.baseUrl + this.url coderImage.onload = () => { ctx.drawImage(coderImage, - canvas.width / Ratio - 240 / 2, 100, 240, 240) + canvas.width / 2 - 175, canvas.height / 2 - 100, 350, 350) } @@ -206,7 +240,7 @@ .promotion { width: 100%; height: 100vh; - background-color: $uni-color; + // background-color: $uni-color; .promotion-card { width: 90%; margin: 140rpx auto 0rpx auto; @@ -237,9 +271,8 @@ /* visibility: hidden */ /* visibility: hidden; */ /* margin-top: 100rpx; */ - margin: 68rpx auto; width: 750rpx; - height: 750rpx; + height: calc(100vh - 120rpx); /* line-height: 20px; */ background-color: rgba(255, 255, 255, 1); text-align: center;