Commit f6dbee2b by 前端

Merge branch 'huyue_v3.3.0' of http://192.168.3.233:8090/saas/mini-program/ai-card into huyue_v3.3.0

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