Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
8ebb48fa
Commit
8ebb48fa
authored
May 24, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/athena
parents
a67f9eba
01db7628
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
799 additions
and
21 deletions
+799
-21
App.vue
src/App.vue
+1
-1
Appointment.vue
src/components/LocalTour/Appointment.vue
+17
-11
OrderCenter.vue
src/components/newPersonalCenter/block/OrderCenter.vue
+4
-0
NewTKtable.vue
...wPersonalCenter/block/model/OrderInfoModel/NewTKtable.vue
+598
-0
TCTable.vue
.../newPersonalCenter/block/model/OrderInfoModel/TCTable.vue
+1
-1
TQOrder.vue
src/components/newPersonalCenter/block/model/TQOrder.vue
+167
-0
TdOrder.vue
src/components/newPersonalCenter/block/model/TdOrder.vue
+1
-0
TkOrder.vue
src/components/newPersonalCenter/block/model/TkOrder.vue
+5
-3
index.js
src/plugins/index.js
+5
-5
No files found.
src/App.vue
View file @
8ebb48fa
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
<
style
>
<
style
>
@import
'./assets/global/font.css'
;
@import
'./assets/global/font.css'
;
@import
'//at.alicdn.com/t/font_863923_
naoz0fqofi
.css'
;
@import
'//at.alicdn.com/t/font_863923_
8f4ml296bz3
.css'
;
@import
'./assets/global/global.css'
;
@import
'./assets/global/global.css'
;
body
,
html
{
body
,
html
{
padding
:
0px
;
padding
:
0px
;
...
...
src/components/LocalTour/Appointment.vue
View file @
8ebb48fa
...
@@ -172,7 +172,6 @@ export default {
...
@@ -172,7 +172,6 @@ export default {
created
(){
created
(){
let
userInfo
=
JSON
.
parse
(
localStorage
.
userInfo
);
let
userInfo
=
JSON
.
parse
(
localStorage
.
userInfo
);
this
.
form
.
customerId
=
userInfo
.
customerId
;
this
.
form
.
customerId
=
userInfo
.
customerId
;
// console.log("StorageInfo.customerId",userInfo.customerId);
this
.
dataDes
=
JSON
.
parse
(
sessionStorage
.
dataDes
);
this
.
dataDes
=
JSON
.
parse
(
sessionStorage
.
dataDes
);
this
.
Ticketinfo
=
JSON
.
parse
(
sessionStorage
.
Ticketinfo
);
this
.
Ticketinfo
=
JSON
.
parse
(
sessionStorage
.
Ticketinfo
);
this
.
price
=
(
this
.
Ticketinfo
.
b2bPrice
*
this
.
form
.
purchaseQuantity
).
toFixed
(
2
);
this
.
price
=
(
this
.
Ticketinfo
.
b2bPrice
*
this
.
form
.
purchaseQuantity
).
toFixed
(
2
);
...
@@ -270,7 +269,6 @@ export default {
...
@@ -270,7 +269,6 @@ export default {
}
else
{
}
else
{
this
.
SettlementPrice
=
this
.
price
this
.
SettlementPrice
=
this
.
price
}
}
console
.
log
(
"SettlementPrice"
,
this
.
SettlementPrice
)
// this.SettlementPrice=parseInt(this.SettlementPrice).toFixed(2);
// this.SettlementPrice=parseInt(this.SettlementPrice).toFixed(2);
let
allmonney
=
this
.
price
-
this
.
SettlementPrice
;
let
allmonney
=
this
.
price
-
this
.
SettlementPrice
;
this
.
form
.
discountMoney
=
(
this
.
price
-
this
.
SettlementPrice
).
toFixed
(
2
);
this
.
form
.
discountMoney
=
(
this
.
price
-
this
.
SettlementPrice
).
toFixed
(
2
);
...
@@ -374,10 +372,16 @@ export default {
...
@@ -374,10 +372,16 @@ export default {
}
}
let
DayList
=
[];
let
DayList
=
[];
// this.timeStr.forEach(time=>{
// this.timeStr.forEach(time=>{
// console.log("time",time)
let
len
=
this
.
timeStr
.
length
;
MonthdayList
.
forEach
(
item
=>
{
MonthdayList
.
forEach
(
item
=>
{
if
(
moment
(
this
.
timeStr
[
len
-
1
].
endDate
).
isBefore
(
MonthdayList
[
0
].
dateStr
)){
let
msg
=
{
dateStr
:
item
.
dateStr
,
};
DayList
.
push
(
msg
)
}
this
.
timeStr
.
forEach
(
time
=>
{
this
.
timeStr
.
forEach
(
time
=>
{
if
(
moment
(
time
.
startDate
).
isBefore
(
item
.
dateStr
)
&&
moment
(
item
.
dateStr
).
isBefore
(
time
.
endDate
)){
if
(
moment
(
time
.
startDate
).
isBefore
(
item
.
dateStr
)
&&
moment
(
item
.
dateStr
).
isBefore
(
time
.
endDate
)){
let
msg
=
{
let
msg
=
{
price
:
time
.
b2bPrice
,
price
:
time
.
b2bPrice
,
...
@@ -389,15 +393,17 @@ export default {
...
@@ -389,15 +393,17 @@ export default {
};
};
DayList
.
push
(
msg
)
DayList
.
push
(
msg
)
}
}
// else{
// let date={
// dateStr:item.dateStr,
// }
// DayList.push(date)
// }
})
})
if
(
this
.
timeStr
.
length
<
1
){
let
msg
=
{
dateStr
:
item
.
dateStr
,
};
DayList
.
push
(
msg
)
}
})
})
console
.
log
(
"DayList"
,
DayList
)
this
.
creatCalendar
(
DayList
);
this
.
creatCalendar
(
DayList
);
},
},
...
...
src/components/newPersonalCenter/block/OrderCenter.vue
View file @
8ebb48fa
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
<TzOrder
v-if=
"data === '8-2'"
/>
<TzOrder
v-if=
"data === '8-2'"
/>
<!-- 定制游订单 -->
<!-- 定制游订单 -->
<TdOrder
v-if=
"data === '8-7'"
/>
<TdOrder
v-if=
"data === '8-7'"
/>
<!-- 签证订单 -->
<TQOrder
v-if=
"data === '8-4'"
/>
<!-- 机票订单 -->
<!-- 机票订单 -->
<TkOrder
v-if=
"data === '8-5'"
/>
<TkOrder
v-if=
"data === '8-5'"
/>
<!-- 景点门票订单 -->
<!-- 景点门票订单 -->
...
@@ -20,6 +22,7 @@
...
@@ -20,6 +22,7 @@
<
script
>
<
script
>
import
TcOrder
from
'./model/TcOrder'
import
TcOrder
from
'./model/TcOrder'
import
TdOrder
from
'./model/TdOrder'
import
TdOrder
from
'./model/TdOrder'
import
TQOrder
from
'./model/TQOrder'
import
TzOrder
from
'./model/TzOrder'
import
TzOrder
from
'./model/TzOrder'
import
TkOrder
from
'./model/TkOrder'
import
TkOrder
from
'./model/TkOrder'
import
ScenOrder
from
'./model/ScenOrder'
import
ScenOrder
from
'./model/ScenOrder'
...
@@ -33,6 +36,7 @@ export default {
...
@@ -33,6 +36,7 @@ export default {
TkOrder
:
TkOrder
,
TkOrder
:
TkOrder
,
TzOrder
:
TzOrder
,
TzOrder
:
TzOrder
,
ScenOrder
:
ScenOrder
,
ScenOrder
:
ScenOrder
,
TQOrder
:
TQOrder
,
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/components/newPersonalCenter/block/model/OrderInfoModel/NewTKtable.vue
0 → 100644
View file @
8ebb48fa
This diff is collapsed.
Click to expand it.
src/components/newPersonalCenter/block/model/OrderInfoModel/TCTable.vue
View file @
8ebb48fa
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<p>
婴儿:0
</p>
<p>
婴儿:0
</p>
</td>
</td>
<td
class=
"money"
>
<td
class=
"money"
>
<p>
总额 ¥
8680.00
</p>
<p>
总额 ¥
{{
item
.
preferPrice
|
priceFormat
}}
</p>
<p
class=
"__cp pay_no"
v-if=
"!item.payShow"
@
click=
"item.payShow = true"
>
已付总额 ¥8680.00
<i
class=
"iconfont icon-xia"
></i></p>
<p
class=
"__cp pay_no"
v-if=
"!item.payShow"
@
click=
"item.payShow = true"
>
已付总额 ¥8680.00
<i
class=
"iconfont icon-xia"
></i></p>
<p
class=
"__cp pay_no"
v-if=
"item.payShow"
@
click=
"item.payShow = false"
>
已付总额 ¥8680.00
<i
class=
"iconfont icon-xia shang"
></i></p>
<p
class=
"__cp pay_no"
v-if=
"item.payShow"
@
click=
"item.payShow = false"
>
已付总额 ¥8680.00
<i
class=
"iconfont icon-xia shang"
></i></p>
<!-- :class="
{height_aotu: item.payShow}" -->
<!-- :class="
{height_aotu: item.payShow}" -->
...
...
src/components/newPersonalCenter/block/model/TQOrder.vue
0 → 100644
View file @
8ebb48fa
<
style
>
/* 定制游订单 */
@import
"../../../../assets/css/newPersonalCenter/block/OrderCenter.css"
;
</
style
>
<
template
>
<el-row
class=
"OrderCenter"
>
<!-- 条件 -->
<ul
class=
"clearfix"
>
<template
v-for=
"item in TitList"
>
<li
:key=
"item.ID"
class=
"__cp"
@
click=
"handleClick(item)"
:class=
"
{_active: activeName === item.ID}"
>
{{
item
.
Type
}}
</li>
</
template
>
</ul>
<!-- 表格 -->
<TCTable
:tableData=
"tableData"
/>
<div
class=
"empty-data"
v-if=
"tableData.length<1"
>
<i
class=
"iconfont icon-kong"
></i>
很抱歉,你想要的信息我们真的找不到了
</div>
<!-- 分页 -->
<el-row
class=
"_pagination"
v-if=
"totalCount > 1 && tableData.length>0"
>
<el-pagination
:current-page
.
sync=
"currentPage"
:page-size=
"getOrderMsg.pageSize"
layout=
"total, prev, pager, next"
:total=
"Count"
@
current-change=
"handleCurrentChange"
></el-pagination>
</el-row>
</el-row>
</template>
<
script
>
import
TCTable
from
"./OrderInfoModel/TCTable"
;
export
default
{
components
:
{
TCTable
:
TCTable
},
data
()
{
return
{
activeName
:
-
1
,
currentPage
:
1
,
rderLoading
:
false
,
totalCount
:
1
,
Count
:
1
,
WaitDealOrderPageList
:
""
,
getOrderMsg
:
{
pageIndex
:
1
,
pageSize
:
10
,
orderType
:
5
,
queryDays
:
0
,
orderState
:
-
1
,
CustomerId
:
""
},
TitList
:
[
{
Type
:
"全部"
,
ID
:
-
1
},
{
Type
:
"待付定金"
,
ID
:
1
},
{
Type
:
"待付尾款"
,
ID
:
2
},
{
Type
:
"待发团"
,
ID
:
3
},
{
Type
:
"交易完成"
,
ID
:
4
},
{
Type
:
"取消"
,
ID
:
5
}
// {
// val: 6,
// lable: '等待商家确认'
// },
// {
// val: 7,
// lable: '退款中'
// },
// {
// val: 8,
// lable: '退款成功'
// },
// {
// val: 9,
// lable: '交易完成'
// },
],
tableData
:
[]
};
},
computed
:
{},
created
()
{
},
mounted
()
{
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
""
;
this
.
getOrderMsg
.
CustomerId
=
userInfo
.
customerId
;
this
.
gerOrderList
();
this
.
b2b_get_GetWaitDealOrderPageList
();
},
methods
:
{
b2b_get_GetWaitDealOrderPageList
()
{
//获取待处理订单
let
msg
=
{
pageIndex
:
1
,
pageSize
:
100
};
this
.
apipost
(
"b2b_get_GetWaitDealOrderPageList"
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
this
.
WaitDealOrderPageList
=
r
.
data
.
data
.
pageData
;
}
else
{
this
.
$message
.
error
(
r
.
data
.
message
);
}
},
null
);
},
gerOrderList
:
function
()
{
this
.
orderLoading
=
true
;
this
.
apiJavaPost
(
"/api/b2b/user/getrecentorder"
,
this
.
getOrderMsg
,
res
=>
{
// console.log("sss",res)
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tableData
=
res
.
data
.
data
;
console
.
log
(
"签证订单"
,
this
.
tableData
)
this
.
totalCount
=
res
.
data
.
data
.
pageCount
;
this
.
Count
=
res
.
data
.
data
.
count
;
this
.
orderLoading
=
false
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
orderLoading
=
false
;
}
},
null
);
},
handleClick
(
item
)
{
this
.
activeName
=
item
.
ID
;
this
.
getOrderMsg
.
orderState
=
item
.
ID
;
this
.
gerOrderList
();
},
handleCurrentChange
(
val
)
{
// 翻页
this
.
getOrderMsg
.
pageIndex
=
parseInt
(
val
);
this
.
gerOrderList
();
}
}
};
</
script
>
src/components/newPersonalCenter/block/model/TdOrder.vue
View file @
8ebb48fa
<
style
>
<
style
>
/* 定制游订单 */
@import
"../../../../assets/css/newPersonalCenter/block/OrderCenter.css"
;
@import
"../../../../assets/css/newPersonalCenter/block/OrderCenter.css"
;
</
style
>
</
style
>
<
template
>
<
template
>
...
...
src/components/newPersonalCenter/block/model/TkOrder.vue
View file @
8ebb48fa
<
style
>
<
style
>
/* 机票订单 */
@import
"../../../../assets/css/newPersonalCenter/block/OrderCenter.css"
;
@import
"../../../../assets/css/newPersonalCenter/block/OrderCenter.css"
;
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -14,7 +15,7 @@
...
@@ -14,7 +15,7 @@
</
template
>
</
template
>
</ul>
</ul>
<!-- 表格 -->
<!-- 表格 -->
<
TKT
able
:tableData=
"tableData"
/>
<
NewTKt
able
:tableData=
"tableData"
/>
<div
class=
"empty-data"
v-if=
"tableData.length<1"
>
<div
class=
"empty-data"
v-if=
"tableData.length<1"
>
<i
class=
"iconfont icon-kong"
></i>
<i
class=
"iconfont icon-kong"
></i>
很抱歉,你想要的信息我们真的找不到了
很抱歉,你想要的信息我们真的找不到了
...
@@ -32,10 +33,10 @@
...
@@ -32,10 +33,10 @@
</el-row>
</el-row>
</template>
</template>
<
script
>
<
script
>
import
TKTable
from
"./OrderInfoModel/TKT
able"
;
import
NewTKtable
from
"./OrderInfoModel/NewTKt
able"
;
export
default
{
export
default
{
components
:
{
components
:
{
TKTable
:
TKT
able
NewTKtable
:
NewTKt
able
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -136,6 +137,7 @@ export default {
...
@@ -136,6 +137,7 @@ export default {
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
res
.
data
.
data
.
pageData
;
console
.
log
(
"机票订单"
,
this
.
tableData
)
this
.
totalCount
=
res
.
data
.
data
.
pageCount
;
this
.
totalCount
=
res
.
data
.
data
.
pageCount
;
this
.
Count
=
res
.
data
.
data
.
count
;
this
.
Count
=
res
.
data
.
data
.
count
;
this
.
orderLoading
=
false
;
this
.
orderLoading
=
false
;
...
...
src/plugins/index.js
View file @
8ebb48fa
...
@@ -18,7 +18,7 @@ export default {
...
@@ -18,7 +18,7 @@ export default {
// let domainUrl = "https://reborn.oytour.com"; //刘东主域名
// let domainUrl = "https://reborn.oytour.com"; //刘东主域名
let
domainUrl
=
"https://reborn.oytour.com"
;
let
domainUrl
=
"https://reborn.oytour.com"
;
// var domainUrl = "http://test.viitto.com"
// var domainUrl = "http://test.viitto.com"
//
domainUrl = "http://192.168.2.214:8082"
domainUrl
=
"http://192.168.2.214:8082"
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
if
(
this
.
isOnline
())
{
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'viitto.com'
)
!=
-
1
)
if
(
window
.
location
.
host
.
indexOf
(
'viitto.com'
)
!=
-
1
)
...
@@ -31,7 +31,7 @@ export default {
...
@@ -31,7 +31,7 @@ export default {
DomainUrl
:
domainUrl
,
DomainUrl
:
domainUrl
,
//常用提交数据URL
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
PostUrl
:
domainUrl
+
"/api/common/post"
,
javaUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.
106
:9000"
,
javaUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://efficient.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.
215
:9000"
,
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.2.214:8130'
,
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.2.214:8130'
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://upload.oytour.com"
:
"http://192.168.2.214:8120"
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
"http://upload.oytour.com"
:
"http://192.168.2.214:8120"
,
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
var
key
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
S
ecretKey
;
key
=
this
.
getLocalStorage
().
s
ecretKey
;
}
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
...
@@ -172,7 +172,7 @@ export default {
...
@@ -172,7 +172,7 @@ export default {
var
key
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
S
ecretKey
;
key
=
this
.
getLocalStorage
().
s
ecretKey
;
}
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
...
@@ -219,7 +219,7 @@ export default {
...
@@ -219,7 +219,7 @@ export default {
// let uid = userInfo.accountId ? userInfo.accountId : 0
// let uid = userInfo.accountId ? userInfo.accountId : 0
if
(
this
.
getLocalStorage
()
!=
null
)
{
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
S
ecretKey
;
key
=
this
.
getLocalStorage
().
s
ecretKey
;
}
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
md5Str
=
md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
...
...
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