version/0412
fanfan 8 months ago
parent becd98e618
commit 2355488852
  1. 11
      pages/news3/setOutRecords.vue

@ -105,6 +105,9 @@
<view v-if="goodsList.length==0" style="margin-top: 250rpx;"> <view v-if="goodsList.length==0" style="margin-top: 250rpx;">
<u-empty text="暂无记录~" mode="list"></u-empty> <u-empty text="暂无记录~" mode="list"></u-empty>
</view> </view>
<view class="goods-fd" v-if="classifyShow==2">
<view class="btn" @click="manualEntry">手动录入</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -128,24 +131,20 @@
}], }],
} }
}, },
onLoad(o) { onLoad(o) {},
this.getList(1)
},
// //
onUnload() { onUnload() {
// //
uni.$off('refreshData') uni.$off('refreshData')
}, },
onShow() { onShow() {
this.classifyShow =1 this.classifyShow = 1
uni.$on('refreshData', () => {
// //
if (this.classifyShow == 2) { if (this.classifyShow == 2) {
this.getOrderList(1); this.getOrderList(1);
} else { } else {
this.getList(1) this.getList(1)
} }
})
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.pageNum = 1; this.pageNum = 1;

Loading…
Cancel
Save