Commit 73835638 authored by Facius's avatar Facius
parents b9c0e34f 3215f24e
Pipeline #2979 canceled with stages
...@@ -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) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="quick-color-cancel" :style="{ 'padding-top': platform == '3' ? 0 : statusBarHeight + 'px' }"><u-icon name="close" @click="toIndex"></u-icon></view> <view class="quick-color-cancel" :style="{ 'padding-top': platform == '3' ? 0 : statusBarHeight + 'px' }"><u-icon name="close" @click="toIndex"></u-icon></view>
</view> </view>
<view class="quick-background"> <view class="quick-background">
<image src="/static/image/login/startup/denglulogo@3x.png" mode="" class="quick-background-logo"></image> <image :src="logoImage" mode="" class="quick-background-logo"></image>
<image src="/static/image/index/shiyongbanshou@3x.png" mode="" class="quick-background-slogn"></image> <image src="/static/image/index/shiyongbanshou@3x.png" mode="" class="quick-background-slogn"></image>
</view> </view>
<view class="quick-mark"> <view class="quick-mark">
...@@ -42,11 +42,13 @@ ...@@ -42,11 +42,13 @@
</template> </template>
<script> <script>
import { baseUrl } from '@/utils/config.js';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
components: {}, components: {},
data() { data() {
return { return {
logoImage:baseUrl+'login-logo@3x.png',
agree: false, agree: false,
statusBarHeight: 20, statusBarHeight: 20,
loading: false loading: false
...@@ -202,13 +204,13 @@ export default { ...@@ -202,13 +204,13 @@ export default {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
&-logo { &-logo {
width: 144upx; width: 216upx;
height: 144upx; height: 216upx;
} }
&-slogn { &-slogn {
width: 362upx; width: 362upx;
height: 38upx; height: 38upx;
margin-top: 46upx; margin-top: 10upx;
} }
} }
&-mark { &-mark {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="quick-color-cancel" :style="{ 'padding-top': platform == '3' ? 0 : statusBarHeight + 'px' }"><u-icon name="close" @click="toIndex"></u-icon></view> <view class="quick-color-cancel" :style="{ 'padding-top': platform == '3' ? 0 : statusBarHeight + 'px' }"><u-icon name="close" @click="toIndex"></u-icon></view>
</view> </view>
<view class="quick-background"> <view class="quick-background">
<image src="/static/image/index/denglulogo@3x.png" mode="" class="quick-background-logo"></image> <image :src="logoImage" mode="" class="quick-background-logo"></image>
<image src="/static/image/index/shiyongbanshou@3x.png" mode="" class="quick-background-slogn"></image> <image src="/static/image/index/shiyongbanshou@3x.png" mode="" class="quick-background-slogn"></image>
</view> </view>
<view class="quick-mark"> <view class="quick-mark">
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
</view> </view>
</template> </template>
<script> <script>
import { baseUrl } from '@/utils/config.js';
import log from '@/utils/log.js'; import log from '@/utils/log.js';
import { showToast } from '@/utils/common.js'; import { showToast } from '@/utils/common.js';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
...@@ -26,6 +27,7 @@ export default { ...@@ -26,6 +27,7 @@ export default {
components: {}, components: {},
data() { data() {
return { return {
logoImage:baseUrl+'login-logo@3x.png',
needAuth: true, needAuth: true,
list: [ list: [
{ {
...@@ -445,13 +447,13 @@ export default { ...@@ -445,13 +447,13 @@ export default {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
&-logo { &-logo {
width: 144upx; width: 216upx;
height: 144upx; height: 216upx;
} }
&-slogn { &-slogn {
width: 362upx; width: 362upx;
height: 38upx; height: 38upx;
margin-top: 46upx; margin-top: 10upx;
} }
} }
&-mark { &-mark {
......
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