Commit 17f7d883 authored by pengguangpu's avatar pengguangpu

修复首页显示bug;

parent 96dc1dcb
......@@ -5,7 +5,7 @@ Page({
* 页面的初始数据
*/
data: {
welcomeUrl:"http://hh-oss-picture.miyapay.com/box/e710f5d9866d4b927eb6dcc1e21d5295.png",
welcomeUrl:"../../images/img_ad_default.png",
miyaLogo:'http://hh-oss-picture.miyapay.com/box/8f9a536c1d12437ad5942bbc36aaa365.png',
wechatPay:'http://hh-oss-picture.miyapay.com/box/246455ca047365502eb87abbd8592013.png',
isShowDialog:false,
......
<!--pages/home.wxml-->
<view class="container" style="justify-content:flex-start;" >
<image class="operation-position" style="background-color:black;" src="{{welcomeUrl}}"/>
<image class="miya-logo" src="{{miyaLogo}}" bindlongpress="onLogoLongClicked"/>
<view class="btn-container" bindtap="goToPay">
<view class="btn-topay"/>
<image class="wechat-pay" src="{{wechatPay}}"/>
<view class="page" style="justify-content:flex-start;" >
<!--欢迎页-->
<view class="ad_welcome" >
<image mode="heightFix" style="width:100%;height:1280rpx;" src="{{welcomeUrl}}"/>
</view>
<!--底部按钮-->
<view class="bottom_operate">
<!--logo-->
<view style="width:358rpx;height:62rpx;dislay:flex;margin-left:auto;margin-right:auto;margin-top:80rpx;">
<image src="{{miyaLogo}}" style="width:100%;height:62rpx;" mode="heightFix" bindlongpress="onLogoLongClicked"/>
</view>
<!--按钮-->
<view style="display:flex;flex-direction:column;align-items:center;width:573rpx;height:114rpx;background-color:black;margin-top:84rpx;border-radius:7rpx;background-color:#FF7700;" bindtap="goToPay">
<image mode="heightFix" style="width:376rpx;height:114rpx;padding:25rpx;" src="{{wechatPay}}" />
</view>
</view>
<mp-dialog title="身份验证" show="{{isShowDialog}}" buttons="{{verifyDialogButtons}}" bindbuttontap="onVerifyDialogClicked">
<view class="verifyDialog">
......
/* pages/home.wxss */
.operation-position{
width: 100%;
height: 64%;
.page{
display: flex;
position: relative;
background-color: white;
}
.miya-logo{
width: 358rpx;
height: 62rpx;
margin-top: 80rpx;
}
.btn-container{
width: 100%;
height: auto;
margin-top: 83rpx;
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
/* border: 1rpx solid red ; */
}
.wechat-pay{
height: 66rpx;
width: 269rpx;
position: relative;
margin: auto auto;
.ad_welcome{
display: flex;
flex-direction: column;
width: 100%;
height:100%;
/* border: 1rpx solid red ; */
}
.btn-topay{
width: 573rpx;
height: 114rpx;
background-color: #FF7700;
border-radius: 7rpx;
margin-left: 100rpx;
margin-right: 100rpx;
.bottom_operate{
position: absolute;
}
.verifyDialog{
bottom: 0rpx;
width: 100%;
height: 460rpx;
background-color: white;
/* border: 1rpx solid red ; */
display: flex;
flex-direction: column;
width: 100%;
height:100%;
justify-content: center;
align-items: center;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment