You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "exchange" :style ="{background:colors}" >
< view class = "place" >
< / view >
< view class = "ewm_box" >
< view class = "titles" >
核销二维码
< / view >
< view class = "ewm_img" >
< image src = "../../../../static/images/ewm.png" > < / image >
< / view >
< view class = "jiefen" > 我的剩余积分 : < text : style = "'color:' + colors" > 1120 < / text > < / view >
< / view >
< / view >
< / template >
< script >
var app = getApp ( ) ;
export default {
data ( ) {
return {
colors : ""
} ;
} ,
components : { } ,
props : { } ,
/**
* 生命周期函数--监听页面加载
*/
onLoad : function ( options ) {
this . setData ( {
colors : app . globalData . newColor
} ) ;
uni . setNavigationBarColor ( {
backgroundColor : app . globalData . newColor ,
frontColor : '#ffffff'
} ) ;
} ,
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady : function ( ) { } ,
/**
* 生命周期函数--监听页面显示
*/
onShow : function ( ) { } ,
/**
* 生命周期函数--监听页面隐藏
*/
onHide : function ( ) { } ,
/**
* 生命周期函数--监听页面卸载
*/
onUnload : function ( ) { } ,
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh : function ( ) { } ,
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom : function ( ) { } ,
/**
* 用户点击右上角分享
*/
onShareAppMessage : function ( ) { } ,
methods : { }
} ;
< / script >
< style scoped lang = "scss" >
. exchange {
position : fixed ;
width : 100 % ;
height : 100 % ;
bottom : 0 ;
top : 0 ;
padding : 20 upx 4 % ;
}
. place {
width : 100 % ;
height : 100 % ;
position : absolute ;
top : 0 ;
left : 0 ;
background : linear - gradient ( to bottom , rgba ( 255 , 255 , 255 , 0 ) , rgba ( 255 , 255 , 255 , .5 ) ) ;
z - index : - 10 ;
}
. ewm _box {
width : 100 % ;
height : 100 vw ;
background - color : # fff ;
margin - top : 140 upx ;
border - radius : 10 upx ;
overflow : hidden ;
}
. ewm _box . titles {
height : 80 upx ;
line - height : 80 upx ;
padding : 0 30 upx ;
background - color : # E8E8E8 ;
font - size : 28 upx ;
font - weight : bold ;
}
. ewm _img {
margin - top : 50 upx ;
}
. ewm _img image {
width : 400 upx ;
height : 400 upx ;
display : block ;
margin : 0 auto ;
}
. jiefen {
height : 100 upx ;
line - height : 100 upx ;
text - align : center ;
font - size : 28 upx ;
margin - top : 100 upx ;
border - top : 1 upx solid # eee ;
font - weight : bold ;
}
< / style >