Commit aa3b1153 by 赵雅纹

分享

parent 8cb518a1
// pages/category/category.js // pages/category/category.js
const app = getApp()
const wxService = require('../../utils/wxService') const wxService = require('../../utils/wxService')
import { Integer } from '../../utils/integerDigitalConvertion' import { Integer } from '../../utils/integerDigitalConvertion'
...@@ -116,9 +117,9 @@ wxService.page({ ...@@ -116,9 +117,9 @@ wxService.page({
*/ */
onShareAppMessage: function (res) { onShareAppMessage: function (res) {
let tentacleInfo = { let tentacleInfo = {
content: this.route, content: '分类',
title: this.route, title: '分类',
contentType: 3, contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销 type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}; };
wxService.getTentacleContent(tentacleInfo).then(res => { wxService.getTentacleContent(tentacleInfo).then(res => {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
const app = getApp() const app = getApp()
const wxService = require('../../utils/wxService') const wxService = require('../../utils/wxService')
const utils = require('../../utils/util') const utils = require('../../utils/util')
import { Integer } from '../../utils/integerDigitalConvertion'
wxService.page({ wxService.page({
/** /**
...@@ -309,6 +310,21 @@ wxService.page({ ...@@ -309,6 +310,21 @@ wxService.page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { 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 @@ ...@@ -2,6 +2,8 @@
const app = getApp() const app = getApp()
const wxService = require('../../utils/wxService') const wxService = require('../../utils/wxService')
const utils = require('../../utils/util') const utils = require('../../utils/util')
import { Integer } from '../../utils/integerDigitalConvertion'
wxService.page({ wxService.page({
/** /**
...@@ -155,6 +157,21 @@ wxService.page({ ...@@ -155,6 +157,21 @@ wxService.page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { 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 // subPackage/page/pages/fun/fun.js
var app = getApp()
const wxService = require('../../../../utils/wxService') const wxService = require('../../../../utils/wxService')
import { Integer } from '../../../../utils/integerDigitalConvertion' import { Integer } from '../../../../utils/integerDigitalConvertion'
...@@ -114,9 +115,9 @@ wxService.page({ ...@@ -114,9 +115,9 @@ wxService.page({
*/ */
onShareAppMessage: function (res) { onShareAppMessage: function (res) {
let tentacleInfo = { let tentacleInfo = {
content: this.route, content: '商品列表',
title: this.route, title: '商品列表',
contentType: 3, contentType: app.globalData.contants.SHARE_TYPE.PAGE,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销 type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}; };
wxService.getTentacleContent(tentacleInfo).then(res => { 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