Commit 7e098e17 by 胡悦

代理商

1 parent aa73a285
/* pages/tab/index/index.wxss */ /* pages/tab/index/index.wxss */
@import '../../template/demo/demo.wxss';
@import '../../template/channel/channel.wxss'; @import '../../template/channel/channel.wxss';
@import '../../template/menu/menu.wxss'; @import '../../template/menu/menu.wxss';
......
// pages/tab/introduction/introduction.js // pages/tab/introduction/introduction.js
import {menuMixin} from '../../../mixins/index'
Page({ Page({
behaviors: [menuMixin],
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
// 0-员工,1-代理商
customerType: 1
}, },
/** /**
......
<!--pages/tab/introduction/introduction.wxml--> <!--pages/tab/introduction/introduction.wxml-->
<text>pages/tab/introduction/introduction.wxml</text> <import src="../../template/menu/menu" />
<import src="../../template/cube/cube" />
<import src="../../template/equity/equity" />
<block>
<template is="menu" data="{{menuList, curIntroduceIndex, templateMethods, customerType}}"></template>
</block>
<block wx:if="{{curIntroduceIndex === 0}}">
<template is="cube"></template>
</block>
<block wx:elif="{{curIntroduceIndex === 1}}">
<template is="equity"></template>
</block>
<button open-type="share">分享</button>
<view class="btn-bottm">
<view class="share-btn" bindtap="share">
<image class="icon-share" webp src="{{IMGURL}}home/icon-share.png"></image>
<view class="share-text">分享此页面</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
/* pages/tab/introduction/introduction.wxss */ /* pages/tab/introduction/introduction.wxss */
@import '../../template/menu/menu.wxss';
page {
background-color: #f5f5f6;
}
.btn-bottm {
position: fixed;
bottom: 0;
width: 100%;
height: 112rpx;
background-color: #ffffff;
padding: 24rpx 48rpx 12rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #FFFFFF;
}
.share-btn {
display: flex;
justify-content: center;
text-align: center;
padding: 16rpx 0;
width: 100%;
background: #5850FF;
background-image: linear-gradient(180deg, #4791FF 0%, #5850FF 100%, #643DFF 100%);
border-radius: 8rpx;
}
.icon-share {
width: 40rpx;
height: 40rpx;
margin-right: 16rpx;
}
\ No newline at end of file \ No newline at end of file
<template name="cube">
这里是企微魔方内容
</template>
\ No newline at end of file \ No newline at end of file
<template name="demo">
<view class="bg">这是一个demo模板</view>
</template>
\ No newline at end of file \ No newline at end of file
.bg {
background-color: blueviolet;
}
\ No newline at end of file \ No newline at end of file
<template name="equity">
这里是数字化权益
</template>
\ No newline at end of file \ No newline at end of file
.menu-list { .menu-list {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
background-color: #fff;
} }
.menu-item { .menu-item {
position: relative; position: relative;
......
...@@ -4,5 +4,48 @@ ...@@ -4,5 +4,48 @@
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": false "urlCheck": false
},
"condition": {
"miniprogram": {
"list": [
{
"name": "分享组件",
"pathName": "tabComponents/pages/share/share",
"query": "",
"scene": null
},
{
"name": "授权组件",
"pathName": "tabComponents/pages/authorize/authorize",
"query": "",
"scene": null
},
{
"name": "时间范围选择器",
"pathName": "tabComponents/pages/time-horizon/time-horizon",
"query": "",
"scene": null
},
{
"name": "cell",
"pathName": "tabComponents/pages/gl-cell/gl-cell",
"query": "",
"scene": null
},
{
"name": "日历",
"pathName": "tabComponents/pages/calendar/calendar",
"query": "",
"scene": null
},
{
"name": "",
"pathName": "pages/tab/introduction/introduction",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
} }
} }
\ No newline at end of file \ 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!