|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
+ <!-- <input class="uni-input" focus placeholder="自动获得焦点" /> -->
|
|
|
<view v-if="!isShowSearch">
|
|
|
<view class="top-warp">
|
|
|
<view class="search">
|
|
@@ -105,14 +106,14 @@
|
|
|
:content-style="contentStyle" @confirm="cancelFollow" @cancel="show=false">
|
|
|
</u-modal>
|
|
|
</view>
|
|
|
- <search :searchcontent='keyword1' v-if="isShowSearch" @searchVal='searchVal'></search>
|
|
|
+ <!-- <search v-show="isShowSearch" @searchVal='searchVal'></search> -->
|
|
|
<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
:content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
|
|
|
content="尚未登录,是否立即登录" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
|
|
|
- <u-modal v-model="isSHowReleaseAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
+ <!-- <u-modal v-model="isSHowReleaseAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
:content-style="{fontSize: '14px',fontWeight:'400','text-align':'left'}" confirm-color='#22C572'
|
|
|
confirm-text='我知道了' title='温馨提示' content="交易信息为用户自由发布,正式签订合同前切勿进行任何付款操作,以免给您的财产造成损失。"
|
|
|
- @confirm="releaseAlertbtn"></u-modal>
|
|
|
+ @confirm="releaseAlertbtn"></u-modal> -->
|
|
|
<u-toast ref="uToast" />
|
|
|
</view>
|
|
|
</template>
|
|
@@ -149,10 +150,13 @@
|
|
|
"font-weight": 700
|
|
|
},
|
|
|
isShowSearch: false,
|
|
|
- selectItem: {},
|
|
|
+ selectItem: {
|
|
|
+ followInformation:{
|
|
|
+ id:''
|
|
|
+ }
|
|
|
+ },
|
|
|
show: false,
|
|
|
keyword: '',
|
|
|
- keyword1: '',
|
|
|
inputStyle: {
|
|
|
// "padding-left": '30rpx'
|
|
|
},
|
|
@@ -188,14 +192,33 @@
|
|
|
name: '关注',
|
|
|
type: 'xx'
|
|
|
}],
|
|
|
+
|
|
|
+ tabbar: true,
|
|
|
+ windowHeight: '',
|
|
|
tabIndex: 0 // tab下标
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', 'clientId']),
|
|
|
},
|
|
|
-
|
|
|
+ onLoad() {
|
|
|
+ uni.getSystemInfo({
|
|
|
+ success: (res)=> {
|
|
|
+ this.windowHeight = res.windowHeight;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ uni.onWindowResize((res) => {
|
|
|
+ if(res.size.windowHeight < this.windowHeight){
|
|
|
+ uni.hideTabBar()
|
|
|
+ }else{
|
|
|
+ uni.showTabBar()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onShow() {
|
|
|
+ if(uni.getStorageSync('jiaoyikeyword')){
|
|
|
+ this.keyword=uni.getStorageSync('jiaoyikeyword')
|
|
|
+ }
|
|
|
let _tl = uni.getStorageSync('transactionLocation')
|
|
|
if (_tl) {
|
|
|
this.searchPlace = _tl.showVal
|
|
@@ -204,7 +227,7 @@
|
|
|
|
|
|
}
|
|
|
this.isSHowReleaseAlert = getApp().globalData.userRelease
|
|
|
- console.log("this.isSHowReleaseAlert", this.isSHowReleaseAlert)
|
|
|
+ // console.log("this.isSHowReleaseAlert", this.isSHowReleaseAlert)
|
|
|
uni.showTabBar()
|
|
|
uni.hideKeyboard()
|
|
|
var userInfo = uni.getStorageSync("userInfo")
|
|
@@ -249,7 +272,6 @@
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- onLoad(options) {},
|
|
|
onNavigationBarButtonTap(e) {
|
|
|
console.log(e)
|
|
|
if (!this.hasLogin) {
|
|
@@ -269,7 +291,6 @@
|
|
|
this.mescroll.resetUpScroll()
|
|
|
},
|
|
|
previewImage(item, index) {
|
|
|
- console.log(111111111)
|
|
|
var i = item.imgList; //获取当前页面的轮播图数据
|
|
|
//uniapp预览轮播图
|
|
|
uni.previewImage({
|
|
@@ -309,17 +330,14 @@
|
|
|
url: '/pages/public/login'
|
|
|
})
|
|
|
},
|
|
|
- searchVal(e) {
|
|
|
- console.log(e)
|
|
|
- this.isShowSearch = false
|
|
|
- this.keyword = e
|
|
|
- },
|
|
|
+
|
|
|
toSearch() {
|
|
|
-
|
|
|
- this.keyword1 = this.keyword
|
|
|
uni.setStorageSync('jiaoyikeyword', this.keyword)
|
|
|
uni.setStorageSync('jiaoyifocus', true)
|
|
|
- this.isShowSearch = true
|
|
|
+ // this.isShowSearch = true
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages/business/search'
|
|
|
+ })
|
|
|
},
|
|
|
follow(val, type) {
|
|
|
// 2关注
|