手动输入区间

This commit is contained in:
weicw
2023-09-20 18:53:56 +08:00
parent d93010e6fc
commit 030c4a9c69
9 changed files with 64 additions and 364 deletions

View File

@@ -2,6 +2,10 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数remote代表前端连云端云函数 // launchtype项可配置值为local或remote, local代表前端连本地云函数remote代表前端连云端云函数
"version": "0.0", "version": "0.0",
"configurations": [{ "configurations": [{
"app-plus" :
{
"launchtype" : "local"
},
"default" : "default" :
{ {
"launchtype" : "local" "launchtype" : "local"

View File

@@ -16,18 +16,6 @@
"selectedIconPath": "static/tabbar/house-active.png", "selectedIconPath": "static/tabbar/house-active.png",
"text": "找房" "text": "找房"
}, },
// {
// "pagePath": "pages/love/love",
// "iconPath": "static/tabbar/love.png",
// "selectedIconPath": "static/tabbar/love-active.png",
// "text": "恋爱圈"
// },
// {
// "pagePath": "pages/notice/notice",
// "iconPath": "static/tabbar/notice.png",
// "selectedIconPath": "static/tabbar/notice-active.png",
// "text": "消息"
// },
{ {
"pagePath": "pages/user/user", "pagePath": "pages/user/user",
"iconPath": "static/tabbar/user.png", "iconPath": "static/tabbar/user.png",
@@ -38,226 +26,24 @@
}, },
"subPackages": [{ "subPackages": [{
"root": "sub_pages", "root": "sub_pages",
"pages": [{ "pages": [
"path": "user/personal/index",
"style": {
"navigationBarTitleText": "个人资料"
}
},
{
"path": "user/bind/index",
"style": {
"navigationBarTitleText": "绑定手机"
}
}, {
"path": "user/buy/buy",
"style": {
"navigationBarTitleText": "购买",
"enablePullDownRefresh": false
}
}, {
"path": "user/grade/grade",
"style": {
"navigationBarTitleText": "我的会员",
"enablePullDownRefresh": false
}
}, {
"path": "user/poster/poster",
"style": {
"navigationBarTitleText": "分享海报",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "user/poster/poster2",
"style": {
"navigationBarTitleText": "分享海报",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#730070",
"navigationBarTextStyle": "white",
"navigationStyle": "custom"
}
}, {
"path": "love/release/release",
"style": {
"navigationBarTitleText": "发布",
"enablePullDownRefresh": false
}
},
{
"path": "certification/certification",
"style": {
"navigationBarTitleText": "我的认证",
"enablePullDownRefresh": false
}
}, {
"path": "certification/id-card/id-card",
"style": {
"navigationBarTitleText": "身份认证",
"enablePullDownRefresh": false
}
}, {
"path": "certification/education/education",
"style": {
"navigationBarTitleText": "学历认证",
"enablePullDownRefresh": false
}
}, {
"path": "certification/car/car",
"style": {
"navigationBarTitleText": "车辆认证",
"enablePullDownRefresh": false
}
}, {
"path": "dealer/dealer",
"style": {
"navigationBarTitleText": "婚介中心",
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
}, {
"path": "dealer/grade/grade",
"style": {
"navigationBarTitleText": "开通线上门店",
"enablePullDownRefresh": false
}
},
{ {
"path": "checkout/checkout", "path": "checkout/checkout",
"style": { "style": {
"navigationBarTitleText": "预约看房", "navigationBarTitleText": "预约看房",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { },
"path": "dealer/team/team",
"style": { {
"navigationBarTitleText": "单身团",
"enablePullDownRefresh": true
}
}, {
"path": "contact/contact", "path": "contact/contact",
"style": { "style": {
"navigationBarTitleText": "联系客服", "navigationBarTitleText": "联系客服",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { },
"path": "dealer/qrcode/qrcode",
"style": {
"navigationBarTitleText": "识别二维码",
"enablePullDownRefresh": false
}
}, {
"path": "profit/profit",
"style": {
"navigationBarTitleText": "收益明细",
"enablePullDownRefresh": true
}
}, {
"path": "dealer/offline/offline",
"style": {
"navigationBarTitleText": "单身团",
"enablePullDownRefresh": false
}
}, {
"path": "goods/list",
"style": {
"navigationBarTitleText": "商品列表",
"enablePullDownRefresh": true
}
},
{
"path": "wallet/balance/log",
"style": {
"navigationBarTitleText": "我的钱包"
}
}, {
"path": "wallet/gift/gift",
"style": {
"navigationBarTitleText": "我的礼物",
"enablePullDownRefresh": false
}
},
{
"path": "wallet/recharge/index",
"style": {
"navigationBarTitleText": "充值中心"
}
},
{
"path": "wallet/recharge/order",
"style": {
"navigationBarTitleText": "充值记录"
}
},
{
"path": "goods/detail",
"style": {
"navigationBarTitleText": "商品详情页"
}
}, {
"path": "dealer/merchant/merchant",
"style": {
"navigationBarTitleText": "我的门店",
"enablePullDownRefresh": false
}
}, {
"path": "member/member",
"style": {
"navigationBarTitleText": "会员列表",
"enablePullDownRefresh": false
}
}, {
"path": "member/detail/detail",
"style": {
"navigationBarTitleText": "会员详情",
"enablePullDownRefresh": false
}
},
{
"path": "order/detail",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarTextStyle": "white"
}
}, {
"path": "order/get-food/get-food",
"style": {
"navigationBarTitleText": "领餐列表",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "notice/fans",
"style": {
"navigationBarTitleText": "喜欢我"
}
}, {
"path": "notice/like",
"style": {
"navigationBarTitleText": "我喜欢"
}
}, {
"path": "notice/comment",
"style": {
"navigationBarTitleText": "评论"
}
}, {
"path": "notice/look",
"style": {
"navigationBarTitleText": "看过我"
}
}, {
"path": "love/comment/comment",
"style": {
"navigationBarTitleText": "评论详情",
"enablePullDownRefresh": false
}
},
{ {
"path": "feedback/feedback", "path": "feedback/feedback",
"style": { "style": {
@@ -265,38 +51,9 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { },
"path": "wallet/profit/profit",
"style": {
"navigationBarTitleText": "收益明细",
"enablePullDownRefresh": false
}
}, { {
"path": "withdraw/withdraw",
"style": {
"navigationBarTitleText": "申请提现",
"enablePullDownRefresh": false
}
}, {
"path": "withdraw/log/log",
"style": {
"navigationBarTitleText": "打款进度",
"enablePullDownRefresh": false
}
}, {
"path": "dealer/poster/poster",
"style": {
"navigationBarTitleText": "分享海报",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#730070",
"navigationBarTextStyle": "white",
"navigationStyle": "custom"
}
}, {
"path": "house/house", "path": "house/house",
"style": { "style": {
"navigationBarTitleText": "房源管理", "navigationBarTitleText": "房源管理",
@@ -332,7 +89,8 @@
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "爱尚家", "navigationBarTitleText": "爱尚家",
"enablePullDownRefresh": false "enablePullDownRefresh": false,
"navigationStyle": "custom"
} }
}, },
{ {
@@ -368,114 +126,21 @@
"navigationBarTitleText": "租赁服务协议与隐私协议" "navigationBarTitleText": "租赁服务协议与隐私协议"
} }
}, },
{ {
"path": "pages/comment/index",
"style": {
"navigationBarTitleText": "商品评价页"
}
},
{
"path": "pages/checkout/checkout",
"style": {
"navigationBarTitleText": "订单确认"
}
},
{
"path": "pages/checkout/cashier/index",
"style": {
"navigationBarTitleText": "支付订单"
}
},
{
"path": "pages/order/index",
"style": {
"navigationBarTitleText": "订单列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/shop/extract",
"style": {
"navigationBarTitleText": "选择自提门店"
}
},
{
"path": "pages/shop/detail",
"style": {
"navigationBarTitleText": "门店详情"
}
},
{
"path": "uni_modules/uni-pay/pages/success/success",
"style": {
"backgroundColor": "#F8F8F8",
"navigationBarTitleText": "支付成功"
}
}, {
"path": "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview", "path": "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview",
"style": { "style": {
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"navigationBarTitleText": "ad" "navigationBarTitleText": "ad"
} }
}, { },
{
"path": "pages/user/password/password", "path": "pages/user/password/password",
"style": { "style": {
"navigationBarTitleText": "修改密码", "navigationBarTitleText": "修改密码",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, {
"path": "pages/zone/zone",
"style": {
"navigationBarTitleText": "专区"
}
}, {
"path": "pages/zone/member/member",
"style": {
"navigationBarTitleText": "专区列表",
"enablePullDownRefresh": true
}
}, {
"path": "pages/love/love",
"style": {
"navigationBarTitleText": "恋爱圈",
"navigationStyle": "custom",
"enablePullDownRefresh": true
}
}, {
"path": "pages/love/category",
"style": {
"navigationBarTitleText": "话题",
"enablePullDownRefresh": true
}
}, {
"path": "pages/pair/pair",
"style": {
"navigationBarTitleText": "配对",
"enablePullDownRefresh": false
}
}, {
"path": "pages/chat/chat",
"style": {
"navigationBarTitleText": "聊天",
"enablePullDownRefresh": false
}
}, {
"path": "pages/article/article",
"style": {
"navigationBarTitleText": "情感课堂",
"enablePullDownRefresh": false
}
}, {
"path": "pages/article/detail/detail",
"style": {
"navigationBarTitleText": "文章详情",
"enablePullDownRefresh": false
}
}, },
{ {
"path": "pages/house/house", "path": "pages/house/house",

View File

@@ -2,7 +2,7 @@
<view class="page-wrap"> <view class="page-wrap">
<view class="main"> <view class="main">
<view class="logo"> <view class="logo">
<image src="https://file.wsdns.cn/20230801/84480e0c65b044ebb869f8f2754bc0b1.png" mode="widthFix"></image> <image src="@/static/logo-chang.png" mode="widthFix"></image>
<!-- <image src="https://oss.jimeigroup.cn/static/flash-logo-text.png" mode="widthFix"></image> --> <!-- <image src="https://oss.jimeigroup.cn/static/flash-logo-text.png" mode="widthFix"></image> -->
<!-- <text class="logo-name"> <!-- <text class="logo-name">
爱尚家找房 爱尚家找房

View File

@@ -9,16 +9,18 @@
</view> </view>
<view class="search-tools"> <view class="search-tools">
<view class="region"> <view class="region">
<uni-data-select class="select-width" v-model="where.region" :localdata="region" placeholder="区域" <uni-data-select class="select-width" v-model="where.keywords" :localdata="houseArea" placeholder="区域"
@change="onSearch"></uni-data-select> @change="onSearch"></uni-data-select>
</view> </view>
<view class="region"> <view class="region">
<uni-data-select class="select-width" v-model="where.priceScene" :localdata="price" placeholder="价格区间" <u--input class="where-input" v-model="where.priceScene" type="number" @confirm="onSearch" placeholder="价格区间" clearable border="none" :customStyle="{height: '35px'}"/>
@change="onSearch"></uni-data-select> <!-- <uni-data-select class="select-width" v-model="where.priceScene" :localdata="price" placeholder="价格区间"
@change="onSearch"></uni-data-select> -->
</view> </view>
<view class="region"> <view class="region">
<uni-data-select class="select-width" v-model="where.extentScene" :localdata="extent" placeholder="面积" <u--input class="where-input" v-model="where.extentScene" type="number" @confirm="onSearch" placeholder="面积m²" clearable border="none" :customStyle="{height: '35px'}"/>
@change="onSearch"></uni-data-select> <!-- <uni-data-select class="select-width" v-model="where.extentScene" :localdata="extent" placeholder="面积"
@change="onSearch"></uni-data-select> -->
</view> </view>
<view class="region"> <view class="region">
<uni-data-select class="select-width" v-model="where.sortScene" :localdata="sort" placeholder="排序" <uni-data-select class="select-width" v-model="where.sortScene" :localdata="sort" placeholder="排序"
@@ -137,6 +139,7 @@
], ],
menu, menu,
region, region,
houseArea:[],
price, price,
extent, extent,
sort, sort,
@@ -234,6 +237,14 @@
} }
}) })
app.houseArea = res.data.house_area[0].map(d => {
console.log('d: ', d);
return {
value: d,
text: d
}
})
uni.request({ uni.request({
url: 'https://file.wsdns.cn/json/city.js', url: 'https://file.wsdns.cn/json/city.js',
success(res) { success(res) {
@@ -394,4 +405,9 @@
} }
} }
} }
.where-input{
height: 100%;
width: 100%;
text-align: center;
}
</style> </style>

View File

@@ -1,5 +1,12 @@
<template> <template>
<view class="page"> <view class="page">
<u-navbar placeholder fixed>
<template slot="left">
<view style="display: flex;align-items: center;height: 44px;">
<image style="height: 30px;" src="@/static/logo-chang.png" mode="heightFix"></image>
</view>
</template>
</u-navbar>
<!-- 搜索 --> <!-- 搜索 -->
<u-sticky offset-top="5" zIndex="999"> <u-sticky offset-top="5" zIndex="999">
<view class="search-fix fixed" v-if="scrollTop < 30"> <view class="search-fix fixed" v-if="scrollTop < 30">

BIN
static/logo-chang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -64,8 +64,8 @@
</u-form-item> </u-form-item>
<u-form-item prop="monthlyRent"> <u-form-item prop="monthlyRent">
<u-cell title="月租金(每月)" :isLink="false"> <u-cell title="月租金(每月)" :isLink="false">
<u-input type="digit" slot="value" class="input" v-model="form.monthlyRent" inputAlign="right" <u-input type="digit" slot="value" class="input" :value="monthlyRent" inputAlign="right" disabled-color="#FFFFFF"
maxlength="30" :border="false" placeholder="请输入月租金" /> maxlength="30" :border="false" placeholder="请输入月租金" disabled />
</u-cell> </u-cell>
</u-form-item> </u-form-item>
<u-form-item prop="propertyFees"> <u-form-item prop="propertyFees">
@@ -317,6 +317,16 @@
}, },
} }
}, },
computed: {
monthlyRent() {
const {extent, rent} = this.form
if(extent && rent) {
return (extent * rent).toFixed(2)
}else {
return 0
}
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
@@ -477,13 +487,11 @@
const app = this const app = this
if (app.disabled === true) return if (app.disabled === true) return
console.log("app.tempFile: ", app.tempFile); console.log("app.tempFile: ", app.tempFile);
const supporting = this.supportingData.filter(item=>item.checked)
this.$refs.uForm.validate().then(() => { this.$refs.uForm.validate().then(() => {
app.disabled = true app.disabled = true
app.form.houseLabel = JSON.stringify(app.houseLabel) app.form.houseLabel = JSON.stringify(app.houseLabel)
app.form.files = JSON.stringify(app.fileList1) app.form.files = JSON.stringify(app.fileList1)
app.form.videoUrl = app.fileList2[0]?app.fileList2[0].url: null app.form.videoUrl = app.fileList2[0]?app.fileList2[0].url: null
app.form.supporting = JSON.stringify(supporting)
const saveOrUpdate = app.selectId > 0 ? updateHouseInfo : addHouseInfo; const saveOrUpdate = app.selectId > 0 ? updateHouseInfo : addHouseInfo;
saveOrUpdate(app.form).then(result => { saveOrUpdate(app.form).then(result => {
app.$toast('保存成功') app.$toast('保存成功')

View File

@@ -36,7 +36,7 @@
</scroll-view> </scroll-view>
<view class="dict"> <view class="dict">
<view class="dict-item"> <view class="dict-item">
<text class="title">{{ form.videoUrl.monthlyRent || 0 }}/</text> <text class="title">{{ form.monthlyRent || 0 }}/</text>
<text class="desc">月租</text> <text class="desc">月租</text>
</view> </view>
<view class="dict-item"> <view class="dict-item">