|
|
@@ -56,8 +56,9 @@
|
|
|
</div>
|
|
|
<div class="mobile-header" v-if="showHeader && !showMainSearch">
|
|
|
<!--<a class="iconfont icon-fanhui" @click="goLastPage">返回</a>-->
|
|
|
- <p>{{title}}</p>
|
|
|
- <span v-show="showSearch" @click="showMainSearch = true"><i class="icon-sousuo iconfont"></i>搜索</span>
|
|
|
+ <p>{{title}}
|
|
|
+ <span v-show="showSearch" @click="showMainSearch = true"><i class="icon-sousuo iconfont"></i>搜索</span>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<main-search v-if="showMainSearch"></main-search>
|
|
|
<i v-show="rightIcon=='share'" class="iconfont icon-fenxiang" @click="showShare = true" @touchmove="onTouchMove($event)"></i>
|
|
|
@@ -72,7 +73,7 @@
|
|
|
return {
|
|
|
showStoreInfo: false,
|
|
|
showShare: false,
|
|
|
- rightIcon: 'share',
|
|
|
+ rightIcon: 'phone',
|
|
|
showDefaultAddr: true,
|
|
|
url: '',
|
|
|
clipboard: {},
|
|
|
@@ -207,9 +208,12 @@
|
|
|
_this.clipboard = new Clipboard('#copyLink')
|
|
|
},
|
|
|
onTouchMove: function (e) {
|
|
|
- console.log(e.touches[0])
|
|
|
- let x = e.touches[0].clientX
|
|
|
- let y = e.touches[0].clientY
|
|
|
+ let width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
|
|
|
+ let height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
|
+ let x = Math.min(width - 20, e.touches[0].clientX)
|
|
|
+ let y = Math.min(height - 20, e.touches[0].clientY)
|
|
|
+ x = Math.max(0, x)
|
|
|
+ y = Math.max(0, y)
|
|
|
e.preventDefault()
|
|
|
e.target.style.left = x * 2 / 100.0 + 'rem'
|
|
|
e.target.style.top = y * 2 / 100.0 + 'rem'
|
|
|
@@ -225,6 +229,7 @@
|
|
|
.mobile-header{
|
|
|
width:100%;
|
|
|
height:.88rem;
|
|
|
+ line-height: .88rem;
|
|
|
display:flex;
|
|
|
justify-content:space-around;
|
|
|
align-items:center;
|
|
|
@@ -237,18 +242,18 @@
|
|
|
flex:1;
|
|
|
font-size:.36rem;
|
|
|
text-align: center;
|
|
|
- margin-top:.2rem;
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
.mobile-header a{
|
|
|
font-size:.28rem;
|
|
|
color:#fff;
|
|
|
}
|
|
|
- .mobile-header span {
|
|
|
+ .mobile-header p span {
|
|
|
position: absolute;
|
|
|
right: .4rem;
|
|
|
font-size: .24rem;
|
|
|
}
|
|
|
- .mobile-header span i {
|
|
|
+ .mobile-header p span i {
|
|
|
font-size: .24rem;
|
|
|
}
|
|
|
.mobile-nav >i{
|