Commit 0cfc27c3 authored by 刘文虎's avatar 刘文虎

查报价空数据

parent d15d4072
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
</view> </view>
<!-- 滚动区域 --> <!-- 滚动区域 -->
<view class="scroll-panel" id="scroll-panel"> <view class="scroll-panel" id="scroll-panel">
<view class="list-box"> <NoData v-if="noData" :text="noDataText" customStyle="margin-top: 0rpx;" :imageName="noDataImage" />
<view class="list-box" v-else>
<view class="left"> <view class="left">
<scroll-view scroll-y :style="{ width: '100%', height: '100%' }"> <scroll-view scroll-y :style="{ width: '100%', height: '100%' }">
<view class="item" :class="{ active: index == leftIndex }" v-for="(item, index) in leftArray" :id="item.classA" :key="index" @click="leftTap(item, index)"> <view class="item" :class="{ active: index == leftIndex }" v-for="(item, index) in leftArray" :id="item.classA" :key="index" @click="leftTap(item, index)">
...@@ -83,6 +84,7 @@ ...@@ -83,6 +84,7 @@
</template> </template>
<script> <script>
import NoData from '@/components/no-data';
import QuotedPriceStep from '../components/quoted-price-step.vue'; import QuotedPriceStep from '../components/quoted-price-step.vue';
import UniCollapse from '@/components/uni-collapse/uni-collapse.vue'; import UniCollapse from '@/components/uni-collapse/uni-collapse.vue';
import UniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'; import UniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue';
...@@ -93,9 +95,11 @@ import CartPopup from './components/cart-popup.vue'; ...@@ -93,9 +95,11 @@ import CartPopup from './components/cart-popup.vue';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { getOffer } from '@/api/bill/quoted-price.js'; import { getOffer } from '@/api/bill/quoted-price.js';
export default { export default {
components: { QuotedPriceStep, UniCollapse, UniCollapseItem, QuotedPriceTips, CollapseBody, ShoppingCart, CartPopup }, components: { NoData,QuotedPriceStep, UniCollapse, UniCollapseItem, QuotedPriceTips, CollapseBody, ShoppingCart, CartPopup },
data() { data() {
return { return {
noDataText: '当前暂无内容',
noDataImage: 'bill/wuzhangdanneirong@3x.png',
form: { form: {
serviceType: '', serviceType: '',
brandCode: '', brandCode: '',
...@@ -110,14 +114,18 @@ export default { ...@@ -110,14 +114,18 @@ export default {
topArr: [], topArr: [],
leftIndex: 0, leftIndex: 0,
shoppingCartList: [], // 购物车商品 shoppingCartList: [], // 购物车商品
cartShow: false cartShow: false,
loaded: false,
}; };
}, },
computed: { computed: {
...mapGetters(['quotedPriceTooltip']) ...mapGetters(['quotedPriceTooltip']),
// mainData(){ // mainData(){
// return this.totalArray[this.leftIndex] // return this.totalArray[this.leftIndex]
// } // },
noData() {
return (this.totalArray || []).length == 0 && this.loaded;
}
}, },
onLoad(options) { onLoad(options) {
if (options) { if (options) {
...@@ -304,6 +312,7 @@ export default { ...@@ -304,6 +312,7 @@ export default {
console.log(e); console.log(e);
//TODO handle the exception //TODO handle the exception
} }
this.loaded=true
}, },
/* 左侧导航点击 */ /* 左侧导航点击 */
leftTap(item, index) { leftTap(item, index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment