Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f6dbee2b
authored
Dec 27, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
11 deletions
package-lock.json
package.json
packagesList/pages/activityDetail/activityDetail.js
packagesList/pages/scenarioDetail/scenarioDetail.js
pages/tab/index/index.wxml
project.private.config.json
package-lock.json
View file @
f6dbee2
...
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
"glsx-applet-component"
:
{
"version"
:
"1.0.3
3
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.3
3
.tgz"
,
"integrity"
:
"sha512-
B0PU3LA9zTT8L8szBo/r0eFQ+Ncr6sd6PAv4Kl+OuozVLVxep4De2tSZ390pXyBX4oSo4GGAzUlzyImL2Q6yJA
=="
"version"
:
"1.0.3
5
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.3
5
.tgz"
,
"integrity"
:
"sha512-
DwdJ/wpD6T9onCiMTJZrBsD9nkxZBn0aM8C/ySXZdhuSri0WAyMW51eTp1CnQhg40Ke5zDgV0AsHwg5si0beaw
=="
}
}
}
package.json
View file @
f6dbee2
...
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.0.3
3
"
"glsx-applet-component"
:
"^1.0.3
5
"
},
"devDependencies"
:
{},
"scripts"
:
{
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
f6dbee2
...
...
@@ -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
packagesList/pages/scenarioDetail/scenarioDetail.js
View file @
f6dbee2
...
...
@@ -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
...
...
pages/tab/index/index.wxml
View file @
f6dbee2
...
...
@@ -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> -->
...
...
project.private.config.json
View file @
f6dbee2
...
...
@@ -36,7 +36,7 @@
{
"name"
:
""
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D
857
"
,
"query"
:
"scene=sceneId%3D
3275
"
,
"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
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment