Commit 31c5a654 by 胡悦

提交

1 parent b3edf4ea
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);
// const curIntroduceIndex = e.currentTarget.dataset.index;
// this.setData({
// curIntroduceIndex: curIntroduceIndex,
// });
// },
// methods: {
// // 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
// }, methods: {
// 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
selectIntroduce(e) {
console.log(e.currentTarget);
const curIntroduceIndex = e.currentTarget.dataset.index;
this.setData({
curIntroduceIndex: curIntroduceIndex,
});
},
},
}); });
\ No newline at end of file \ No newline at end of file
...@@ -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");
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!