Commit e942705d by cen

feat: 新增暂无数据

1 parent f0b929a7
...@@ -228,7 +228,6 @@ export default { ...@@ -228,7 +228,6 @@ export default {
handler(newVal) { handler(newVal) {
if (newVal) { if (newVal) {
console.log('接收到的交易数据:', newVal) console.log('接收到的交易数据:', newVal)
console.log(this.transmissionOfData, 'this.transmissionOfData')
this.getPositionList() this.getPositionList()
// "this.transmissionOfData.orderCode" // "this.transmissionOfData.orderCode"
this.getDetail(this.transmissionOfData.orderCode) this.getDetail(this.transmissionOfData.orderCode)
......
...@@ -69,6 +69,10 @@ ...@@ -69,6 +69,10 @@
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view> <view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view> </view>
</view> </view>
<view class="nothing flex" v-else>
<image class="icon" src="@/assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view> </scroll-view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" v-show="activeIndex === 1" @scrolltolower="pageonReachBottom"> <scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" v-show="activeIndex === 1" @scrolltolower="pageonReachBottom">
...@@ -97,6 +101,10 @@ ...@@ -97,6 +101,10 @@
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view> <view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view> </view>
</view> </view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view> </scroll-view>
</view> </view>
</template> </template>
...@@ -268,7 +276,8 @@ export default { ...@@ -268,7 +276,8 @@ export default {
uni.$api.boutiqueApi uni.$api.boutiqueApi
.statByStatus({ .statByStatus({
...this.searchObj, ...this.searchObj,
keyword: this.keyword keyword: this.keyword,
sceneType: 1
}) })
.then(result => { .then(result => {
const labelList = ['totalCount', 'waitUpgradeCount', 'upgradedCount', 'notUpgradeCount'] const labelList = ['totalCount', 'waitUpgradeCount', 'upgradedCount', 'notUpgradeCount']
...@@ -709,6 +718,24 @@ export default { ...@@ -709,6 +718,24 @@ export default {
margin-left: toRpx(20); margin-left: toRpx(20);
} }
} }
.nothing {
width: 100%;
height: toRpx(228);
flex-direction: column;
margin-top: toRpx(76);
font-size: toRpx(24);
color: #999999;
box-sizing: border-box;
&.big-height {
height: toRpx(234);
}
.icon {
width: toRpx(288);
height: toRpx(144);
margin-bottom: toRpx(4);
}
}
} }
.footer-box { .footer-box {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!