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 62036624
authored
Oct 19, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提现记录添加空状态
1 parent
392c4d85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
packageMine/pages/withdrawalNote/index.js
packageMine/pages/withdrawalNote/index.json
packageMine/pages/withdrawalNote/index.wxml
packageMine/pages/withdrawalNote/index.js
View file @
6203662
...
@@ -4,12 +4,10 @@ Page({
...
@@ -4,12 +4,10 @@ Page({
data
:
{
data
:
{
IMGURL
:
IMG_URL
,
IMGURL
:
IMG_URL
,
STATUSICON
:[
'wait'
,
'comlpete'
,
'fail'
],
STATUSICON
:[
'wait'
,
'comlpete'
,
'fail'
],
listData
:[]
listData
:[],
isNoResult
:
false
},
},
onRoute
(
options
){
onRoute
(
options
){
// let para = {
// status
// }
MineApi
.
getWithdrawalListApi
().
then
(
res
=>
{
MineApi
.
getWithdrawalListApi
().
then
(
res
=>
{
if
(
res
&&
res
.
length
){
if
(
res
&&
res
.
length
){
res
.
map
(
item
=>
{
res
.
map
(
item
=>
{
...
@@ -24,8 +22,10 @@ Page({
...
@@ -24,8 +22,10 @@ Page({
return
item
return
item
})
})
}
}
let
flag
=
res
.
length
?
false
:
true
this
.
setData
({
this
.
setData
({
listData
:
res
||
[]
listData
:
res
||
[],
isNoResult
:
flag
})
})
})
})
}
}
...
...
packageMine/pages/withdrawalNote/index.json
View file @
6203662
{
{
"usingComponents"
:
{},
"usingComponents"
:
{
"van-empty"
:
"@vant/weapp/empty/index"
},
"navigationBarTitleText"
:
"提现记录"
"navigationBarTitleText"
:
"提现记录"
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/withdrawalNote/index.wxml
View file @
6203662
<view class="container">
<view class="container">
<view class="title_widget flex_sc">
<view
wx:if="{{!isNoResult}}"
class="title_widget flex_sc">
<view class="text_1">提现记录</view>
<view class="text_1">提现记录</view>
<view class="text_2 marlf8">·</view>
<view class="text_2 marlf8">·</view>
<view class="text_2">{{listData.length}}</view>
<view class="text_2">{{listData.length}}</view>
</view>
</view>
<view class="list">
<view
wx:if="{{!isNoResult}}"
class="list">
<block wx:for="{{listData}}" wx:key="index">
<block wx:for="{{listData}}" wx:key="index">
<view class="element">
<view class="element">
<image mode="widthFix" class="bgicon" src="{{IMGURL}}status_{{STATUSICON[item.iconType]}}.png" />
<image mode="widthFix" class="bgicon" src="{{IMGURL}}status_{{STATUSICON[item.iconType]}}.png" />
...
@@ -24,4 +24,5 @@
...
@@ -24,4 +24,5 @@
</view>
</view>
</block>
</block>
</view>
</view>
<van-empty wx:if="{{isNoResult}}" description="暂无提现记录" />
</view>
</view>
\ No newline at end of file
\ No newline at end of file
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