Commit aa3b1153 by 赵雅纹

分享

parent 8cb518a1
// pages/category/category.js
const app = getApp()
const wxService = require('../../utils/wxService')
import { Integer } from '../../utils/integerDigitalConvertion'
......@@ -116,9 +117,9 @@ wxService.page({
*/
onShareAppMessage: function (res) {
let tentacleInfo = {
content: this.route,
title: this.route,
contentType: 3,
content: '分类',
title: '分类',
contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService.getTentacleContent(tentacleInfo).then(res => {
......
......@@ -2,6 +2,7 @@
const app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
import { Integer } from '../../utils/integerDigitalConvertion'
wxService.page({
/**
......@@ -306,9 +307,24 @@ wxService.page({
},
/**
* 用户点击右上角分享
*/
* 用户点击右上角分享
*/
onShareAppMessage: function () {
console.log('00000', app.globalData.contants)
let tentacleInfo = {
content: '集点详情',
title: '集点详情',
contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService.getTentacleContent(tentacleInfo).then(res => {
if (res && res.tentacleId) {
let tentacleId = Integer.digit(res.tentacleId, 10, 64);
var path = `pages/pointList/pointList?t=${tentacleId}`;
return {
path: path
}
}
});
}
})
\ No newline at end of file
......@@ -2,6 +2,8 @@
const app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
import { Integer } from '../../utils/integerDigitalConvertion'
wxService.page({
/**
......@@ -155,6 +157,21 @@ wxService.page({
* 用户点击右上角分享
*/
onShareAppMessage: function () {
console.log('00000', app.globalData.contants)
let tentacleInfo = {
content: '集点列表',
title: '集点列表',
contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService.getTentacleContent(tentacleInfo).then(res => {
if (res && res.tentacleId) {
let tentacleId = Integer.digit(res.tentacleId, 10, 64);
var path = `pages/pointList/pointList?t=${tentacleId}`;
return {
path: path
}
}
});
}
})
\ No newline at end of file
// subPackage/page/pages/fun/fun.js
var app = getApp()
const wxService = require('../../../../utils/wxService')
import { Integer } from '../../../../utils/integerDigitalConvertion'
......@@ -114,9 +115,9 @@ wxService.page({
*/
onShareAppMessage: function (res) {
let tentacleInfo = {
content: this.route,
title: this.route,
contentType: 3,
content: '商品列表',
title: '商品列表',
contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService.getTentacleContent(tentacleInfo).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment