Commit 9f8865ec39d6315cb8f7cfd452a736cd884d2d5c

Authored by vking
1 parent b8107b92

welcome

@@ -67,8 +67,13 @@ Page({ @@ -67,8 +67,13 @@ Page({
67 }, 67 },
68 launchAppError (e) { 68 launchAppError (e) {
69 console.log('launchAppError',e) 69 console.log('launchAppError',e)
70 - this.setData({  
71 - error:JSON.stringify(e.detail) 70 + },
  71 + gotoHome(e){
  72 + wx.switchTab({
  73 + url:'/pages/reserve/index',
  74 + fail:res=>{
  75 + console.log('gotoHome.fail',res)
  76 + },
72 }) 77 })
73 - } 78 + },
74 }) 79 })
1 <!--pages/customer/welcome.wxml--> 1 <!--pages/customer/welcome.wxml-->
2 -<nav>打开APP</nav>  
3 -<button open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>  
4 -<view wx:if="{{error}}" style="width: 100%;">{{error}}</view> 2 +<nav>周到安排</nav>
  3 +<view class="pages flex-vc">
  4 + <view class="icon"></view>
  5 + <view class="title">登录成功</view>
  6 + <view class="desc">请客订包间,就用周到安排</view>
  7 + <button class="launchApp"
  8 + bindtap="gotoHome"
  9 + open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>
  10 +</view>
1 -/* pages/customer/welcome.wxss */  
  1 +/* pages/customer/welcome.wxss */
  2 +page{
  3 + background-color: #fefefe;
  4 +}
  5 +.pages{
  6 + padding-top: 162rpx;
  7 +}
  8 +.icon{
  9 + width:107rpx;
  10 + height:107rpx;
  11 + background-image: url("http://nosqn.colorcun.com/app/images/right.png");
  12 + background-size: 100% 100%;
  13 +}
  14 +.title{
  15 + margin-top: 42rpx;
  16 + height:48rpx;
  17 + font-size:34rpx;
  18 + font-family:PingFangSC-Semibold,PingFang SC;
  19 + font-weight:600;
  20 + color:rgba(51,51,51,1);
  21 + line-height:48rpx;
  22 +}
  23 +.desc{
  24 + margin-top: 20rpx;
  25 + height:42rpx;
  26 + font-size:30rpx;
  27 + font-family:PingFangSC-Regular,PingFang SC;
  28 + font-weight:400;
  29 + color:rgba(102,102,102,1);
  30 + line-height:42rpx;
  31 +}
  32 +.launchApp{
  33 + margin-top: 120rpx;
  34 + width:368rpx;
  35 + height:80rpx;
  36 + background:linear-gradient(90deg,rgba(59,191,245,1) 0%,rgba(87,160,255,1) 100%);
  37 + border-radius:42rpx;
  38 +
  39 + font-size:34rpx;
  40 + font-family:PingFangSC-Semibold,PingFang SC;
  41 + font-weight:600;
  42 + color:rgba(255,255,255,1);
  43 + line-height:80rpx;
  44 +}