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
13e85237
Commit
13e85237
authored
Sep 06, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9f82e8fb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
44 deletions
+25
-44
Appointment.vue
src/components/LocalTour/Appointment.vue
+4
-4
LocalCuisineDetails.vue
src/components/LocalTour/LocalCuisineDetails.vue
+7
-7
FoodTable.vue
...ewPersonalCenter/block/model/OrderInfoModel/FoodTable.vue
+6
-13
index.js
src/plugins/index.js
+8
-20
No files found.
src/components/LocalTour/Appointment.vue
View file @
13e85237
...
...
@@ -263,14 +263,14 @@ export default {
})
this
.
CouponIds
=
CouponIds
if
(
type
===
1
)
{
this
.
SettlementPrice
=
this
.
price
-
CouponMoney
this
.
SettlementPrice
=
Math
.
round
((
this
.
price
-
CouponMoney
)
*
100
)
/
100
}
else
if
(
type
===
2
)
{
this
.
SettlementPrice
=
this
.
price
*
CouponSale
this
.
SettlementPrice
=
Math
.
round
((
this
.
price
*
CouponSale
)
*
100
)
/
100
}
else
if
(
type
===
0
)
{
this
.
SettlementPrice
=
this
.
price
this
.
SettlementPrice
=
Math
.
round
(
this
.
price
*
100
)
/
100
}
}
else
{
this
.
SettlementPrice
=
this
.
price
this
.
SettlementPrice
=
Math
.
round
(
this
.
price
*
100
)
/
100
}
// this.SettlementPrice=parseInt(this.SettlementPrice).toFixed(2);
// let allmonney=this.price - this.SettlementPrice;
...
...
src/components/LocalTour/LocalCuisineDetails.vue
View file @
13e85237
...
...
@@ -21,7 +21,7 @@
display
:
flex
;
flex-wrap
:
wrap
;
}
.
OrderCon
._coupon_box
._coupon_item
{
.
LocalCuisine
._coupon_box
._coupon_item
{
width
:
224px
;
padding
:
12px
20px
12px
25px
;
margin
:
0
26px
20px
0
;
...
...
@@ -75,7 +75,7 @@
font-size
:
16px
!important
;
margin
:
0
}
.
OrderCon
._coupon_box
._coupon_item
._coupon_info
p
._coupon_name
{
.
LocalCuisine
._coupon_box
._coupon_item
._coupon_info
p
._coupon_name
{
font-size
:
14px
!important
;
margin-bottom
:
10px
;
max-width
:
190px
;
...
...
@@ -86,7 +86,7 @@
._coupon_box
._coupon_item
._coupon_info
p
span
._sale
{
font-size
:
24px
;
}
.
OrderCon
._coupon_box
._coupon_item
._coupon_info
p
._repeat
{
.
LocalCuisine
._coupon_box
._coupon_item
._coupon_info
p
._repeat
{
padding
:
0
5px
;
color
:
#7C6F01
;
position
:
absolute
;
...
...
@@ -503,14 +503,14 @@ export default {
})
this
.
CouponIds
=
CouponIds
if
(
type
===
1
)
{
this
.
SettlementPrice
=
this
.
freeMsg
.
MySelfTotalPrice
-
CouponMoney
this
.
SettlementPrice
=
CouponMoney
}
else
if
(
type
===
2
)
{
this
.
SettlementPrice
=
this
.
freeMsg
.
MySelfTotalPrice
*
CouponSale
this
.
SettlementPrice
=
(
this
.
SignelPrice
*
(
this
.
msg
.
adultNum
+
this
.
msg
.
childNum
))
-
(
this
.
SignelPrice
*
(
this
.
msg
.
adultNum
+
this
.
msg
.
childNum
))
*
CouponSale
}
else
if
(
type
===
0
)
{
this
.
SettlementPrice
=
this
.
freeMsg
.
MySelfTotalPrice
this
.
SettlementPrice
=
0
}
}
else
{
this
.
SettlementPrice
=
this
.
freeMsg
.
MySelfTotalPrice
this
.
SettlementPrice
=
0
}
// 计算幸福存折
// this.SettlementPrice = this.SettlementPrice - this.RedEnvelopeMoney
...
...
src/components/newPersonalCenter/block/model/OrderInfoModel/FoodTable.vue
View file @
13e85237
...
...
@@ -193,7 +193,6 @@
<td
colspan=
"6"
>
<span
class=
"time"
>
{{
item
.
createDate
}}
</span>
<span
class=
"num"
>
订单号:
<span>
{{
item
.
id
}}
</span></span>
<!--
<span
class=
"contacts"
><i
class=
"iconfont icon-dianhua"
></i>
<span>
{{
item
.
salesName
}}
{{
item
.
salesMobile
}}
</span></span>
-->
</td>
</tr>
<tr
class=
"info"
@
mouseenter=
"enter(index)"
:key=
"index+100"
@
mouseleave=
"enter()"
:class=
"
{hover_bg: activeRow === index}">
...
...
@@ -205,7 +204,6 @@
<div
class=
"_right"
>
<p
class=
"color333 font-size14"
>
{{
item
.
diningName
}}
</p>
<p>
{{
item
.
mealName
}}
</p>
<!--
<p>
团号:
{{
item
.
tcid
}}
</p>
-->
</div>
</div>
</td>
...
...
@@ -215,8 +213,8 @@
<p>
使用日期:
{{
item
.
useDate
}}
</p>
</td>
<td
class=
"money"
>
<p>
{{
item
.
preferPrice
|
priceFormat
}}
</p>
<p>
总金额:
{{
item
.
preferPrice
|
priceFormat
}}
</p>
<p>
优惠金额:
{{
item
.
discountMoney
|
priceFormat
}}
</p>
</td>
<td
class=
"color333 font-size12"
>
<span
v-if=
"item.status === 1"
>
正常
</span>
...
...
@@ -226,15 +224,10 @@
<td>
<p
v-if=
"item.status === 3"
style=
"margin-bottom:10px;"
>
<el-button
@
click=
"Pay(item)"
size=
"mini"
type=
"danger"
>
立即付款
</el-button>
</p>
<!--
<p
v-if=
"item.status === 3"
style=
"margin-bottom:10px;"
>
<el-button
@
click=
"Pay(item)"
size=
"mini"
type=
"danger"
>
查看详情
</el-button>
</p>
-->
<p
v-if=
"item.status === 1 || item.status === 3"
style=
"margin-bottom:10px;"
>
<el-button
@
click=
"Exit(item)"
size=
"mini"
>
取消订单
</el-button>
</p>
</td>
</tr>
</
template
>
...
...
@@ -296,12 +289,12 @@ export default {
});
},
Pay
(
item
){
console
.
log
(
item
)
let
data
=
{};
data
=
item
.
payInfo
;
data
.
AirOrderId
=
item
.
payInfo
.
airOrderId
;
item
.
payInfo
.
preferPrice
=
item
.
payInfo
.
preferPrice
-
item
.
discountMoney
sessionStorage
.
Visainfo
=
JSON
.
stringify
(
item
.
payInfo
)
this
.
$router
.
push
({
name
:
"Pay"
,
query
:
{
...
...
src/plugins/index.js
View file @
13e85237
...
...
@@ -15,13 +15,13 @@ export default {
//var domainUrl = "http://reborn.oytour.com"; //主域名
// var domainUrl = "http://192.168.2.65:8025"//主域名
// let domainUrl = "https://reborn.oytour.com";
let
domainUrl
=
"http://test
.viitto
.com"
let
domainUrl
=
"http://test
api.oytour
.com"
// let domainUrl = "http://192.168.2.214:8082"
// var domainUrl = "http://reborn.oytour.com";
let
locationName
=
window
.
location
.
hostname
;
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'
viitto
.com'
)
!=
-
1
)
domainUrl
=
"http://test
.viitto
.com"
if
(
window
.
location
.
host
.
indexOf
(
'
testb2b.oytour
.com'
)
!=
-
1
)
domainUrl
=
"http://test
api.oytour
.com"
else
if
(
window
.
location
.
host
.
indexOf
(
'oytour.com'
)
!=
-
1
)
domainUrl
=
"https://reborn.oytour.com"
}
...
...
@@ -30,26 +30,14 @@ export default {
DomainUrl
:
domainUrl
,
//常用提交数据URL
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.215:9000",
// javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000",
javaUrl
:
locationName
.
indexOf
(
'testb2b'
)
==
-
1
?
"http://efficient.oytour.com"
:
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://47.96.12.235:9001"
:
"http://192.168.2.215:9000"
,
// javaUrl: "http://efficient.oytour.com",
javaUrl
:
"http://47.96.12.235:9001"
,
// javaUrl: locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : locationName.indexOf('viitto') !== -1 ? "http://47.96.12.235:9001" : "http://192.168.2.215:9000",
javaUrl
:
"http://efficient.oytour.com"
,
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"
,
// javaUrl: "http://47.96.12.235:9001",
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.2.214:8130'
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://upload.oytour.com"
:
"http://192.168.2.214:8120"
,
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
};
// domainUrl = "https://reborn.oytour.com"
// var obj = {
// //主地址
// DomainUrl: domainUrl,
// //常用提交数据URL
// PostUrl: domainUrl + "/api/common/post",
// javaUrl: "http://efficient.oytour.com",
// ViittoFileUrl:"http://imgfile.oytour.com",
// UploadUrl: "http://upload.oytour.com",
// LocalFileStreamDownLoadUrl: domainUrl + "/api/file/GetFileFromWebApi",
// };
return
obj
;
},
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
...
...
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