Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
913dc888
Commit
913dc888
authored
Nov 05, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
254f272e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
761 additions
and
577 deletions
+761
-577
index.vue
pages/MallMange/index.vue
+3
-3
userManage.vue
pages/MallMange/userManage.vue
+758
-574
No files found.
pages/MallMange/index.vue
View file @
913dc888
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
class=
"imgicon"
class=
"imgicon"
/>
/>
<view
class=
"iconname"
>
订单消息
</view>
<view
class=
"iconname"
>
订单消息
</view>
<view
class=
"tipNum"
>
{{
OrderNumber
<
100
?
OrderNumber
:
'99+'
}}
</view>
<view
class=
"tipNum"
v-if=
"OrderNumber>0"
>
{{
OrderNumber
<
100
?
OrderNumber
:
'99+'
}}
</view>
</view>
</view>
<!--
<view
class=
"itemBox"
>
<!--
<view
class=
"itemBox"
>
<image
<image
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
class=
"imgicon"
class=
"imgicon"
/>
/>
<view
class=
"iconname"
>
提现申请
</view>
<view
class=
"iconname"
>
提现申请
</view>
<view
class=
"tipNum"
>
{{
txNumber
<
100
?
txNumber
:
'99+'
}}
</view>
<view
class=
"tipNum"
v-if=
"txNumber>0"
>
{{
txNumber
<
100
?
txNumber
:
'99+'
}}
</view>
</view>
</view>
<view
class=
"itemBox"
@
click=
"goUserList('commentsManage')"
>
<view
class=
"itemBox"
@
click=
"goUserList('commentsManage')"
>
<image
<image
...
@@ -527,7 +527,7 @@ export default {
...
@@ -527,7 +527,7 @@ export default {
// 获取提现消息
// 获取提现消息
getTX
()
{
getTX
()
{
let
msg
=
{
let
msg
=
{
AuditStatus
:
3
,
AuditStatus
:
1
,
UserId
:
0
,
UserId
:
0
,
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
100
,
pageSize
:
100
,
...
...
pages/MallMange/userManage.vue
View file @
913dc888
<
template
>
<
template
>
<view
class=
"userManage"
:style=
"
{height: contentHeight,}">
<view
class=
"userManage"
:style=
"
{ height: contentHeight }">
<view
style=
"padding: 10px 0; background: #fff;"
>
<view
style=
"padding: 10px 0; background: #fff"
>
<u-tabs
:list=
"list"
:is-scroll=
"false"
:current=
"current"
name=
"Name"
@
change=
"change"
<u-tabs
:active-color=
"mainColor"
bg-color=
"#FFF"
height=
"80"
bar-width=
"100"
></u-tabs>
:list=
"list"
</view>
:is-scroll=
"false"
<view
class=
"Um_Search"
v-if=
"current==0"
>
:current=
"current"
<u-search
:show-action=
"false"
@
search=
"init(1)"
style=
"background-color: #fff;"
height=
"70"
shape=
"round"
name=
"Name"
placeholder=
"请输入昵称"
v-model=
"msg.Name"
></u-search>
@
change=
"change"
</view>
:active-color=
"mainColor"
<view
class=
"Um_Search"
v-if=
"current==1"
>
bg-color=
"#FFF"
<u-search
:show-action=
"false"
@
search=
"getDistriData(1)"
style=
"background-color: #fff;"
height=
"70"
height=
"80"
shape=
"round"
placeholder=
"请输入昵称"
v-model=
"dsMsg.Name"
></u-search>
bar-width=
"100"
</view>
></u-tabs>
</view>
<view
style=
"height: calc(100vh - 50px); background: #fff;"
v-if=
"dataList.length == 0"
>
<view
class=
"Um_Search"
v-if=
"current == 0"
>
<u-empty
text=
"暂无相关数据"
mode=
"order"
></u-empty>
<u-search
</view>
:show-action=
"false"
<template
v-if=
"current==0"
>
@
search=
"init(1)"
<view
v-if=
"dataList.length>0"
style=
"background-color: #fff"
style=
"height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;"
>
height=
"70"
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lowerTwo"
shape=
"round"
:style=
"
{ height: '100%' }">
placeholder=
"请输入昵称"
<view
class=
"userList"
v-for=
"(item,index) in dataList"
>
v-model=
"msg.Name"
<view
class=
"user_Top"
>
></u-search>
<view
class=
"user_Header"
>
</view>
<img
style=
"width:100%;height:100%;"
:src=
"item.Photo"
alt=
""
>
<view
class=
"Um_Search"
v-if=
"current == 1"
>
</view>
<u-search
<view>
:show-action=
"false"
<text
class=
"userName"
>
{{
item
.
Name
}}
</text>
@
search=
"getDistriData(1)"
<text
class=
"userLevel"
>
{{
item
.
MemberGradeName
}}
</text>
style=
"background-color: #fff"
</view>
height=
"70"
</view>
shape=
"round"
<view
class=
"user_ScoreBwt"
>
placeholder=
"请输入昵称"
<view>
v-model=
"dsMsg.Name"
<text
class=
"user_ComBg"
>
交易额
</text>
></u-search>
<text
class=
"user_Number"
>
¥0.00
</text>
</view>
</view>
<view>
<view
<text
class=
"user_ComBg"
>
积分
</text>
style=
"height: calc(100vh - 50px); background: #fff"
<text
class=
"user_Number"
>
{{
item
.
Integral
}}
</text>
v-if=
"dataList.length == 0"
</view>
>
</view>
<u-empty
text=
"暂无相关数据"
mode=
"order"
></u-empty>
<view
class=
"user_ScoreBwt"
>
</view>
<view>
<template
v-if=
"current == 0"
>
<text
class=
"user_ComBg"
>
订单数
</text>
<view
<text
class=
"user_Number"
>
{{
item
.
OrderNum
}}
</text>
v-if=
"dataList.length > 0"
</view>
style=
"
<view>
height: calc(100vh - 50px);
<text
class=
"user_ComBg"
>
余额
</text>
width: calc(100vw);
<text
class=
"user_Number"
>
{{
item
.
Balance
}}
</text>
overflow: hidden;
</view>
padding: 25rpx;
</view>
background-color: #f7f7f7;
<view
v-if=
"item.Remark"
style=
"display: flex;margin-top:20rpx;"
>
"
<view
style=
"flex-shrink: 0;"
>
备注:
</view>
>
<view>
{{
item
.
Remark
}}
</view>
<scroll-view
</view>
:scroll-y=
"true"
<view
style=
"display: flex;justify-content:flex-end;margin-top: 20rpx;"
>
:enable-back-to-top=
"true"
<u-button
size=
"mini"
class=
"ucustomStyle"
shape=
"circle"
@
click=
"getItemInfo(item)"
>
修改信息
:enable-flex=
"true"
</u-button>
@
scrolltolower=
"lowerTwo"
<u-button
size=
"mini"
class=
"ucustomStyle"
shape=
"circle"
@
click=
"kouchuBtn(item,2)"
>
扣除
:style=
"
{ height: '100%' }"
</u-button>
>
<u-button
size=
"mini"
shape=
"circle"
@
click=
"kouchuBtn(item,1)"
>
充值
</u-button>
<view
class=
"userList"
v-for=
"(item, index) in dataList"
>
</view>
<view
class=
"user_Top"
>
</view>
<view
class=
"user_Header"
>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
<img
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
style=
"width: 100%; height: 100%"
</scroll-view>
:src=
"item.Photo"
</view>
alt=
""
</
template
>
/>
<
template
v-if=
"current==1"
>
</view>
<view
v-if=
"dataList.length>0"
<view
style=
"width: 530rpx"
>
style=
"height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;"
>
<view
style=
"line-height:50rpx"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
<text
class=
"userName"
>
{{
item
.
Name
}}
</text>
:style=
"
{ height: '100%' }">
<text
class=
"userLevel"
>
{{
item
.
MemberGradeName
}}
</text>
<view
class=
"userList"
v-for=
"(item,index) in dataList"
>
</view>
<view
class=
"user_Top"
>
<view
class=
"AliasName"
>
备注名:
{{
item
.
AliasName
}}
</view>
<view
class=
"user_DisHeader"
style=
"flex-shrink: 0;"
>
</view>
<img
style=
"width:100%;height:100%;"
:src=
"item.Photo"
alt=
""
>
</view>
</view>
<view
class=
"user_ScoreBwt"
>
<view>
<view>
<view>
<text
class=
"user_ComBg"
>
交易额
</text>
<text
class=
"userName"
>
{{
item
.
Name
}}
</text>
<text
class=
"user_Number"
>
¥0.00
</text>
</view>
</view>
<view
style=
"margin:12rpx 0;"
>
<view>
<text
class=
"user_ComBg"
style=
"font-size:24rpx;"
>
累计金额
</text>
<text
class=
"user_ComBg"
>
积分
</text>
<text
class=
"user_Number"
style=
"font-size:24rpx;"
>
¥
{{
item
.
TotalCommission
}}
</text>
<text
class=
"user_Number"
>
{{
item
.
Integral
}}
</text>
</view>
</view>
<view>
</view>
<text
class=
"user_ComBg"
style=
"font-size:24rpx;"
>
可体现金额
</text>
<view
class=
"user_ScoreBwt"
>
<text
class=
"user_Number"
<view>
style=
"font-size:24rpx;"
>
¥
{{
item
.
CommissionWithdrawal
}}
</text>
<text
class=
"user_ComBg"
>
订单数
</text>
</view>
<text
class=
"user_Number"
>
{{
item
.
OrderNum
}}
</text>
</view>
</view>
</view>
<view>
</view>
<text
class=
"user_ComBg"
>
余额
</text>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
<text
class=
"user_Number"
>
{{
item
.
Balance
}}
</text>
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
</view>
</scroll-view>
</view>
</view>
<view
v-if=
"item.Remark"
style=
"display: flex; margin-top: 20rpx"
>
</
template
>
<view
style=
"flex-shrink: 0"
>
备注:
</view>
<u-action-sheet
:list=
"listTwo"
v-model=
"showInfoModel"
></u-action-sheet>
<view>
{{
item
.
Remark
}}
</view>
<u-modal
v-model=
"showRemarkBox"
:show-cancel-button=
"true"
title=
"修改备注"
contentSlot
@
confirm=
"Save"
>
</view>
<textarea
style=
"height: 120px;"
class=
"inputRemark"
v-model=
"addMsg.Remark"
/>
<view
</u-modal>
style=
"
<!-- 扣除积分 -->
display: flex;
<u-modal
v-model=
"showKouchu"
:show-title=
"false"
:show-cancel-button=
"true"
contentSlot
@
confirm=
"SaveScore"
>
justify-content: flex-end;
<!-- 扣除 -->
margin-top: 20rpx;
<
template
v-if=
"ScoreMsg.Type==2"
>
"
<u-tabs
:list=
"listThree"
:is-scroll=
"false"
:current=
"currentScore"
@
change=
"changeScore"
>
:active-color=
"mainColor"
bg-color=
"#FFF"
height=
"80"
:show-bar=
"false"
></u-tabs>
<u-button
<view
style=
"margin-top:20rpx;"
>
size=
"mini"
<input
v-if=
"currentScore==0"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Integral"
class=
"ucustomStyle"
placeholder=
"请填写扣除积分"
/>
shape=
"circle"
<input
v-if=
"currentScore==1"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Balance"
@
click=
"getItemInfo(item)"
placeholder=
"请填写扣除金额"
/>
>
修改备注
<input
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Description"
placeholder=
"请输入备注信息"
/>
</u-button>
</view>
<u-button
</
template
>
size=
"mini"
<!-- 充值 -->
class=
"ucustomStyle"
<
template
v-if=
"ScoreMsg.Type==1"
>
shape=
"circle"
<u-tabs
:list=
"listFour"
:is-scroll=
"false"
:current=
"currentScore"
@
change=
"changeScore"
@
click=
"kouchuBtn(item, 2)"
:active-color=
"mainColor"
bg-color=
"#FFF"
height=
"80"
:show-bar=
"false"
></u-tabs>
>
扣除
<view
style=
"margin-top:20rpx;"
>
</u-button>
<input
v-if=
"currentScore==0"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Integral"
<u-button
size=
"mini"
shape=
"circle"
@
click=
"kouchuBtn(item, 1)"
placeholder=
"请填写充值积分"
/>
>
充值
</u-button
<input
v-if=
"currentScore==1"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Balance"
>
placeholder=
"请填写充值金额"
/>
</view>
<input
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Description"
placeholder=
"请输入备注信息"
/>
</view>
</view>
<u-loadmore
</
template
>
:status=
"status"
</u-modal>
:load-text=
"loadText"
</view>
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
</scroll-view>
</view>
</
template
>
<
template
v-if=
"current == 1"
>
<view
v-if=
"dataList.length > 0"
style=
"
height: calc(100vh - 50px);
width: calc(100vw);
overflow: hidden;
padding: 25rpx;
background-color: #f7f7f7;
"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }"
>
<view
class=
"userList"
v-for=
"(item, index) in dataList"
>
<view
class=
"user_Top"
>
<view
class=
"user_DisHeader"
style=
"flex-shrink: 0"
>
<img
style=
"width: 100%; height: 100%"
:src=
"item.Photo"
alt=
""
/>
</view>
<view>
<view>
<text
class=
"userName"
>
{{
item
.
NickName
}}
</text>
</view>
<view
style=
"margin: 12rpx 0"
>
<text
class=
"user_ComBg"
style=
"font-size: 24rpx"
>
累计金额
</text
>
<text
class=
"user_Number"
style=
"font-size: 24rpx"
>
¥
{{
item
.
TotalCommission
}}
</text
>
</view>
<view>
<text
class=
"user_ComBg"
style=
"font-size: 24rpx"
>
可体现金额
</text
>
<text
class=
"user_Number"
style=
"font-size: 24rpx"
>
¥
{{
item
.
CommissionWithdrawal
}}
</text
>
</view>
</view>
</view>
</view>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#f3f4f6"
/>
</scroll-view>
</view>
</
template
>
<u-action-sheet
:list=
"listTwo"
v-model=
"showInfoModel"
></u-action-sheet>
<u-modal
v-model=
"showRemarkBox"
:show-cancel-button=
"true"
title=
"修改备注"
contentSlot
@
confirm=
"Save"
>
<textarea
style=
"height: 120px"
class=
"inputRemark"
v-model=
"addMsg.Remark"
/>
</u-modal>
<!-- 扣除积分 -->
<u-modal
v-model=
"showKouchu"
:show-title=
"false"
:show-cancel-button=
"true"
contentSlot
@
confirm=
"SaveScore"
>
<!-- 扣除 -->
<
template
v-if=
"ScoreMsg.Type == 2"
>
<u-tabs
:list=
"listThree"
:is-scroll=
"false"
:current=
"currentScore"
@
change=
"changeScore"
:active-color=
"mainColor"
bg-color=
"#FFF"
height=
"80"
:show-bar=
"false"
></u-tabs>
<view
style=
"margin-top: 20rpx"
>
<input
v-if=
"currentScore == 0"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Integral"
placeholder=
"请填写扣除积分"
/>
<input
v-if=
"currentScore == 1"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Balance"
placeholder=
"请填写扣除金额"
/>
<input
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Description"
placeholder=
"请输入备注信息"
/>
</view>
</
template
>
<!-- 充值 -->
<
template
v-if=
"ScoreMsg.Type == 1"
>
<u-tabs
:list=
"listFour"
:is-scroll=
"false"
:current=
"currentScore"
@
change=
"changeScore"
:active-color=
"mainColor"
bg-color=
"#FFF"
height=
"80"
:show-bar=
"false"
></u-tabs>
<view
style=
"margin-top: 20rpx"
>
<input
v-if=
"currentScore == 0"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Integral"
placeholder=
"请填写充值积分"
/>
<input
v-if=
"currentScore == 1"
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Balance"
placeholder=
"请填写充值金额"
/>
<input
class=
"uni-input userManInput"
v-model=
"ScoreMsg.Description"
placeholder=
"请输入备注信息"
/>
</view>
</
template
>
</u-modal>
</view>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
components
:
{
data
()
{
return
{
},
pageTitle
:
"用户管理"
,
data
()
{
current
:
0
,
return
{
contentHeight
:
0
,
pageTitle
:
"用户管理"
,
mainColor
:
""
,
current
:
0
,
page_count
:
1
,
contentHeight
:
0
,
dataList
:
[],
mainColor
:
""
,
u
:
{},
page_count
:
1
,
msg
:
{
dataList
:
[],
pageIndex
:
1
,
u
:
{},
pageSize
:
15
,
msg
:
{
Name
:
""
,
pageIndex
:
1
,
Source
:
0
,
pageSize
:
15
,
MemberGrade
:
0
,
Name
:
""
,
Id
:
""
,
Source
:
0
,
Moblie
:
""
,
MemberGrade
:
0
,
StartTime
:
""
,
Id
:
""
,
EndTime
:
""
,
Moblie
:
""
,
},
StartTime
:
""
,
//分销商msg
EndTime
:
""
dsMsg
:
{
},
pageIndex
:
1
,
//分销商msg
pageSize
:
15
,
dsMsg
:
{
UserId
:
""
,
pageIndex
:
1
,
AuditStatus
:
0
,
pageSize
:
15
,
GradeId
:
-
1
,
UserId
:
''
,
Name
:
""
,
AuditStatus
:
0
,
Source
:
0
,
GradeId
:
-
1
,
NickName
:
""
,
Name
:
''
,
Mobile
:
""
,
Source
:
0
,
},
NickName
:
''
,
list
:
[
Mobile
:
''
{
},
name
:
"全部用户"
,
list
:
[{
},
name
:
'全部用户'
{
},
{
name
:
"分销商"
,
name
:
'分销商'
},
},
{
// {
name
:
'核销员'
// name: "核销员",
}],
// },
listTwo
:
[{
],
text
:
'修改备注'
listTwo
:
[
},
{
{
text
:
'修改会员等级'
text
:
"修改备注"
,
}],
},
listThree
:
[{
{
name
:
'扣积分'
text
:
"修改会员等级"
,
},
{
},
name
:
'扣金额'
],
}],
listThree
:
[
listFour
:
[{
{
name
:
'充积分'
name
:
"扣积分"
,
},
{
},
name
:
'充金额'
{
}],
name
:
"扣金额"
,
status
:
"loadmore"
,
},
loadText
:
{
],
loadmore
:
"轻轻上拉,加载更多"
,
listFour
:
[
loading
:
"努力加载中"
,
{
nomore
:
"没有更多了"
,
name
:
"充积分"
,
},
},
showInfoModel
:
false
,
{
addMsg
:
{
name
:
"充金额"
,
Id
:
''
,
},
SuperiorId
:
''
,
],
MemberGrade
:
''
,
status
:
"loadmore"
,
ContactWay
:
''
,
loadText
:
{
Remark
:
''
,
loadmore
:
"轻轻上拉,加载更多"
,
AliasName
:
''
,
loading
:
"努力加载中"
,
PostId
:
0
,
//职位
nomore
:
"没有更多了"
,
},
},
showRemarkBox
:
false
,
showInfoModel
:
false
,
showKouchu
:
false
,
addMsg
:
{
currentScore
:
0
,
Id
:
""
,
ScoreMsg
:
{
SuperiorId
:
""
,
MallBaseId
:
0
,
MemberGrade
:
""
,
Type
:
1
,
ContactWay
:
""
,
UserId
:
0
,
Remark
:
""
,
Integral
:
''
,
AliasName
:
""
,
Image
:
""
,
PostId
:
0
,
//职位
Description
:
""
,
},
Balance
:
''
showRemarkBox
:
false
,
},
showKouchu
:
false
,
};
currentScore
:
0
,
},
ScoreMsg
:
{
created
()
{
MallBaseId
:
0
,
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
Type
:
1
,
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
UserId
:
0
,
},
Integral
:
""
,
mounted
()
{
Image
:
""
,
uni
.
setNavigationBarTitle
({
Description
:
""
,
title
:
this
.
pageTitle
,
Balance
:
""
,
});
},
},
};
onLoad
:
function
(
option
)
{
},
//this.current = option.status || -1;
created
()
{
this
.
init
();
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
},
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
methods
:
{
},
change
(
index
)
{
mounted
()
{
this
.
current
=
index
;
uni
.
setNavigationBarTitle
({
this
.
dataList
=
[];
title
:
this
.
pageTitle
,
if
(
index
==
0
)
{
});
this
.
msg
.
pageIndex
=
1
;
},
this
.
init
();
onLoad
:
function
(
option
)
{
}
//this.current = option.status || -1;
//分销商
this
.
init
();
if
(
index
==
1
)
{
},
this
.
getDistriData
();
methods
:
{
}
change
(
index
)
{
},
this
.
current
=
index
;
init
(
type
)
{
this
.
dataList
=
[];
if
(
type
==
1
)
{
if
(
index
==
0
)
{
this
.
dataList
=
[];
this
.
msg
.
pageIndex
=
1
;
}
this
.
init
();
uni
.
showLoading
({
}
title
:
'加载中'
//分销商
});
if
(
index
==
1
)
{
this
.
requestAdmin
(
this
.
getDistriData
();
"/api/user/GetMemberUserPageList"
,
}
this
.
msg
,
},
(
res
)
=>
{
init
(
type
)
{
uni
.
hideLoading
();
if
(
type
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
dataList
=
[];
this
.
dataList
=
this
.
dataList
.
concat
(
res
.
data
.
pageData
);
}
this
.
page_count
=
res
.
data
.
pageCount
;
uni
.
showLoading
({
}
title
:
"加载中"
,
}
});
);
this
.
requestAdmin
(
"/api/user/GetMemberUserPageList"
,
this
.
msg
,
(
res
)
=>
{
},
uni
.
hideLoading
();
lower
(
e
)
{
if
(
res
.
resultCode
==
1
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
this
.
dataList
=
this
.
dataList
.
concat
(
res
.
data
.
pageData
);
this
.
msg
.
pageIndex
++
;
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
status
=
"loading"
;
}
this
.
init
();
});
}
else
{
},
this
.
status
=
"nomore"
;
lower
(
e
)
{
}
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
},
this
.
msg
.
pageIndex
++
;
//加载分销商
this
.
status
=
"loading"
;
lowerTwo
(
e
)
{
this
.
init
();
if
(
this
.
dsMsg
.
pageIndex
<
this
.
page_count
)
{
}
else
{
this
.
dsMsg
.
pageIndex
++
;
this
.
status
=
"nomore"
;
this
.
status
=
"loading"
;
}
this
.
getDistriData
();
},
}
else
{
//加载分销商
this
.
status
=
"nomore"
;
lowerTwo
(
e
)
{
}
if
(
this
.
dsMsg
.
pageIndex
<
this
.
page_count
)
{
},
this
.
dsMsg
.
pageIndex
++
;
//获取分销商
this
.
status
=
"loading"
;
getDistriData
(
type
)
{
this
.
getDistriData
();
if
(
type
==
1
)
{
}
else
{
this
.
dataList
=
[];
this
.
status
=
"nomore"
;
}
}
uni
.
showLoading
({
},
title
:
'加载中'
//获取分销商
});
getDistriData
(
type
)
{
this
.
requestAdmin
(
if
(
type
==
1
)
{
"/api/user/GetDistributorInfoPageList"
,
this
.
dataList
=
[];
this
.
dsMsg
,
}
(
res
)
=>
{
uni
.
showLoading
({
uni
.
hideLoading
();
title
:
"加载中"
,
if
(
res
.
resultCode
==
1
)
{
});
this
.
dataList
=
this
.
dataList
.
concat
(
res
.
data
.
pageData
);
this
.
requestAdmin
(
this
.
page_count
=
res
.
data
.
pageCount
;
"/api/user/GetDistributorInfoPageList"
,
}
this
.
dsMsg
,
}
(
res
)
=>
{
);
uni
.
hideLoading
();
},
if
(
res
.
resultCode
==
1
)
{
//点击修改获取信息
this
.
dataList
=
this
.
dataList
.
concat
(
res
.
data
.
pageData
);
getItemInfo
(
obj
)
{
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
addMsg
.
Id
=
obj
.
Id
;
}
this
.
addMsg
.
Remark
=
obj
.
Remark
;
}
this
.
showRemarkBox
=
true
;
);
},
},
//保存修改信息
//点击修改获取信息
Save
()
{
getItemInfo
(
obj
)
{
this
.
requestAdmin
(
"/api/user/SetMemberUserInfoForHT"
,
this
.
addMsg
,
res
=>
{
this
.
addMsg
.
Id
=
obj
.
Id
;
if
(
res
.
resultCode
==
1
)
{
this
.
addMsg
.
Remark
=
obj
.
Remark
;
this
.
init
(
1
);
this
.
showRemarkBox
=
true
;
this
.
showRemarkBox
=
false
;
},
}
else
{
//保存修改信息
uni
.
showToast
({
Save
()
{
title
:
res
.
data
.
message
this
.
requestAdmin
(
});
"/api/user/SetMemberUserInfoForHT"
,
}
this
.
addMsg
,
})
(
res
)
=>
{
},
if
(
res
.
resultCode
==
1
)
{
//点击扣除按钮
this
.
init
(
1
);
kouchuBtn
(
item
,
type
)
{
this
.
showRemarkBox
=
false
;
this
.
currentScore
=
0
;
}
else
{
this
.
ScoreMsg
.
Balance
=
''
;
uni
.
showToast
({
this
.
ScoreMsg
.
Integral
=
''
;
title
:
res
.
data
.
message
,
this
.
ScoreMsg
.
Description
=
''
;
});
this
.
ScoreMsg
.
Type
=
type
;
}
this
.
ScoreMsg
.
UserId
=
item
.
Id
;
}
this
.
ScoreMsg
.
MallBaseId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
MallBaseId
);
this
.
showKouchu
=
true
;
},
},
//点击扣除按钮
//change
kouchuBtn
(
item
,
type
)
{
changeScore
(
index
)
{
this
.
currentScore
=
0
;
this
.
currentScore
=
index
;
this
.
ScoreMsg
.
Balance
=
""
;
},
this
.
ScoreMsg
.
Integral
=
""
;
//保存积分扣除充值
this
.
ScoreMsg
.
Description
=
""
;
SaveScore
()
{
this
.
ScoreMsg
.
Type
=
type
;
let
cmd
=
''
this
.
ScoreMsg
.
UserId
=
item
.
Id
;
if
(
this
.
currentScore
==
0
)
{
this
.
ScoreMsg
.
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
;
cmd
=
"/api/user/SetMemberIntegralInfo"
;
this
.
showKouchu
=
true
;
}
else
{
},
cmd
=
"/api/user/SetMemberBalanceInfo"
;
//change
}
changeScore
(
index
)
{
this
.
requestAdmin
(
cmd
,
this
.
ScoreMsg
,(
res
)
=>
{
this
.
currentScore
=
index
;
if
(
res
.
resultCode
===
1
)
{
},
this
.
init
();
//保存积分扣除充值
this
.
showKouchu
=
false
;
SaveScore
()
{
uni
.
showToast
({
let
cmd
=
""
;
title
:
'保存成功'
,
if
(
this
.
currentScore
==
0
)
{
icon
:
'none'
,
cmd
=
"/api/user/SetMemberIntegralInfo"
;
})
}
else
{
}
else
{
cmd
=
"/api/user/SetMemberBalanceInfo"
;
uni
.
showToast
({
}
title
:
res
.
data
.
message
this
.
requestAdmin
(
});
cmd
,
}
this
.
ScoreMsg
,
},
(
res
)
=>
{
null
if
(
res
.
resultCode
===
1
)
{
);
this
.
init
();
}
this
.
showKouchu
=
false
;
}
uni
.
showToast
({
};
title
:
"保存成功"
,
icon
:
"none"
,
});
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
});
}
},
null
);
},
},
};
</
script
>
</
script
>
<
style
>
<
style
>
.userManage
{
.userManage
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
#f3f4f6
;
background
:
#f3f4f6
;
}
}
.userManage
.userList
{
.userManage
.userList
{
width
:
100%
;
width
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
20
rpx
;
padding
:
20
rpx
;
margin-bottom
:
25
rpx
;
margin-bottom
:
25
rpx
;
}
}
.user_Top
{
.user_Top
{
display
:
flex
;
display
:
flex
;
}
}
.orderList
.listBox
{
.orderList
.listBox
{
background
:
#fff
;
background
:
#fff
;
border-radius
:
10px
;
border-radius
:
10px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
padding
:
20px
;
padding
:
20px
;
width
:
100%
;
width
:
100%
;
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
}
}
.orderList
.listBox
.listBox_t
{
.orderList
.listBox
.listBox_t
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
color
:
#000
;
color
:
#000
;
}
}
.orderList
.listBox
.listBox_c
{
.orderList
.listBox
.listBox_c
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
}
}
.orderList
.listBox
.box_bottom
{
.orderList
.listBox
.box_bottom
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.orderList
.handle
{
.orderList
.handle
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
margin-top
:
10
rpx
;
margin-top
:
10
rpx
;
}
}
.orderList
.handle_item
{
.orderList
.handle_item
{
padding
:
0
24
rpx
;
padding
:
0
24
rpx
;
border
:
1px
solid
#c8c9cc
;
border
:
1px
solid
#c8c9cc
;
margin-left
:
20
rpx
;
margin-left
:
20
rpx
;
height
:
50
rpx
;
height
:
50
rpx
;
border-radius
:
25
rpx
;
border-radius
:
25
rpx
;
line-height
:
50
rpx
;
line-height
:
50
rpx
;
}
}
.listBox_c
.goodboxmore
{
.listBox_c
.goodboxmore
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
align-items
:
center
;
align-items
:
center
;
}
}
.listBox_c
.goodboxmore
.good-list
{
.listBox_c
.goodboxmore
.good-list
{
display
:
flex
;
display
:
flex
;
flex
:
1
;
flex
:
1
;
overflow-x
:
auto
;
overflow-x
:
auto
;
}
}
.listBox_c
.goodboxmore
.good-list
.item
{
.listBox_c
.goodboxmore
.good-list
.item
{
width
:
70px
;
width
:
70px
;
height
:
70px
;
height
:
70px
;
border-radius
:
5px
;
border-radius
:
5px
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.listBox_c
.goodboxmore
.infos
{
.listBox_c
.goodboxmore
.infos
{
margin-left
:
15px
;
margin-left
:
15px
;
}
}
.listBox_c
.goodboxmore
.infos
.text
{
.listBox_c
.goodboxmore
.infos
.text
{
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
font-size
:
12px
;
margin-top
:
5px
;
margin-top
:
5px
;
}
}
.listBox_c
.left
{
.listBox_c
.left
{
flex
:
1
;
flex
:
1
;
color
:
#232323
;
color
:
#232323
;
font-size
:
16px
;
font-size
:
16px
;
flex
:
1
;
flex
:
1
;
font-family
:
"oswald"
;
font-family
:
"oswald"
;
}
}
.listBox_c
.small
{
.listBox_c
.small
{
font-size
:
13px
;
font-size
:
13px
;
}
}
.listBox_c
.topic_cont_text
{
.listBox_c
.topic_cont_text
{
font-size
:
30
rpx
;
font-size
:
30
rpx
;
max-height
:
90
rpx
;
max-height
:
90
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
word-break
:
break-all
;
word-break
:
break-all
;
/* break-all(允许在单词内换行。) */
/* break-all(允许在单词内换行。) */
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
/* 超出部分省略号 */
/* 超出部分省略号 */
display
:
-webkit-box
;
display
:
-webkit-box
;
/** 对象作为伸缩盒子模型显示 **/
/** 对象作为伸缩盒子模型显示 **/
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
/** 设置或检索伸缩盒对象的子元素的排列方式 **/
/** 设置或检索伸缩盒对象的子元素的排列方式 **/
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
/** 显示的行数 **/
/** 显示的行数 **/
}
}
.Um_Search
{
.Um_Search
{
width
:
100%
;
width
:
100%
;
padding
:
30
rpx
40
rpx
;
padding
:
30
rpx
40
rpx
;
background-color
:
#EFEFF4
;
background-color
:
#efeff4
;
}
}
.userManage
.u-content
{
.userManage
.u-content
{
background-color
:
#fff
!important
;
background-color
:
#fff
!important
;
}
}
.userName
{
.userName
{
font-size
:
30
rpx
;
font-size
:
30
rpx
;
color
:
#000
;
color
:
#000
;
}
}
.AliasName
{
.userLevel
{
font-size
:
20
rpx
;
font-size
:
26
rpx
;
line-height
:
30
rpx
;
color
:
#999999
;
color
:
#999999
;
margin-left
:
10
rpx
;
white-space
:
nowrap
;
}
overflow
:
hidden
;
text-overflow
:
ellipsis
;
.user_Header
{
}
width
:
100
rpx
;
.userLevel
{
height
:
100
rpx
;
font-size
:
26
rpx
;
border-radius
:
10
rpx
;
color
:
#999999
;
overflow
:
hidden
;
margin-left
:
10
rpx
;
margin-right
:
20
rpx
;
}
}
.user_Header
{
.user_Header
img
{
width
:
100
rpx
;
border-radius
:
10
rpx
;
height
:
100
rpx
;
}
border-radius
:
10
rpx
;
overflow
:
hidden
;
.user_ScoreBwt
{
margin-right
:
20
rpx
;
display
:
flex
;
}
margin-top
:
20
rpx
;
}
.user_Header
img
{
border-radius
:
10
rpx
;
.user_ComBg
{
}
background-color
:
#EFEFF4
;
color
:
#999999
;
.user_ScoreBwt
{
margin-right
:
20
rpx
;
display
:
flex
;
padding
:
3
rpx
8
rpx
;
margin-top
:
20
rpx
;
}
}
.user_Number
{
.user_ComBg
{
color
:
#999999
;
background-color
:
#efeff4
;
}
color
:
#999999
;
margin-right
:
20
rpx
;
.user_ScoreBwt
>
view
{
padding
:
3
rpx
8
rpx
;
width
:
50%
;
}
}
.user_Number
{
.ucustomStyle
{
color
:
#999999
;
margin-right
:
20
rpx
;
}
}
.user_ScoreBwt
>
view
{
.user_DisHeader
{
width
:
50%
;
width
:
130
rpx
;
}
height
:
130
rpx
;
border-radius
:
10
rpx
;
.ucustomStyle
{
overflow
:
hidden
;
margin-right
:
20
rpx
;
margin-right
:
20
rpx
;
}
}
.user_DisHeader
{
.inputRemark
{
width
:
130
rpx
;
border
:
1px
solid
#d1d1d1
;
height
:
130
rpx
;
margin
:
40
rpx
0
40
rpx
28
rpx
;
border-radius
:
10
rpx
;
padding
:
20
rpx
;
overflow
:
hidden
;
width
:
500
rpx
;
margin-right
:
20
rpx
;
}
}
.userManInput
{
.inputRemark
{
height
:
30px
;
border
:
1px
solid
#d1d1d1
;
border
:
1px
solid
#F2F3F6
;
margin
:
40
rpx
0
40
rpx
28
rpx
;
width
:
90%
;
padding
:
20
rpx
;
margin
:
auto
;
width
:
500
rpx
;
margin-bottom
:
20
rpx
;
}
}
.userManInput
{
height
:
60
rpx
;
border
:
1px
solid
#f2f3f6
;
width
:
90%
;
margin
:
auto
;
margin-bottom
:
20
rpx
;
background-color
:
#f7f7f7
;
box-sizing
:
border-box
;
font-size
:
26
rpx
;
padding
:
0
20
rpx
;
border-radius
:
10
rpx
;
}
/
deep
/
.u-model
{
border-radius
:
20
rpx
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment