Explorar el Código

[会员权益完善]

tags/广东版3.2.1
meo hace 6 años
padre
commit
9a34853451
Se han modificado 3 ficheros con 25 adiciones y 7 borrados
  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 Ver fichero

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

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


+ 3
- 3
pages/index/index.wxml Ver fichero

@@ -27,8 +27,8 @@
</view>
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}">
<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>

+ 13
- 3
pages/index/index.wxss Ver fichero

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

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

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

Cargando…
Cancelar
Guardar