Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-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 707136ae
authored
Jan 06, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
31c063f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
90 deletions
packagesList/packageOutput/pages/newSummary/newSummary.js
packagesList/packageOutput/pages/newSummary/newSummary.wxml
utils/request/environment.js
packagesList/packageOutput/pages/newSummary/newSummary.js
View file @
707136a
...
...
@@ -19,15 +19,18 @@ Page({
merchantInfo
:
{},
tabList
:
[{
label
:
'精品升级-太阳膜'
,
width
:
'34%'
width
:
'34%'
,
tabIndx
:
1
},
{
label
:
'售后众筹'
,
width
:
'25%'
width
:
'25%'
,
tabIndx
:
3
},
{
label
:
'会员权益/升级'
,
width
:
'30%'
width
:
'30%'
,
tabIndx
:
0
}
],
lineChart
:
{},
...
...
@@ -35,6 +38,7 @@ Page({
data
:
[]
},
tabIndx
:
0
,
seletTabIndx
:
0
,
// 众筹
scrollLeft
:
0
,
activityActive
:
0
,
...
...
@@ -133,7 +137,7 @@ Page({
let
{
tabIndx
}
=
this
.
data
if
(
tabIndx
==
0
)
this
.
getAnalysisTendency
(
tabIndx
)
if
(
tabIndx
==
0
)
this
.
getAnalysisTendency
(
tabIndx
)
console
.
log
(
tabIndx
,
'tabIndx'
)
},
changeStatus
()
{
...
...
@@ -251,7 +255,9 @@ Page({
let
{
detail
}
=
e
let
{
tabList
}
=
this
.
data
this
.
setData
({
seletTabIndx
:
tabList
[
detail
].
tabIndx
,
tabIndx
:
detail
})
this
.
initData
()
...
...
@@ -538,12 +544,18 @@ Page({
onRoute
()
{
console
.
log
(
'onRoute'
)
this
.
initTime
()
let
{
tabList
}
=
this
.
data
// this.getAnalysisTendency(this.data.tabIndx)
wx
.
$router
.
getData
(
obj
=>
{
console
.
log
(
obj
,
'obj'
)
// obj.sceneTypeList = [1, 2]
tabList
=
tabList
.
filter
(
item
=>
obj
.
info
.
sceneTypeList
.
includes
(
item
.
tabIndx
))
console
.
log
(
tabList
,
'tabList'
);
this
.
setData
({
merchantInfo
:
obj
.
info
,
searchForm
:
obj
.
searchForm
searchForm
:
obj
.
searchForm
,
tabList
,
seletTabIndx
:
tabList
[
0
].
tabIndx
})
this
.
rangeSelect
({
detail
:
{
date
:
{
start
:
obj
.
searchForm
.
yearMonth
,
end
:
obj
.
searchForm
.
yearMonth
},
type
:
'dayType'
}
})
this
.
initData
()
...
...
packagesList/packageOutput/pages/newSummary/newSummary.wxml
View file @
707136a
...
...
@@ -2,100 +2,67 @@
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<navigation-bar wx:if="{{isPc}}" showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
{{merchantInfo.merchantName}}
</navigation-bar>
{{merchantInfo.merchantName}}
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:100vh">
<!-- <view class="titleBox">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
</view>
<view class="navigation-title-text text-hide">{{merchantInfo.merchantName}}</view>
</view> -->
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<block wx:if="{{ tabIndx==0
}}">
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<block wx:if="{{ seletTabIndx==1
}}">
<view class="searchBar">
<view class="checkCon" >
<view class="checkoutBox checkBox" bind:tap="changeStatus" wx:if="{{ !allType }}"></view>
<image class="checkBox" bind:tap="changeStatus" wx:if="{{ allType }}" src="../../images/checkoutIcon.png"></image>
查看全品类
</view>
<view class="calendarMonthCon">
<view class="monthNow {{ dateObj.nowMonth ? 'active' : '' }}" bind:tap="handleMonthNow">本月</view>
<CalendarMonth
allowSameDay
shortcut
bind:select="rangeSelect"
bind:tapCalendar="tapCalendar"
rangeAll
dateType="range"
calenderColor="#3666FE"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today }}"
isComponents
isChangeType="{{ false }}"
forceFullSucreen="{{ bottomLift>0?true:false }}"
dayType="{{ 0 }}"
>
<view class="item dateNum {{ dateObj.nowMonth ? 'custom' : '' }}">
<view wx:if="{{ dateObj.type == 'today' }}">自定义</view>
<view wx:elif="{{ dateObj.nowMonth }}">{{ dateObj.today }}</view>
<view wx:else>{{filter.dateFormatSlash(dateObj.beginDateStr)}}-{{filter.dateFormatSlash(dateObj.endDateStr)}}</view>
<view class="arrow {{ whiteArrow ? 'move' : '' }}">
<image class="arrowIcon" src="../../images/blackArrowIcon.png" />
</view>
</view>
</CalendarMonth>
</view>
</view>
<view class="conCom">
<view wx:if="{{ tabIndx == 1 }}" class="activity-content container">
<output-crowdfund
wx:if="{{ isShowData }}"
orderObj="{{ activityList[activityActive].outputData }}"
bind:handleZhanReport="handleZhanReport"
bind:posterTrack="posterTrack"
hasReport="{{ !isMock.SC004 }}"
/>
<view wx:else class="content-empty">
<image class="img-empty" src="{{ IMGURL}}output/sun-empty-transparent.png?v={{img_version }}" />
</view>
<view
wx:if="{{ activityList.length && isShowData && activityList[activityActive].outputData.shareBtnIdx && activityList[activityActive].outputData.shareBtnIdx != -1 }}"
class="isFullSucreen btn-box shadow"
bindtap="handleBtnShare"
>
<view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view>
</view>
<output-echart
wx:elif="{{ tabIndx == 0 }}"
class="container"
revenueData="{{ revenueData }}"
chartData="{{ lineChart }}"
chartDataPie="{{ chartDataPie }}"
tabIndex="{{ tabIndx }}"
customerList="{{ customerList }}"
></output-echart>
<view class="checkCon">
<view class="checkoutBox checkBox" bind:tap="changeStatus" wx:if="{{ !allType }}"></view>
<image class="checkBox" bind:tap="changeStatus" wx:if="{{ allType }}" src="../../images/checkoutIcon.png"></image>
查看全品类
</view>
<view class="calendarMonthCon">
<view class="monthNow {{ dateObj.nowMonth ? 'active' : '' }}" bind:tap="handleMonthNow">本月</view>
<CalendarMonth allowSameDay shortcut bind:select="rangeSelect" bind:tapCalendar="tapCalendar" rangeAll dateType="range" calenderColor="#3666FE" vertical minDate="2020-10-01" maxDate="{{ dateObj.today }}" isComponents isChangeType="{{ false }}" forceFullSucreen="{{ bottomLift>0?true:false }}" dayType="{{ 0 }}">
<view class="item dateNum {{ dateObj.nowMonth ? 'custom' : '' }}">
<view wx:if="{{ dateObj.type == 'today' }}">自定义</view>
<view wx:elif="{{ dateObj.nowMonth }}">{{ dateObj.today }}</view>
<view wx:else>{{filter.dateFormatSlash(dateObj.beginDateStr)}}-{{filter.dateFormatSlash(dateObj.endDateStr)}}</view>
<view class="arrow {{ whiteArrow ? 'move' : '' }}">
<image class="arrowIcon" src="../../images/blackArrowIcon.png" />
</view>
</view>
</CalendarMonth>
</view>
</view>
<view class="conCom">
<view wx:if="{{ tabIndx == 1 }}" class="activity-content container">
<output-crowdfund wx:if="{{ isShowData }}" orderObj="{{ activityList[activityActive].outputData }}" bind:handleZhanReport="handleZhanReport" bind:posterTrack="posterTrack" hasReport="{{ !isMock.SC004 }}" />
<view wx:else class="content-empty">
<image class="img-empty" src="{{ IMGURL}}output/sun-empty-transparent.png?v={{img_version }}" />
</view>
<view wx:if="{{ activityList.length && isShowData && activityList[activityActive].outputData.shareBtnIdx && activityList[activityActive].outputData.shareBtnIdx != -1 }}" class="isFullSucreen btn-box shadow" bindtap="handleBtnShare">
<view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view>
</view>
<output-echart wx:elif="{{ tabIndx == 0 }}" class="container" revenueData="{{ revenueData }}" chartData="{{ lineChart }}" chartDataPie="{{ chartDataPie }}" tabIndex="{{ tabIndx }}" customerList="{{ customerList }}"></output-echart>
</view>
</block>
<block wx:elif="{{tabIndx == 1
}}">
</block>
<block wx:elif="{{seletTabIndx == 3
}}">
<view style="height: calc(100%);">
<WorktableEntrance></WorktableEntrance>
</view>
</block>
<block wx:else
>
<WorktableEntrance></WorktableEntrance>
</view>
</block>
<block wx:elif="{{seletTabIndx == 0}}"
>
<view style="height: calc(100%);">
<equity-value entranceType="2"></equity-value>
</view>
</block>
<!-- <output-echart></output-echart>
<equity-value entranceType="2"></equity-value>
</view>
</block>
<!-- <output-echart></output-echart>
<output-crowdfund></output-crowdfund> -->
</view>
<crowdfund-poster item="{{crowdPosterItem}}" id="crowdPoster" scrollImg="{{true}}" bindlongtouch="longtouch" />
\ No newline at end of file
utils/request/environment.js
View file @
707136a
...
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
1
let
index
=
2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
...
...
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