Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
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 5fa3d3db
authored
Jul 25, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式
1 parent
7ad51099
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
111 additions
and
43 deletions
images/ok.png
login/lib/index.js
packageOutput/components/staff/staff.js
packageOutput/components/staff/staff.scss
packageOutput/components/staff/staff.wxml
packageOutput/components/staff/staff.wxs
packagesList/outDetail/components/OutputWork/components/OutputBar/OutputBar.scss
packagesList/outDetail/components/OutputWork/components/OutputBar/OutputBar.wxml
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.scss
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.wxml
packagesList/outDetail/components/OutputWork/index.js
packagesList/outDetail/components/OutputWork/index.scss
packagesList/outDetail/components/OutputWork/index.wxml
packagesList/outDetail/index.wxml
packagesList/packageOutput/pages/crowdDetail/crowdDetail.wxml
packagesList/packageOutput/pages/monthReport/monthReport.scss
packagesList/packageOutput/pages/monthReport/monthReport.wxml
pages/tab/output/components/client/client.js
pages/tab/output/components/sortTab/sortTab.js
pages/tab/output/components/sortTab/sortTab.scss
pages/tab/output/components/sortTab/sortTab.wxml
utils/request/environment.js
images/ok.png
0 → 100644
View file @
5fa3d3d
905 Bytes
login/lib/index.js
View file @
5fa3d3d
...
@@ -85,6 +85,7 @@ const loginSuccess = () => {
...
@@ -85,6 +85,7 @@ const loginSuccess = () => {
targetPath
targetPath
}
}
}
=
wx
.
$router
.
getPageInstance
()
}
=
wx
.
$router
.
getPageInstance
()
wx
.
setStorageSync
(
'first_enter'
,
true
)
if
(
targetPath
)
{
if
(
targetPath
)
{
const
{
const
{
url
,
url
,
...
...
packageOutput/components/staff/staff.js
View file @
5fa3d3d
...
@@ -233,6 +233,7 @@ Component({
...
@@ -233,6 +233,7 @@ Component({
}
}
return
result
return
result
})
})
console
.
log
(
sfaffList
,
'sfaffList'
)
this
.
setData
({
this
.
setData
({
sfaff
:
sfaffList
sfaff
:
sfaffList
})
})
...
...
packageOutput/components/staff/staff.scss
View file @
5fa3d3d
...
@@ -22,16 +22,17 @@
...
@@ -22,16 +22,17 @@
text-align
:
center
;
text-align
:
center
;
.staff-type
{
.staff-type
{
width
:
128
rpx
;
width
:
160
rpx
;
text
{
text
{
display
:
inline-block
;
display
:
inline-block
;
width
:
100rpx
;
width
:
120rpx
;
text-align
:
right
;
}
}
.up-icon
{
.up-icon
{
width
:
14
rpx
;
width
:
32
rpx
;
height
:
8
rpx
;
height
:
32
rpx
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
}
}
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
.up-box
{
.up-box
{
position
:
absolute
;
position
:
absolute
;
width
:
128rpx
;
width
:
128rpx
;
left
:
20rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
0
18rpx
0
#3a596a
1c
;
box-shadow
:
0
0
18rpx
0
#3a596a
1c
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
...
@@ -116,8 +118,6 @@
...
@@ -116,8 +118,6 @@
font-size
:
20rpx
;
font-size
:
20rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
text-align
:
center
;
color
:
#1B233D
;
color
:
#1B233D
;
// background: #F9F9F9;
// background: #F9F9F9;
background
:
#F5F9FE
;
background
:
#F5F9FE
;
...
@@ -128,9 +128,29 @@
...
@@ -128,9 +128,29 @@
color
:
#1B233D
;
color
:
#1B233D
;
}
}
&
:not
(
:first-child
)
{
// border-right: 2rpx solid #F3F3F3;
}
&
:nth-child
(
2n
)
{
&
:nth-child
(
2n
)
{
background
:
#ffffff
;
background
:
#ffffff
;
}
}
.left_item_avatar
{
flex
:
1
;
margin-left
:
20rpx
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
color
:
#666666
;
image
{
width
:
36rpx
;
height
:
36rpx
;
border-radius
:
36rpx
;
margin-right
:
10rpx
;
}
}
}
}
.table_right_scroll_box
{
.table_right_scroll_box
{
...
...
packageOutput/components/staff/staff.wxml
View file @
5fa3d3d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view class="select-up">
<view class="select-up">
<view catchtap="showUp" class="staff-type">
<view catchtap="showUp" class="staff-type">
<text>{{dataType[downType][selectValue-1].label}}</text>
<text>{{dataType[downType][selectValue-1].label}}</text>
<glsx-image webp custom-class="up-icon" src="store-assistant-assemble/output/
arrow
.png"></glsx-image>
<glsx-image webp custom-class="up-icon" src="store-assistant-assemble/output/
down
.png"></glsx-image>
</view>
</view>
<view class="up-box" hidden="{{show}}">
<view class="up-box" hidden="{{show}}">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType[downType]}}" wx:key="index" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType[downType]}}" wx:key="index" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
...
@@ -24,17 +24,23 @@
...
@@ -24,17 +24,23 @@
<!-- 左侧固定 -->
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='table_left_column'>
<view class='left_col_item'>排名</view>
<view class='left_col_item'>排名</view>
<view class='left_col_item' wx:for="{{sfaff[0].list}}" wx:for-index="index" wx:key="index">{{index+1}}</view>
<view class='left_col_item' wx:for="{{sfaff[0].list}}" wx:for-index="index" wx:key="index">
<text>{{index+1}}</text>
<view class="left_item_avatar">
<image wx:if="{{item.avatarUrl}}" src="{{ item.avatarUrl}}" mode="scaleToFill"></image>
<text>{{item.transferName?item.transferName:'--'}}</text>
</view>
</view>
</view>
</view>
<!-- 右侧表格滚动 -->
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{
sfaff
}}" wx:for-index="index" wx:key="index">
<view class="flex_direction_column_item" wx:for="{{
filter.sliceArr(sfaff,1)
}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<
image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image
>
<
!-- <image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image> --
>
<text>
<text>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<
block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block
>
<
!-- <block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block> --
>
<block wx:else>{{filter.thousand(litem)||'--'}}</block>
<block wx:else>{{filter.thousand(litem)||'--'}}</block>
</text>
</text>
</view>
</view>
...
...
packageOutput/components/staff/staff.wxs
View file @
5fa3d3d
...
@@ -4,4 +4,7 @@ function thousand(n) {
...
@@ -4,4 +4,7 @@ function thousand(n) {
var p = (n+'').replace(r, ',')
var p = (n+'').replace(r, ',')
return p
return p
}
}
module.exports = {thousand:thousand}
\ No newline at end of file
\ No newline at end of file
function sliceArr(arr,n) {
return arr.slice(n)
}
module.exports = {thousand:thousand,sliceArr:sliceArr}
\ No newline at end of file
\ No newline at end of file
packagesList/outDetail/components/OutputWork/components/OutputBar/OutputBar.scss
View file @
5fa3d3d
...
@@ -19,7 +19,11 @@
...
@@ -19,7 +19,11 @@
.search-text
+
.search-text
{
.search-text
+
.search-text
{
margin-left
:
40rpx
;
margin-left
:
40rpx
;
}
}
.search-unit
{
margin-left
:
auto
;
font-size
:
24rpx
;
color
:
#8A8C90
;
}
.active
{
.active
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
32rpx
;
font-size
:
32rpx
;
...
...
packagesList/outDetail/components/OutputWork/components/OutputBar/OutputBar.wxml
View file @
5fa3d3d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<view class="searchList">
<view class="searchList">
<block wx:for="{{opts.barList}}" wx:for-item="item" wx:key="index">
<block wx:for="{{opts.barList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-unit">单位:{{opts.barList.length == 3?'元':'张'}}</view>
</view>
</view>
<view class="container">
<view class="container">
...
...
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.scss
View file @
5fa3d3d
...
@@ -17,6 +17,12 @@
...
@@ -17,6 +17,12 @@
margin-left
:
40rpx
;
margin-left
:
40rpx
;
}
}
.search-unit
{
margin-left
:
auto
;
font-size
:
24rpx
;
color
:
#8A8C90
;
}
.active
{
.active
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
32rpx
;
font-size
:
32rpx
;
...
...
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.wxml
View file @
5fa3d3d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<view class="searchList">
<view class="searchList">
<block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-unit">单位:元</view>
</view>
</view>
<view class="searchTime">
<view class="searchTime">
<block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
<block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
...
...
packagesList/outDetail/components/OutputWork/index.js
View file @
5fa3d3d
...
@@ -41,7 +41,7 @@ Component({
...
@@ -41,7 +41,7 @@ Component({
{
{
label
:
'当月报价(单)'
,
label
:
'当月报价(单)'
,
name
:
'monthQuotationCount'
,
name
:
'monthQuotationCount'
,
_unit
:
'
¥
'
,
_unit
:
''
,
iconUrl
:
'store-assistant-assemble/output/icon02.png'
iconUrl
:
'store-assistant-assemble/output/icon02.png'
},
{
},
{
label
:
'当月成交(单)'
,
label
:
'当月成交(单)'
,
...
@@ -127,7 +127,7 @@ Component({
...
@@ -127,7 +127,7 @@ Component({
},
{
},
{
label
:
'单日产值(元)'
,
label
:
'单日产值(元)'
,
name
:
'outputValue'
,
name
:
'outputValue'
,
unit
:
''
,
unit
:
'
¥
'
,
iconUrl
:
'store-assistant-assemble/output/icon05.png'
iconUrl
:
'store-assistant-assemble/output/icon05.png'
}],
}],
},
},
...
...
packagesList/outDetail/components/OutputWork/index.scss
View file @
5fa3d3d
...
@@ -43,20 +43,17 @@
...
@@ -43,20 +43,17 @@
.number
{
.number
{
font-family
:
numberBold
;
font-family
:
numberBold
;
// font-weight: 600;
// font-weight: 600;
font-size
:
48
rpx
;
font-size
:
36
rpx
;
color
:
#2D2D33
;
color
:
#2D2D33
;
}
}
}
}
.item
+
.item
{
width
:
40%
;
}
.otherItem
{
.otherItem
{
width
:
40
%
;
width
:
32
%
;
}
}
.otherItem
+
.otherItem
{
.otherItem
:last-child
{
width
:
3
0
%
;
width
:
3
6
%
;
}
}
}
}
...
@@ -91,7 +88,7 @@
...
@@ -91,7 +88,7 @@
.output-num
{
.output-num
{
font-weight
:
700
;
font-weight
:
700
;
font-size
:
3
6
rpx
;
font-size
:
3
2
rpx
;
color
:
#2D2D33
;
color
:
#2D2D33
;
text-align-last
:
left
;
text-align-last
:
left
;
...
...
packagesList/outDetail/components/OutputWork/index.wxml
View file @
5fa3d3d
...
@@ -26,8 +26,7 @@
...
@@ -26,8 +26,7 @@
<view class="totalCon" wx:else>
<view class="totalCon" wx:else>
<view class="item otherItem ">
<view class="item otherItem ">
<view class="label">总报价量(单)</view>
<view class="label">总报价量(单)</view>
<veiw class="number">
<veiw class="number">{{fn.accMul(outputData['totalQuotationCount'],1)||0}}
<text class="unit">¥ </text>{{fn.accMul(outputData['totalQuotationCount'],1)||0}}
</veiw>
</veiw>
</view>
</view>
<view class="item otherItem">
<view class="item otherItem">
...
@@ -60,7 +59,7 @@
...
@@ -60,7 +59,7 @@
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-label"><view class="label">{{item.label}}</view>
<view class="output-label"><view class="label">{{item.label}}</view>
<glsx-image src="{{item.iconUrl}}" class="icon" /></view>
<glsx-image src="{{item.iconUrl}}" class="icon" /></view>
<view class="output-num">{{outputData[item.name]|| 0}} </view>
<view class="output-num">
<text class="_unit">{{item.unit}}</text>
{{outputData[item.name]|| 0}} </view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
packagesList/outDetail/index.wxml
View file @
5fa3d3d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</navigation-bar>
</navigation-bar>
</view>
</view>
<block wx:if="{{navHeight}}">
<block wx:if="{{navHeight}}">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - {{navHeight*2}}rpx
- 60rpx
)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - {{navHeight*2}}rpx)">
<!-- 背景图 -->
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<view class="bg">
...
...
packagesList/packageOutput/pages/crowdDetail/crowdDetail.wxml
View file @
5fa3d3d
<!--packageOutput/pages/crowdDetail/crowdDetail.wxml-->
<!--packageOutput/pages/crowdDetail/crowdDetail.wxml-->
<view class="container">
<view class="container">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值详情</navigation-bar>
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值详情</navigation-bar>
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh
- {{navHeight}}px
)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh)">
<!-- 背景图 -->
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<view class="bg">
...
...
packagesList/packageOutput/pages/monthReport/monthReport.scss
View file @
5fa3d3d
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.output-item
{
.output-item
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
32%
;
width
:
32%
;
...
@@ -129,7 +130,8 @@
...
@@ -129,7 +130,8 @@
background-image
:
linear-gradient
(
90deg
,
#F3FCFC
0%
,
#F9FEFF
49%
,
#EFF7FF
100%
);
background-image
:
linear-gradient
(
90deg
,
#F3FCFC
0%
,
#F9FEFF
49%
,
#EFF7FF
100%
);
border-radius
:
12rpx
;
border-radius
:
12rpx
;
padding
:
24rpx
12rpx
24rpx
16rpx
;
padding
:
24rpx
12rpx
24rpx
16rpx
;
&
:nth-child
(
n
+
4
)
{
&
:nth-child
(
n
+
4
)
{
margin-top
:
16rpx
;
margin-top
:
16rpx
;
}
}
...
@@ -167,11 +169,13 @@
...
@@ -167,11 +169,13 @@
// align-items: center;
// align-items: center;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#6E6E7A
;
color
:
#6E6E7A
;
// line-height: 36rpx;
// line-height: 36rpx;
// margin-top: 12rpx;
// margin-top: 12rpx;
.label
{
.label
{
margin-top
:
5rpx
;
margin-top
:
5rpx
;
}
}
.icon
{
.icon
{
width
:
56rpx
;
width
:
56rpx
;
height
:
48rpx
;
height
:
48rpx
;
...
@@ -181,6 +185,7 @@
...
@@ -181,6 +185,7 @@
}
}
}
}
}
}
.totalCon
{
.totalCon
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
...
@@ -217,14 +222,16 @@
...
@@ -217,14 +222,16 @@
width
:
40%
;
width
:
40%
;
}
}
.otherItem
{
.otherItem
{
width
:
40%
;
width
:
40%
;
}
}
.otherItem
+
.otherItem
{
.otherItem
+
.otherItem
{
width
:
30%
;
width
:
30%
;
}
}
}
}
.billboard-box
{
.billboard-box
{
// background: #F4F8FE;
// background: #F4F8FE;
// border-radius: 32rpx;
// border-radius: 32rpx;
...
@@ -238,6 +245,13 @@
...
@@ -238,6 +245,13 @@
color
:
#1B233D
;
color
:
#1B233D
;
line-height
:
48rpx
;
line-height
:
48rpx
;
margin-bottom
:
22rpx
;
margin-bottom
:
22rpx
;
display
:
flex
;
.unit
{
margin-left
:
auto
;
font-size
:
22rpx
;
color
:
#5A6066
;
}
}
}
}
}
...
@@ -302,7 +316,8 @@
...
@@ -302,7 +316,8 @@
font-weight
:
600
;
font-weight
:
600
;
font-size
:
36rpx
;
font-size
:
36rpx
;
color
:
#FE5662
;
color
:
#FE5662
;
.unit
{
.unit
{
font-size
:
24rpx
;
font-size
:
24rpx
;
}
}
}
}
...
...
packagesList/packageOutput/pages/monthReport/monthReport.wxml
View file @
5fa3d3d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<wxs src="time.wxs" module="formatTime" />
<wxs src="time.wxs" module="formatTime" />
<view class="container">
<view class="container">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值{{timeType=='day'?'日':'月'}}报表</navigation-bar>
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值{{timeType=='day'?'日':'月'}}报表</navigation-bar>
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh
- 150rpx
)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh)">
<!-- 背景图 -->
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<view class="bg">
...
@@ -56,7 +56,10 @@
...
@@ -56,7 +56,10 @@
</view>
</view>
</view>
</view>
<view class="billboard-box">
<view class="billboard-box">
<view class="billboard-title">当{{timeType=='day'?'日':'月'}}员工龙虎榜</view>
<view class="billboard-title">
<text>当{{timeType=='day'?'日':'月'}}员工龙虎榜</text>
<text class="unit">累计产值(元)</text>
</view>
<view class="billboard-border">
<view class="billboard-border">
<block wx:if="{{billboard.length}}">
<block wx:if="{{billboard.length}}">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
...
...
pages/tab/output/components/client/client.js
View file @
5fa3d3d
...
@@ -109,13 +109,16 @@ Component({
...
@@ -109,13 +109,16 @@ Component({
// 0:全部-1;1:精品升级SC002;2:售后众筹SC004;3:会员权益/升级SC001
// 0:全部-1;1:精品升级SC002;2:售后众筹SC004;3:会员权益/升级SC001
let
_openList
=
[{
let
_openList
=
[{
code
:
'SC002'
,
code
:
'SC002'
,
name
:
'boutiqueUpgrade'
name
:
'boutiqueUpgrade'
,
type
:
1
,
},
{
},
{
code
:
'SC004'
,
code
:
'SC004'
,
name
:
'afterSalesCrowdfunding'
name
:
'afterSalesCrowdfunding'
,
type
:
0
,
},
{
},
{
code
:
'SC001'
,
code
:
'SC001'
,
name
:
'vdUpgrade'
name
:
'vdUpgrade'
,
type
:
2
,
}]
}]
_list
.
forEach
(
item
=>
{
_list
.
forEach
(
item
=>
{
_openList
.
forEach
(
k
=>
{
_openList
.
forEach
(
k
=>
{
...
@@ -123,6 +126,14 @@ Component({
...
@@ -123,6 +126,14 @@ Component({
item
[
k
.
name
]
=
'未开通'
item
[
k
.
name
]
=
'未开通'
}
else
if
(
item
.
sceneCodes
&&
!
item
.
sceneCodes
.
includes
(
k
.
code
))
{
}
else
if
(
item
.
sceneCodes
&&
!
item
.
sceneCodes
.
includes
(
k
.
code
))
{
item
[
k
.
name
]
=
'未开通'
item
[
k
.
name
]
=
'未开通'
}
else
{
if
(
_list
.
length
==
1
&&
wx
.
getStorageSync
(
'first_enter'
)){
wx
.
setStorageSync
(
'first_enter'
,
false
)
wx
.
navigateTo
({
url
:
`/packagesList/outDetail/index?merchantId=
${
_list
[
0
].
merchantId4s
}
&type=
${
k
.
type
}
&merchantName=
${
_list
[
0
].
merchantName4s
}
`
,
})
}
}
}
})
})
})
})
...
@@ -149,9 +160,9 @@ Component({
...
@@ -149,9 +160,9 @@ Component({
},
},
handleBlur
(
e
)
{
handleBlur
(
e
)
{
const
merchantName4s
=
e
.
detail
.
value
;
const
merchantName4s
=
e
.
detail
.
value
;
const
{
busiTotalListFirst
}
=
this
.
data
const
{
busiTotalListFirst
}
=
this
.
data
this
.
setData
({
this
.
setData
({
busiTotalList
:
busiTotalListFirst
.
filter
(
item
=>
item
.
merchantName4s
.
includes
(
merchantName4s
))
busiTotalList
:
busiTotalListFirst
.
filter
(
item
=>
item
.
merchantName4s
.
includes
(
merchantName4s
))
})
})
},
},
clientRefresh
(
isPull
=
false
)
{
clientRefresh
(
isPull
=
false
)
{
...
...
pages/tab/output/components/sortTab/sortTab.js
View file @
5fa3d3d
...
@@ -6,7 +6,7 @@ Component({
...
@@ -6,7 +6,7 @@ Component({
properties
:
{
properties
:
{
title
:
{
title
:
{
type
:
String
,
type
:
String
,
value
:
'
合作
门店'
value
:
'
我的
门店'
},
},
sceneCode
:
{
sceneCode
:
{
type
:
String
,
type
:
String
,
...
...
pages/tab/output/components/sortTab/sortTab.scss
View file @
5fa3d3d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
border-top-right-radius
:
32rpx
;
border-top-right-radius
:
32rpx
;
.title
{
.title
{
font-
size
:
600
;
font-
weight
:
600
;
font-size
:
30rpx
;
font-size
:
30rpx
;
width
:
196rpx
;
width
:
196rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
...
...
pages/tab/output/components/sortTab/sortTab.wxml
View file @
5fa3d3d
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<view class="sort-tab">
<view class="sort-tab">
<
ciew class="title">{{title}}</c
iew>
<
view class="title">{{title}}</v
iew>
<scroll-view class="sort-scroll" scroll-x="true">
<scroll-view class="sort-scroll" scroll-x="true">
<view class="flex">
<view class="flex">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
...
...
utils/request/environment.js
View file @
5fa3d3d
...
@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
3
let
index
=
2
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// 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