Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
890f96ce
Commit
890f96ce
authored
Mar 04, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
‘更新一下index 新增java 接口请求’
parent
ae89bd60
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
8 deletions
+98
-8
App.vue
src/App.vue
+1
-1
VToolBar.vue
...wTravelmanager/TravelGroupControl/TravelTemp/VToolBar.vue
+13
-1
travelFeature3.vue
...lmanager/TravelGroupControl/TravelTemp/travelFeature3.vue
+24
-4
index.js
src/plug/index.js
+47
-2
config.js
src/router/config.js
+13
-0
No files found.
src/App.vue
View file @
890f96ce
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
>
@import
"//at.alicdn.com/t/font_635492_
t6jc0sd8qcj
.css"
;
@import
"//at.alicdn.com/t/font_635492_
2e8rmd21ktq
.css"
;
@import
"./assets/css/Semibold.css"
;
@import
"./assets/css/Semibold.css"
;
@import
"./assets/css/global/config.css"
;
@import
"./assets/css/global/config.css"
;
@import
"./assets/css/fileIcon.css"
;
@import
"./assets/css/fileIcon.css"
;
...
...
src/components/newTravelmanager/TravelGroupControl/TravelTemp/VToolBar.vue
View file @
890f96ce
...
@@ -21,6 +21,9 @@
...
@@ -21,6 +21,9 @@
<div
v-if=
"nextShow()"
>
<div
v-if=
"nextShow()"
>
<i
:class=
"isHorizontal === true?'iconfont ' + icon.rightZ:'iconfont ' + icon.bottomZ"
@
click=
"toNextZ"
></i>
<i
:class=
"isHorizontal === true?'iconfont ' + icon.rightZ:'iconfont ' + icon.bottomZ"
@
click=
"toNextZ"
></i>
</div>
</div>
<div
v-if=
"isReset === true"
>
<i
title=
"重置图片位置"
:class=
"'iconfont ' + icon.reset"
@
click=
"toReset"
></i>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -76,6 +79,11 @@
...
@@ -76,6 +79,11 @@
isDelete
:
{
isDelete
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
// 是否重置
isReset
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
data
()
{
data
()
{
...
@@ -91,7 +99,8 @@
...
@@ -91,7 +99,8 @@
rightY
:
'icon-right1'
,
rightY
:
'icon-right1'
,
rightZ
:
'icon-right'
,
rightZ
:
'icon-right'
,
bottomY
:
'icon-arrowdown'
,
bottomY
:
'icon-arrowdown'
,
bottomZ
:
'icon-zhidi'
bottomZ
:
'icon-zhidi'
,
reset
:
'icon-zhongzhi'
}
}
}
}
},
},
...
@@ -146,6 +155,9 @@
...
@@ -146,6 +155,9 @@
},
},
toDelete
:
function
()
{
toDelete
:
function
()
{
this
.
$emit
(
'toDelete'
,
this
.
name
,
this
.
index1
,
this
.
index2
)
this
.
$emit
(
'toDelete'
,
this
.
name
,
this
.
index1
,
this
.
index2
)
},
toReset
:
function
()
{
this
.
$emit
(
'toReset'
,
this
.
name
,
this
.
index1
,
this
.
index2
)
}
}
}
}
}
}
...
...
src/components/newTravelmanager/TravelGroupControl/TravelTemp/travelFeature3.vue
View file @
890f96ce
...
@@ -55,7 +55,9 @@
...
@@ -55,7 +55,9 @@
@
toNextZ=
"imgToNextZ"
@
toNextZ=
"imgToNextZ"
@
toHuan=
"imgToHuan"
@
toHuan=
"imgToHuan"
@
toXuan=
"imgToXuan"
@
toXuan=
"imgToXuan"
@
toDelete=
"imgToDelete"
>
@
toDelete=
"imgToDelete"
@
toReset=
"resetXY"
:isReset=
'true'
>
</vToolBar>
</vToolBar>
<input
type=
"file"
style=
"display:none"
:id=
'"hotelfile_"+(item*2)+"_0"'
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
'"hotelfile_"+(item*2)+"_0"'
@
change=
"uploadpic"
>
</div>
</div>
...
@@ -495,7 +497,9 @@
...
@@ -495,7 +497,9 @@
@
toNextZ=
"imgToNextZ"
@
toNextZ=
"imgToNextZ"
@
toHuan=
"imgToHuan"
@
toHuan=
"imgToHuan"
@
toXuan=
"imgToXuan"
@
toXuan=
"imgToXuan"
@
toDelete=
"imgToDelete"
>
@
toDelete=
"imgToDelete"
@
toReset=
"resetXY"
:isReset=
'true'
>
</vToolBar>
</vToolBar>
<input
type=
"file"
style=
"display:none"
:id=
'"viewSpotfile_"+(item*4)+"_0"'
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
'"viewSpotfile_"+(item*4)+"_0"'
@
change=
"uploadpic"
>
</div>
</div>
...
@@ -656,7 +660,9 @@
...
@@ -656,7 +660,9 @@
@
toNextZ=
"imgToNextZ"
@
toNextZ=
"imgToNextZ"
@
toHuan=
"imgToHuan"
@
toHuan=
"imgToHuan"
@
toXuan=
"imgToXuan"
@
toXuan=
"imgToXuan"
@
toDelete=
"imgToDelete"
>
@
toDelete=
"imgToDelete"
@
toReset=
"resetXY"
:isReset=
'true'
>
</vToolBar>
</vToolBar>
<input
type=
"file"
style=
"display:none"
:id=
'"viewSpotfile_"+(item*4-2)+"_0"'
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
'"viewSpotfile_"+(item*4-2)+"_0"'
@
change=
"uploadpic"
>
</div>
</div>
...
@@ -933,7 +939,9 @@
...
@@ -933,7 +939,9 @@
@
toNextZ=
"imgToNextZ"
@
toNextZ=
"imgToNextZ"
@
toHuan=
"imgToHuan"
@
toHuan=
"imgToHuan"
@
toXuan=
"imgToXuan"
@
toXuan=
"imgToXuan"
@
toDelete=
"imgToDelete"
>
@
toDelete=
"imgToDelete"
@
toReset=
"resetXY"
:isReset=
'true'
>
</vToolBar>
</vToolBar>
<input
type=
"file"
style=
"display:none"
:id=
'"restaurantfile_"+(item*2)+"_0"'
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
'"restaurantfile_"+(item*2)+"_0"'
@
change=
"uploadpic"
>
</div>
</div>
...
@@ -1846,6 +1854,18 @@
...
@@ -1846,6 +1854,18 @@
blockList.splice(index1,1);
blockList.splice(index1,1);
blockList.push(JSON.parse(nowBlock))
blockList.push(JSON.parse(nowBlock))
},
},
// 图片高度重置
resetXY: function (name, index1, index2) {
let blockList = [];
if (name === 'hotel') {
blockList = this.hotelObj.list
} else if (name === 'viewSpot') {
blockList = this.viewSpotObj.list
} else if (name === 'restaurant') {
blockList = this.restaurantObj.list
}
this.imgTopReset(name, index1, index2);
},
// 版块删除
// 版块删除
bolckToDelete: function (name, index1, index2) {
bolckToDelete: function (name, index1, index2) {
console.log(name, index1)
console.log(name, index1)
...
...
src/plug/index.js
View file @
890f96ce
...
@@ -145,7 +145,8 @@ export default {
...
@@ -145,7 +145,8 @@ export default {
//上传站点
//上传站点
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==-
1
?
"http://upload.oytour.com"
:
"http://127.0.0.1:8120"
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==-
1
?
"http://upload.oytour.com"
:
"http://127.0.0.1:8120"
,
//文件站点
//文件站点
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==-
1
?
"http://imgfile.oytour.com"
:
'http://127.0.0.1:8130'
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==-
1
?
"http://imgfile.oytour.com"
:
'http://127.0.0.1:8130'
,
javaUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==-
1
?
"https://reborn.oytour.com"
:
"http://192.168.2.215:9000"
,
};
};
return
obj
;
return
obj
;
},
},
...
@@ -289,7 +290,51 @@ export default {
...
@@ -289,7 +290,51 @@ export default {
}
}
},
faildCall
)
},
faildCall
)
},
},
Vue
.
prototype
.
apiJavaPost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
javaUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
var
token
=
""
;
var
key
=
""
;
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
''
let
uid
=
userInfo
.
EmployeeId
?
userInfo
.
EmployeeId
:
0
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"uid"
:
uid
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
){
postData
.
groupId
=
parseInt
(
JSON
.
parse
(
localStorage
.
g
).
i
)
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
resultCode
==
10000
||
res
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
}
else
{
successCall
(
res
)
}
},
faildCall
)
},
//下载文件
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
...
...
src/router/config.js
View file @
890f96ce
...
@@ -91,6 +91,11 @@ export default {
...
@@ -91,6 +91,11 @@ export default {
name
:
'dmc'
,
name
:
'dmc'
,
component
:
resolve
=>
require
([
'@/components/temp/dmc'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/temp/dmc'
],
resolve
),
},
},
{
// 营销活动
path
:
'/activity'
,
name
:
'activity'
,
component
:
resolve
=>
require
([
'@/components/temp/activity'
],
resolve
),
},
{
{
path
:
'/operation'
,
path
:
'/operation'
,
name
:
'operation'
,
name
:
'operation'
,
...
@@ -2726,6 +2731,14 @@ export default {
...
@@ -2726,6 +2731,14 @@ export default {
meta
:
{
meta
:
{
title
:
'销售提成规则'
title
:
'销售提成规则'
}
}
},
{
path
:
'/CouponList'
,
name
:
'CouponList'
,
component
:
resolve
=>
require
([
'@/components/activity/Coupon/CouponList'
],
resolve
),
meta
:
{
title
:
'优惠券列表'
}
}
}
]
]
},
},
...
...
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