Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
0cfc27c3
Commit
0cfc27c3
authored
Jul 27, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查报价空数据
parent
d15d4072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
price.vue
pages/bill/quoted-price/price/price.vue
+14
-5
No files found.
pages/bill/quoted-price/price/price.vue
View file @
0cfc27c3
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment