liujq пре 3 година
родитељ
комит
55815074ff
40 измењених фајлова са 132 додато и 48 уклоњено
  1. 1 1
      src/app.jsx
  2. 2 3
      src/pages/index/components/popup/index.jsx
  3. 1 1
      src/pages/index/index.jsx
  4. 1 1
      src/pagesHouse/index.jsx
  5. 12 2
      src/pagesHouse/indexDtl.jsx
  6. 3 1
      src/pagesHouse/indexDtlAround.jsx
  7. 3 1
      src/pagesHouse/indexDtlMap.jsx
  8. 3 1
      src/pagesHouse/indexDtlMore.jsx
  9. 4 2
      src/pagesHouse/list.jsx
  10. 3 1
      src/pagesHouse/news.jsx
  11. 3 1
      src/pagesHouse/photo.jsx
  12. 8 1
      src/pagesHouse/pkDtl.jsx
  13. 6 1
      src/pagesHouse/pkList.jsx
  14. 3 1
      src/pagesHouse/price.jsx
  15. 3 1
      src/pagesHouse/produceType.jsx
  16. 3 1
      src/pagesHouse/roomPrice.jsx
  17. 3 1
      src/pagesHouse/roomPriceImg.jsx
  18. 3 1
      src/pagesHouse/roomPriceList.jsx
  19. 1 1
      src/pagesMore/center/loanCalc.jsx
  20. 1 1
      src/pagesMore/center/queryBuyHouse.jsx
  21. 3 1
      src/pagesMore/center/webViews.jsx
  22. 6 1
      src/pagesMore/comment/dtl.jsx
  23. 3 1
      src/pagesMore/comment/list.jsx
  24. 10 2
      src/pagesMore/news/index.jsx
  25. 4 1
      src/pagesMore/news/indexDtl.jsx
  26. 3 1
      src/pagesMore/news/list.jsx
  27. 3 1
      src/pagesMore/news/tpDtl.jsx
  28. 3 1
      src/pagesMore/qa/dtl.jsx
  29. 1 1
      src/pagesMore/qa/list.jsx
  30. 1 0
      src/pagesPlan/apply.jsx
  31. 4 1
      src/pagesQa/dtl.jsx
  32. 3 1
      src/pagesQa/dtlSub.jsx
  33. 2 2
      src/pagesQa/index.jsx
  34. 3 2
      src/pagesQa/index.scss
  35. 2 2
      src/pagesSchool/area.jsx
  36. 3 1
      src/pagesSchool/class.jsx
  37. 3 1
      src/pagesSchool/houseList.jsx
  38. 2 2
      src/pagesSchool/index.jsx
  39. 3 1
      src/pagesSchool/indexDtl.jsx
  40. 3 1
      src/pagesSchool/theme.jsx

+ 1 - 1
src/app.jsx

@@ -149,6 +149,7 @@ class App extends Component {
       Taro.setStorageSync('dictData', newDict)
     })
     Taro.removeStorageSync('APP_indexOpen')
+    Taro.setStorageSync('APP_newsDot', 'yes')
     let that = this
     let uiObj = Taro.getStorageSync('APP_userInfo')
     if (uiObj && uiObj.phone === '15625261123') {
@@ -158,7 +159,6 @@ class App extends Component {
       success: function (res) {
         if (res.code) {
           Taro.api.base.apiwxautologin({code: res.code}).then(data => {
-            Taro.setStorageSync('APP_newsDot', 'yes')
             if (data.token === 'error') {
               Taro.removeStorageSync('APP_token')
             } else {

+ 2 - 3
src/pages/index/components/popup/index.jsx

@@ -43,7 +43,6 @@ export default class Popup extends Component {
   }
 
   getData = (curObj) => {
-    console.log(curObj)
     this.setState({
       curObj
     })
@@ -82,12 +81,12 @@ export default class Popup extends Component {
     const { isPopupShow, curObj, countNum } = this.state
     const bgClose = require('@img/icon_g_close2.png')
     return (
-      <View className={isPopupShow ? 'l-modal-box' : 'l-modal-box hide'}>
+      <View className={isPopupShow && curObj.images ? 'l-modal-box' : 'l-modal-box hide'}>
         <View className='lmb-bg'></View>
         <View className='lmb-body'>
           <View className="scoped-box">
             <Image src={curObj.images} className="img" onClick={this.moreHandle.bind(this)} />
-            <View className="count">
+            <View className="count" onClick={this.closePopup.bind(this)}>
               <View className="bg"></View>
               <View className="t">跳过{countNum}</View>
             </View>

+ 1 - 1
src/pages/index/index.jsx

@@ -19,7 +19,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '洪楼Plus,专注南昌本地房地产市场,让买房,更省心!',
     }
   }
 

+ 1 - 1
src/pagesHouse/index.jsx

@@ -16,7 +16,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '洪楼Plus,专注南昌本地房地产市场,让买房,更省心!',
     }
   }
 

+ 12 - 2
src/pagesHouse/indexDtl.jsx

@@ -24,8 +24,18 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
-    return {
-      title: '让买房,更省心!',
+    const { YH } = this.$router.params
+    const { curId, curObj } = this.state
+    if (YH === 'zzyh' || YH === 'yhjg') {
+      return {
+        title: `${curObj.estate_name}-楼盘详情`,
+        path: `/pagesHouse/indexDtl?id=${curId}&YH=${YH}`,
+      }
+    } else {
+      return {
+        title: `${curObj.estate_name}-楼盘详情`,
+        path: `/pagesHouse/indexDtl?id=${curId}`,
+      }
     }
   }
   

+ 3 - 1
src/pagesHouse/indexDtlAround.jsx

@@ -15,8 +15,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-的周边配套`,
+      path: `/pagesHouse/indexDtlAround?id=${id}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/indexDtlMap.jsx

@@ -14,8 +14,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-楼盘详情-洪楼Plus`,
+      path: `/pagesHouse/indexDtl?id=${id}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/indexDtlMore.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curId, curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `${curObj.estate_name}-楼盘详情`,
+      path: `/pagesHouse/indexDtl?id=${curId}`,
     }
   }
 

+ 4 - 2
src/pagesHouse/list.jsx

@@ -10,13 +10,15 @@ class Index extends Component {
   onShareAppMessage() {
     const { type, name } = this.$router.params
     return {
-      title: `来看看南昌的${name}`,
+      title: `${name}-洪楼精选专题`,
       path: `/pagesHouse/list?type=${type}&name=${name}`,
     }
   }
   onShareTimeline () {
+    const { type, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-洪楼精选专题`,
+      path: `/pagesHouse/list?type=${type}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/news.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {id, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-楼盘动态`,
+      path: `/pagesHouse/indexDtl?id=${id}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/photo.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {id, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-楼盘详情`,
+      path: `/pagesHouse/indexDtl?id=${id}`,
     }
   }
   

+ 8 - 1
src/pagesHouse/pkDtl.jsx

@@ -18,8 +18,15 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { pkArr } = this.state
+    let idArr = []
+    const nameArr = pkArr.map(item => {
+      idArr.push(item.id)
+      return item.estate_name
+    })
     return {
-      title: '让买房,更省心!',
+      title: `${nameArr.join('vs')}-楼盘对比`,
+      path: `/pagesHouse/pkDtl?id=${idArr.join(',')}`,
     }
   }
 

+ 6 - 1
src/pagesHouse/pkList.jsx

@@ -17,8 +17,13 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { dataList } = this.state
+    const curArr = dataList.map(item => {
+      return item.id
+    })
     return {
-      title: '让买房,更省心!',
+      title: `看看我选的这几个楼盘怎么样`,
+      path: `/pagesHouse/pkList?id=${curArr.join(',')}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/price.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {id, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}的历史成交价`,
+      path: `/pagesHouse/price?id=${id}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/produceType.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curId, curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `来看看${curObj.estate_name}的全部户型图`,
+      path: `/pagesHouse/produceType?id=${curId}&name=${curObj.estate_name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/roomPrice.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {eId, id, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的一房一价表`,
+      path: `/pagesHouse/roomPrice?eId=${eId}&id=${id}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesHouse/roomPriceImg.jsx

@@ -11,8 +11,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {eId, id, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的一房一价表`,
+      path: `/pagesHouse/roomPrice?eId=${eId}&id=${id}&name=${name}`,
     }
   }
   

+ 3 - 1
src/pagesHouse/roomPriceList.jsx

@@ -11,8 +11,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const {eId, name} = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的往期摇号`,
+      path: `/pagesHouse/roomPriceList?eId=${eId}&name=${name}`,
     }
   }
   

+ 1 - 1
src/pagesMore/center/loanCalc.jsx

@@ -12,7 +12,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: `房贷税费计算工具`,
     }
   }
 

+ 1 - 1
src/pagesMore/center/queryBuyHouse.jsx

@@ -12,7 +12,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '南昌购房资质查询',
     }
   }
 

+ 3 - 1
src/pagesMore/center/webViews.jsx

@@ -10,8 +10,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { url } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: '洪楼Plus,专注南昌本地房地产市场,让买房,更省心!',
+      path: `/pagesMore/center/webViews?url=${url}`,
     }
   }
 

+ 6 - 1
src/pagesMore/comment/dtl.jsx

@@ -16,8 +16,13 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id, schoolId, estateId } = this.$router.params
+    let path = ''
+    if (schoolId) path = `/pagesMore/comment/dtl?id=${id}&schoolId=${schoolId}`
+    if (estateId) path = `/pagesMore/comment/dtl?id=${id}&estateId=${estateId}`
     return {
-      title: '让买房,更省心!',
+      title: `来看看这些洪楼评论,有点意思`,
+      path
     }
   }
 

+ 3 - 1
src/pagesMore/comment/list.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的精彩评论`,
+      path: `/pagesMore/comment/list?id=${id}&name=${name}`,
     }
   }
 

+ 10 - 2
src/pagesMore/news/index.jsx

@@ -59,8 +59,16 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
-    return {
-      title: '让买房,更省心!',
+    const { curNav } = this.state
+    if (curNav && curNav > 0) {
+      return {
+        title: '南昌楼市的土拍信息都汇集这里啦',
+        path: `/pagesMore/news/index?nav=${curNav}`
+      }
+    } else {
+      return {
+        title: '来看看洪楼对南昌楼市的见解和攻略',
+      }
     }
   }
 

+ 4 - 1
src/pagesMore/news/indexDtl.jsx

@@ -13,8 +13,11 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: '洪楼Plus,专注南昌本地房地产市场,让买房,更省心!',
+      path: `/pagesMore/news/indexDtl?id=${curObj.id}`,  // 自定义的分享路径,点击分享的卡片之后会跳转这里定义的路由
+      // imageUrl: '' // 图片路径
     }
   }
 

+ 3 - 1
src/pagesMore/news/list.jsx

@@ -25,8 +25,10 @@ class Index extends Component {
     return rObj
   }
   onShareTimeline () {
+    const { type, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `${name}-洪楼专题`,
+      path: `/pagesMore/news/list?type=${type}&name=${name}`,
     }
   }
 

+ 3 - 1
src/pagesMore/news/tpDtl.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curId, curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `${curObj.no}-南昌土拍详情`,
+      path: `/pagesMore/news/tpDtl?id=${curId}`,
     }
   }
 

+ 3 - 1
src/pagesMore/qa/dtl.jsx

@@ -14,8 +14,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来谈谈你的见解?`,
+      path: `/pagesMore/qa/dtl?id=${id}`,
     }
   }
 

+ 1 - 1
src/pagesMore/qa/list.jsx

@@ -15,7 +15,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '常见答疑-洪楼解惑',
     }
   }
 

+ 1 - 0
src/pagesPlan/apply.jsx

@@ -14,6 +14,7 @@ class Index extends Component {
   onShareTimeline () {
     return {
       title: '南昌买房,来洪楼领取专属优惠',
+      path: `/pagesPlan/apply`,
     }
   }
 

+ 4 - 1
src/pagesQa/dtl.jsx

@@ -14,8 +14,11 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id } = this.$router.params
+    const { curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `${curObj.question_cont}`,
+      path: `/pagesQa/dtl?id=${id}`,
     }
   }
 

+ 3 - 1
src/pagesQa/dtlSub.jsx

@@ -13,8 +13,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `来看看这些洪楼评论,有点意思`,
+      path: `/pagesQa/dtl?id=${curObj.question_id}`
     }
   }
 

+ 2 - 2
src/pagesQa/index.jsx

@@ -27,7 +27,7 @@ class Index extends Component {
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '南昌楼市问答交流解惑,来洪楼圈~',
     }
   }
 
@@ -50,7 +50,7 @@ class Index extends Component {
   }
 
   config = {
-    navigationBarTitleText: '南昌买房看洪楼',
+    navigationBarTitleText: '南昌楼市交流解惑',
   }
 
   componentWillMount () {

+ 3 - 2
src/pagesQa/index.scss

@@ -143,9 +143,10 @@
   }
   .ql-img {
     display: flex;
+    flex-wrap: wrap;
     padding-bottom: 20px;
     .op {
-      flex: 1;
+      width: 210px;
       height: 200px;
       overflow: hidden;
       margin-right: 20px;
@@ -154,7 +155,7 @@
       }
     }
     .img {
-      width: 100%;
+      width: 210px;
       height: 200px;
     }
   }

+ 2 - 2
src/pagesSchool/area.jsx

@@ -7,12 +7,12 @@ import { arrToObj } from '@utils'
 class Index extends Component {
   onShareAppMessage() {
     return {
-      title: `来看看南昌的这些区域有哪些学校`,
+      title: `来看看南昌各个区域有哪些学校`,
     }
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: `来看看南昌各个区域有哪些学校,洪楼告诉你哪些楼盘可以读`,
     }
   }
 

+ 3 - 1
src/pagesSchool/class.jsx

@@ -11,8 +11,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curId, curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `来看看南昌的热门学区有哪些`,
+      path: `/pagesSchool/class`,
     }
   }
 

+ 3 - 1
src/pagesSchool/houseList.jsx

@@ -15,8 +15,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { id, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的周边楼盘`,
+      path: `/pagesMore/comment/list?id=${id}&name=${name}`,
     }
   }
   constructor (props) {

+ 2 - 2
src/pagesSchool/index.jsx

@@ -10,12 +10,12 @@ import { arrToObj } from '@utils'
 class Index extends Component {
   onShareAppMessage() {
     return {
-      title: '洪楼Plus-查学区',
+      title: '来看看南昌各个区域有哪些学校,洪楼告诉你哪些楼盘可以读',
     }
   }
   onShareTimeline () {
     return {
-      title: '让买房,更省心!',
+      title: '来看看南昌各个区域有哪些学校,洪楼告诉你哪些楼盘可以读',
     }
   }
 

+ 3 - 1
src/pagesSchool/indexDtl.jsx

@@ -17,8 +17,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { curId, curObj } = this.state
     return {
-      title: '让买房,更省心!',
+      title: `来看看${curObj.school_name}周边的房子有哪些?`,
+      path: `/pagesSchool/indexDtl?id=${curId}`,
     }
   }
 

+ 3 - 1
src/pagesSchool/theme.jsx

@@ -16,8 +16,10 @@ class Index extends Component {
     }
   }
   onShareTimeline () {
+    const { type, name } = this.$router.params
     return {
-      title: '让买房,更省心!',
+      title: `来看看${name}的学校有哪些`,
+      path: `/pagesSchool/theme?type=${type}&name=${name}`,
     }
   }