Commit 25756b485c14e9a14e11757c678fa12853692bf4

Authored by vking
1 parent 06274e02

blue ui other

... ... @@ -12,6 +12,8 @@ Page({
data: {
loading:0,
currentView:1,
meTop:20,
hasBack:true,
},
/**
... ... @@ -42,6 +44,11 @@ Page({
commentLabel:res.data,
})
})
if(getCurrentPages().length==1){
this.setData({
hasBack:false,
})
}
},
GetSellerDetail(){
let options=this.options
... ... @@ -152,10 +159,16 @@ Page({
*/
onShow: function () {
this.selectComponent('#getpos').getPos();
if(wx.getMenuButtonBoundingClientRect){
let rect=wx.getMenuButtonBoundingClientRect()
this.setData({
meTop:rect.top-5,
})
}
if(wx.createIntersectionObserver){
this._observer = wx.createIntersectionObserver(this)
this._observer
.relativeTo('.scroll-view')
.relativeTo('.me')
.observe('.swiper-view', (res) => {
if(res.intersectionRatio > 0){
wx.setNavigationBarColor({
... ...
<!--pages/reserve/detail.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<scroll-view class="scroll-view" scroll-y style="height: 100vh;">
<page loading="{{loading}}">
<navigator open-type="navigateBack" wx:if="{{hasBack}}">
<view style="top:{{meTop}}px;"
class="me view flex flex-direction align-center justify-center round">
<image src="http://nosqn.colorcun.com/back-white.png" style="width: 18rpx;height: 32rpx;"></image>
</view>
</navigator>
<nav hasHome wx:if="{{hasNav}}" id='nav'>{{seller.sellername}}</nav>
<view class="swiper-view">
<swiper class="swiper-image"
... ... @@ -215,7 +220,7 @@
</view>
</view>
</page>
</scroll-view>
<getpos id="getpos" bindpos="onpos"></getpos>
<as-phone id="as"></as-phone>
<discount id="discount" seller="{{seller}}" wx:if="{{seller}}"
... ...
... ... @@ -145,3 +145,12 @@ page{
line-height: 52rpx;
text-align: center;
}
.me{
width: 84rpx;
height: 84rpx;
position: fixed;
left:30rpx;
top:40rpx;
z-index: 9;
}
\ No newline at end of file
... ...