Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
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 07a2ea43
authored
Oct 17, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.0' into ybw_dev_3.0
2 parents
01fed4f0
49765d1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
pages/tab/index/index.json
pages/tab/index/index.wxml
pages/tab/index/index.json
View file @
07a2ea4
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"van-button"
:
"@vant/weapp/button/index"
"active-box"
:
"./components/activeBox/activeBox"
,
"activity-diagnosis"
:
"./components/activityDiagnosis/activityDiagnosis"
},
},
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"onReachBottomDistance"
:
10
,
"onReachBottomDistance"
:
10
,
...
...
pages/tab/index/index.wxml
View file @
07a2ea4
...
@@ -3,4 +3,40 @@
...
@@ -3,4 +3,40 @@
<view class="bar-text">门店助手</view>
<view class="bar-text">门店助手</view>
</navigation-bar>
</navigation-bar>
</view>
</view>
<van-button type="warning">警告按钮</van-button>
<block wx:if="{{navHeight}}">
<view class="layout" style="top:{{navHeight}}px">
<!-- 背景图 -->
<view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<image webp src="{{IMGURL}}/index_bg.png?v={{img_version}}"></image>
</view>
</view>
<view class="content">
<!-- tab切换 -->
<view class="tab-box" style="top: {{navHeight}}px">
<block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index == tabIndex? 'active' : '' }}" bindtap="click" data-index="{{index}}">
<view class="text">{{item.name}} ({{item.account}})</view>
<view class="line"></view>
</view>
</block>
</view>
<!-- 活动中 -->
<view class="active-content">
<block wx:if="{{tabIndex == 0}}">
<active-box activeList="{{activeList}}"></active-box>
</block>
</view>
<!-- 活动诊断 -->
<view class="activity-diag-content">
<block wx:if="{{tabIndex == 1}}">
<activity-diagnosis activityList="{{activityEndList}}"></activity-diagnosis>
</block>
</view>
</view>
<!-- 申请活动 -->
<view class="add-activity" bind:tap="applyActivity">
<image webp src="{{IMGURL}}application_activity.png"></image>
</view>
</view>
</block>
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