Commit 9f8865ec39d6315cb8f7cfd452a736cd884d2d5c

Authored by vking
1 parent b8107b92

welcome

... ... @@ -67,8 +67,13 @@ Page({
},
launchAppError (e) {
console.log('launchAppError',e)
this.setData({
error:JSON.stringify(e.detail)
},
gotoHome(e){
wx.switchTab({
url:'/pages/reserve/index',
fail:res=>{
console.log('gotoHome.fail',res)
},
})
}
},
})
\ No newline at end of file
... ...
<!--pages/customer/welcome.wxml-->
<nav>打开APP</nav>
<button open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>
<view wx:if="{{error}}" style="width: 100%;">{{error}}</view>
<nav>周到安排</nav>
<view class="pages flex-vc">
<view class="icon"></view>
<view class="title">登录成功</view>
<view class="desc">请客订包间,就用周到安排</view>
<button class="launchApp"
bindtap="gotoHome"
open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>
</view>
... ...
/* pages/customer/welcome.wxss */
\ No newline at end of file
/* pages/customer/welcome.wxss */
page{
background-color: #fefefe;
}
.pages{
padding-top: 162rpx;
}
.icon{
width:107rpx;
height:107rpx;
background-image: url("http://nosqn.colorcun.com/app/images/right.png");
background-size: 100% 100%;
}
.title{
margin-top: 42rpx;
height:48rpx;
font-size:34rpx;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(51,51,51,1);
line-height:48rpx;
}
.desc{
margin-top: 20rpx;
height:42rpx;
font-size:30rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(102,102,102,1);
line-height:42rpx;
}
.launchApp{
margin-top: 120rpx;
width:368rpx;
height:80rpx;
background:linear-gradient(90deg,rgba(59,191,245,1) 0%,rgba(87,160,255,1) 100%);
border-radius:42rpx;
font-size:34rpx;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(255,255,255,1);
line-height:80rpx;
}
\ No newline at end of file
... ...