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 04ada9cd
authored
Sep 05, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
e08798d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
16 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.wxss
pages/template/company/company.wxml
pages/tab/index/index.js
View file @
04ada9c
...
@@ -30,6 +30,20 @@ Page({
...
@@ -30,6 +30,20 @@ Page({
icon
:
'icon-cooperation'
icon
:
'icon-cooperation'
},
},
],
],
menuList
:
[
{
name
:
'企微魔方'
},
{
name
:
'数字化权益'
},
{
name
:
'智能线索'
},
{
name
:
'D+增值转化'
}
],
curTabIndex
:
0
curTabIndex
:
0
},
},
introduce
(
e
)
{
introduce
(
e
)
{
...
...
pages/tab/index/index.wxml
View file @
04ada9c
...
@@ -4,25 +4,19 @@
...
@@ -4,25 +4,19 @@
<template is="channel"></template>
<template is="channel"></template>
<view class="tab-list">
<view class="tab-list">
<block wx:for="{{tabList}}">
<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>
<image class="tab-img" mode="widthFix" webp src="{{IMGURL}}/home/{{item.icon}}.png"></image>
<view>{{item.name}}</view>
<view>{{item.name}}</view>
</view>
</view>
</block>
</block>
</view>
</view>
{{introduceName}}
<import src="../../template/company/company.wxml" />
<import src="../../template/company/company.wxml" />
<block>
<block
wx:if="{{introduceName == '公司介绍'}}"
>
<template is="company"></template>
<template is="company"></template>
</block>
</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
\ 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
\ No newline at end of file
pages/tab/index/index.wxss
View file @
04ada9c
...
@@ -34,9 +34,35 @@ page {
...
@@ -34,9 +34,35 @@ page {
margin-top: 16rpx;
margin-top: 16rpx;
}
}
.application {
.application {
position: fixed;
position: fixed;
bottom: 0;
bottom: 0;
width: 100%;
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
\ No newline at end of file
pages/template/company/company.wxml
View file @
04ada9c
<template name="company">
<template name="company">
<text
hidden="{{introduceName != '公司介绍'}}"
>公司介绍的页面</text>
<text>公司介绍的页面</text>
</template>
</template>
\ No newline at end of file
\ No newline at end of file
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