| | |
| | | <view>输入商品名或粘贴宝贝标题搜索</view> |
| | | </view> |
| | | </view> |
| | | <view class="rightgoMsg rowCenCen iconfont searchImg" @click="goPath('turnChain')"> |
| | | <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/zhuanlian.png"></image> |
| | | </view> |
| | | <view class="rightgoMsg rowCenCen iconfont" @click="goPath('officialNotice')"> |
| | | <view></view> |
| | | <u-badge v-show="isNewMessage" :is-dot="true" type="success"></u-badge> |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getCategoryList(); |
| | | this.getPopBannerInfo(); |
| | | }, |
| | | onShow() { |
| | | if(!this.hasLogin){ |
| | | setTimeout(function(){ |
| | | |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | },3000); |
| | | },1000); |
| | | return; |
| | | } |
| | | var user= uni.getStorageSync('userInfo'); |
| | | console.log(user); |
| | | if(!user.invitation_code) |
| | | { |
| | | setTimeout(function(){ |
| | |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | },3000); |
| | | },1000); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | this.getCategoryList(); |
| | | this.getPopBannerInfo(); |
| | | } |
| | | }, |
| | | onShow() { |
| | | if(this.categoryList){ |
| | | this.getCategoryList(); |
| | | } |
| | |
| | | }).then(e => { |
| | | if (e.code == 1) return that.$alert(e.msg); |
| | | var res = e.data.info; |
| | | console.log(res) |
| | | if(res.length > 0){ |
| | | this.showBulletFrame = true; |
| | | this.BulletFrameData = res[0] |
| | |
| | | url: './officialNotice' |
| | | }) |
| | | } |
| | | else if(url=='turnChain') |
| | | { |
| | | uni.navigateTo({ |
| | | url: '../mine/tools/turnChain' |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | gobanurl(info) { |
| | |
| | | getTopheight() { |
| | | // 获取顶部高度 |
| | | uni.createSelectorQuery().in(this).select('.fixed-container').boundingClientRect(data => { |
| | | console.log("得到布局位置信息" + JSON.stringify(data)); |
| | | this.Topheight = data.height |
| | | }).exec(); |
| | | }, |
| | |
| | | z-index: 100; |
| | | |
| | | .leftgoSearchbox { |
| | | width: 615rpx; |
| | | width: 575rpx; |
| | | height: 70rpx; |
| | | background-color: #FFFFFF; |
| | | border: 1rpx solid #EDEDED; |
| | |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | .searchImg{ |
| | | image{ |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | font-size: 50rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | |
| | | .categoryNavbar-container { |
| | | width: 100%; |