提交 51db4d5d 编写于 作者: D devil_gong

优化

上级 f9c6a1bc
......@@ -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 {
......
alipay/images/empty.png

5.7 KB | W: | H:

alipay/images/empty.png

2.6 KB | W: | H:

alipay/images/empty.png
alipay/images/empty.png
alipay/images/empty.png
alipay/images/empty.png
  • 2-up
  • Swipe
  • Onion skin
alipay/images/error.png

5.2 KB | W: | H:

alipay/images/error.png

2.7 KB | W: | H:

alipay/images/error.png
alipay/images/error.png
alipay/images/error.png
alipay/images/error.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -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",
......
<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}}">
<!-- 选择 -->
......
<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>
\ No newline at end of file
</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>
\ No newline at end of file
<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>
\ No newline at end of file
</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>
\ No newline at end of file
<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>
\ No newline at end of file
</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>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册