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

优化

上级 f9c6a1bc
...@@ -154,7 +154,7 @@ textarea { ...@@ -154,7 +154,7 @@ textarea {
padding: 80rpx 0; padding: 80rpx 0;
} }
.no-data-box image { .no-data-box image {
width: 360rpx; width: 160rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.no-data-box .no-data-tips { .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({ ...@@ -143,9 +143,7 @@ Page({
if (app.fields_check(data, validation)) { if (app.fields_check(data, validation)) {
// 加载loding // 加载loding
my.showLoading({content: '提交中...'}); my.showLoading({content: '提交中...'});
this.setData({ this.setData({ buy_submit_disabled_status: true });
buy_submit_disabled_status: true,
});
my.httpRequest({ my.httpRequest({
url: app.get_request_url("Add", "Buy"), url: app.get_request_url("Add", "Buy"),
...@@ -167,11 +165,12 @@ Page({ ...@@ -167,11 +165,12 @@ Page({
type: "fail", type: "fail",
content: res.data.msg content: res.data.msg
}); });
this.setData({ buy_submit_disabled_status: false });
} }
}, },
fail: () => { fail: () => {
my.hideLoading(); my.hideLoading();
self.setData({buy_submit_disabled_status: false}); this.setData({buy_submit_disabled_status: false});
my.showToast({ my.showToast({
type: "fail", 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"> <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}}"> <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 <vtabs
a:if="{{data_list.length > 0}}"
tabs="{{data_list}}" tabs="{{data_list}}"
onTabClick="handle_event" onTabClick="handle_event"
onChange="change_event" onChange="change_event"
...@@ -18,4 +19,10 @@ ...@@ -18,4 +19,10 @@
</view> </view>
</vtab-content> </vtab-content>
</block> </block>
</vtabs> </vtabs>
\ No newline at end of file
<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"> <scroll-view a:if="{{data_list.length > 0}}" scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view a:if="{{data_list.length > 0}}" class="content"> <view class="content">
<view class="data-card bg-white br-b" a:for="{{data_list}}"> <view class="data-card bg-white br-b" a:for="{{data_list}}">
<view class="data-box oh"> <view class="data-box oh">
<text class="data-title">{{item.title}}</text> <text class="data-title">{{item.title}}</text>
...@@ -14,4 +14,10 @@ ...@@ -14,4 +14,10 @@
</view> </view>
<import src="/pages/common/bottom_line.axml" /> <import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template> <template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</scroll-view> </scroll-view>
\ No newline at end of file
<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"> <scroll-view a:if="{{data_list.length > 0}}" scroll-y="{{true}}" class="scroll-box" onScrollToLower="scroll_lower" lower-threshold="30">
<view a:if="{{data_list.length > 0}}" class="content"> <view class="content">
<view class="data-card bg-white br-b" a:for="{{data_list}}"> <view class="data-card bg-white br-b" a:for="{{data_list}}">
<view class="data-box oh"> <view class="data-box oh">
<import src="/pages/common/nodata.axml" /> <import src="/pages/common/nodata.axml" />
...@@ -19,4 +19,10 @@ ...@@ -19,4 +19,10 @@
</view> </view>
<import src="/pages/common/bottom_line.axml" /> <import src="/pages/common/bottom_line.axml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template> <template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>
</scroll-view> </scroll-view>
\ No newline at end of file
<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.
先完成此消息的编辑!
想要评论请 注册