This commit is contained in:
2026-06-24 09:52:59 +08:00
parent ba0585c8aa
commit 070f3bab4f
9 changed files with 101 additions and 45 deletions

View File

@@ -1,9 +1,9 @@
// 全局配置文件 // 全局配置文件
// let baseUrl = 'http://219.138.32.164:8089'; // let baseUrl = 'http://219.138.32.164:8089';
// let baseUrl = 'http://localhost:8089'; let baseUrl = 'http://localhost:8089';
// let staticUrl = 'http://localhost:3080'; let staticUrl = 'http://localhost:3090';
let baseUrl = 'https://www.wujiaguotou.com/api'; // let baseUrl = 'https://www.wujiaguotou.com/api';
let staticUrl = 'https://www.wujiaguotou.com'; // let staticUrl = 'https://www.wujiaguotou.com';
// 版本号 用于更新 // 版本号 用于更新
let version = 1; let version = 1;
// vuex_version版本号 用于显示 // vuex_version版本号 用于显示

View File

@@ -15,14 +15,14 @@
<!-- 恢复v-model同时保留防错乱逻辑 --> <!-- 恢复v-model同时保留防错乱逻辑 -->
<view class="user-type"> <view class="user-type">
<u-radio-group v-model="loginType" active-color="#EA414A" shape="square"> <u-radio-group v-model="loginType" active-color="#0088FE" shape="square">
<u-radio name="0">个人</u-radio> <u-radio name="0">个人</u-radio>
<u-radio name="1">企业</u-radio> <u-radio name="1">企业</u-radio>
</u-radio-group> </u-radio-group>
</view> </view>
<view class="agreement"> <view class="agreement">
<u-checkbox v-model="agreeProtocol" shape="square" active-color="#EA414A"> <u-checkbox v-model="agreeProtocol" shape="square" active-color="#0088FE">
<text class="agreement-text"> <text class="agreement-text">
我已阅读并同意 我已阅读并同意
<text class="link" @tap.stop="goPrivacy('user')">用户协议</text> <text class="link" @tap.stop="goPrivacy('user')">用户协议</text>
@@ -205,7 +205,7 @@
.login-btn { .login-btn {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: linear-gradient(90deg, #FF2F31 0%, #FF9379 100%); background-color: 0088FE;
border-radius: 49rpx; border-radius: 49rpx;
font-size: 36rpx; font-size: 36rpx;
color: #fff; color: #fff;

View File

@@ -323,7 +323,7 @@
}, },
"tabBar": { "tabBar": {
"color": "#909399", "color": "#909399",
"selectedColor": "#252B44", "selectedColor": "#258AE6",
// "borderStyle": "#909399", // "borderStyle": "#909399",
"borderStyle": "white", "borderStyle": "white",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",

View File

@@ -129,8 +129,8 @@
data() { data() {
const life = uni.getStorageSync('lifeData') || {} const life = uni.getStorageSync('lifeData') || {}
return { return {
bgPath1: '/public/static/center/my-bg.png', bgPath1: '/public/static/center/my-bg2.png',
bgPath2: '/public/static/center/my-bg2.png', bgPath2: '',
unsignContractNum:0, unsignContractNum:0,
handlingReserveNum:0, handlingReserveNum:0,
// 导航栏样式控制 // 导航栏样式控制
@@ -183,7 +183,7 @@
}, },
async onShow() { async onShow() {
try { try {
await this.$checkToken(this.$getToken()) // await this.$checkToken(this.$getToken())
this.loadUserInfo() this.loadUserInfo()
this.countHandlingReserve() this.countHandlingReserve()
this.countUnHandleContract() this.countUnHandleContract()

View File

@@ -3,22 +3,38 @@
<image :src="staticHost + '/public/static/index/index_bg.png'" mode="aspectFill" class="bg"></image> <image :src="staticHost + '/public/static/index/index_bg.png'" mode="aspectFill" class="bg"></image>
<float-guide :initX="280" :initY="400" :videoSrc="staticHost + '/public/static/index/guide.mp4'" /> <float-guide :initX="280" :initY="400" :videoSrc="staticHost + '/public/static/index/guide.mp4'" />
<!-- 搜索栏 --> <!-- 搜索栏 -->
<view class="index-title"> <view class="index-title" :style="{ top: capsuleTop + 'px', height: capsuleHeight + 'px', lineHeight: capsuleHeight + 'px' }">
伍家国投 新望资产
</view> </view>
<view class="content-wrapper"> <view class="content-wrapper" :style="{ paddingTop: (capsuleTop + capsuleHeight + 20) + 'px' }">
<view class="search-wrapper"> <view class="search-wrapper">
<search-bar :city="vuex_city==''?'选择':vuex_city" placeholder="你想住在哪儿" @chooseCity="location" <search-bar :city="vuex_city==''?'选择':vuex_city" placeholder="你想住在哪儿" @chooseCity="location"
@search="search" /> @search="search" />
</view> </view>
<!-- 轮播图 -->
<view class="banner-wrap">
<swiper
class="banner-swiper"
:autoplay="true"
:interval="3000"
:circular="true"
:indicator-dots="true"
indicator-color="rgba(255,255,255,0.4)"
indicator-active-color="#fff"
>
<swiper-item v-for="(item, index) in bannerList" :key="index">
<image class="banner-img" :src="item.src" mode="aspectFill" @tap="onBannerTap(item)" />
</swiper-item>
</swiper>
</view>
<!-- 房源信息导航栏 --> <!-- 房源信息导航栏 -->
<view class="nav-area"> <view class="nav-area">
<view class="rowClass"> <view class="rowClass">
<u-row> <u-row>
<u-col span="3" text-align="center" v-for="(item,index) in navList" :key="index"> <u-col span="3" text-align="center" v-for="(item,index) in navList" :key="index">
<view class="u-padding-20" @tap="clickNav(item, index)" hover-class="hoverClass"> <view class="u-padding-10" @tap="clickNav(item, index)" hover-class="hoverClass">
<image :src="staticHost + '/public' + item.src " style="width: 86rpx;height: 86rpx;" <image :src="staticHost + item.src " style="width: 80rpx;height: 80rpx;"
mode="aspectFill"></image> mode="aspectFill"></image>
<view class="tabName" :style="{color:'#FFFFFF'}">{{item.name}}</view> <view class="tabName" :style="{color:'#FFFFFF'}">{{item.name}}</view>
</view> </view>
@@ -29,7 +45,7 @@
<u-row> <u-row>
<u-col span="3" text-align="center" v-for="(item,index) in gridList" :key="index"> <u-col span="3" text-align="center" v-for="(item,index) in gridList" :key="index">
<view class="u-padding-20" @tap="clickGrid(item)" hover-class="hoverClass"> <view class="u-padding-20" @tap="clickGrid(item)" hover-class="hoverClass">
<image :src="staticHost + '/public' + item.src" style="width: 50rpx;height: 50rpx;" <image :src="staticHost + '/public' + item.src" style="width: 64rpx;height: 64rpx;"
mode="aspectFill"></image> mode="aspectFill"></image>
<view class="tabName" :style="{color:'#222222'}">{{item.name}}</view> <view class="tabName" :style="{color:'#222222'}">{{item.name}}</view>
</view> </view>
@@ -124,24 +140,29 @@
filterActiveConditions: [], filterActiveConditions: [],
defaultImgUrl: '/public/static/index/assets.jpg', defaultImgUrl: '/public/static/index/assets.jpg',
navList: [{ navList: [{
name: "房", name: "房",
src: "/static/index/house.png", src: "/public/static/index/house.png",
type: "房" type: "房"
}, },
{ {
name: "商铺", name: "安置房",
src: "/static/index/shop.png", src: "/public/static/index/azhouse.png",
type: "房" type: "安置房"
}, },
{ {
name: "房", name: "公租房",
src: "/static/index/factory.png", src: "/public/static/index/gzhouse.png",
type: "房" type: "公租房"
}, },
{ {
name: "停车场", name: "产业园",
src: "/static/index/parking.png", src: "/public/static/index/cyy.png",
type: "停车场" type: "产业园"
},
{
name: "土地",
src: "/public/static/index/land.png",
type: "土地"
} }
], ],
gridList: [{ gridList: [{
@@ -189,10 +210,21 @@
} }
], ],
flowList: [], flowList: [],
uvCode: uni.getStorageSync('uvCode') uvCode: uni.getStorageSync('uvCode'),
capsuleTop: 0,
capsuleHeight: 32,
bannerList: [
{ src: 'https://7478-tx-cloud-mix-mall-d6944c-1302673523.tcb.qcloud.la/5bfbd58b18200d8e16f6b17a02e6ed9.png' },
]
} }
}, },
onLoad() { onLoad() {
// 获取胶囊位置,使标题与胶囊同行
const menuButton = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null;
if (menuButton) {
this.capsuleTop = menuButton.top;
this.capsuleHeight = menuButton.height;
}
this.getNoticecList(); this.getNoticecList();
this.resetAndLoad() this.resetAndLoad()
uni.$on('findIndexHouseList', (obj) => { uni.$on('findIndexHouseList', (obj) => {
@@ -368,6 +400,11 @@
console.log("获取招商公告失败:", err) console.log("获取招商公告失败:", err)
}); });
}, },
onBannerTap(item) {
if (item.url) {
uni.navigateTo({ url: item.url })
}
},
location() { location() {
this.$u.route('/pages-biz/location/location') this.$u.route('/pages-biz/location/location')
} }
@@ -387,19 +424,17 @@
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 550rpx; height: 960rpx;
z-index: 0; z-index: 0;
} }
.index-title { .index-title {
position: absolute; position: absolute;
z-index: 1; z-index: 2;
top: 5%; left: 30rpx;
left: 50%;
transform: translateX(-50%);
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 500;
font-size: 34rpx; font-size: 54rpx;
color: #FFFFFF; color: #FFFFFF;
} }
@@ -410,8 +445,29 @@
.search-wrapper {} .search-wrapper {}
.banner-wrap {
display: flex;
justify-content: center;
margin-top: 22rpx;
.banner-swiper {
width: 656rpx;
height: 218rpx;
border-radius: 16rpx;
overflow: hidden;
}
.banner-img {
width: 100%;
height: 100%;
border-radius: 16rpx;
}
}
.content-wrapper { .content-wrapper {
padding: 197rpx 30rpx 22rpx 30rpx; padding-left: 30rpx;
padding-right: 30rpx;
padding-bottom: 22rpx;
} }
.navbox2 { .navbox2 {
@@ -505,8 +561,8 @@
} }
.tab-item.active { .tab-item.active {
color: #FF2F31; color: #258AE6;
border-bottom: 4rpx solid #FF2F31; border-bottom: 4rpx solid #258AE6;
} }
.filter-tabs { .filter-tabs {
@@ -528,8 +584,8 @@
} }
.filter-item.active { .filter-item.active {
background: #FFECEC; background: #d4e2ef;
color: #FF2F31; color: #258AE6;
} }
.demo-warter { .demo-warter {
@@ -557,7 +613,7 @@
.item-price { .item-price {
font-size: 32rpx; font-size: 32rpx;
color: #FF2F31; color: #258AE6;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
@@ -613,7 +669,7 @@
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
background: linear-gradient(135deg, #FF2F31, #FF9379); background: linear-gradient(135deg, #258AE6, #79b5ff);
color: #fff; color: #fff;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 549 B