Commit e2ff76911aab726de18443f14e5262ea3de00126

Authored by wangfan
1 parent 084de165

seller-Invitation

... ... @@ -156,7 +156,7 @@ Page({
}
})
},
userinfo(){
confirmed(){
if (!this.data.detail.hasCanSuccess) {
let userInfo = util.cache('userInfo');
if (userInfo) {
... ...
... ... @@ -4,8 +4,8 @@
<view class="pages bg-{{options.tplid}} flex-vc" style="height:{{height}}px;" wx:if="{{options.tplid}}">
<template is="tpl-{{options.tplid}}" data="{{seller,options,hasOwner,animation}}"></template>
<view class="opt-view flex-vc">
<block wx:if="{{!hasCanSuccess}}">
<userinfo class="button-none flex-vc" binduserinfo="confirmed" wx:if="{{options.rid}}" catchtap="catchtap">
<block wx:if="{{!detail.hasCanSuccess}}">
<userinfo class="button-none flex-vc" binduserinfo="confirmed" catchtap="catchtap">
<view class="buts-share animation customer"></view>
</userinfo>
</block>
... ...
... ... @@ -80,6 +80,7 @@ Page({
}
App.Reserve.Detail(param).then(res => {
console.log(res.data.note_openid,this.enter_params.seller_openid)
if(this.enter_params){//商户
//if(res.data.sid==this.enter_params.seller_id && opt.hasSellerShare==1){//不是客户端分享,且是同一个店的
if(res.data.note_openid==this.enter_params.seller_openid && opt.hasSellerShare==1){//不是客户端分享,且是记录人
... ... @@ -88,7 +89,7 @@ Page({
url = '/pages/book/b_invitation';
}
}
if(url!='/pages/book/b_detail'){
if(url!='/pages/book/b_invitation'){
//设置关系
App.Reserve.SetRelaOpenid({
rid:res.data.id,
... ...
... ... @@ -31,7 +31,7 @@
"list": []
},
"miniprogram": {
"current": 40,
"current": 8,
"list": [
{
"id": 0,
... ... @@ -92,7 +92,7 @@
"id": 8,
"name": "邀请进入 pages/customer/index",
"pathName": "pages/customer/index",
"query": "id=2639&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
"query": "id=7611&fromid=test&hasInvitation=1&hasSellerShare=&tplid=1",
"scene": 1001
},
{
... ...