Commit 04ada9cd by 胡悦

修改

1 parent e08798d6
......@@ -30,6 +30,20 @@ Page({
icon: 'icon-cooperation'
},
],
menuList: [
{
name: '企微魔方'
},
{
name: '数字化权益'
},
{
name: '智能线索'
},
{
name: 'D+增值转化'
}
],
curTabIndex: 0
},
introduce(e) {
......
......@@ -4,25 +4,19 @@
<template is="channel"></template>
<view class="tab-list">
<block wx:for="{{tabList}}">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}"bindtap="introduce">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image class="tab-img" mode="widthFix" webp src="{{IMGURL}}/home/{{item.icon}}.png"></image>
<view>{{item.name}}</view>
</view>
</block>
</view>
{{introduceName}}
<import src="../../template/company/company.wxml" />
<block>
<block wx:if="{{introduceName == '公司介绍'}}">
<template is="company"></template>
</block>
<!-- <view>{{introduceName}}</view> -->
<view hidden="{{introduceName != '产品介绍'}}">
<view class="tab-list">
<view class="tab-item">企微魔方</view>
<view class="tab-item">数字化权益</view>
<view class="tab-item">智能线索</view>
<view class="tab-item">D+增值转化</view>
</view>
</view>
<button class="application" bindtap="jump">免费申请体验账号</button>
\ No newline at end of file
<view class="menu-list" hidden="{{introduceName != '方案介绍'}}">
<view class="menu-item menu-active">企微魔方</view>
<view class="menu-item">数字化权益</view>
<view class="menu-item">智能线索</view>
<view class="menu-item">D+增值转化</view>
</view>
\ No newline at end of file
......@@ -34,9 +34,35 @@ page {
margin-top: 16rpx;
}
.application {
position: fixed;
bottom: 0;
width: 100%;
}
/* 方案介绍 */
.menu-list {
display: flex;
justify-content: space-evenly;
}
.menu-item {
position: relative;
font-size: 26rpx;
color: #6E6E7A;
height: 88rpx;
line-height: 88rpx;
}
.menu-active {
color: #5850ff;
}
.menu-active::after {
content: '';
display: inline-block;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 48rpx;
height: 6rpx;
background-color: #5850ff;
border-radius: 0.8rpx;
}
\ No newline at end of file
<template name="company">
<text hidden="{{introduceName != '公司介绍'}}">公司介绍的页面</text>
<text>公司介绍的页面</text>
</template>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!