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 aaaf1704
authored
Dec 19, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交活动接口
1 parent
854ef554
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
api/entmicroApi.js
package.json
pages/tab/index/index.js
pages/tab/index/index.wxml
api/entmicroApi.js
View file @
aaaf170
...
@@ -24,5 +24,13 @@ module.exports = {
...
@@ -24,5 +24,13 @@ module.exports = {
method
:
`entmicro.api.business.activityRecord.checkPhone`
,
method
:
`entmicro.api.business.activityRecord.checkPhone`
,
...
data
,
...
data
,
},
true
)
},
true
)
},
// 获取活动记录全集
getActivityRecord
(
data
)
{
return
api
.
post
({
method
:
`entmicro.api.business.activityRecord.list`
,
...
data
},
true
)
}
}
}
}
\ No newline at end of file
\ No newline at end of file
package.json
View file @
aaaf170
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"description"
:
""
,
"description"
:
""
,
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"glsx-applet-component"
:
"^1.0.2
1
"
"glsx-applet-component"
:
"^1.0.2
3
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
pages/tab/index/index.js
View file @
aaaf170
...
@@ -60,6 +60,7 @@ Page({
...
@@ -60,6 +60,7 @@ Page({
// 增值转化模块
// 增值转化模块
senceData
,
senceData
,
productData
,
productData
,
activityList
:
[]
},
},
// 一级菜单
// 一级菜单
introduce
(
e
)
{
introduce
(
e
)
{
...
@@ -132,8 +133,25 @@ Page({
...
@@ -132,8 +133,25 @@ Page({
// 跳转活动页
// 跳转活动页
activityClick
(
e
)
{
activityClick
(
e
)
{
const
{
hasPhoneNumber
}
=
this
.
data
console
.
log
(
e
)
console
.
log
(
e
)
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
)
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
,
{
hasPhoneNumber
})
},
// 获取全部活动列表
getActivityRecord
()
{
entmicroApi
.
getActivityRecord
({}).
then
(({
data
,
code
,
message
})
=>
{
if
(
code
==
-
1
)
{
wx
.
showToast
({
title
:
message
,
icon
:
"none"
,
duration
:
2000
,
});
}
this
.
setData
({
activityList
:
data
})
})
},
},
/**
/**
...
@@ -150,6 +168,7 @@ Page({
...
@@ -150,6 +168,7 @@ Page({
});
});
}
}
this
.
getCardDetail
();
this
.
getCardDetail
();
this
.
getActivityRecord
()
});
});
wx
.
hideShareMenu
({
wx
.
hideShareMenu
({
menus
:
[
"shareAppMessage"
],
menus
:
[
"shareAppMessage"
],
...
...
pages/tab/index/index.wxml
View file @
aaaf170
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,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}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick">
<gl-scenario productData="{{productData}}" senceData="{{senceData}}"
activityList="{{activityList}}"
bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick">
</gl-scenario>
</gl-scenario>
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info>
<activity-info slot="swiper"></activity-info>
...
...
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