Commit be38db892fd3d7f760f82b4bed800261942a9c43

Authored by wangfan
1 parent 5dae754c

抽离邀请函文字

... ... @@ -2,12 +2,14 @@ var util = require('../../utils/util.js')
var uri=require('../../utils/uri.js')
import App from '../../utils/api';
const {regeneratorRuntime} = global
import TP from '../../utils/tpls';
Page({
data:{
actionSheetHidden:true,
actionSheetItems:['客户取消','客户行程改变']
},
sc:{},
tpls:TP.tpls(),
enter_params:{},
onLoad:async function (opt) {
util.setBarTitle('预定详情');
... ... @@ -42,9 +44,9 @@ Page({
},'/pages/customer/index')
return {
//title: (nickname||'')+'给你发送了一个订座信息,点击查看详情',
title: '点击查看详情,发邀请函',
title: this.tpls[0].shareFirstTitle,
path: path,
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',
imageUrl:this.tpls[0].shareFirstImage,
success: function (res) {
console.log(res,666666)
},
... ...
... ... @@ -125,7 +125,7 @@ Page({
hasInvitation:1,
},'/pages/customer/index')
return {
title: '点击查看详情,发邀请函',
title: this.data.tpls[this.data.current].shareFirstTitle,
path: path,
imageUrl:this.data.tpls[this.data.current].shareFirstImage,
}
... ...
... ... @@ -2,6 +2,7 @@
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
import TP from '../../utils/tpls';
Page({
/**
... ... @@ -12,6 +13,7 @@ Page({
invite_name:''
},
id:null,
tpls:TP.tpls(),
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -178,9 +180,9 @@ Page({
}catch(e){}
return {
//title: (nickname||'')+'给你发了一个邀请,点击查看',
title: '你收到一个邀请函,点击查看',
title: this.tpls[0].shareTitle,
path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1',
imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg',
imageUrl:this.tpls[0].shareImage,
}
}
})
... ...
... ... @@ -229,7 +229,7 @@ Page({
shareSetting(){
return {
//title: (nickname||'')+'给你发了一个邀请,点击查看',
title: '你收到一个邀请函,点击查看',
title: this.data.tpls[0].shareTitle,
path: util.http_build_query({
id:this.id,
fromid:getApp().openid,
... ...
... ... @@ -2,6 +2,7 @@
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
import TP from '../../utils/tpls';
Page({
/**
... ... @@ -11,6 +12,7 @@ Page({
detail:null,
},
id:null,
tpls:TP.tpls(),
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -117,9 +119,9 @@ Page({
}
let obj={
//title: (nickname || '') + '给你发了一个邀请,点击查看',
title: '你收到一个邀请函,点击查看',
title: this.tpls[0].shareTitle,
path: '/pages/customer/index?id=' + this.id + '&fromid=' + getApp().openid + '&invite_name=' + nickname+'&hasInvitation=1&tplid=1',
imageUrl: 'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg',
imageUrl: this.tpls[0].shareImage,
}
if(hasInvitation){
//obj.title=(nickname || '') + '给你发了一个邀请函,点击查看';
... ...
... ... @@ -235,7 +235,7 @@ Page({
},
shareSetting(){
return {
title: '你收到一个邀请函,点击查看',
title: this.data.tpls[0].shareTitle,
path: util.http_build_query({
id:this.id,
fromid:getApp().openid,
... ...
... ... @@ -2,6 +2,7 @@
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
import TP from '../../utils/tpls';
Page({
/**
... ... @@ -14,7 +15,7 @@ Page({
},
ids:[],
id:0,
tpls:TP.tpls(),
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -120,9 +121,9 @@ Page({
}catch(e){}
return {
//title: (nickname||'')+'给你发了一个邀请,点击查看',
title: '你收到一个邀请函,点击查看',
title: this.tpls[0].shareTitle,
path: '/pages/customer/index?id='+id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1&tplid=1',
imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg',
imageUrl:this.tpls[0].shareImage,
}
},
accept(e){//同意
... ...
... ... @@ -151,7 +151,7 @@ Page({
hasSellerShare:'',
},'/pages/manager-invitation/display')
return {
title: '你收到一个邀请函,点击查看',
title: this.data.tpls[this.data.current].shareTitle,
path: path,
imageUrl:this.data.tpls[this.data.current].shareImage,
//imageUrl:util.cgi('App.Reserve.MakePic&rid='+this.data.options.rid),
... ...
... ... @@ -147,7 +147,7 @@ Page({
}
}
return {
title: '点击查看详情,发邀请函',
title: this.data.tpls[this.data.current].shareFirstTitle,
path: path,
imageUrl:this.data.tpls[this.data.current].shareFirstImage,
}
... ...
... ... @@ -8,6 +8,8 @@ let tpls=[
timeStr:'YYYY/MM/DD 星期WW HH:II',
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',
shareImage:'http://qn.colorcun.com/manager-invitation/wx2/%E9%82%80%E8%AF%B7%E5%87%BD-%E5%95%86%E5%8A%A1.jpg',
shareFirstTitle:'点击查看详情,发邀请函',
shareTitle:'你收到一个邀请函,点击查看',
},
{
id: 2,
... ... @@ -17,6 +19,8 @@ let tpls=[
timeStr:'YYYY年MM月DD日HH时II分',
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',
shareImage:'http://qn.colorcun.com/manager-invitation/wx/share-wx.jpg',
shareFirstTitle:'点击查看详情,发邀请函',
shareTitle:'你收到一个邀请函,点击查看',
},
];
module.exports ={
... ...