Commit bf9622369851aba1635eb89f79445dab1c874baa

Authored by wangfan
1 parent 6a25e3e9

c端预定

... ... @@ -23,13 +23,15 @@
"pages/book/setting/sms",
"pages/book/setting/sms_buy",
"pages/book/crm/index",
"pages/book/remark/index",
"pages/book/remark/index",
"pages/book/smsbatch/index",
"pages/book/smsbatch/update",
"pages/book/smsbatch/detail",
"pages/book/smsbatch/list",
"pages/book/smsbatch/result",
"pages/reserve/search"
"pages/reserve/search",
"pages/reserve/detail",
"pages/me/follow"
],
"subpackages": [
{
... ...
... ... @@ -49,7 +49,6 @@ Component({
})
}else{
wx.hideTabBar();
//this.selectComponent('#as').show();
wx.showActionSheet({
itemList:this.data.seller.seller_tel,
complete:()=>{
... ...
{
"component": true,
"usingComponents": {
"as":"../../actionSheet/index"
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
<!--components/showModal/showModal.wxml-->
<view class="seller flex-ll">
<view class="seller flex-ll" >
<view class="image">
<image src="{{seller.seller_image || 'http://qn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></image>
<view class="room_num" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view>
... ... @@ -11,11 +11,10 @@
<view class="number Semibold">
<block wx:if="{{seller.average>0}}">¥{{seller.average}}元/人</block>
</view>
<view class="phone flex-ll" bindtap="tapButton" data-type="oncall">
<view class="phone flex-ll" catchtap="tapButton" data-type="oncall">
<image src="http://qn.colorcun.com/custom/lite-online/image/phone.png"></image>
<text>预订</text>
</view>
</view>
</view>
</view>
<as items="{{['1','2']}}" id="as"></as>
\ No newline at end of file
</view>
\ No newline at end of file
... ...
// pages/reserve/detail.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('onLoad',options)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText":"一键订",
"usingComponents": {
"formids":"/components/formids/formids",
"nav":"/components/nav/nav"
}
}
\ No newline at end of file
... ...
<!--pages/reserve/detail.wxml-->
<nav>...</nav>
<view class="pages">
</view>
... ...
/* pages/reserve/detail.wxss */
\ No newline at end of file
... ...
... ... @@ -482,4 +482,9 @@ Page({
markerId:this.sellers[i].id
},false)
},
gotoDetail(e){
wx.navigateTo({
url:'/pages/reserve/detail?id='+util.attr(e,'sid')
})
},
})
\ No newline at end of file
... ...
... ... @@ -52,7 +52,7 @@
previous-margin="{{20}}px" next-margin="{{20}}px"
current="{{current}}" bindchange="bindtransition">
<block wx:for="{{sellers}}" wx:key="sellers.key">
<swiper-item>
<swiper-item bindtap="gotoDetail" data-sid="{{item.id}}">
<view class="seller" id="seller-{{item.id}}">
<sb-tr seller="{{item}}"></sb-tr>
</view>
... ...