Showing
10 changed files
with
25 additions
and
14 deletions
| @@ -2,12 +2,14 @@ var util = require('../../utils/util.js') | @@ -2,12 +2,14 @@ var util = require('../../utils/util.js') | ||
| 2 | var uri=require('../../utils/uri.js') | 2 | var uri=require('../../utils/uri.js') |
| 3 | import App from '../../utils/api'; | 3 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 4 | const {regeneratorRuntime} = global |
| 5 | +import TP from '../../utils/tpls'; | ||
| 5 | Page({ | 6 | Page({ |
| 6 | data:{ | 7 | data:{ |
| 7 | actionSheetHidden:true, | 8 | actionSheetHidden:true, |
| 8 | actionSheetItems:['客户取消','客户行程改变'] | 9 | actionSheetItems:['客户取消','客户行程改变'] |
| 9 | }, | 10 | }, |
| 10 | sc:{}, | 11 | sc:{}, |
| 12 | + tpls:TP.tpls(), | ||
| 11 | enter_params:{}, | 13 | enter_params:{}, |
| 12 | onLoad:async function (opt) { | 14 | onLoad:async function (opt) { |
| 13 | util.setBarTitle('预定详情'); | 15 | util.setBarTitle('预定详情'); |
| @@ -42,9 +44,9 @@ Page({ | @@ -42,9 +44,9 @@ Page({ | ||
| 42 | },'/pages/customer/index') | 44 | },'/pages/customer/index') |
| 43 | return { | 45 | return { |
| 44 | //title: (nickname||'')+'给你发送了一个订座信息,点击查看详情', | 46 | //title: (nickname||'')+'给你发送了一个订座信息,点击查看详情', |
| 45 | - title: '点击查看详情,发邀请函', | 47 | + title: this.tpls[0].shareFirstTitle, |
| 46 | path: path, | 48 | path: path, |
| 47 | - imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E5%95%86%E5%8A%A1.jpg', | 49 | + imageUrl:this.tpls[0].shareFirstImage, |
| 48 | success: function (res) { | 50 | success: function (res) { |
| 49 | console.log(res,666666) | 51 | console.log(res,666666) |
| 50 | }, | 52 | }, |
| @@ -125,7 +125,7 @@ Page({ | @@ -125,7 +125,7 @@ Page({ | ||
| 125 | hasInvitation:1, | 125 | hasInvitation:1, |
| 126 | },'/pages/customer/index') | 126 | },'/pages/customer/index') |
| 127 | return { | 127 | return { |
| 128 | - title: '点击查看详情,发邀请函', | 128 | + title: this.data.tpls[this.data.current].shareFirstTitle, |
| 129 | path: path, | 129 | path: path, |
| 130 | imageUrl:this.data.tpls[this.data.current].shareFirstImage, | 130 | imageUrl:this.data.tpls[this.data.current].shareFirstImage, |
| 131 | } | 131 | } |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | import util from '../../utils/util'; | 2 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 3 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 4 | const {regeneratorRuntime} = global |
| 5 | +import TP from '../../utils/tpls'; | ||
| 5 | Page({ | 6 | Page({ |
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| @@ -12,6 +13,7 @@ Page({ | @@ -12,6 +13,7 @@ Page({ | ||
| 12 | invite_name:'' | 13 | invite_name:'' |
| 13 | }, | 14 | }, |
| 14 | id:null, | 15 | id:null, |
| 16 | + tpls:TP.tpls(), | ||
| 15 | /** | 17 | /** |
| 16 | * 生命周期函数--监听页面加载 | 18 | * 生命周期函数--监听页面加载 |
| 17 | */ | 19 | */ |
| @@ -178,9 +180,9 @@ Page({ | @@ -178,9 +180,9 @@ Page({ | ||
| 178 | }catch(e){} | 180 | }catch(e){} |
| 179 | return { | 181 | return { |
| 180 | //title: (nickname||'')+'给你发了一个邀请,点击查看', | 182 | //title: (nickname||'')+'给你发了一个邀请,点击查看', |
| 181 | - title: '你收到一个邀请函,点击查看', | 183 | + title: this.tpls[0].shareTitle, |
| 182 | path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1', | 184 | path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1', |
| 183 | - imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg', | 185 | + imageUrl:this.tpls[0].shareImage, |
| 184 | } | 186 | } |
| 185 | } | 187 | } |
| 186 | }) | 188 | }) |
| @@ -229,7 +229,7 @@ Page({ | @@ -229,7 +229,7 @@ Page({ | ||
| 229 | shareSetting(){ | 229 | shareSetting(){ |
| 230 | return { | 230 | return { |
| 231 | //title: (nickname||'')+'给你发了一个邀请,点击查看', | 231 | //title: (nickname||'')+'给你发了一个邀请,点击查看', |
| 232 | - title: '你收到一个邀请函,点击查看', | 232 | + title: this.data.tpls[0].shareTitle, |
| 233 | path: util.http_build_query({ | 233 | path: util.http_build_query({ |
| 234 | id:this.id, | 234 | id:this.id, |
| 235 | fromid:getApp().openid, | 235 | fromid:getApp().openid, |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | import util from '../../utils/util'; | 2 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 3 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 4 | const {regeneratorRuntime} = global |
| 5 | +import TP from '../../utils/tpls'; | ||
| 5 | Page({ | 6 | Page({ |
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| @@ -11,6 +12,7 @@ Page({ | @@ -11,6 +12,7 @@ Page({ | ||
| 11 | detail:null, | 12 | detail:null, |
| 12 | }, | 13 | }, |
| 13 | id:null, | 14 | id:null, |
| 15 | + tpls:TP.tpls(), | ||
| 14 | /** | 16 | /** |
| 15 | * 生命周期函数--监听页面加载 | 17 | * 生命周期函数--监听页面加载 |
| 16 | */ | 18 | */ |
| @@ -117,9 +119,9 @@ Page({ | @@ -117,9 +119,9 @@ Page({ | ||
| 117 | } | 119 | } |
| 118 | let obj={ | 120 | let obj={ |
| 119 | //title: (nickname || '') + '给你发了一个邀请,点击查看', | 121 | //title: (nickname || '') + '给你发了一个邀请,点击查看', |
| 120 | - title: '你收到一个邀请函,点击查看', | 122 | + title: this.tpls[0].shareTitle, |
| 121 | path: '/pages/customer/index?id=' + this.id + '&fromid=' + getApp().openid + '&invite_name=' + nickname+'&hasInvitation=1&tplid=1', | 123 | path: '/pages/customer/index?id=' + this.id + '&fromid=' + getApp().openid + '&invite_name=' + nickname+'&hasInvitation=1&tplid=1', |
| 122 | - imageUrl: 'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg', | 124 | + imageUrl: this.tpls[0].shareImage, |
| 123 | } | 125 | } |
| 124 | if(hasInvitation){ | 126 | if(hasInvitation){ |
| 125 | //obj.title=(nickname || '') + '给你发了一个邀请函,点击查看'; | 127 | //obj.title=(nickname || '') + '给你发了一个邀请函,点击查看'; |
| @@ -235,7 +235,7 @@ Page({ | @@ -235,7 +235,7 @@ Page({ | ||
| 235 | }, | 235 | }, |
| 236 | shareSetting(){ | 236 | shareSetting(){ |
| 237 | return { | 237 | return { |
| 238 | - title: '你收到一个邀请函,点击查看', | 238 | + title: this.data.tpls[0].shareTitle, |
| 239 | path: util.http_build_query({ | 239 | path: util.http_build_query({ |
| 240 | id:this.id, | 240 | id:this.id, |
| 241 | fromid:getApp().openid, | 241 | fromid:getApp().openid, |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | import util from '../../utils/util'; | 2 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 3 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 4 | const {regeneratorRuntime} = global |
| 5 | +import TP from '../../utils/tpls'; | ||
| 5 | Page({ | 6 | Page({ |
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| @@ -14,7 +15,7 @@ Page({ | @@ -14,7 +15,7 @@ Page({ | ||
| 14 | }, | 15 | }, |
| 15 | ids:[], | 16 | ids:[], |
| 16 | id:0, | 17 | id:0, |
| 17 | - | 18 | + tpls:TP.tpls(), |
| 18 | /** | 19 | /** |
| 19 | * 生命周期函数--监听页面加载 | 20 | * 生命周期函数--监听页面加载 |
| 20 | */ | 21 | */ |
| @@ -120,9 +121,9 @@ Page({ | @@ -120,9 +121,9 @@ Page({ | ||
| 120 | }catch(e){} | 121 | }catch(e){} |
| 121 | return { | 122 | return { |
| 122 | //title: (nickname||'')+'给你发了一个邀请,点击查看', | 123 | //title: (nickname||'')+'给你发了一个邀请,点击查看', |
| 123 | - title: '你收到一个邀请函,点击查看', | 124 | + title: this.tpls[0].shareTitle, |
| 124 | path: '/pages/customer/index?id='+id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1', | 125 | path: '/pages/customer/index?id='+id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1', |
| 125 | - imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg', | 126 | + imageUrl:this.tpls[0].shareImage, |
| 126 | } | 127 | } |
| 127 | }, | 128 | }, |
| 128 | accept(e){//同意 | 129 | accept(e){//同意 |
| @@ -151,7 +151,7 @@ Page({ | @@ -151,7 +151,7 @@ Page({ | ||
| 151 | hasSellerShare:'', | 151 | hasSellerShare:'', |
| 152 | },'/pages/manager-invitation/display') | 152 | },'/pages/manager-invitation/display') |
| 153 | return { | 153 | return { |
| 154 | - title: '你收到一个邀请函,点击查看', | 154 | + title: this.data.tpls[this.data.current].shareTitle, |
| 155 | path: path, | 155 | path: path, |
| 156 | imageUrl:this.data.tpls[this.data.current].shareImage, | 156 | imageUrl:this.data.tpls[this.data.current].shareImage, |
| 157 | //imageUrl:util.cgi('App.Reserve.MakePic&rid='+this.data.options.rid), | 157 | //imageUrl:util.cgi('App.Reserve.MakePic&rid='+this.data.options.rid), |
| @@ -147,7 +147,7 @@ Page({ | @@ -147,7 +147,7 @@ Page({ | ||
| 147 | } | 147 | } |
| 148 | } | 148 | } |
| 149 | return { | 149 | return { |
| 150 | - title: '点击查看详情,发邀请函', | 150 | + title: this.data.tpls[this.data.current].shareFirstTitle, |
| 151 | path: path, | 151 | path: path, |
| 152 | imageUrl:this.data.tpls[this.data.current].shareFirstImage, | 152 | imageUrl:this.data.tpls[this.data.current].shareFirstImage, |
| 153 | } | 153 | } |
| @@ -8,6 +8,8 @@ let tpls=[ | @@ -8,6 +8,8 @@ let tpls=[ | ||
| 8 | timeStr:'YYYY/MM/DD 星期WW HH:II', | 8 | timeStr:'YYYY/MM/DD 星期WW HH:II', |
| 9 | shareFirstImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E5%95%86%E5%8A%A1.jpg', | 9 | shareFirstImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E5%95%86%E5%8A%A1.jpg', |
| 10 | shareImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg', | 10 | shareImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg', |
| 11 | + shareFirstTitle:'点击查看详情,发邀请函', | ||
| 12 | + shareTitle:'你收到一个邀请函,点击查看', | ||
| 11 | }, | 13 | }, |
| 12 | { | 14 | { |
| 13 | id: 2, | 15 | id: 2, |
| @@ -17,6 +19,8 @@ let tpls=[ | @@ -17,6 +19,8 @@ let tpls=[ | ||
| 17 | timeStr:'YYYY年MM月DD日HH时II分', | 19 | timeStr:'YYYY年MM月DD日HH时II分', |
| 18 | shareFirstImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.jpg', | 20 | shareFirstImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.jpg', |
| 19 | shareImage:'http://qn.colorcun.com/manager-invitation/wx/share-wx.jpg', | 21 | shareImage:'http://qn.colorcun.com/manager-invitation/wx/share-wx.jpg', |
| 22 | + shareFirstTitle:'点击查看详情,发邀请函', | ||
| 23 | + shareTitle:'你收到一个邀请函,点击查看', | ||
| 20 | }, | 24 | }, |
| 21 | ]; | 25 | ]; |
| 22 | module.exports ={ | 26 | module.exports ={ |
-
Please register or login to post a comment