Commit ca10f17fb9deb4b66249826493da3cb97e3c6ff9

Authored by wangfan
1 parent debd1056

seller-Invitation

1 // pages/customer/detail_owner.js 1 // pages/customer/detail_owner.js
2 -var mta=require('mta-wechat-analysis') 2 +var mta = require('mta-wechat-analysis')
3 import util from '../../utils/util'; 3 import util from '../../utils/util';
4 import App from '../../utils/api'; 4 import App from '../../utils/api';
  5 +import TP from '../../utils/tpls';
5 const {regeneratorRuntime} = global 6 const {regeneratorRuntime} = global
6 Page({ 7 Page({
7 8
8 - /**  
9 - * 页面的初始数据  
10 - */  
11 - data: {  
12 - detail:null,  
13 - invite_name:''  
14 - },  
15 - id:null,  
16 - /**  
17 - * 生命周期函数--监听页面加载  
18 - */  
19 - onLoad: function (options) {  
20 - this.id=options.id;  
21 - let invite_names=wx.getStorageSync('invite_names') ||{};  
22 - let invite_name=invite_names[options.id];  
23 - if(invite_name){  
24 - this.setData({  
25 - invite_name:invite_name  
26 - })  
27 - }  
28 - mta.Page.init({  
29 - "appID":"500667280",  
30 - "eventID":"500667287",  
31 - "statPullDownFresh":true,  
32 - "statShareApp":true,  
33 - "statReachBottom":true,  
34 - "lauchOpts":options, //渠道分析  
35 - }); 9 + /**
  10 + * 页面的初始数据
  11 + */
  12 + data: {
  13 + detail: null,
  14 + height: 667,
  15 + current: 0,
  16 + tpls: [],
  17 + seller: {
  18 + name: '',
  19 + room: '',
  20 + date: '',
  21 + addr: ''
36 }, 22 },
  23 + options: {tplid: ''},
  24 + hasOwner: false,//是否为发起人
  25 + animation: 'animation',
  26 + },
  27 + id: null,
  28 + /**
  29 + * 生命周期函数--监听页面加载
  30 + */
  31 + onLoad: function (options) {
  32 + this.id = options.id;
  33 + let param={
  34 + options:options,
  35 + hasOwner:options.hasSellerShare==1,//是否为发起人
  36 + }
  37 + param.tpls=[TP.tpls(options.tplid)]
  38 + this.setData(param)
  39 + mta.Page.init({
  40 + "appID": "500667280",
  41 + "eventID": "500667287",
  42 + "statPullDownFresh": true,
  43 + "statShareApp": true,
  44 + "statReachBottom": true,
  45 + "lauchOpts": options, //渠道分析
  46 + });
  47 + },
37 48
38 - /**  
39 - * 生命周期函数--监听页面初次渲染完成  
40 - */  
41 - onReady: function () { 49 + /**
  50 + * 生命周期函数--监听页面初次渲染完成
  51 + */
  52 + onReady: function () {
42 53
43 - }, 54 + },
44 55
45 - /**  
46 - * 生命周期函数--监听页面显示  
47 - */  
48 - onShow: function () {  
49 - this.getDetail();  
50 - }, 56 + /**
  57 + * 生命周期函数--监听页面显示
  58 + */
  59 + onShow: function () {
  60 + this.getDetail();
  61 + },
51 62
52 - /**  
53 - * 生命周期函数--监听页面隐藏  
54 - */  
55 - onHide: function () { 63 + /**
  64 + * 生命周期函数--监听页面隐藏
  65 + */
  66 + onHide: function () {
56 67
57 - }, 68 + },
58 69
59 - /**  
60 - * 生命周期函数--监听页面卸载  
61 - */  
62 - onUnload: function () { 70 + /**
  71 + * 生命周期函数--监听页面卸载
  72 + */
  73 + onUnload: function () {
63 74
64 - }, 75 + },
65 76
66 - /**  
67 - * 用户点击右上角分享  
68 - */  
69 - onShareAppMessage: function () {  
70 - return this.shareSetting();  
71 - },  
72 - getDetail(fouce=false){  
73 - App.Reserve.Detail({  
74 - openid: getApp().openid,  
75 - rid: this.id  
76 - },fouce).then(res => {  
77 - this.setData({  
78 - detail:this.formatDatail(res.data)  
79 - })  
80 - })  
81 - },  
82 - formatDatail(detail){  
83 - detail.rdateStr=util.unixtoTime(detail.ddate,'YYYY/MM/DD 星期WW HH:II');  
84 - detail.tableFirst=detail.tables[0].name;  
85 - if(detail.tables.length>1){  
86 - detail.tableSubInfo='等'+(detail.tables.length)+'个'  
87 - +(detail.tables[0].tid==2?'包间':'');  
88 - }  
89 - if(detail.sex!=3){  
90 - detail.rnameStr=detail.rname.substr(0,1)+(detail.sex==1?'先生':'女士')  
91 - }else{  
92 - detail.rnameStr=detail.rname  
93 - }  
94 - detail.eatStr='邀请您共进晚餐';  
95 - let hi=util.unixtoTime(detail.ddate,'HHII');  
96 - if(hi<'10:00'){  
97 - detail.eatStr='邀请您共进早餐';  
98 - }else if(hi<'15:00'){  
99 - detail.eatStr='邀请您共进午餐'; 77 + /**
  78 + * 用户点击右上角分享
  79 + */
  80 + onShareAppMessage: function () {
  81 + return this.shareSetting();
  82 + },
  83 + getDetail(fouce = false){
  84 + App.Reserve.Detail({
  85 + openid: getApp().openid,
  86 + rid: this.id
  87 + }, fouce).then(res => {
  88 + let tables=[];
  89 + res.data.tables.forEach(t=>{
  90 + tables.push(t.name);
  91 + })
  92 + this.setData({
  93 + detail: this.formatDatail(res.data),
  94 + seller:{
  95 + name:res.data.seller.sellername,
  96 + room:tables.join('、'),
  97 + date:util.unixtoTime(res.data.ddate,this.data.tpls[this.data.current].timeStr),
  98 + addr:res.data.seller.real_address||res.data.seller.map_address,
  99 + image:res.data.image_url,
100 } 100 }
  101 + })
  102 + })
  103 + },
  104 + formatDatail(detail){
  105 + detail.rdateStr = util.unixtoTime(detail.ddate, 'YYYY/MM/DD 星期WW HH:II');
  106 + detail.tableFirst = detail.tables[0].name;
  107 + if (detail.tables.length > 1) {
  108 + detail.tableSubInfo = '等' + (detail.tables.length) + '个'
  109 + + (detail.tables[0].tid == 2 ? '包间' : '');
  110 + }
  111 + if (detail.sex != 3) {
  112 + detail.rnameStr = detail.rname.substr(0, 1) + (detail.sex == 1 ? '先生' : '女士')
  113 + } else {
  114 + detail.rnameStr = detail.rname
  115 + }
  116 + detail.eatStr = '邀请您共进晚餐';
  117 + let hi = util.unixtoTime(detail.ddate, 'HHII');
  118 + if (hi < '10:00') {
  119 + detail.eatStr = '邀请您共进早餐';
  120 + } else if (hi < '15:00') {
  121 + detail.eatStr = '邀请您共进午餐';
  122 + }
101 123
102 - // if(!detail.cusman){  
103 - // detail.cusman='vking';  
104 - // detail.cusman_phone='15877556369';  
105 - // detail.cusman_account='wx:vking';  
106 - // }  
107 - detail.hasCanSuccess=false;  
108 - if(detail.customers.length>0){  
109 - let openid=getApp().openid;  
110 - detail.customers.forEach(item=>{  
111 - if(openid==item.openid){  
112 - detail.hasCanSuccess=true;  
113 - detail.remindtime=item.remind_date;  
114 - return true;  
115 - }  
116 - })  
117 - }  
118 - return detail;  
119 - },  
120 - showManager(){  
121 - if(this.data.detail.cusman_phone || this.data.detail.cusman_account){  
122 - this.selectComponent('#manager').show(); 124 + // if(!detail.cusman){
  125 + // detail.cusman='vking';
  126 + // detail.cusman_phone='15877556369';
  127 + // detail.cusman_account='wx:vking';
  128 + // }
  129 + detail.hasCanSuccess = false;
  130 + if (detail.customers.length > 0) {
  131 + let openid = getApp().openid;
  132 + detail.customers.forEach(item => {
  133 + if (openid == item.openid) {
  134 + detail.hasCanSuccess = true;
  135 + detail.remindtime = item.remind_date;
  136 + return true;
123 } 137 }
  138 + })
  139 + }
  140 + return detail;
  141 + },
  142 + showManager(){
  143 + if (this.data.detail.cusman_phone || this.data.detail.cusman_account) {
  144 + this.selectComponent('#manager').show();
  145 + }
124 146
125 - },  
126 - lookLocation:function(){  
127 - wx.openLocation({  
128 - latitude:Number(this.data.detail.seller.lat),  
129 - longitude:Number(this.data.detail.seller.long),  
130 - scale:17,  
131 - address:this.data.detail.seller.map_address,  
132 - success:function (res) {  
133 - console.log(res)  
134 - }  
135 - })  
136 - },  
137 - userinfo(){  
138 - if(!this.data.detail.hasCanSuccess){  
139 - let userInfo=util.cache('userInfo');  
140 - if(userInfo){  
141 - userInfo=JSON.stringify({  
142 - openid: getApp().openid,  
143 - avatar: userInfo.avatarUrl,  
144 - nickname: userInfo.nickName,  
145 - gender: userInfo.gender  
146 - })  
147 - }  
148 - App.Reserve.SetRelaSuccess({  
149 - rid:this.id,  
150 - openid:getApp().openid,  
151 - is_agree:1,  
152 - userinfo:userInfo  
153 - }).then(res=>{  
154 - this.setData({  
155 - [`detail.hasCanSuccess`]:true  
156 - })  
157 - App.Reserve.Detail({  
158 - openid: getApp().openid,  
159 - rid: this.id  
160 - },'clear')  
161 - util.toast('赴约成功','none')  
162 - })  
163 - }else{  
164 - util.toast('赴约成功','none')  
165 - }  
166 - },  
167 - setUserInfoSuccess(){  
168 - util.toast('授权成功,可以继续转发','none');  
169 - },  
170 - reserveCancel(){ 147 + },
  148 + lookLocation: function () {
  149 + wx.openLocation({
  150 + latitude: Number(this.data.detail.seller.lat),
  151 + longitude: Number(this.data.detail.seller.long),
  152 + scale: 17,
  153 + address: this.data.detail.seller.map_address,
  154 + success: function (res) {
  155 + console.log(res)
  156 + }
  157 + })
  158 + },
  159 + userinfo(){
  160 + if (!this.data.detail.hasCanSuccess) {
171 let userInfo = util.cache('userInfo'); 161 let userInfo = util.cache('userInfo');
172 if (userInfo) { 162 if (userInfo) {
173 userInfo = JSON.stringify({ 163 userInfo = JSON.stringify({
@@ -180,30 +170,63 @@ Page({ @@ -180,30 +170,63 @@ Page({
180 App.Reserve.SetRelaSuccess({ 170 App.Reserve.SetRelaSuccess({
181 rid: this.id, 171 rid: this.id,
182 openid: getApp().openid, 172 openid: getApp().openid,
183 - cancel: 'cancel',  
184 - is_agree: 0, 173 + is_agree: 1,
185 userinfo: userInfo 174 userinfo: userInfo
186 }).then(res => { 175 }).then(res => {
187 - this.getDetail(true); 176 + this.setData({
  177 + [`detail.hasCanSuccess`]: true
  178 + })
  179 + App.Reserve.Detail({
  180 + openid: getApp().openid,
  181 + rid: this.id
  182 + }, 'clear')
  183 + util.toast('赴约成功', 'none')
188 }) 184 })
189 - },  
190 - shareSetting(){  
191 - console.log('this.topicVal',this.topicVal)  
192 - if(this.topicVal && this.data.detail.openid==getApp().openid){  
193 - App.Reserve.SetTopicFromShare({  
194 - rid:this.id,  
195 - topic:this.topicVal  
196 - })  
197 - }  
198 - let nickname="";  
199 - try{  
200 - nickname=util.cache('userInfo').nickName;  
201 - }catch(e){}  
202 - return {  
203 - //title: (nickname||'')+'给你发了一个邀请,点击查看',  
204 - title: '你收到一个邀请函,点击查看',  
205 - path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1',  
206 - imageUrl:util.cgi('App.Reserve.MakePic&rid=')+this.id,  
207 - } 185 + } else {
  186 + util.toast('赴约成功', 'none')
  187 + }
  188 + },
  189 + setUserInfoSuccess(){
  190 + util.toast('授权成功,可以继续转发', 'none');
  191 + },
  192 + reserveCancel(){
  193 + let userInfo = util.cache('userInfo');
  194 + if (userInfo) {
  195 + userInfo = JSON.stringify({
  196 + openid: getApp().openid,
  197 + avatar: userInfo.avatarUrl,
  198 + nickname: userInfo.nickName,
  199 + gender: userInfo.gender
  200 + })
  201 + }
  202 + App.Reserve.SetRelaSuccess({
  203 + rid: this.id,
  204 + openid: getApp().openid,
  205 + cancel: 'cancel',
  206 + is_agree: 0,
  207 + userinfo: userInfo
  208 + }).then(res => {
  209 + this.getDetail(true);
  210 + })
  211 + },
  212 + shareSetting(){
  213 + console.log('this.topicVal', this.topicVal)
  214 + if (this.topicVal && this.data.detail.openid == getApp().openid) {
  215 + App.Reserve.SetTopicFromShare({
  216 + rid: this.id,
  217 + topic: this.topicVal
  218 + })
  219 + }
  220 + let nickname = "";
  221 + try {
  222 + nickname = util.cache('userInfo').nickName;
  223 + } catch (e) {
  224 + }
  225 + return {
  226 + //title: (nickname||'')+'给你发了一个邀请,点击查看',
  227 + title: '你收到一个邀请函,点击查看',
  228 + path: '/pages/customer/index?id=' + this.id + '&fromid=' + getApp().openid + '&invite_name=' + nickname + '&hasInvitation=1',
  229 + imageUrl: util.cgi('App.Reserve.MakePic&rid=') + this.id,
208 } 230 }
  231 + }
209 }) 232 })
1 <!--pages/customer/detail_owner.wxml--> 1 <!--pages/customer/detail_owner.wxml-->
2 -<nav hasHome backgroundColor="rgba(0,0,0,0)" color="#ffffff"></nav> 2 +<import src="../tpl/invitation"></import>
  3 +<nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;"></nav>
  4 +<view class="pages bg-{{options.tplid}} flex-vc" style="height:{{height}}px;" wx:if="{{options.tplid}}">
  5 + <template is="tpl-{{options.tplid}}" data="{{seller,options,hasOwner,animation}}"></template>
  6 + <view class="opt-view flex-vc">
  7 + <block wx:if="{{!hasCanSuccess}}">
  8 + <userinfo class="button-none flex-vc" binduserinfo="confirmed" wx:if="{{options.rid}}" catchtap="catchtap">
  9 + <view class="buts-share animation customer"></view>
  10 + </userinfo>
  11 + </block>
  12 + </view>
  13 +</view>
  14 +<view class="opt-button flex-vc">
  15 + <view class="opt flex-cc">
  16 + <formids class="button-none flex-vc" bindclick="lookLocation">
  17 + <view class="opt-text flex-cc">
  18 + <image class="buts-dh" src="http://qn.colorcun.com/manager-invitation/wx2/%E4%B8%80%E9%94%AE%E5%AF%BC%E8%88%AA.png"></image>
  19 + <view class="buts-text">一键导航</view>
  20 + </view>
  21 + </formids>
  22 + <userinfo-share class="button-none flex-vc" binduserinfo="toast">
  23 + <view class="opt-text flex-cc">
  24 + <image class="buts-sh" src="http://qn.colorcun.com/manager-invitation/wx2/%E8%BD%AC%E5%8F%91%E7%BB%99%E5%A5%BD%E5%8F%8B.png"></image>
  25 + <view class="buts-text">转发给好友</view>
  26 + </view>
  27 + </userinfo-share>
  28 + </view>
  29 +</view>
  30 +<!--
3 <view class="pages"> 31 <view class="pages">
4 <view class="flex-vc" style="position: relative;"> 32 <view class="flex-vc" style="position: relative;">
5 <view class="invit-logo"> 33 <view class="invit-logo">
@@ -35,3 +63,15 @@ @@ -35,3 +63,15 @@
35 <view class="buts-share"></view> 63 <view class="buts-share"></view>
36 </userinfo> 64 </userinfo>
37 </view> 65 </view>
  66 +-->
  67 +<!--//商务-->
  68 +<template name="tpl-1">
  69 + <view class="flex-vc shangwu" bindtap="{{options.rid?'goEditor':''}}">
  70 + <template is="tpl-shangwu" data="{{...seller,options}}"></template>
  71 + </view>
  72 +</template>
  73 +
  74 +<!--//温馨-->
  75 +<template name="tpl-2">
  76 + <template is="tpl-wenxin" data="{{...seller,options}}"></template>
  77 +</template>
1 /* pages/customer/detail_customer.wxss */ 1 /* pages/customer/detail_customer.wxss */
  2 +@import "../manager-invitation/tpls.wxss";
  3 +
2 .pages{ 4 .pages{
3 - color:#FFFFFF;  
4 - background: url("http://qn.colorcun.com/custom/lite-yd/image/invit-bg.png") #353334;  
5 background-size: 100%; 5 background-size: 100%;
6 - overflow-y: auto; 6 + font-size: 34rpx;
7 position: fixed; 7 position: fixed;
8 - top:0;  
9 - bottom: 0;  
10 - left:0;  
11 - right:0; 8 + width: 100%;
12 } 9 }
13 image{ 10 image{
14 width: 100%; 11 width: 100%;
15 height: 100%; 12 height: 100%;
16 } 13 }
17 -.invit-logo{  
18 - width: 352rpx;  
19 - height: 164rpx;  
20 - margin-top: 156rpx;  
21 -}  
22 -.avatar{  
23 - width: 88rpx;  
24 - height: 88rpx;  
25 - border-radius: 50%;  
26 - margin-top: 50rpx;  
27 - margin-bottom: 22rpx;  
28 - overflow: hidden;  
29 -}  
30 -.invit{  
31 - font-size: 26rpx;  
32 - color:#FDFCFD;  
33 -}  
34 -.hr-one{  
35 - margin-top: 50rpx;  
36 - margin-bottom: 54rpx;  
37 - height: 2rpx;  
38 - background-color: #999999;  
39 - width: 90%; 14 +
  15 +.buts-share{
  16 + background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png");
40 } 17 }
41 -.seller{  
42 - margin-top: 40rpx;  
43 - width: 100%; 18 +.buts-share.customer{
  19 + background-image: url("http://qn.colorcun.com/manager-invitation/wx/%E7%A1%AE%E8%AE%A4%E6%94%B6%E5%88%B0.png");
44 } 20 }
45 -.seller .title{  
46 - font-size: 28rpx;  
47 - color:#999999;  
48 - margin-bottom: 20rpx;  
49 - height: 40rpx;  
50 - line-height: 40rpx; 21 +
  22 +.shangwu{
  23 + margin-top: 52rpx;
51 } 24 }
52 -.seller .content{  
53 - margin-bottom: 40rpx;  
54 - font-size: 36rpx;  
55 - line-height: 50rpx;  
56 - height: 50rpx;  
57 - max-width: 80%; 25 +.shangwu .seller{
  26 + margin-bottom: 42rpx;
58 } 27 }
59 -.seller .content .addr{  
60 - font-size: 32rpx;  
61 - line-height: 40rpx;  
62 - text-align: center; 28 +.shangwu .invit-logo.owner{
  29 + width: 380rpx;
  30 + height: 200rpx;
  31 + background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png");
63 } 32 }
64 -.invit-addr{  
65 - width: 22rpx;  
66 - height: 28rpx;  
67 - margin-right: 18rpx;  
68 - min-width: 22rpx;  
69 - margin-top:6rpx ; 33 +.shangwu .invit-logo.customer{
  34 + width: 352rpx;
  35 + height: 164rpx;
  36 + background-image: url("http://qn.colorcun.com/custom/lite-yd/image/invit-logo.png");
70 } 37 }
71 38
72 39
73 -.opt-view{  
74 - position: fixed;  
75 - bottom: 100rpx;  
76 - width: 100%;  
77 -}  
78 -.opt{  
79 - width: 90%;  
80 - margin: 0 auto;  
81 -}  
82 -.opt .but{  
83 - width: 100%;  
84 - height: 80rpx;  
85 - border: 2rpx solid #ECD9B7;  
86 - border-radius: 6rpx;  
87 - line-height: 78rpx;  
88 - text-align: center;  
89 - font-size: 30rpx;  
90 - color:#ECD9B7;  
91 - margin-right: 5%;  
92 - padding-bottom: 4rpx!important;  
93 -}  
94 -.opt .but:last-child{  
95 - margin-right: 0; 40 +.wenxin-mask{
  41 + margin-top: 20rpx;
96 } 42 }
97 -.opt .buts{  
98 - width: 288rpx;  
99 - height: 80rpx; 43 +.wenxin-baitou{
  44 + margin-top: 20rpx;
100 } 45 }
101 -.opt-button{  
102 - margin-top: 48rpx;  
103 - width: 100%;  
104 -}  
105 -.buts-share{  
106 - width: 560rpx;  
107 - height: 86rpx;  
108 - margin: 0 auto;  
109 - background-image: url("http://qn.colorcun.com/custom/lite-yd-cook/image/detail_invitation-3.png");  
110 - background-size: 100%;  
111 - background-repeat: no-repeat;  
112 - background-position: center center;  
113 - animation-name: butAnimation;  
114 - animation-duration: 0.7s;  
115 - animation-iteration-count:9999;  
116 -}  
117 -.opt-view-tip{  
118 - font-size: 26rpx;  
119 - color: #999999;  
120 - margin-bottom: 20rpx; 46 +.wenxin .seller{
  47 + margin-bottom: 22rpx;
121 } 48 }
122 -@keyframes butAnimation  
123 -{  
124 - 50% {background-size:90%;} 49 +.wenxin .invit-logo.owner{
  50 + width: 340rpx;
  51 + height: 184rpx;
  52 + background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png");
125 } 53 }
126 -@-webkit-keyframes butAnimation  
127 -{  
128 - 50% {background-size:90%;} 54 +.wenxin .invit-logo.customer{
  55 + width: 344rpx;
  56 + height: 198rpx;
  57 + background-image: url("http://qn.colorcun.com/manager-invitation/wx/%E9%82%80%E8%AF%B7%E5%87%BD.png");
129 } 58 }
@@ -13,6 +13,48 @@ image{ @@ -13,6 +13,48 @@ image{
13 .buts-share{ 13 .buts-share{
14 background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png"); 14 background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png");
15 } 15 }
  16 +.buts-share.customer{
  17 + background-image: url("http://qn.colorcun.com/manager-invitation/wx/%E7%A1%AE%E8%AE%A4%E6%94%B6%E5%88%B0.png");
  18 +}
  19 +
  20 +.shangwu{
  21 + margin-top: 52rpx;
  22 +}
  23 +.shangwu .seller{
  24 + margin-bottom: 42rpx;
  25 +}
  26 +.shangwu .invit-logo.owner{
  27 + width: 380rpx;
  28 + height: 200rpx;
  29 + background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png");
  30 +}
  31 +.shangwu .invit-logo.customer{
  32 + width: 352rpx;
  33 + height: 164rpx;
  34 + background-image: url("http://qn.colorcun.com/custom/lite-yd/image/invit-logo.png");
  35 +}
  36 +
  37 +
  38 +.wenxin-mask{
  39 + margin-top: 20rpx;
  40 +}
  41 +.wenxin-baitou{
  42 + margin-top: 20rpx;
  43 +}
  44 +.wenxin .seller{
  45 + margin-bottom: 22rpx;
  46 +}
  47 +.wenxin .invit-logo.owner{
  48 + width: 340rpx;
  49 + height: 184rpx;
  50 + background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png");
  51 +}
  52 +.wenxin .invit-logo.customer{
  53 + width: 344rpx;
  54 + height: 198rpx;
  55 + background-image: url("http://qn.colorcun.com/manager-invitation/wx/%E9%82%80%E8%AF%B7%E5%87%BD.png");
  56 +}
  57 +
16 .bottom{ 58 .bottom{
17 position: fixed; 59 position: fixed;
18 bottom: 0; 60 bottom: 0;
1 /* pages/manager-invitation/review.wxss */ 1 /* pages/manager-invitation/review.wxss */
2 @import "tpls.wxss"; 2 @import "tpls.wxss";
3 .pages{ 3 .pages{
4 - font-size: 200rpx;  
5 background-size: 100%; 4 background-size: 100%;
6 font-size: 34rpx; 5 font-size: 34rpx;
7 position: fixed; 6 position: fixed;
1 <!--//商务--> 1 <!--//商务-->
2 <template name="tpl-shangwu"> 2 <template name="tpl-shangwu">
3 - <view class="invit-logo">  
4 - <image src="http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png"></image>  
5 - <view class="quick-editor" wx:if="{{options.rid}}">修改内容</view>  
6 - </view> 3 + <view class="invit-logo {{hasOwner?'owner':'customer'}}"></view>
7 <view class="shangwu-line"></view> 4 <view class="shangwu-line"></view>
8 <view class="seller flex-vc"> 5 <view class="seller flex-vc">
9 <view class="title flex-cc"> 6 <view class="title flex-cc">
@@ -24,12 +21,12 @@ @@ -24,12 +21,12 @@
24 <view class="title-right"></view> 21 <view class="title-right"></view>
25 </view> 22 </view>
26 <view class="content">{{date}}</view> 23 <view class="content">{{date}}</view>
27 - <view class="title flex-cc"> 24 + <view class="title title-addr-view flex-cc" bindtap="lookLocation">
28 <view class="title-addr"></view> 25 <view class="title-addr"></view>
29 地址导航 26 地址导航
30 <view class="title-more"></view> 27 <view class="title-more"></view>
31 </view> 28 </view>
32 - <view class="content flex-cc addr"> 29 + <view class="content flex-cc addr" bindtap="lookLocation">
33 {{addr}} 30 {{addr}}
34 </view> 31 </view>
35 </view> 32 </view>
@@ -39,11 +36,8 @@ @@ -39,11 +36,8 @@
39 <template name="tpl-wenxin"> 36 <template name="tpl-wenxin">
40 <view class="wenxin-top"></view> 37 <view class="wenxin-top"></view>
41 <view class="wenxin-bottom"></view> 38 <view class="wenxin-bottom"></view>
42 - <view class="flex-vc wenxin" bindtap="{{options.rid?'goEditor':''}}">  
43 - <view class="invit-logo">  
44 - <image src="http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png"></image>  
45 - <view class="quick-editor" wx:if="{{options.rid}}">修改内容</view>  
46 - </view> 39 + <view class="flex-vc wenxin">
  40 + <view class="invit-logo {{hasOwner?'owner':'customer'}}"></view>
47 <view class="wenxin-mask"> 41 <view class="wenxin-mask">
48 <view class="wenxin-mask-bg" style="background-image: url({{image||'http://qn.colorcun.com/manager-invitation/wx/hunshazhao3.jpg'}})"></view> 42 <view class="wenxin-mask-bg" style="background-image: url({{image||'http://qn.colorcun.com/manager-invitation/wx/hunshazhao3.jpg'}})"></view>
49 <view class="wenxin-mask-img"></view> 43 <view class="wenxin-mask-img"></view>
@@ -53,7 +47,7 @@ @@ -53,7 +47,7 @@
53 <view class="content">{{date}}</view> 47 <view class="content">{{date}}</view>
54 <view class="content">{{name}}</view> 48 <view class="content">{{name}}</view>
55 <view class="content">{{room}}</view> 49 <view class="content">{{room}}</view>
56 - <view class="content flex-cc addr"> 50 + <view class="content flex-cc addr" bindtap="lookLocation">
57 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image> 51 <image src="http://qn.colorcun.com/manager-invitation/wx/address.png" class="invit-addr"></image>
58 {{addr}} 52 {{addr}}
59 </view> 53 </view>
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 "list": [] 31 "list": []
32 }, 32 },
33 "miniprogram": { 33 "miniprogram": {
34 - "current": 40, 34 + "current": 8,
35 "list": [ 35 "list": [
36 { 36 {
37 "id": 0, 37 "id": 0,
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 "id": 8, 92 "id": 8,
93 "name": "邀请进入 pages/customer/index", 93 "name": "邀请进入 pages/customer/index",
94 "pathName": "pages/customer/index", 94 "pathName": "pages/customer/index",
95 - "query": "id=2639&fromid=test&hasInvitation=1&hasSellerShare=1", 95 + "query": "id=2639&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
96 "scene": 1001 96 "scene": 1001
97 }, 97 },
98 { 98 {