Commit 1b33ea5ec91198ea01af787c1fd1f164a139d1b1

Authored by wangfan
1 parent e1b08c24

seller

... ... @@ -84,14 +84,15 @@ Page({
onShareAppMessage: function () {
this.notice.close();
var obj=this.data.bookInfo;
var path='b_detail?sellerid='+this.data.sellerid;
for (var key in obj){
path=path+'&'+key+'='+obj[key]
}
path=path+'&code=1'
var path='/pages/customer/index?id='+this.data.bookInfo.id;
let nickname="";
try{
nickname='"'+util.cache('sellerInfo').seller_user.nickname+'"';
}catch(e){}
console.log(path);
return {
title: '恭喜订座成功,点击查看详情,及时通知用餐人员',
path: '/pages/book/'+path,
title: nickname+'给你发送了一个订座信息,点击查看详情',
path: path,
success: function (res) {
console.log(res,666666)
},
... ...
var util = require('../../utils/util.js')
var uri=require('../../utils/uri.js')
var bookOrder=require('../../utils/bookCommon.js')
import App from '../../utils/api';
const {regeneratorRuntime} = global
Page({
data:{
isloading:false,
... ... @@ -13,15 +15,18 @@ Page({
var radio=750/util.getsystem().windowWidth;
var contentHeight=util.getsystem().windowHeight-Math.ceil(165/radio)
this.setData({
sellerid:opt.sellerid ? opt.sellerid : util.cache('sellerid'),
sellerid:opt.seller_id ? opt.seller_id : util.cache('sellerid'),
systemInfo:util.getsystem(),
contentHeight:contentHeight,
listHeight:contentHeight-Math.ceil(140/radio)
})
util.cache('sellerid',opt.sellerid)
util.cache('sellerid',opt.seller_id)
util.cache('enter_params',opt)
console.log(this.data.sellerid)
util.setBarTitle('预定本');
App.Reserve.SellerInfo(opt).then(res=>{
util.cache('sellerInfo',res.data)
})
},
onShow:function(){
var that=this;
... ...
... ... @@ -8,7 +8,6 @@
bindtap="switchTab" data-index="1">我的订座</view>
</view>
<block wx:for="{{list}}" wx:key="list.key" wx:for-item="parts" wx:for-index="tabindex">
<text>{{parts.length}}</text>
<block wx:if="{{parts.success.length>0 || parts.padding.length>0}}">
<block wx:for="{{parts}}" wx:key="partskey" wx:for-item="part" wx:for-index="partIndex">
<view class="list-content" wx:if="{{tabindex==tabFlag && part.length>0}}">
... ...
... ... @@ -30,7 +30,7 @@
"list": []
},
"miniprogram": {
"current": 6,
"current": 10,
"list": [
{
"id": 0,
... ... @@ -72,7 +72,7 @@
"id": 6,
"name": "pages/customer/index",
"pathName": "pages/customer/index",
"query": "id=67",
"query": "id=68",
"scene": "1001"
},
{
... ... @@ -94,6 +94,13 @@
"pathName": "pages/book/b_index",
"query": "",
"scene": "1001"
},
{
"id": -1,
"name": "pages/customer/index 无产进列表",
"pathName": "pages/customer/index",
"query": "",
"scene": "1001"
}
]
}
... ...
... ... @@ -31,4 +31,9 @@ export default {
//订座详情页面----我愿意
'App.Reserve.SetRelaSuccess':null,
//定个座儿 获取商户信息
'App.Reserve.SellerInfo':{
cachetime:3600,
}
}
\ No newline at end of file
... ...