This commit is contained in:
A1300399510 2023-04-28 17:14:54 +08:00
parent 46509dd860
commit 2eb0c5696d
5 changed files with 21 additions and 8 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
@eaDir/
/.git
*.log
project.private.config.json

View File

@ -482,11 +482,19 @@ Page({
// 获取关于发布
getAbout() {
if (!app.globalData['aboutRulesList']) {
this.setData({
aboutRulesList: app.globalData['aboutRulesList']
})
return
}
miucms.request(`${app.globalData.baseURL}/tenement/v2.Publish/about`).then(res => {
app.globalData['aboutRulesList'] = res.data
this.setData({
aboutRulesList: res.data
})
})
console.log("aboutRulesList", this.data.aboutRulesList);
},
// 新的获取发布数据

View File

@ -545,7 +545,13 @@ Page({
// 获取关于发布
getAbout() {
if (!app.globalData['aboutRulesList']) {
this.setData({
aboutRulesList: app.globalData['aboutRulesList']
})
}
miucms.request(`${app.globalData.baseURL}/tenement/v2.Publish/about`).then(res => {
app.globalData['aboutRulesList'] = res.data
this.setData({
aboutRulesList: res.data
})
@ -823,6 +829,7 @@ Page({
pitchyear: this.data.pitchyear,
pitchmonth: this.data.pitchmonth,
pitchday: this.data.pitchday,
allowpublishednum: data.allowpublishednum,
})
@ -1721,7 +1728,7 @@ Page({
} else field = e
if (field == "intermediary" && value == "求房源") {
wx.navigateTo({
url: `/pages/askHousing/askHousing?uniqid=${this.data.uniqid}`,
})

View File

@ -75,7 +75,7 @@
</view>
<view class="edit-head-surplus flexacenter" bindtap="setValue" data-key="popUpIs" data-value="about">
<view class="edit-head-surplus-text">您还可以发布 <text>3</text> 条普通房源</view>
<view class="edit-head-surplus-text">您还可以发布 <text>{{ allowpublishednum }}</text> 条普通房源</view>
<view class="flexacenter">
了解更多<image class="edit-head-surplus-icon" src="/img/blue-arrow.svg"></image>
</view>

View File

@ -359,12 +359,6 @@
"query": "",
"scene": null
},
{
"name": "",
"pathName": "pages/show/show",
"query": "tid=&uniqid=nLDv5qiWyPLH",
"scene": null
},
{
"name": "",
"pathName": "pages/show/show",