Commit 697feb24b6c28523b20d82e83aa253f8ecc2d050

Authored by pengye
1 parent 59fe6c58

新邀请函入口页加创建邀请关系链接口、邀请函模板9修改

... ... @@ -130,14 +130,12 @@
</view>
</block>
<!-- 用餐环境 -->
<view class="introduce">
<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<block wx:if="{{titleType}}">
<titleStyle titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle>
</block>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" />
</block>
<view class="introduce" wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
<block wx:if="{{titleType}}">
<titleStyle titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle>
</block>
<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" />
</block>
</view>
<!-- 主厨介绍 -->
... ...
... ... @@ -24,6 +24,7 @@ Page({
this.setData(param)
this.getDetail()
this.setSetRelation()
this.setRelaOpenidFun()
},
// 页面滚动事件
onPageScroll: function (event) {},
... ... @@ -49,6 +50,21 @@ Page({
})
}
},
// 创建邀请关系链
setRelaOpenidFun() {
if (this.data.options && this.data.options.id) {
let obj = {
rid: this.data.options.id,
openid: getApp().openid,
uid: this.data.options.uid,
fromid: this.data.options.fromid || ''
}
if (this.data.options.fromid) delete obj.uid
App.Reserve.SetRelaOpenid(obj).then(res => {
console.log('创建邀请关系链', res);
})
}
},
// 获取店铺详情
getDetail() {
App.Reserve.Detail({
... ...
... ... @@ -182,7 +182,7 @@ Page({
}
},
goHome(){
wx.switchTab({
wx.redirectTo({
url: '/pages/reserve/index'
})
},
... ...