feat/task1-c-wallet
parent
f9c6a1bc9a
commit
51db4d5d67
|
|
@ -154,7 +154,7 @@ textarea {
|
|||
padding: 80rpx 0;
|
||||
}
|
||||
.no-data-box image {
|
||||
width: 360rpx;
|
||||
width: 160rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.no-data-box .no-data-tips {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB |
|
|
@ -143,9 +143,7 @@ Page({
|
|||
if (app.fields_check(data, validation)) {
|
||||
// 加载loding
|
||||
my.showLoading({content: '提交中...'});
|
||||
this.setData({
|
||||
buy_submit_disabled_status: true,
|
||||
});
|
||||
this.setData({ buy_submit_disabled_status: true });
|
||||
|
||||
my.httpRequest({
|
||||
url: app.get_request_url("Add", "Buy"),
|
||||
|
|
@ -167,11 +165,12 @@ Page({
|
|||
type: "fail",
|
||||
content: res.data.msg
|
||||
});
|
||||
this.setData({ buy_submit_disabled_status: false });
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
my.hideLoading();
|
||||
self.setData({buy_submit_disabled_status: false});
|
||||
this.setData({buy_submit_disabled_status: false});
|
||||
|
||||
my.showToast({
|
||||
type: "fail",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<view class="page">
|
||||
<view a:if="{{data_list.length > 0}}" class="page">
|
||||
<view a:for="{{data_list}}" class="goods-item oh bg-white">
|
||||
<swipe-action index="{{index}}" restore="{{swipe_index === null || swipe_index !== index}}" right="{{item.right}}" onRightItemClick="right_item_event" onSwipeStart="swipe_start_event" extra="{{index}}">
|
||||
<!-- 选择 -->
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<vtabs
|
||||
a:if="{{data_list.length > 0}}"
|
||||
tabs="{{data_list}}"
|
||||
onTabClick="handle_event"
|
||||
onChange="change_event"
|
||||
|
|
@ -18,4 +19,10 @@
|
|||
</view>
|
||||
</vtab-content>
|
||||
</block>
|
||||
</vtabs>
|
||||
</vtabs>
|
||||
|
||||
<view a:if="{{data_list.length == 0 && data_list_loding_status != 0}}">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}">
|
||||
</template>
|
||||
</view>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
|
||||
<view a:if="{{data_list.length > 0}}" class="content">
|
||||
<scroll-view a:if="{{data_list.length > 0}}" scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
|
||||
<view class="content">
|
||||
<view class="data-card bg-white br-b" a:for="{{data_list}}">
|
||||
<view class="data-box oh">
|
||||
<text class="data-title">{{item.title}}</text>
|
||||
|
|
@ -14,4 +14,10 @@
|
|||
</view>
|
||||
<import src="/pages/common/bottom_line.axml" />
|
||||
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
|
||||
</scroll-view>
|
||||
</scroll-view>
|
||||
|
||||
<view a:if="{{data_list.length == 0 && data_list_loding_status != 0}}">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}">
|
||||
</template>
|
||||
</view>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<scroll-view scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
|
||||
<view a:if="{{data_list.length > 0}}" class="content">
|
||||
<scroll-view a:if="{{data_list.length > 0}}" scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
|
||||
<view class="content">
|
||||
<view class="data-card bg-white br-b" a:for="{{data_list}}">
|
||||
<view class="data-box oh">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
|
|
@ -19,4 +19,10 @@
|
|||
</view>
|
||||
<import src="/pages/common/bottom_line.axml" />
|
||||
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
|
||||
</scroll-view>
|
||||
</scroll-view>
|
||||
|
||||
<view a:if="{{data_list.length == 0 && data_list_loding_status != 0}}">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}">
|
||||
</template>
|
||||
</view>
|
||||
Loading…
Reference in New Issue