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 59afe212
authored
Jul 03, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
3.11.1上线封版
1 parent
00f383e8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
20 deletions
api/environment.js
package-lock.json
package.json
pages/tab/index/index.js
pages/tab/index/index.wxml
api/environment.js
View file @
59afe21
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
3预发布
4生产
4生产
*/
*/
const
index
=
2
;
const
index
=
4
;
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
...
...
package-lock.json
View file @
59afe21
...
@@ -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.1.1
3
"
,
"version"
:
"1.1.1
6
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.1
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.1
6
.tgz"
,
"integrity"
:
"sha512-
erZj/7TIXcckvf2h+Mlr5rMt6YHQLUq9LysgkgbbYA/u6OCVY6pQcT70HBl0WwsoFT4CMbPZ+4gqUKWOP2RocA
=="
"integrity"
:
"sha512-
XlBqP5ja4TqGB0nTW4dW6fdSQ9m/hAspbBKTJZ9CNUGVCKorkyjv/RfY85ta4OU5PiQCKTFZBbTELtz5MoxaVQ
=="
}
}
}
}
}
}
package.json
View file @
59afe21
...
@@ -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.1.1
3
"
"glsx-applet-component"
:
"^1.1.1
6
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
pages/tab/index/index.js
View file @
59afe21
...
@@ -184,13 +184,19 @@ Page({
...
@@ -184,13 +184,19 @@ Page({
// 获取场景
// 获取场景
let
systemItem
=
this
.
data
.
systemData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
systemItem
=
this
.
data
.
systemData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
productItem
=
this
.
data
.
productData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
productItem
=
this
.
data
.
productData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
const
id
=
systemItem
?.
productList
[
0
].
id
||
productItem
?.
productList
[
0
].
id
// let id = ''
// const itemList = systemItem ? systemItem : productItem
// const subList = itemList.subList.length ? itemList.subList[0] : null
// const productList = subList ? subList.productList : itemList.productList
// id = productList.length ? productList[0]?.id : ''
let
obj
=
systemItem
||
productItem
const
id
=
obj
?.
subList
.
length
?
obj
?.
subList
[
0
]?.
productList
[
0
]?.
id
:
obj
?.
productList
[
0
]?.
id
if
(
!
id
)
return
if
(
!
id
)
return
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
{
hasPhoneNumber
,
id
})
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
{
hasPhoneNumber
,
id
})
},
},
// 获取全部活动列表
// 获取全部活动列表
getActivityRecord
()
{
getActivityRecord
()
{
entmicroApi
.
getActivityRecord
({}).
then
(({
data
,
code
,
message
})
=>
{
entmicroApi
.
getActivityRecord
({}).
then
(({
data
,
code
,
message
})
=>
{
meifaxi
if
(
code
==
-
1
)
{
if
(
code
==
-
1
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
message
,
title
:
message
,
...
@@ -209,6 +215,18 @@ Page({
...
@@ -209,6 +215,18 @@ Page({
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
const
app
=
getApp
()
const
app
=
getApp
()
app
.
getBaseData
().
then
(
res
=>
{
const
productData
=
res
[
0
].
subList
const
systemData
=
res
[
1
].
subList
this
.
setData
({
[
`tabList[0].name`
]:
res
[
0
].
name
,
[
`tabList[1]name`
]:
res
[
1
].
name
,
systemData
,
systemDataId
:
res
[
1
].
id
,
productData
,
productDataId
:
res
[
0
].
id
,
})
})
app
.
login
()
app
.
login
()
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
if
(
data
&&
data
.
phone
)
{
if
(
data
&&
data
.
phone
)
{
...
@@ -281,18 +299,18 @@ Page({
...
@@ -281,18 +299,18 @@ Page({
*/
*/
onShow
()
{
onShow
()
{
const
app
=
getApp
()
const
app
=
getApp
()
app
.
getBaseData
().
then
(
res
=>
{
//
app.getBaseData().then(res => {
const
productData
=
res
[
0
].
l
ist
// const productData = res[0].subL
ist
const
systemData
=
res
[
1
].
l
ist
// const systemData = res[1].subL
ist
this
.
setData
({
//
this.setData({
[
`tabList[0].name`
]:
res
[
0
].
name
,
//
[`tabList[0].name`]: res[0].name,
[
`tabList[1]name`
]:
res
[
1
].
name
,
//
[`tabList[1]name`]: res[1].name,
systemData
,
//
systemData,
systemDataId
:
res
[
1
].
id
,
//
systemDataId: res[1].id,
productData
,
//
productData,
productDataId
:
res
[
0
].
id
,
//
productDataId: res[0].id,
})
//
})
})
//
})
const
userInfo
=
wx
.
$util
.
getUserInfo
()
const
userInfo
=
wx
.
$util
.
getUserInfo
()
this
.
setData
({
this
.
setData
({
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
...
...
pages/tab/index/index.wxml
View file @
59afe21
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
<view class="main-content">
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<!-- 增值转化 -->
<!-- <gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> -->
<gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
<gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
</block>
<block wx:if="{{curTabIndex == 1}}">
<block wx:if="{{curTabIndex == 1}}">
...
...
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