Просмотр исходного кода

[memberQRcode 分支merge到dev]

tags/广东版3.2.1
meo 6 лет назад
Родитель
Сommit
f2aef81174
13 измененных файлов: 160 добавлений и 134 удалений
  1. Двоичные данные
      assets/img/growthbg.png
  2. Двоичные данные
      assets/img/myspeacial.jpg
  3. Двоичные данные
      assets/img/telicon.png
  4. +1
    -0
      pages/edit/edit.js
  5. +5
    -34
      pages/grade/grade.js
  6. +3
    -0
      pages/grade/grade.wxml
  7. +9
    -1
      pages/grade/grade.wxss
  8. +4
    -2
      pages/specialcourtesy/specialcourtesy.json
  9. +61
    -33
      pages/specialcourtesy/specialcourtesy.wxml
  10. +69
    -30
      pages/specialcourtesy/specialcourtesy.wxss
  11. +6
    -30
      pages/user/index.js
  12. +1
    -2
      pages/user/index.wxml
  13. +1
    -2
      pages/user/index.wxss

Двоичные данные
assets/img/growthbg.png Просмотреть файл

До После
Ширина: 1050  |  Высота: 255  |  Размер: 238 KiB

Двоичные данные
assets/img/myspeacial.jpg Просмотреть файл

До После
Ширина: 750  |  Высота: 316  |  Размер: 36 KiB

Двоичные данные
assets/img/telicon.png Просмотреть файл

До После
Ширина: 48  |  Высота: 48  |  Размер: 3.2 KiB

+ 1
- 0
pages/edit/edit.js Просмотреть файл

@@ -2,6 +2,7 @@ const util = require("../../utils/util.js");
const Http = require("../../utils/HttpBasics"); const Http = require("../../utils/HttpBasics");
const config = require("../../config/config"); const config = require("../../config/config");
Page({ Page({

/** /**
* 页面的初始数据 * 页面的初始数据
*/ */


+ 5
- 34
pages/grade/grade.js Просмотреть файл

@@ -49,39 +49,10 @@ Page({
}) })
}, },

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {

// 点击跳转到我的特享优惠
gotospecialcourtesy:function(){
wx.navigateTo({
url: '/pages/specialcourtesy/specialcourtesy',
})
} }
}) })

+ 3
- 0
pages/grade/grade.wxml Просмотреть файл

@@ -39,4 +39,7 @@
<view wx:if="{{flags=='nothave'}}"> <view wx:if="{{flags=='nothave'}}">
<image class='img' src='./../../assets/img/act.png' mode='widthFix'></image> <image class='img' src='./../../assets/img/act.png' mode='widthFix'></image>
<text class="txt">暂无配置信息</text> <text class="txt">暂无配置信息</text>
</view>
<view class='growthbg' bindtap='gotospecialcourtesy'>
<image src='./../../assets/img/growthbg.png' mode='widthFix'></image>
</view> </view>

+ 9
- 1
pages/grade/grade.wxss Просмотреть файл

@@ -18,7 +18,7 @@
} }


.page { .page {
height: 100%;
height: auto;
font-weight: 400; font-weight: 400;
} }


@@ -189,4 +189,12 @@ visibility: hidden;
color: #999; color: #999;
font-size: 26rpx; font-size: 26rpx;
margin-left: 10rpx; margin-left: 10rpx;
}
.growthbg{
margin-top: 40rpx;
padding: 0 30rpx;
}
.growthbg image{
display: block;
width: 100%;
} }

+ 4
- 2
pages/specialcourtesy/specialcourtesy.json Просмотреть файл

@@ -1,3 +1,5 @@
{ {
"navigationBarTitleText": "特享礼遇"
}
"navigationBarTitleText": "我的特权",
"navigationBarBackgroundColor": "#CD223C",
"navigationBarTextStyle": "white"
}

+ 61
- 33
pages/specialcourtesy/specialcourtesy.wxml Просмотреть файл

@@ -1,40 +1,68 @@
<view class='headerbg'>
<image src="./../../assets/img/myspeacial.jpg" mode='widthFix'></image>
</view>
<view class='con'> <view class='con'>
<view class="title">注意:德胡的黑虎度的核武i好的害得我iu会丢额打黑u我会的u还得u和iu打黑u好的打黑ihdiu打黑i文化的打黑</view>
<view class="title">以下为商城会员对应门店的优惠折扣</view>
</view> </view>

<view class='card'>
<view class='header'>
<view class='txt01 clearfix'><text class='fl'>美车堂</text><text class='fr'><text class='number'>9</text>折(缤纷卡)</text></view>
<view class='cards clearfix'>
<view class='card'>
<view class='txt01'>
<view class="triangle">
<text><i>></i></text>
</view>
<view class='discount'>
<text style='display:inline-block;'>7.9</text>折</view>
<text class='cardtype'>缤纷卡</text>
<text class='tit'>美车堂</text>
<view class='clearfix footer'>
<text class='fl'>A座1012号</text>
<image class="fr" src='./../../assets/img/telicon.png' mode='widthFix'></image>
</view>
</view>
</view> </view>
<view class='bottom'>
<text>BM-1003</text>
<text>5255-1003</text>
<view class='card'>
<view class='txt01'>
<view class="triangle">
<text><i>></i></text>
</view>
<view class='discount'>
<text style='display:inline-block;'>7.9</text>折</view>
<text class='cardtype'>缤纷卡</text>
<text class='tit'>美车堂</text>
<view class='clearfix footer'>
<text class='fl'>A座1012号</text>
<image class="fr" src='./../../assets/img/telicon.png' mode='widthFix'></image>
</view>
</view>
</view> </view>
</view>
<view class='card'>
<view class='header'>
<view class='txt01 clearfix'><text class='fl'>美车堂</text><text class='fr'><text class='number'>9</text>折(缤纷卡)</text></view>
<view class='card'>
<view class='txt01'>
<view class="triangle">
<text><i>></i></text>
</view>
<view class='discount'>
<text style='display:inline-block;'>7.9</text>折</view>
<text class='cardtype'>缤纷卡</text>
<text class='tit'>美车堂</text>
<view class='clearfix footer'>
<text class='fl'>A座1012号</text>
<image class="fr" src='./../../assets/img/telicon.png' mode='widthFix'></image>
</view>
</view>
</view> </view>
<view class='bottom'>
<text>BM-1003</text>
<text>5255-1003</text>
<view class='card'>
<view class='txt01'>
<view class="triangle">
<text><i>></i></text>
</view>
<view class='discount'>
<text style='display:inline-block;'>7.9</text>折</view>
<text class='cardtype'>缤纷卡</text>
<text class='tit'>美车堂</text>
<view class='clearfix footer'>
<text class='fl'>A座1012号</text>
<image class="fr" src='./../../assets/img/telicon.png' mode='widthFix'></image>
</view>
</view>
</view> </view>
</view> </view>
<view class='card'>
<view class='header'>
<view class='txt01 clearfix'><text class='fl'>美车堂</text><text class='fr'><text class='number'>9</text>折(缤纷卡)</text></view>
</view>
<view class='bottom'>
<text>BM-1003</text>
<text>5255-1003</text>
</view>
</view>
<view class='card'>
<view class='header'>
<view class='txt01 clearfix'><text class='fl'>美车堂</text><text class='fr'><text class='number'>9</text>折(缤纷卡)</text></view>
</view>
<view class='bottom'>
<text>BM-1003</text>
<text>5255-1003</text>
</view>
</view>

+ 69
- 30
pages/specialcourtesy/specialcourtesy.wxss Просмотреть файл

@@ -1,3 +1,10 @@
Page{
background: #C8223C;
}
.headerbg image{
display: block;
width: 100%;
}
.fl{ .fl{
float: left; float: left;
} }
@@ -5,44 +12,76 @@
float: right; float: right;
} }
.title{ .title{
font-size: 28rpx;
padding: 20rpx 40rpx;
color: #999;
padding: 20rpx 40rpx 30rpx;
color: #fff;
text-align: center;
font-size:26rpx;
} }
.card{ .card{
width: 670rpx;
margin: 0 auto 40rpx;
position: relative;
width: 335rpx;
margin: 0 auto 18rpx;
border-radius:16rpx; border-radius:16rpx;
overflow: hidden; overflow: hidden;
box-shadow:1px 4px 20px #C4C4C4;
padding-bottom: 20rpx;
background: #fff;
} }
.header{
background: #75b6f7;
padding: 30rpx 0 60rpx;
.txt01 text{
display: block;
text-align: center;
} }
.txt01{
color: #fff;
font-size: 28rpx;
.cards{
padding: 0 33rpx;
}
.cards>view:nth-of-type(2n){
float: right;
} }
.text02{
margin-top: 20rpx;
.cards>view:nth-of-type(2n+1){
float: left;
}
.tit{
font-size:36rpx;
color:rgba(51,51,51,1);
margin-top: -40rpx;
}
.cardtype{
position: absolute;
right: 28rpx;
top: 20rpx;
font-size: 24rpx;
color:rgba(99,188,230,1);
}
.footer{
margin-top: 26rpx;
font-size:26rpx;
font-weight:500;
color:rgba(153,153,153,1);
} }
.txt01 .fl{
margin-left: 20rpx;
font-size: 35rpx;
.footer text{
text-indent: 33rpx;
} }
.txt01 .fr{
margin-right: 20rpx;
.footer image{
width: 24rpx;
margin-right: 33rpx;
} }
.bottom{
font-size: 26rpx;
color: #999;
height: 60rpx;
line-height: 60rpx;
text-indent: 1em;
.triangle {
width: 0px;
height: 0px;
border-color: transparent #DAB055;
border-width: 0 0 110rpx 110rpx;
border-style: solid;
}
.discount{
position: absolute;
color: #fff;
width: 110rpx;
height: 100rpx;
font-size: 20rpx;
left:13rpx;
top:-11rpx;
z-index: 10;
transform:rotate(315deg);
}
.discount text{
font-size: 28rpx;
} }
.number{
font-size: 40rpx;
}

+ 6
- 30
pages/user/index.js Просмотреть файл

@@ -86,14 +86,6 @@ Page({
*/ */
onShow: function() { onShow: function() {
let that = this; let that = this;
wx.getScreenBrightness({
success: function (res) {
console.log(res)
that.setData({
ScreenBrightness: res.value
})
}
})
let num = wx.getStorageSync('couponNum'); let num = wx.getStorageSync('couponNum');
wx.hideTabBarRedDot({ wx.hideTabBarRedDot({
index: 2 index: 2
@@ -150,9 +142,6 @@ Page({
let that = this; let that = this;
that.setData({ that.setData({
showQrcode: false showQrcode: false
}),
wx.setScreenBrightness({
value: that.data.ScreenBrightness
}) })
}, },
//适配不同屏幕大小的canvas //适配不同屏幕大小的canvas
@@ -187,15 +176,6 @@ Page({
}, },
qrcode: function (e) { qrcode: function (e) {
var that = this; var that = this;
// if (that.data.ScreenBrightness>0.8){
// wx.setScreenBrightness({
// value: that.data.ScreenBrightness
// })
// }else{
// wx.setScreenBrightness({
// value: 0.8
// })
// }
that.setData({ that.setData({
showQrcode:true showQrcode:true
}) })
@@ -214,15 +194,11 @@ Page({
}); });
clearTimeout(st); clearTimeout(st);
}, 1000) }, 1000)
}, },
// onUnload:function(){
// wx.setScreenBrightness({
// value: that.data.ScreenBrightness
// })
// },
// onHide:function(){
// wx.setScreenBrightness({
// value: that.data.ScreenBrightness
// })
// }
close: function () {
this.setData({
showmemberqrcode: false,
})
}
}); });

+ 1
- 2
pages/user/index.wxml Просмотреть файл

@@ -1,4 +1,4 @@
<scroll-view class='container' scroll-y='false'>
<view class="user"> <view class="user">
<view class='bannerbg'> <view class='bannerbg'>
<image src='./../../assets/img/banner.png' mode="widthFix"></image> <image src='./../../assets/img/banner.png' mode="widthFix"></image>
@@ -99,4 +99,3 @@
<text class='memberIds'>会员号:{{memberId}}</text> <text class='memberIds'>会员号:{{memberId}}</text>
</view> </view>
</view> </view>
</scroll-view>

+ 1
- 2
pages/user/index.wxss Просмотреть файл

@@ -253,7 +253,7 @@ page{
} }


.qrcode image { .qrcode image {
width: 60rpx;
width: 70rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }


@@ -363,7 +363,6 @@ page{
margin: auto; margin: auto;
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 16rpx;
} }
.showQrcode text{ .showQrcode text{
display: block; display: block;


Загрузка…
Отмена
Сохранить