Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
h5wandahuijia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
77430af8
authored
Jan 31, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改长图时的定位问题
parent
45b8ceab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
23 deletions
+46
-23
src/components/Detail.vue
+25
-3
src/modules/js/api.js
+21
-20
万达回家0.31正式.zip
+0
-0
回家1.36.zip
+0
-0
No files found.
src/components/Detail.vue
View file @
77430af8
<
template
>
<
template
>
<section
class=
"detailWrap"
>
<section
class=
"detailWrap"
>
<div
v-if=
"pictureInfo"
>
<div
v-if=
"pictureInfo"
>
<div
v-if=
"imgLock"
class=
"imgBox
"
>
<div
v-if=
"imgLock"
:class=
"['imgBox',top0]
"
>
<img
:src=
"pictureInfo.image"
alt
>
<img
ref=
"picte"
:src=
"pictureInfo.image"
alt
>
</div>
</div>
<div
v-else
class=
"loadingBox"
>
loading
</div>
<div
v-else
class=
"loadingBox"
>
loading
</div>
<div
class=
"userInfo"
>
<div
class=
"userInfo"
>
...
@@ -57,7 +57,8 @@ export default {
...
@@ -57,7 +57,8 @@ export default {
dianzanLock
:
true
,
dianzanLock
:
true
,
jinzhidianzan
:
false
,
jinzhidianzan
:
false
,
imgLock
:
false
,
imgLock
:
false
,
kongtuLock
:
false
kongtuLock
:
false
,
top0
:
''
};
};
},
},
computed
:
{
computed
:
{
...
@@ -442,11 +443,32 @@ export default {
...
@@ -442,11 +443,32 @@ export default {
// WeixinJSBridge.call("showOptionMenu"); // 显示右上角的三个点的选项
// WeixinJSBridge.call("showOptionMenu"); // 显示右上角的三个点的选项
});
});
},
},
},
watch
:
{
imgLock
(
newVal
,
oldVal
)
{
// 长图改变定位方式
if
(
newVal
)
{
setTimeout
(()
=>
{
var
imgHeight
=
Number
(
this
.
$refs
.
picte
.
clientHeight
);
var
windowHeight
=
Number
(
document
.
body
.
clientHeight
);
if
(
imgHeight
>
1.1
*
windowHeight
)
{
this
.
top0
=
'top0'
;
}
else
{
this
.
top0
=
''
;
}
});
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.top0
{
top
:
0
!important
;
transform
:
translate
(
-50%
,
0
)
!important
;
}
.loadingBox
{
.loadingBox
{
color
:
white
;
color
:
white
;
font-size
:
50px
;
font-size
:
50px
;
...
...
src/modules/js/api.js
View file @
77430af8
// // api地址
// var server = 'http://web-comment.canskj.cn/new';
// var extra = '8';
// //包装的地址
// var wrapHref = 'http://web-comment.canskj.cn/home/contest/h5/8';
// //首页地址
// var indexHref = 'http://web-comment.iyunfish.cn/home/contest/h5/8';
// // 个人中心地址
// var userCenterHref = 'http://web-comment.iyunfish.cn/home/contest/h5/newuser/8';
// var shareImg = 'http://web-comment.iyunfish.cn/home/contest/h5/static/share1.jpg';
// api地址
// api地址
var
server
=
'http://w
d-h5.iyunfish.com
/new'
;
var
server
=
'http://w
eb-comment.canskj.cn
/new'
;
var
extra
=
'8'
;
var
extra
=
'8'
;
//包装的地址
//包装的地址
var
wrapHref
=
'http://w
d-h5.bdideal.com
/home/contest/h5/8'
;
var
wrapHref
=
'http://w
eb-comment.canskj.cn
/home/contest/h5/8'
;
//首页地址
//首页地址
var
indexHref
=
'http://w
d-h5.iyunfish.com
/home/contest/h5/8'
;
var
indexHref
=
'http://w
eb-comment.iyunfish.cn
/home/contest/h5/8'
;
// 个人中心地址
// 个人中心地址
var
userCenterHref
=
'http://wd-h5.iyunfish.com/home/contest/h5/newuser/8'
;
var
userCenterHref
=
'http://web-comment.iyunfish.cn/home/contest/h5/newuser/8'
;
var
shareImg
=
'http://web-comment.iyunfish.cn/home/contest/h5/static/share1.jpg'
;
var
shareImg
=
'http://wd-h5.iyunfish.com/home/contest/h5/static/share1.jpg'
;
// // api地址
// var server = 'http://wanda-qj.iyunfish.com/new';
// var extra = '8';
// //包装的地址
// var wrapHref = 'http://wanda-qj.maxrocky.com/home/contest/h5/8';
// //首页地址
// var indexHref = 'http://wanda-qj.iyunfish.com/home/contest/h5/8';
// // 个人中心地址
// var userCenterHref = 'http://wanda-qj.iyunfish.com/home/contest/h5/newuser/8';
// var shareImg = 'http://wanda-qj.iyunfish.com/home/contest/h5/static/share1.jpg';
export
default
{
export
default
{
server
,
server
,
extra
,
extra
,
...
...
万达回家0.31正式.zip
0 → 100644
View file @
77430af8
File added
回家1.36.zip
0 → 100644
View file @
77430af8
File added
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