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 31c5a654
authored
Sep 05, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
b3edf4ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
30 deletions
mixins/menuMixin.js
pages/tab/index/index.js
mixins/menuMixin.js
View file @
31c5a65
module
.
exports
=
Behavior
({
module
.
exports
=
Behavior
({
data
:
{
data
:
{
//
menuList: ["企微魔方", "数字化权益", "智能线索", "D+增值转化"],
menuList
:
[
"企微魔方"
,
"数字化权益"
,
"智能线索"
,
"D+增值转化"
],
//
templateMethods: [{"tap": "selectIntroduce"}],
templateMethods
:
[{
"tap"
:
"selectIntroduce"
}],
//
curIntroduceIndex: 0
curIntroduceIndex
:
0
},
},
// selectIntroduce(e) {
// console.log(e.currentTarget);
methods
:
{
// const curIntroduceIndex = e.currentTarget.dataset.index;
// 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
// this.setData(
{
selectIntroduce
(
e
)
{
// curIntroduceIndex: curIntroduceIndex,
console
.
log
(
e
.
currentTarget
);
// })
;
const
curIntroduceIndex
=
e
.
currentTarget
.
dataset
.
index
;
// },
this
.
setData
({
// methods: {
curIntroduceIndex
:
curIntroduceIndex
,
// // 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
});
},
//
},
},
});
});
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.js
View file @
31c5a65
...
@@ -6,13 +6,39 @@
...
@@ -6,13 +6,39 @@
* @LastEditTime: 2022-09-02 13:48:49
* @LastEditTime: 2022-09-02 13:48:49
*/
*/
// pages/tab/index/index.js
// pages/tab/index/index.js
import
{
menuMixin
}
from
'../../../mixins/index'
Page
({
Page
({
//
behaviors: [menuMixin],
behaviors
:
[
menuMixin
],
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
introduceName
:
""
,
introduceName
:
""
,
tabList
:
[
{
name
:
"公司介绍"
,
icon
:
"icon-company"
,
icon1
:
"icon-company1"
,
},
{
name
:
"方案介绍"
,
icon
:
"icon-product"
,
icon1
:
"icon-product1"
,
},
{
name
:
"视频直播"
,
icon
:
"icon-video"
,
icon1
:
"icon-video"
,
},
{
name
:
"合作申请"
,
icon
:
"icon-cooperation"
,
icon1
:
"icon-cooperation"
,
},
],
curTabIndex
:
0
,
// 0-员工,1-代理商
customerType
:
0
},
},
introduce
(
e
)
{
introduce
(
e
)
{
const
curTabIndex
=
e
.
currentTarget
.
dataset
.
index
;
const
curTabIndex
=
e
.
currentTarget
.
dataset
.
index
;
...
@@ -32,20 +58,6 @@ Page({
...
@@ -32,20 +58,6 @@ Page({
});
});
}
}
},
},
// 方案介绍tab栏切换
// 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
selectIntroduce
(
e
)
{
console
.
log
(
e
.
currentTarget
);
const
curIntroduceIndex
=
e
.
currentTarget
.
dataset
.
index
;
this
.
setData
({
curIntroduceIndex
:
curIntroduceIndex
,
});
},
jump
()
{
wx
.
$router
.
go
(
"applicationAccount"
);
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
...
...
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