Commit 17f7d883 authored by pengguangpu's avatar pengguangpu

修复首页显示bug;

parent 96dc1dcb
...@@ -5,7 +5,7 @@ Page({ ...@@ -5,7 +5,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { 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', miyaLogo:'http://hh-oss-picture.miyapay.com/box/8f9a536c1d12437ad5942bbc36aaa365.png',
wechatPay:'http://hh-oss-picture.miyapay.com/box/246455ca047365502eb87abbd8592013.png', wechatPay:'http://hh-oss-picture.miyapay.com/box/246455ca047365502eb87abbd8592013.png',
isShowDialog:false, isShowDialog:false,
......
<!--pages/home.wxml--> <!--pages/home.wxml-->
<view class="container" style="justify-content:flex-start;" > <view class="page" 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="ad_welcome" >
<image mode="heightFix" style="width:100%;height:1280rpx;" src="{{welcomeUrl}}"/>
<view class="btn-container" bindtap="goToPay">
<view class="btn-topay"/>
<image class="wechat-pay" src="{{wechatPay}}"/>
</view> </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"> <mp-dialog title="身份验证" show="{{isShowDialog}}" buttons="{{verifyDialogButtons}}" bindbuttontap="onVerifyDialogClicked">
<view class="verifyDialog"> <view class="verifyDialog">
......
/* pages/home.wxss */ /* pages/home.wxss */
.operation-position{ .page{
width: 100%;
height: 64%;
display: flex; display: flex;
position: relative;
background-color: white;
}
.miya-logo{
width: 358rpx;
height: 62rpx;
margin-top: 80rpx;
}
.btn-container{
width: 100%; width: 100%;
height: auto; height: 100%;
margin-top: 83rpx;
display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; /* border: 1rpx solid red ; */
} }
.wechat-pay{ .ad_welcome{
height: 66rpx; display: flex;
width: 269rpx; flex-direction: column;
position: relative; width: 100%;
margin: auto auto; height:100%;
/* border: 1rpx solid red ; */
} }
.btn-topay{ .bottom_operate{
width: 573rpx;
height: 114rpx;
background-color: #FF7700;
border-radius: 7rpx;
margin-left: 100rpx;
margin-right: 100rpx;
position: absolute; position: absolute;
} bottom: 0rpx;
width: 100%;
.verifyDialog{ height: 460rpx;
background-color: white;
/* border: 1rpx solid red ; */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; align-items: center;
height:100%;
justify-content: 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