瀏覽代碼

[会员权益完善]

tags/广东版3.2.1
meo 6 年之前
父節點
當前提交
9a34853451
共有 3 個文件被更改,包括 25 次插入7 次删除
  1. +9
    -1
      pages/index/index.js
  2. +3
    -3
      pages/index/index.wxml
  3. +13
    -3
      pages/index/index.wxss

+ 9
- 1
pages/index/index.js 查看文件

@@ -133,7 +133,12 @@ Page({
} }
}) })
}, },

mySpecial:function(){
console.log("special");
wx.navigateTo({
url: '/pages/specialcourtesy/specialcourtesy',
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
@@ -204,6 +209,9 @@ Page({
} }
}).then(res => { }).then(res => {
console.log(res) console.log(res)
that.setData({
levelName: res.data.levelName
})
if (res.data.nickName) { if (res.data.nickName) {
that.setData({ that.setData({
ismember: true, ismember: true,


+ 3
- 3
pages/index/index.wxml 查看文件

@@ -27,8 +27,8 @@
</view> </view>
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}"> <view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}">
<view class="canvas-box"> <view class="canvas-box">
<canvas hidden="{{canvasHidden}}" style="height:500rpx;background:0 0 0 .6;margin:10rpx auto;" canvas-id="mycanvas2" />
<!-- <text class='memberIds'>会员号:{{memberId}}</text> -->
<button class='button'>专享折扣</button>
<text class='memberIds'>{{levelName}}</text>
<canvas hidden="{{canvasHidden}}" style="width:500rpx;height:460rpx;background:0 0 0 .6;margin:-10rpx auto;overflow:hidden" canvas-id="mycanvas2" />
<button class='button' bindtap='mySpecial'>专享折扣</button>
</view> </view>
</view> </view>

+ 13
- 3
pages/index/index.wxss 查看文件

@@ -84,7 +84,7 @@ page {
.canvas-box { .canvas-box {
position: fixed; position: fixed;
width: 500rpx; width: 500rpx;
height: 587rpx;
height: 671rpx;
overflow: hidden; overflow: hidden;
left: 0; left: 0;
top: 0; top: 0;
@@ -93,6 +93,7 @@ page {
margin: auto; margin: auto;
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 16rpx;
z-index:100;
} }


.showQrcode text { .showQrcode text {
@@ -102,10 +103,19 @@ page {
} }


.button { .button {
width: 680rpx;
height: 91rpx;
width: 414rpx;
text-align: center;
margin: 0 auto;
height: 80rpx;
line-height: 80rpx;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 10rpx; border-radius: 10rpx;
font-size: 32rpx; font-size: 32rpx;
color: rgba(2, 192, 255, 1); color: rgba(2, 192, 255, 1);
overflow: hidden;
margin-top: 38rpx;
} }
.memberIds{
padding-top: 30rpx;
font-size: 30rpx;
}

Loading…
取消
儲存