Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
e18ee443
Commit
e18ee443
authored
Mar 16, 2023
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
7c2d7e45
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
190 additions
and
127 deletions
+190
-127
utils.js
src/boot/utils.js
+2
-2
search_sf2.vue
src/components/search_sf/search_sf2.vue
+1
-0
kkday.vue
src/components/searchdata/kkday.vue
+180
-123
orderPreview.vue
src/components/trip/orderPreview.vue
+3
-1
detailsNew.vue
src/pages/detailsNew.vue
+4
-1
No files found.
src/boot/utils.js
View file @
e18ee443
...
@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() {
...
@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() {
domainUrl
=
"http://testapi.oytour.com"
;
domainUrl
=
"http://testapi.oytour.com"
;
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
domainUrl
=
"http://reborn.oytour.com"
;
//
domainUrl = 'http://192.168.10.206:8015' //'http://192.168.10.206:8015' ''http://192.168.10.11:8083' '
domainUrl
=
'http://192.168.10.206:8015'
//'http://192.168.10.206:8015' ''http://192.168.10.11:8083' '
}
}
var
obj
=
{
var
obj
=
{
//主地址
//主地址
...
@@ -41,7 +41,7 @@ Vue.prototype.domainManager = function() {
...
@@ -41,7 +41,7 @@ Vue.prototype.domainManager = function() {
//获取当前域名
//获取当前域名
Vue
.
prototype
.
GetDomain
=
function
()
{
Vue
.
prototype
.
GetDomain
=
function
()
{
var
domainNameUrl
=
window
.
location
.
hostname
;
var
domainNameUrl
=
window
.
location
.
hostname
;
domainNameUrl
=
"
www
.oytour.com"
;
domainNameUrl
=
"
t
.oytour.com"
;
return
domainNameUrl
;
return
domainNameUrl
;
}
}
Vue
.
prototype
.
groupBy
=
function
(
array
,
f
)
{
Vue
.
prototype
.
groupBy
=
function
(
array
,
f
)
{
...
...
src/components/search_sf/search_sf2.vue
View file @
e18ee443
...
@@ -145,6 +145,7 @@
...
@@ -145,6 +145,7 @@
@
focus=
"searchFocusHandler"
@
focus=
"searchFocusHandler"
@
blur=
"searchBlurHandler"
@
blur=
"searchBlurHandler"
@
keyup=
"searchChangeHandler"
@
keyup=
"searchChangeHandler"
@
keypress
.
enter
.
native=
"goSearchHandler"
/>
/>
<q-btn
<q-btn
dark-percentage
dark-percentage
...
...
src/components/searchdata/kkday.vue
View file @
e18ee443
<
template
>
<
template
>
<div
class=
"items-start q-mt-lg travel-list"
:class=
"$q.platform.is.desktop ? 'row' : 'colmuns'"
>
<div
class=
"items-start q-mt-lg travel-list"
:class=
"$q.platform.is.desktop ? 'row' : 'colmuns'"
>
<div
class=
"col-3"
:class=
"$q.platform.is.desktop ? 'q-mr-lg' : 'q-ma-md'"
>
<div
class=
"col-3"
:class=
"$q.platform.is.desktop ? 'q-mr-lg' : 'q-ma-md'"
>
<q-card
flat
class=
"rounded-borders q-py-md"
>
<q-card
flat
class=
"rounded-borders q-py-md"
>
<div
class=
"text-subtitle1 text-weight-bold q-mx-md"
>
篩選目的地
</div>
<div
class=
"text-subtitle1 text-weight-bold q-mx-md"
>
篩選目的地
</div>
...
@@ -61,7 +64,7 @@
...
@@ -61,7 +64,7 @@
:
options
=
"optionsFn"
:
options
=
"optionsFn"
range
range
@
range
-
end
=
"dateRangeHandler"
@
range
-
end
=
"dateRangeHandler"
mask
=
"YYYY
/MM/
DD"
mask
=
"YYYY
-MM-
DD"
><
/q-date
>
><
/q-date
>
<
/div
>
<
/div
>
<
/q-popup-proxy
>
<
/q-popup-proxy
>
...
@@ -78,7 +81,7 @@
...
@@ -78,7 +81,7 @@
:
min
=
"priceModel.min"
:
min
=
"priceModel.min"
:
max
=
"priceModel.max"
:
max
=
"priceModel.max"
:
step
=
"1"
:
step
=
"1"
@
input
=
"testHandler"
@
change
=
"testHandler"
color
=
"primary"
color
=
"primary"
class
=
"q-mt-md"
class
=
"q-mt-md"
/>
/>
...
@@ -152,14 +155,8 @@
...
@@ -152,14 +155,8 @@
<
/div
>
<
/div
>
<
div
class
=
"q-mt-lg"
v
-
if
=
"!$q.loading.isActive && DataList.length > 0"
>
<
div
class
=
"q-mt-lg"
v
-
if
=
"!$q.loading.isActive && DataList.length > 0"
>
<
div
<
div
class
=
"
class
=
"rounded-borders cursor-pointer overflow-hidden bg-white"
rounded-borders
:
class
=
"$q.platform.is.desktop ? 'row q-mb-md' : 'colmuns q-ma-md'"
cursor-pointer
overflow-hidden
bg-white
"
:
class
=
"$q.platform.is.desktop ? 'row q-mb-md' : 'colmuns q-ma-md'"
@
click
=
"GotoDetails(x)"
@
click
=
"GotoDetails(x)"
v
-
for
=
"(x, i) in DataList"
v
-
for
=
"(x, i) in DataList"
:
key
=
"i"
:
key
=
"i"
...
@@ -169,8 +166,8 @@
...
@@ -169,8 +166,8 @@
:
ratio
=
"1"
:
ratio
=
"1"
spinner
-
color
=
"grey"
spinner
-
color
=
"grey"
spinner
-
size
=
"20px"
spinner
-
size
=
"20px"
:
width
=
"$q.platform.is.desktop ? '272px' : ''"
:
width
=
"$q.platform.is.desktop ? '272px' : ''"
:
height
=
"$q.platform.is.desktop ? '' : '200px'"
:
height
=
"$q.platform.is.desktop ? '' : '200px'"
class
=
"bg-grey-3"
class
=
"bg-grey-3"
/>
/>
<
div
class
=
"q-pa-md col column"
>
<
div
class
=
"q-pa-md col column"
>
...
@@ -194,10 +191,7 @@
...
@@ -194,10 +191,7 @@
/>
/>
<
/div
>
<
/div
>
<
div
<
div
class
=
"
class
=
"text-subtitle2 text-grey-6 text-weight-regular ellipsis-2-lines"
text-subtitle2 text-grey-6 text-weight-regular
ellipsis-2-lines
"
style
=
"line-height: 1.6"
style
=
"line-height: 1.6"
>
>
{{
x
.
productRecommend
}}
{{
x
.
productRecommend
}}
...
@@ -371,9 +365,9 @@ export default {
...
@@ -371,9 +365,9 @@ export default {
TotalCount: 0,
TotalCount: 0,
PageCount: 0,
PageCount: 0,
priceModel: {
priceModel: {
min: 1,
min: 1,
max: 10
0000,
max: 3
0000,
}
}
,
}
;
}
;
}
,
}
,
created() {
created() {
...
@@ -383,10 +377,10 @@ export default {
...
@@ -383,10 +377,10 @@ export default {
this.initGoods();
this.initGoods();
this.msg.priceRange = {
this.msg.priceRange = {
min: 1,
min: 1,
max:
10
0000,
max:
3
0000,
}
;
}
;
this.msg.minPrice = 0;
this.msg.minPrice = 0;
this.msg.maxPrice =
10
0000;
this.msg.maxPrice =
3
0000;
this.dayArray.forEach((x) => {
this.dayArray.forEach((x) => {
x.checked = false;
x.checked = false;
}
);
}
);
...
@@ -395,19 +389,21 @@ export default {
...
@@ -395,19 +389,21 @@ export default {
}
,
}
,
mounted() {
mounted() {
var CategoryName = this.getUrlKey("
CategoryName
", window.location.href);
var CategoryName = this.getUrlKey("
CategoryName
", window.location.href);
if(CategoryName) {
if (CategoryName) {
let list = this.goodsType.find(item => item.CategoryName === CategoryName)
let list = this.goodsType.find(
let arr = []
(item) => item.CategoryName === CategoryName
list.children.forEach(item => {
);
arr.push(item.Id)
let arr = [];
if(item.children && item.children.length) {
list.children.forEach((item) => {
item.children.forEach(item2 => {
arr.push(item.Id);
arr.push(item2.Id)
if (item.children && item.children.length) {
}
)
item.children.forEach((item2) => {
arr.push(item2.Id);
}
);
}
}
}
)
}
)
;
this.ticked = arr
this.ticked = arr
;
}
}
}
,
}
,
methods: {
methods: {
handleSelected(target) {
handleSelected(target) {
...
@@ -419,7 +415,7 @@ export default {
...
@@ -419,7 +415,7 @@ export default {
}
,
}
,
handleAreaTicked(target) {
handleAreaTicked(target) {
this.areaTicked = target;
this.areaTicked = target;
console.log(
'this.areaTicked', target)
console.log(
"
this
.
areaTicked
", target);
this.msg.placeIds = this.getChoseAddressCity().join("
,
");
this.msg.placeIds = this.getChoseAddressCity().join("
,
");
this.goSearchHandler();
this.goSearchHandler();
}
,
}
,
...
@@ -481,16 +477,19 @@ export default {
...
@@ -481,16 +477,19 @@ export default {
let result = [];
let result = [];
function treeToArray(tree) {
function treeToArray(tree) {
return tree.reduce((res, item) => {
return tree.reduce((res, item) => {
const { children, ...i
}
= item
const { children, ...i
}
= item;
return res.concat(i, children && children.length ? treeToArray(children) : [])
return res.concat(
}
, [])
i,
children && children.length ? treeToArray(children) : []
);
}
, []);
}
}
const areaList = treeToArray(this.areaList)
const areaList = treeToArray(this.areaList)
;
console.log(
'>>>>>>>>>>>>>>>>>>>>>', areaList)
console.log(
"
>>>>>>>>>>>>>>>>>>>>>
", areaList);
areaList.forEach((item) => {
areaList.forEach((item) => {
if
(this.areaTicked.includes(item.Id)) {
if
(this.areaTicked.includes(item.Id)) {
let arr = item.DestinationList.map((item) => item.ID);
let arr = item.DestinationList.map((item) => item.ID);
result = result.concat(arr);
result = result.concat(arr);
}
}
}
);
}
);
return result;
return result;
...
@@ -519,7 +518,6 @@ export default {
...
@@ -519,7 +518,6 @@ export default {
}
);
}
);
this.msg.dayNumList = arr;
this.msg.dayNumList = arr;
this.goSearchHandler();
this.goSearchHandler();
}
,
}
,
optionsFn(cd) {
optionsFn(cd) {
return (
return (
...
@@ -571,48 +569,66 @@ export default {
...
@@ -571,48 +569,66 @@ export default {
}
);
}
);
this.goodsType.push(x);
this.goodsType.push(x);
}
);
}
);
this.goodsTypeJSON = JSON.stringify(this.goodsType)
this.goodsTypeJSON = JSON.stringify(this.goodsType)
;
if (this.msg.categoryId) {
if (this.msg.categoryId) {
this.$nextTick(() => {
this.$nextTick(() => {
this.$refs.category.setTicked([...new Set(arr)], true);
this.$refs.category.setTicked([...new Set(arr)], true);
}
);
}
);
}
}
}
,
}
,
dfs
(tree, ope, filter) {
dfs(tree, ope, filter) {
const walkAndCopy = (tree, depth = 1) => {
const walkAndCopy = (tree, depth = 1) => {
if(filter(tree)) {
if
(filter(tree)) {
const copy = {...tree
}
const copy = { ...tree
}
;
ope(tree.Name, depth)
ope(tree.Name, depth);
if
(tree.children) {
if
(tree.children) {
copy.children = []
copy.children = [];
tree.children.forEach((node) => {
tree.children.forEach((node) => {
const subTree = walkAndCopy(node, depth + 1)
const subTree = walkAndCopy(node, depth + 1);
subTree && copy.children.push(subTree)
subTree && copy.children.push(subTree);
}
)
}
);
}
}
return copy
return copy;
}
else if(tree && tree.children && tree.children.length) {
}
else if
(tree && tree.children && tree.children.length) {
const copy = {...tree
}
const copy = { ...tree
}
;
ope(tree.Name, depth)
ope(tree.Name, depth);
copy.Name = tree.Name
copy.Name = tree.Name;
if
(tree.children) {
if
(tree.children) {
copy.children = []
copy.children = [];
tree.children.forEach((node) => {
tree.children.forEach((node) => {
const subTree = walkAndCopy(node, depth + 1)
const subTree = walkAndCopy(node, depth + 1);
subTree && copy.children.push(subTree)
subTree && copy.children.push(subTree);
}
)
}
);
}
}
return copy
return copy;
}
}
}
}
;
return walkAndCopy(tree)
return walkAndCopy(tree);
}
,
}
,
changeAddrSearchHandler(v) {
changeAddrSearchHandler(v) {
this.areaListJSONTMP = JSON.parse(JSON.stringify(this.areaListJSON));
this.areaListJSONTMP = JSON.parse(JSON.stringify(this.areaListJSON));
let tree = this.dfs({Name: '', children: this.areaListJSONTMP
}
, (name, depth) => {
}
, ({Name
}
) => {return Name.indexOf(v) !== -1
}
)
let tree = this.dfs(
tree = this.dfs(tree, (name, depth) => {
}
, ({Name
}
) => {return Name.indexOf(v) !== -1
}
)
{ Name: "", children: this.areaListJSONTMP
}
,
tree = this.dfs(tree, (name, depth) => {
}
, ({Name
}
) => {return Name.indexOf(v) !== -1
}
)
(name, depth) => {
}
,
this.areaList = tree.children
({ Name
}
) => {
return Name.indexOf(v) !== -1;
}
);
tree = this.dfs(
tree,
(name, depth) => {
}
,
({ Name
}
) => {
return Name.indexOf(v) !== -1;
}
);
tree = this.dfs(
tree,
(name, depth) => {
}
,
({ Name
}
) => {
return Name.indexOf(v) !== -1;
}
);
this.areaList = tree.children;
// this.areaList.forEach(x => {
// this.areaList.forEach(x => {
// x.isShow = x.Name.indexOf(v) != -1;
// x.isShow = x.Name.indexOf(v) != -1;
// x.isShowChild = false;
// x.isShowChild = false;
...
@@ -647,7 +663,10 @@ export default {
...
@@ -647,7 +663,10 @@ export default {
var companyId = -1;
var companyId = -1;
if (localStorage.groupinfo) {
if (localStorage.groupinfo) {
var groupinfo = JSON.parse(localStorage.groupinfo);
var groupinfo = JSON.parse(localStorage.groupinfo);
companyId = groupinfo.siteList[0]&&groupinfo.siteList[0].companyId?groupinfo.siteList[0].companyId:-1;
companyId =
groupinfo.siteList[0] && groupinfo.siteList[0].companyId
? groupinfo.siteList[0].companyId
: -1;
}
}
if (localStorage.b2bUser) {
if (localStorage.b2bUser) {
var b2bUser = JSON.parse(window.localStorage.getItem("
b2bUser
"));
var b2bUser = JSON.parse(window.localStorage.getItem("
b2bUser
"));
...
@@ -665,9 +684,9 @@ export default {
...
@@ -665,9 +684,9 @@ export default {
if (res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.PageCount = res.data.data.pageCount;
this.PageCount = res.data.data.pageCount;
this.TotalCount = res.data.data.
pageData.
count;
this.TotalCount = res.data.data.count;
var tempArray = res.data.data.pageData.list;
var tempArray = res.data.data.pageData.list;
console.log(
'getSearch data', tempArray)
console.log(
"
getSearch
data
", tempArray);
if (tempArray && tempArray.length > 0) {
if (tempArray && tempArray.length > 0) {
// tempArray.forEach(item => {
// tempArray.forEach(item => {
// if (item.imgCover && item.imgCover != "") {
// if (item.imgCover && item.imgCover != "") {
...
@@ -682,7 +701,7 @@ export default {
...
@@ -682,7 +701,7 @@ export default {
//
}
//
}
//
}
);
//
}
);
this.DataList = tempArray;
this.DataList = tempArray;
this.renderSearchInfo(res.data.data.pageData.condition)
this.renderSearchInfo(res.data.data.pageData.condition)
;
this.$forceUpdate();
this.$forceUpdate();
}
}
}
}
...
@@ -691,52 +710,91 @@ export default {
...
@@ -691,52 +710,91 @@ export default {
);
);
}
,
}
,
renderSearchInfo(condition) {
renderSearchInfo(condition) {
if(!condition.length) {
if
(!condition.length) {
return
return
;
}
}
let areaInfo = condition.find(item => item.type === 1).list
let areaInfo = condition.find((item) => item.type === 1).list;
let dayInfo = condition.find(item => item.type === 2).list
let dayInfo = condition.find((item) => item.type === 2).list;
let priceInfo = condition.find(item => item.type === 3)
let priceInfo = condition.find((item) => item.type === 3);
let categoryInfo = condition.find(item => item.type === 4).list
let categoryInfo = condition.find((item) => item.type === 4).list;
// this.areaTicked = areaInfo;
// this.areaTicked = areaInfo;
this.areaListJSONTMP = JSON.parse(JSON.stringify(this.areaListJSON));
this.areaListJSONTMP = JSON.parse(JSON.stringify(this.areaListJSON));
let tree = this.dfs({Name: '', children: this.areaListJSONTMP
}
, (name, depth) => {
}
, ({Id
}
) => {return areaInfo.includes(Id)
}
)
let tree = this.dfs(
tree = this.dfs(tree, (name, depth) => {
}
, ({Id
}
) => {return areaInfo.includes(Id)
}
)
{ Name: "", children: this.areaListJSONTMP
}
,
tree = this.dfs(tree, (name, depth) => {
}
, ({Id
}
) => {return areaInfo.includes(Id)
}
)
(name, depth) => {
}
,
this.areaList = tree.children
({ Id
}
) => {
return areaInfo.includes(Id);
}
);
tree = this.dfs(
tree,
(name, depth) => {
}
,
({ Id
}
) => {
return areaInfo.includes(Id);
}
);
tree = this.dfs(
tree,
(name, depth) => {
}
,
({ Id
}
) => {
return areaInfo.includes(Id);
}
);
this.areaList = tree.children;
const categoryTmp = JSON.parse(this.goodsTypeJSON);
const categoryTmp = JSON.parse(this.goodsTypeJSON);
let category = this.dfs({Name: '', children: categoryTmp
}
, (name, depth) => {
}
, (item) => {return categoryInfo.includes(item.Id)
}
)
let category = this.dfs(
category = this.dfs(category, (name, depth) => {
}
, (item) => {return categoryInfo.includes(item.Id)
}
)
{ Name: "", children: categoryTmp
}
,
category = this.dfs(category, (name, depth) => {
}
, (item) => {return categoryInfo.includes(item.Id)
}
)
(name, depth) => {
}
,
this.goodsType = category.children
(item) => {
// this.ticked = categoryInfo;
return categoryInfo.includes(item.Id);
console.log('this.areaListJSONTMP', this.areaListJSONTMP, this.areaList)
}
this.priceModel = {min: priceInfo.minPrice, max: priceInfo.maxPrice
}
);
this.msg.priceRange = {min: priceInfo.minPrice, max: priceInfo.maxPrice
}
category = this.dfs(
let arr = []
category,
dayInfo.forEach(item => {
(name, depth) => {
}
,
if(item < 6) {
(item) => {
arr.push(item)
return categoryInfo.includes(item.Id);
}
else if(item === 7 || item ===8) {
}
arr.push(7)
);
}
else if(item === 8 || item ===10) {
category = this.dfs(
arr.push(8)
category,
}
else {
(name, depth) => {
}
,
arr.push(9)
(item) => {
}
return categoryInfo.includes(item.Id);
}
)
}
console.log('dayInfo', arr, dayInfo, this.dayArray)
);
// arr = [... new Set(arr)]
this.goodsType = category.children;
// this.dayArray.forEach(item => {
// this.ticked = categoryInfo;
// if(arr.includes(item.id)) {
console.log("
this
.
areaListJSONTMP
", this.areaListJSONTMP, this.areaList);
// item.checked = true
this.priceModel = { min: priceInfo.minPrice, max: priceInfo.maxPrice
}
;
//
}
this.msg.priceRange = {
//
}
)
min: priceInfo.minPrice,
this.dayArray = this.dayArray.filter(item => arr.includes(item.id))
max: priceInfo.maxPrice,
// this.msg.dayNumList = arr;
}
;
let arr = [];
dayInfo.forEach((item) => {
if (item < 6) {
arr.push(item);
}
else if (item === 7 || item === 8) {
arr.push(7);
}
else if (item === 8 || item === 10) {
arr.push(8);
}
else {
arr.push(9);
}
}
);
console.log("
dayInfo
", arr, dayInfo, this.dayArray);
// arr = [... new Set(arr)]
// this.dayArray.forEach(item => {
// if(arr.includes(item.id)) {
// item.checked = true
//
}
//
}
)
this.dayArray = this.dayArray.filter((item) => arr.includes(item.id));
// this.msg.dayNumList = arr;
}
,
}
,
GotoDetails(item) {
GotoDetails(item) {
this.CommonJump(item,
{
}
, 'blank'
);
this.CommonJump(item,
{
}
, "
blank
"
);
}
,
}
,
}
,
}
,
}
;
}
;
...
@@ -746,7 +804,6 @@ this.dayArray = this.dayArray.filter(item => arr.includes(item.id))
...
@@ -746,7 +804,6 @@ this.dayArray = this.dayArray.filter(item => arr.includes(item.id))
.addr-list:hover {
.addr-list:hover {
background: #f1416c1a;
background: #f1416c1a;
}
}
</style>
</style>
<style scoped>
<style scoped>
.price-stuff {
.price-stuff {
...
...
src/components/trip/orderPreview.vue
View file @
e18ee443
...
@@ -381,8 +381,10 @@ export default {
...
@@ -381,8 +381,10 @@ export default {
this
.
chosenObj
.
startDate
=
this
.
p
.
startDate
;
this
.
chosenObj
.
startDate
=
this
.
p
.
startDate
;
this
.
calcMoney
();
this
.
calcMoney
();
if
(
this
.
p
.
unionCityList
&&
this
.
p
.
unionCityList
.
length
>
0
&&
this
.
p
.
originalB2CPrice
==
this
.
p
.
RealPrice
){
if
(
this
.
p
.
unionCityList
&&
this
.
p
.
unionCityList
.
length
>
0
&&
this
.
p
.
originalB2CPrice
==
this
.
p
.
RealPrice
){
if
(
this
.
p
.
unionCityList
[
0
].
cityId
==
this
.
travel
.
startCityId
){
this
.
changeCityHandler
(
this
.
p
.
unionCityList
[
0
])
}
this
.
changeCityHandler
(
this
.
p
.
unionCityList
[
0
])
}
}
}
}
...
...
src/pages/detailsNew.vue
View file @
e18ee443
...
@@ -898,10 +898,13 @@ export default {
...
@@ -898,10 +898,13 @@ export default {
this
.
currentPrice
.
RealPrice
=
this
.
currentPrice
.
RealPrice
?
this
.
currentPrice
.
RealPrice
:
this
.
currentPrice
.
originalB2CPrice
this
.
currentPrice
.
RealPrice
=
this
.
currentPrice
.
RealPrice
?
this
.
currentPrice
.
RealPrice
:
this
.
currentPrice
.
originalB2CPrice
this
.
currentPrice
.
originalB2CPrice
=
this
.
currentPrice
.
RealPrice
this
.
currentPrice
.
originalB2CPrice
=
this
.
currentPrice
.
RealPrice
if
(
this
.
currentPrice
.
unionCityList
&&
this
.
currentPrice
.
unionCityList
.
length
>
0
&&
this
.
dataList
.
startCityId
!=
0
){
if
(
this
.
currentPrice
.
unionCityList
&&
this
.
currentPrice
.
unionCityList
.
length
>
0
&&
this
.
dataList
.
startCityId
!=
0
){
this
.
currentPrice
.
unionCityList
.
splice
(
0
,
0
,{
if
(
this
.
currentPrice
.
unionCityList
.
findIndex
(
x
=>
x
.
cityId
==
this
.
dataList
.
startCityId
)
==-
1
){
this
.
currentPrice
.
unionCityList
.
splice
(
0
,
0
,{
cityId
:
this
.
dataList
.
startCityId
,
cityId
:
this
.
dataList
.
startCityId
,
cityName
:
this
.
dataList
.
startCityName
cityName
:
this
.
dataList
.
startCityName
})
})
}
}
}
if
(
this
.
$q
.
platform
.
is
.
mobile
){
if
(
this
.
$q
.
platform
.
is
.
mobile
){
this
.
$refs
.
qDateProxy
.
hide
();
this
.
$refs
.
qDateProxy
.
hide
();
...
...
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