Commit 9a6a849f by 胡悦

修复bug

1 parent 4eb56c46
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ==" "integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.0.33", "version": "1.0.35",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.33.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.35.tgz",
"integrity": "sha512-B0PU3LA9zTT8L8szBo/r0eFQ+Ncr6sd6PAv4Kl+OuozVLVxep4De2tSZ390pXyBX4oSo4GGAzUlzyImL2Q6yJA==" "integrity": "sha512-DwdJ/wpD6T9onCiMTJZrBsD9nkxZBn0aM8C/ySXZdhuSri0WAyMW51eTp1CnQhg40Ke5zDgV0AsHwg5si0beaw=="
} }
} }
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
"@vant/weapp": "^1.10.9", "@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.0.33" "glsx-applet-component": "^1.0.35"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
......
...@@ -7,7 +7,8 @@ Page({ ...@@ -7,7 +7,8 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
activityInfo: {} activityInfo: {},
hasPhoneNumber: false
}, },
toActivity(){ toActivity(){
...@@ -30,6 +31,12 @@ Page({ ...@@ -30,6 +31,12 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
console.log(options) console.log(options)
if (options && options.id) {
this.getActivityDetail(options.id)
this.setData({
hasPhoneNumber: true // 不需要授权
})
} else {
wx.$router.getData(res => { wx.$router.getData(res => {
console.log(res) console.log(res)
this.getActivityDetail(res.id) this.getActivityDetail(res.id)
...@@ -37,6 +44,7 @@ Page({ ...@@ -37,6 +44,7 @@ Page({
hasPhoneNumber: res.hasPhoneNumber hasPhoneNumber: res.hasPhoneNumber
}) })
}) })
}
}, },
getActivityDetail(id) { getActivityDetail(id) {
...@@ -95,6 +103,11 @@ Page({ ...@@ -95,6 +103,11 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
const shareType = 'ACTIVITY'
const {id} = this.data.activityInfo
return {
title: `您好,我向你分享了一个活动~`,
path: `packagesList/pages/activityDetail/activityDetail?id=${id}&shareType=${shareType}`
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -34,7 +34,8 @@ Page({ ...@@ -34,7 +34,8 @@ Page({
sharephone:'', //主要微信用户,服务商 sharephone:'', //主要微信用户,服务商
trackList: [trackData.CARDETAIL, trackData.FINEDETAIL, trackData.CUSTOMEDETAIL, trackData.CROWDDETAIL, trackData.EXPANDETAIL], trackList: [trackData.CARDETAIL, trackData.FINEDETAIL, trackData.CUSTOMEDETAIL, trackData.CROWDDETAIL, trackData.EXPANDETAIL],
cardInfo: {}, cardInfo: {},
hasPhoneNumber: false hasPhoneNumber: false,
scenarList: ['车损升级', '精品升级', '客户线上化', '众筹活动', '膨胀金活动']
}, },
// 计算属性 // 计算属性
computed: { computed: {
...@@ -59,6 +60,7 @@ Page({ ...@@ -59,6 +60,7 @@ Page({
//接受跳转的路由参数(小程序页面跳转) //接受跳转的路由参数(小程序页面跳转)
onRoute(options) { onRoute(options) {
console.log(options)
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber } = options let { actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber } = options
// wx.$Track.sendTrack() // wx.$Track.sendTrack()
...@@ -96,7 +98,7 @@ Page({ ...@@ -96,7 +98,7 @@ Page({
let item = proInfo let item = proInfo
// console.log('title2',item.productName) // console.log('title2',item.productName)
setTimeout(() => { setTimeout(() => {
utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(this.data.scenarList[actNum])
},100) },100)
//分享人openId //分享人openId
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<view class="main-content"> <view class="main-content">
<block wx:if="{{curTabIndex == 0}}"> <block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 --> <!-- 增值转化 -->
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> <gl-scenario currentScenIndex="{{3}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}"> <!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info> <activity-info slot="swiper"></activity-info>
</scenario> --> </scenario> -->
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{ {
"name": "", "name": "",
"pathName": "pages/tab/index/index", "pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D857", "query": "scene=sceneId%3D3275",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
{ {
"name": "", "name": "",
"pathName": "pages/productDetail/changingFilm/changingFilm", "pathName": "pages/productDetail/changingFilm/changingFilm",
"query": "scene=sceneId%253D857", "query": "cardId=38&merchant=44210895",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!