Browse Source

bug修复 -刘绍文 -2020.5.28

feature/v2.0
liushaowen 5 years ago
parent
commit
b9ef1e3da0
  1. 3
      epdc-resident-mp-yushan/app.json
  2. 22
      epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxml
  3. 24
      epdc-resident-mp-yushan/pages/property/property.js
  4. 2
      epdc-resident-mp-yushan/pages/property/property.wxml
  5. 36
      epdc-resident-mp-yushan/pages/welcome/welcome.js
  6. 2
      epdc-resident-mp-yushan/subpages/home/pages/notice/notice.json
  7. 2
      epdc-resident-mp-yushan/subpages/home/pages/notice/notice.wxml
  8. 2
      epdc-resident-mp-yushan/subpages/home/pages/noticeDetail/noticeDetail.json
  9. 2
      epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.js
  10. 2
      epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.wxml
  11. 1
      epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.wxss
  12. 7
      epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.js
  13. 6
      epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml
  14. 2
      epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.js
  15. 2
      epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.wxml
  16. 1
      epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.wxss
  17. 6
      epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxml
  18. BIN
      epdc-resident-mp-yushan/subpages/safety/images/caibuliang.png
  19. BIN
      epdc-resident-mp-yushan/subpages/safety/images/cailiang.png
  20. BIN
      epdc-resident-mp-yushan/subpages/safety/images/ic_yueduliang.png
  21. BIN
      epdc-resident-mp-yushan/subpages/safety/images/zanbuliang.png
  22. BIN
      epdc-resident-mp-yushan/subpages/safety/images/zanliang.png
  23. 31
      epdc-resident-mp-yushan/subpages/safety/pages/index/index.js
  24. 140
      epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js
  25. 6
      epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.json
  26. 38
      epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.wxml
  27. 126
      epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.wxss
  28. 6
      epdc-resident-mp-yushan/utils/api.js

3
epdc-resident-mp-yushan/app.json

@ -116,7 +116,8 @@
"root": "subpages/safety",
"name": "safety",
"pages": [
"pages/index/index"
"pages/index/index",
"pages/newsDetail/newsDetail"
]
}
],

22
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxml

@ -1,34 +1,34 @@
<view class="sudoku">
<view class="content">
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToAssociation">
<view class="item" hover-stay-time="150" bindtap="navigateToAssociation">
<image src="../../../../images/home/association.png" />
<view class="name">左邻右舍</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToDiscussion">
<view class="item" hover-stay-time="150" bindtap="navigateToDiscussion">
<image src="../../../../images/home/discussion.png" />
<view class="name">有么说么</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToProperty">
<view class="item" hover-stay-time="150" bindtap="navigateToProperty">
<image src="../../../../images/home/property.png" />
<view class="name">我的物业</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToHeart">
<view class="item" hover-stay-time="150" bindtap="navigateToHeart">
<image src="../../../../images/home/heart.png" />
<view class="name">互帮互助</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToSafe">
<view class="item" hover-stay-time="150" bindtap="navigateToPolicy">
<image src="../../../../images/home/policy.png" />
<view class="name">通知公告</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToSafe">
<image src="../../../../images/home/safe.png" />
<view class="name">平安榆山</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToPolicy">
<image src="../../../../images/home/policy.png" />
<view class="name">政策法规</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToEducation">
<view class="item" hover-stay-time="150" bindtap="navigateToEducation">
<image src="../../../../images/home/edu-grey.png" />
<view class="name">社区教育</view>
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="navigateToSyntheticalService">
<view class="item" hover-stay-time="150" bindtap="navigateToSyntheticalService">
<image src="../../../../images/home/synthetical-service-grey.png" />
<view class="name">综合服务</view>
</view>

24
epdc-resident-mp-yushan/pages/property/property.js

@ -125,11 +125,23 @@ Page({
})
},
changeScore(){
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
this.setData({
showSubmit:true
})
},
submitScore(){
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
//0~100
let score = Number(this.data.tempScore.trim());
if(isNaN(score) || this.data.tempScore.indexOf('.') != -1 || score < 0 || score >100 || this.data.tempScore.trim() == ''){
@ -145,7 +157,11 @@ Page({
'score':score
}
api.submitScore(param).then(res=>{
this.initPropertyInfo(this.data.tabList[this.data.currentTabIndex].id)
this.setData({
'projectInfo.avaScore':res.data,
showSubmit:false,
'projectInfo.userScore':score,
})
})
},
// getRecommend(){
@ -234,5 +250,11 @@ Page({
url: `/subpages/property/pages/topicList/topicList?groupId=${groupid}&groupName=${groupname}&state=${state}`
})
}
},
makeCall(e){
const {phone} = e.target.dataset;
wx.makePhoneCall({
phoneNumber: phone,
})
}
})

2
epdc-resident-mp-yushan/pages/property/property.wxml

@ -31,7 +31,7 @@
<view class="info-item">
<image src="../../images/property/tel.png" class="info-img"></image>
<view class="info-detail">物业电话:</view>
<view class="info-detail">{{projectInfo.propertyTel}}</view>
<view class="info-detail" data-phone="{{projectInfo.propertyTel}}" style="color:blue;text-decoration:underline" bindtap="makeCall">{{projectInfo.propertyTel}}</view>
</view>
<view class="info-item">
<image src="../../images/property/person-in-charge.png" class="info-img"></image>

36
epdc-resident-mp-yushan/pages/welcome/welcome.js

@ -1,4 +1,7 @@
const app = getApp()
import {
getStartupPageV2
} from '../../utils/api'
Page({
data: {
@ -10,7 +13,7 @@ Page({
imgList: [],
datanum: 0, //第几个数组
datalength: 0, //数组长度
allTime: 3,//总时间
allTime: 0,//总时间
},
onLoad(options) {
if (options.scene) {
@ -38,6 +41,11 @@ Page({
allTime: this.data.allTime
})
clearInterval(this.data.timer)
if (this.data.scene) {
wx.reLaunch({
url: `/pages/inde/index?scene=${this.data.scene}`
})
} else {
if (this.data.scene) {
wx.reLaunch({
url: `/pages/index/index?scene=${this.data.scene}`
@ -48,6 +56,7 @@ Page({
})
}
}
}
}, 1000)
},
// 立即进入
@ -65,11 +74,32 @@ Page({
},
// 获取启动页信息
getStartupPage() {
wx.showLoading({
title: '获取中...'
})
getStartupPageV2().then(res => {
wx.hideLoading()
console.log('获取启动页信息', res)
if (res.data.length > 0) {
res.data.forEach((item, index) => {
// this.data.allTime = this.data.allTime + item.duration
this.setData({
datalength: 1,
imgList: [{imgUrl:'https://epdc-yushan.elinkservice.cn/files-pro/20200522/02c3341b36d746338918c17676b2a864.png',duration:'3'}]
allTime: this.data.allTime + item.duration
})
})
this.setData({
datalength: res.data.length,
imgList: res.data
})
this.getloop()
} else {
this.immeEnter()
}
}).catch(err => {
wx.hideLoading()
this.immeEnter()
})
},
//数组循环
getloop() {

2
epdc-resident-mp-yushan/subpages/home/pages/notice/notice.json

@ -1,5 +1,5 @@
{
"usingComponents": {
},
"navigationBarTitleText": "政策法规"
"navigationBarTitleText": "通知公告"
}

2
epdc-resident-mp-yushan/subpages/home/pages/notice/notice.wxml

@ -13,7 +13,7 @@
<view class="notice-logo">
<image src="../../images/ic_tongzhixiaoxi.png" />
</view>
<span class="location">{{item.deptName}}-政策法规</span>
<span class="location">{{item.deptName}}</span>
<span class="time">{{item.noticeTime}}</span>
</view>
</view>

2
epdc-resident-mp-yushan/subpages/home/pages/noticeDetail/noticeDetail.json

@ -1,5 +1,5 @@
{
"usingComponents": {
},
"navigationBarTitleText": "政策法规详情"
"navigationBarTitleText": "通知公告详情"
}

2
epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.js

@ -7,7 +7,7 @@ Component({
},
methods: {
navigatetoNewsDetail (e) {
this.triggerEvent('navigatetoNewsDetail', {newsId: e.currentTarget.dataset.newsid})
this.triggerEvent('navigatetoNewsDetail', {id: e.currentTarget.dataset.newsid})
}
}
})

2
epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.wxml

@ -16,7 +16,7 @@
<view class="right">
<view class="title">{{item.newsTitle}}</view>
<view class="bottom">
<view class="category">{{item.deptName}}-{{item.newsCategoryName}}</view>
<view class="category">{{item.deptName}}</view>
<view class="time">{{filters.formatTimestamp(item.newsStartTime)}}</view>
</view>
</view>

1
epdc-resident-mp-yushan/subpages/safety/components/announcementList/announcementList.wxss

@ -29,6 +29,7 @@
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
height:90rpx;
}
.news-list .list-item .right .bottom {
display: flex;

7
epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.js

@ -16,6 +16,13 @@ Component({
methods: {
joinGroup(e){
this.triggerEvent("joinGroup",e);
},
makeCall(e){
console.log(e)
const {phone} = e.target.dataset;
wx.makePhoneCall({
phoneNumber: phone,
})
}
}
})

6
epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml

@ -10,11 +10,11 @@
</view>
<view class="police-name">
<image src="../../images/tel.png" class="info-img"></image>
<view>联系方式:{{item.policeTel}}</view>
联系方式:<view data-phone="{{item.policeTel}}" bindtap="makeCall" style="color:blue;text-decoration:underline">{{item.policeTel}}</view>
</view>
</view>
</view>
<view class="info-group" wx:if='{{policeInfo.policeList.length != 0}}'>
<view class="info-group" wx:if='{{policeInfo.policeList.length != 0 && policeInfo.policeList != undefined}}'>
<image src="{{policeInfo.groupAvatar}}" class="group-pic"></image>
<view class="group-detail">
<view class="group-name">{{policeInfo.groupName}}</view>
@ -27,7 +27,7 @@
</view>
</view>
</view>
<view wx:if='{{policeInfo.policeList.length==0}}' class="no-police-data">
<view wx:if='{{policeInfo.policeList.length==0 || policeInfo.policeList == undefined}}' class="no-police-data">
暂无民警信息~
</view>
</view>

2
epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.js

@ -7,7 +7,7 @@ Component({
},
methods: {
navigatetoNewsDetail (e) {
this.triggerEvent('navigatetoNewsDetail', {newsId: e.currentTarget.dataset.newsid})
this.triggerEvent('navigatetoNewsDetail', {id: e.currentTarget.dataset.newsid})
}
}
})

2
epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.wxml

@ -16,7 +16,7 @@
<view class="right">
<view class="title">{{item.newsTitle}}</view>
<view class="bottom">
<view class="category">{{item.deptName}}-{{item.newsCategoryName}}</view>
<view class="category">{{item.deptName}}</view>
<view class="time">{{filters.formatTimestamp(item.newsStartTime)}}</view>
</view>
</view>

1
epdc-resident-mp-yushan/subpages/safety/components/precautionList/precautionList.wxss

@ -29,6 +29,7 @@
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
height: 90rpx;
}
.news-list .list-item .right .bottom {
display: flex;

6
epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxml

@ -1,13 +1,13 @@
<wxs src="../../../../utils/filter.wxs" module="filters"></wxs>
<view class="sudoku">
<view class="content">
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="showMyPolice">
<view class="item" hover-stay-time="150" bindtap="showMyPolice">
<image src="../../images/minjing.png" />
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="showPrecaution">
<view class="item" hover-stay-time="150" bindtap="showPrecaution">
<image src="../../images/pingan.png" />
</view>
<view class="item" hover-stay-time="150" hover-class="hover-sudoku" bindtap="showAnnouncement">
<view class="item" hover-stay-time="150" bindtap="showAnnouncement">
<image src="../../images/tongbao.png" />
</view>
</view>

BIN
epdc-resident-mp-yushan/subpages/safety/images/caibuliang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/cailiang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/ic_yueduliang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/zanbuliang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/zanliang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

31
epdc-resident-mp-yushan/subpages/safety/pages/index/index.js

@ -11,7 +11,7 @@ Page({
policeInfo:{},
precautionList:[],
announcementList:[],
showMyPoliceFlag:false,
showMyPoliceFlag:true,
showAnnouncementFlag:false,
showPrecautionFlag:false,
loadMoreType:'more',
@ -44,12 +44,16 @@ Page({
// 获取banner列表
getBannerList () {
api.getBannerList().then(res => {
console.log('首页banner列表', res)
if(res.data.length == 0){
this.setData({
bannerList: [{'imgUrl':'../../images/temp.png','title':'防范火灾 平安假日'}]
})
}else{
this.setData({
bannerList: res.data
})
}
}).catch(() => {
console.log('获取banner列表失败')
this.setData({
bannerList: [{'imgUrl':'../../images/temp.png','title':'防范火灾 平安假日'}]
})
@ -123,6 +127,7 @@ Page({
})
},
showMyPolice(){
this.getPoliceInfo()
this.setData({
showMyPoliceFlag:true,
showPrecautionFlag:false,
@ -222,12 +227,26 @@ Page({
const { id, url, newsFlag } = e.detail
if (newsFlag == '0') {
wx.navigateTo({
url: `/subpages/home/pages/webview/webview?url=${url}`
url: `/subpages/safety/pages/webview/webview?url=${url}`
})
} else if (newsFlag == '1') {
wx.navigateTo({
url: `/subpages/home/pages/newsDetail/newsDetail?id=${id}`
url: `/subpages/safety/pages/newsDetail/newsDetail?id=${id}`
})
}
}
},
//跳转平安防范详情
navigateToPrecautionDetail(e){
let {id} = e.detail
wx.navigateTo({
url: `/subpages/safety/pages/newsDetail/newsDetail?id=${id}`
})
},
//跳转警情通报列表
navigateToAnnouncementDetail(e){
let {id} = e.detail
wx.navigateTo({
url: `/subpages/safety/pages/newsDetail/newsDetail?id=${id}`
})
},
})

140
epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js

@ -0,0 +1,140 @@
const api = require('../../../../utils/home')
import { getTimestamp } from '../../../../utils/common'
import util from '../../../../utils/util'
const app = getApp()
Page({
data: {
detailId: '',
supportStatus: 'support',
dispportStatus: 'dispport',
noticeObj: {},
infoCompleted: 0,
noticeObjContent: ''
},
onLoad (options) {
this.setData({
detailId: options.id,
infoCompleted: app.globalData.infoCompleted
})
this.getNewsDetail(options.id)
this.browseNews(options.id)
},
getNewsDetail (id) {
let that = this
api.getNewsDetail(id).then(res => {
that.setData({
noticeObj: res.data,
noticeObjContent: util.formatRichText(res.data.newsContent)
})
if (that.data.noticeObj.likeFlag == '1') {
that.setData({
supportStatus: 'supported'
})
}
if (that.data.noticeObj.unLikeFlag == '1') {
that.setData({
dispportStatus: 'dispported'
})
}
}).catch(err => {
console.log(err)
})
},
browseNews (id) {
let para = {
newsId: id
}
api.browseNews(para).then(res => {
}).catch(err => {
console.log(err)
})
},
// 检查 是否完善信息
verifyCompleteInfo () {
if (this.data.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return true
} else {
return false
}
},
newsPosition (e) {
// newsPosition (attitude, bySelf = false) {
if (this.verifyCompleteInfo()) {
return false
}
console.log(e)
let attitude = e.currentTarget.dataset.state,
bySelf = e.currentTarget.dataset.byself
if (bySelf=='true') {
let attitudeState = ''
if (attitude === '0') {
if (this.data.dispportStatus === 'dispported') {
// this.dispportStatus = 'dispport'
// this.newsObj.unlikeNumber -= 1
this.setData({
dispportStatus: 'dispport',
['noticeObj.unlikeNumber']: this.data.noticeObj.unlikeNumber - 1
})
}
if (this.data.supportStatus === 'support') {
attitudeState = '0'
// this.supportStatus = 'supported'
// this.newsObj.likeNumber += 1
this.setData({
supportStatus: 'supported',
['noticeObj.likeNumber']: this.data.noticeObj.likeNumber + 1
})
} else if (this.data.supportStatus === 'supported') {
attitudeState = '2'
// this.supportStatus = 'support'
// this.newsObj.likeNumber -= 1
this.setData({
supportStatus: 'support',
['noticeObj.likeNumber']: this.data.noticeObj.likeNumber - 1
})
}
} else if (attitude === '1') {
if (this.data.supportStatus === 'supported') {
// this.supportStatus = 'support'
// this.newsObj.likeNumber -= 1
this.setData({
supportStatus: 'support',
['noticeObj.likeNumber']: this.data.noticeObj.likeNumber - 1
})
}
if (this.data.dispportStatus === 'dispport') {
attitudeState = '1'
// this.dispportStatus = 'dispported'
// this.newsObj.unlikeNumber += 1
this.setData({
dispportStatus: 'dispported',
['noticeObj.unlikeNumber']: this.data.noticeObj.unlikeNumber + 1
})
} else if (this.data.dispportStatus === 'dispported') {
attitudeState = '3'
// this.dispportStatus = 'dispport'
// this.newsObj.unlikeNumber -= 1
this.setData({
dispportStatus: 'dispport',
['noticeObj.unlikeNumber']: this.data.noticeObj.unlikeNumber - 1
})
}
}
const para = {
newsId: this.data.detailId,
attitude: attitudeState
}
// const res = await newsPosition(para)
// console.log('新闻表态', res)
api.newsPosition(para).then(res => {
}).catch(err => {
console.log(err)
})
}
}
})

6
epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.json

@ -0,0 +1,6 @@
{
"usingComponents": {
"completeInfo-dialog": "../../../../../components/completeInfoDialog/completeInfoDialog"
},
"navigationBarTitleText": "平安榆山"
}

38
epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.wxml

@ -0,0 +1,38 @@
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
<view class="notice-detail">
<view class="selfContent">
<view class="detail-title">{{noticeObj.newsTitle}}</view>
<view class="detail-subtitle">
<view class="left">
<span>{{noticeObj.deptName}}</span>
<span>{{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}}</span>
</view>
<view class="right">
<view class="readNum">
<image src="../../images/ic_yueduliang.png" />
</view>
<view class="num">{{noticeObj.readingAmount}}</view>
</view>
</view>
<view class="richContent">
<rich-text space="nbsp" nodes="{{noticeObjContent}}"></rich-text>
</view>
<view class="operation">
<view class="button {{supportStatus == 'supported' ? 'active' : ''}}" data-state="0" data-byself="true" bindtap="newsPosition">
<view>
<image src="{{supportStatus == 'supported' ? '../../images/zanliang.png' : '../../images/zanbuliang.png'}}" />
</view>
<span>支持{{noticeObj.likeNumber}}</span>
</view>
<view class="button {{dispportStatus == 'dispported' ? 'active' : ''}}" data-state="1" data-byself="true" bindtap="newsPosition">
<view>
<image src="{{dispportStatus == 'dispported' ? '../../images/cailiang.png' : '../../images/caibuliang.png'}}" />
</view>
<span>不支持{{noticeObj.unlikeNumber}}</span>
</view>
</view>
</view>
</view>
<completeInfo-dialog
completeInfoDialogVisible="{{completeInfoDialogVisible}}">
</completeInfo-dialog>

126
epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.wxss

@ -0,0 +1,126 @@
.notice-detail {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 20rpx;
background: #f7f7f7;
}
.richContent img{
width: 100%!important;
height: auto;
}
.selfContent {
width: 100%;
display: table;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 0 25rpx 38rpx;
}
.detail-title {
font-family: PingFang-SC-Bold;
font-size: 48rpx;
font-weight: bold;
line-height: 68rpx;
color: #333333;
padding-top: 40rpx;
}
.detail-subtitle {
display: flex;
width: 100%;
justify-content: space-between;
font-size: 22rpx;
color: #999999;
margin-top:45rpx;
}
.detail-subtitle .left span:nth-child(1){
margin-right: 32rpx;
}
.detail-subtitle .right{
display: flex;
height: 32rpx;
line-height: 32rpx;
}
.detail-subtitle .right .readNum {
/* display: inline-block; */
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
.detail-subtitle .right .readNum image{
width: 100%;
height: 100%;
float:left;
object-fit: cover;
}
.banner {
width: 100%;
height: 400rpx;
margin: 39rpx 0 19rpx 0;
}
.banner image{
width: 100%;
height: 100%;
float:left;
object-fit: cover;
border-radius: 16rpx;
overflow: hidden;
}
.paragraph {
font-size: 38rpx;
line-height: 58rpx;
color: #333333;
text-indent: 76rpx;
margin-top:22rpx;
}
.operation {
display: flex;
justify-content: center;
margin-top: 47rpx;
}
.operation .button {
width: 300rpx;
height: 84rpx;
line-height: 84rpx;
border-radius: 42rpx;
display:flex;
justify-content: center;
align-items: center;
border: 1px solid #b8b8b8;
}
.operation .button:nth-child(1) {
margin-right: 33rpx;
}
.operation .button view {
width: 40rpx;
height: 40rpx;
margin-right: 14rpx;
}
.operation .button view image{
width: 100%;
height: 100%;
object-fit: cover;
float: left;
}
.operation .button span {
display: inline-block;
font-size: 24rpx;
position: relative;
top: 1px;
}
.default {
border: 1px solid #eaeaea;
}
.default span {
color: #999999;
}
.active {
border: 1px solid #ffab00;
}
.operation .button.active {
border: 1rpx solid #ffab00;
}
.active span {
color: #ffb700;
}

6
epdc-resident-mp-yushan/utils/api.js

@ -52,7 +52,8 @@ module.exports = {
getPropertyProjectList:getPropertyProjectList,
getPropertyProjectDetail:getPropertyProjectDetail,
applyForGroup:applyForGroup,
submitScore:submitScore
submitScore:submitScore,
getStartupPageV2:getStartupPageV2
}
function getToken(wxCode) {
@ -441,3 +442,6 @@ function applyForGroup(groupId){
return fly.get('property/projectScore',param)
}
export function getStartupPageV2() {
return fly.get('startup/v2/getStartupPage')
}
Loading…
Cancel
Save