Showing
5 changed files
with
104 additions
and
1 deletions
| @@ -72,7 +72,8 @@ | @@ -72,7 +72,8 @@ | ||
| 72 | "pages/customer/collectSeller", | 72 | "pages/customer/collectSeller", |
| 73 | "pages/customer/detail_owner_invitation_new", | 73 | "pages/customer/detail_owner_invitation_new", |
| 74 | "pages/customer/detail_owner_invitation9", | 74 | "pages/customer/detail_owner_invitation9", |
| 75 | - "pages/me/invitation" | 75 | + "pages/me/invitation", |
| 76 | + "pages/reserve/index_new" | ||
| 76 | ], | 77 | ], |
| 77 | "requiredPrivateInfos": [ | 78 | "requiredPrivateInfos": [ |
| 78 | "getLocation", | 79 | "getLocation", |
miniprogram/pages/reserve/index_new.js
0 → 100644
| 1 | +// pages/reservr/index.js | ||
| 2 | +import PubSub from '../../utils/PubSub' | ||
| 3 | +Page({ | ||
| 4 | + data: { | ||
| 5 | + background: ['https://qn.colorcun.com/homeImg1.png', 'https://qn.colorcun.com/homeImg2.png', | ||
| 6 | + 'https://qn.colorcun.com/homeImg3.png', 'https://qn.colorcun.com/homeImg4.png', | ||
| 7 | + 'https://qn.colorcun.com/homeImg5.png', 'https://qn.colorcun.com/homeImg6.png', | ||
| 8 | + 'https://qn.colorcun.com/homeImg7.png', 'https://qn.colorcun.com/homeImg8.png', | ||
| 9 | + 'https://qn.colorcun.com/homeImg9.png' | ||
| 10 | + ] | ||
| 11 | + }, | ||
| 12 | + /** | ||
| 13 | + * 生命周期函数--监听页面加载 | ||
| 14 | + */ | ||
| 15 | + onLoad: function (options) {}, | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 19 | + */ | ||
| 20 | + onReady: function () {}, | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 生命周期函数--监听页面显示 | ||
| 24 | + */ | ||
| 25 | + onShow: function () { | ||
| 26 | + PubSub.emit('custom-tab-bar') | ||
| 27 | + }, | ||
| 28 | + // 跳转到商家入驻页 | ||
| 29 | + gotoJoinSeller() { | ||
| 30 | + wx.navigateTo({ | ||
| 31 | + url: '/pages/customer/joinSeller', | ||
| 32 | + }) | ||
| 33 | + }, | ||
| 34 | + /** | ||
| 35 | + * 生命周期函数--监听页面隐藏 | ||
| 36 | + */ | ||
| 37 | + onHide: function () { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 生命周期函数--监听页面卸载 | ||
| 43 | + */ | ||
| 44 | + onUnload: function () { | ||
| 45 | + | ||
| 46 | + }, | ||
| 47 | + /** | ||
| 48 | + * 用户点击右上角分享 | ||
| 49 | + */ | ||
| 50 | + onShareAppMessage: function () { | ||
| 51 | + return { | ||
| 52 | + title: '请客订包间,就上周到安排' | ||
| 53 | + } | ||
| 54 | + }, | ||
| 55 | +}) |
miniprogram/pages/reserve/index_new.json
0 → 100644
miniprogram/pages/reserve/index_new.wxml
0 → 100644
| 1 | +<!--pages/reserve/index_new.wxml--> | ||
| 2 | +<nav id="nav">周到安排</nav> | ||
| 3 | +<image class="imgTop" src="https://qn.colorcun.com/homeTop.png" mode="widthFix" /> | ||
| 4 | +<view class="page-section page-section-spacing swiper"> | ||
| 5 | + <swiper autoplay="true"> | ||
| 6 | + <block wx:for="{{background}}" wx:key="item"> | ||
| 7 | + <swiper-item> | ||
| 8 | + <image class="imgs" src="{{item}}" mode="widthFix" /> | ||
| 9 | + </swiper-item> | ||
| 10 | + </block> | ||
| 11 | + </swiper> | ||
| 12 | +</view> | ||
| 13 | +<button class="btn" bindtap="gotoJoinSeller">开通试用</button> | ||
| 14 | +<menu></menu> |
miniprogram/pages/reserve/index_new.wxss
0 → 100644
| 1 | +/* pages/reserve/index_new.wxss */ | ||
| 2 | +.imgTop { | ||
| 3 | + width: 100%; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +swiper { | ||
| 7 | + height: 970rpx; | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +swiper-item image { | ||
| 11 | + width: 100%; | ||
| 12 | + height: 100%; | ||
| 13 | +} | ||
| 14 | + | ||
| 15 | +.btn { | ||
| 16 | + width: 80%; | ||
| 17 | + color: #fff; | ||
| 18 | + left: 0; | ||
| 19 | + right: 0; | ||
| 20 | + position: fixed; | ||
| 21 | + bottom: 8%; | ||
| 22 | + border-radius: 42rpx; | ||
| 23 | + background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%); | ||
| 24 | +} |
-
Please register or login to post a comment