This commit is contained in:
@@ -30,5 +30,5 @@ const config = {
|
||||
config.baseUrl = 'http://183.230.235.66:11010/api';
|
||||
|
||||
|
||||
// config.baseUrl = 'http://70b1d4b3.r28.cpolar.top';
|
||||
// config.baseUrl = 'http://46a44a1b.r28.cpolar.top';
|
||||
export default config;
|
||||
|
@@ -13,6 +13,9 @@ const install = (Vue, vm) => {
|
||||
|
||||
login: (params = {}) => vm.$u.post(config.adminPath+'/auth/login', params),
|
||||
getUserInfo: (params = {}) => vm.$u.get(config.adminPath+'/system/user/profile', params),
|
||||
|
||||
//首页公告
|
||||
getNotices:(params = {})=>vm.$u.get(config.adminPath+'/property/mobile/notices/todayList', params),
|
||||
//工作台列表
|
||||
getFunList:(params = {})=>vm.$u.get(config.adminPath+'/system/funList/list', params),
|
||||
//我的访客列表
|
||||
|
@@ -38,12 +38,12 @@
|
||||
</view>
|
||||
<!-- 滚动资讯条 -->
|
||||
<view class="news-bar">
|
||||
<text class="news-label">头条</text>
|
||||
<image class="news-label" src="/static/ic_home_tt.png"></image>
|
||||
<view class="news-scroll-container">
|
||||
<scroll-view scroll-y class="news-scroll" :scroll-top="scrollTop" @scroll="onScroll">
|
||||
<scroll-view scroll-y class="news-scroll" :scroll-top="scrollTop">
|
||||
<view class="news-list">
|
||||
<!-- 重复列表以实现无缝循环 -->
|
||||
<text v-for="(item, idx) in [...newsList, ...newsList]" :key="idx" class="news-item">{{ item }}</text>
|
||||
<text v-for="(item, idx) in [...newsList, ...newsList]" :key="idx" class="news-item" @click="goNoticeDetail(item)">{{ item.title }}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
@@ -74,6 +74,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import toast from '../../../uview-ui/libs/function/toast';
|
||||
|
||||
export default {
|
||||
name: 'Home',
|
||||
data() {
|
||||
@@ -131,7 +133,24 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getNotices()
|
||||
},
|
||||
methods: {
|
||||
async getNotices() {
|
||||
let res = await this.$u.api.getNotices();
|
||||
if (res.code == '200') {
|
||||
this.newsList = res.rows
|
||||
}
|
||||
},
|
||||
goNoticeDetail(item){
|
||||
let params = {}
|
||||
params.title = item.title
|
||||
params.content = item.afficheContent
|
||||
params.time = item.startTime
|
||||
const itemStr = encodeURIComponent(JSON.stringify(params));
|
||||
uni.navigateTo({ url: '/pages/sys/user/serviceCenter/questionDetail?item=' + itemStr });
|
||||
},
|
||||
onBannerChange(e) {
|
||||
this.current = e.detail.current;
|
||||
},
|
||||
@@ -364,21 +383,17 @@
|
||||
.news-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10rpx 0;
|
||||
padding: 40rpx 0;
|
||||
border-top: 1rpx solid #f5f5f5;
|
||||
margin-top: 10rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.news-label {
|
||||
color: #FF6A00;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
margin-right: 16rpx;
|
||||
border: 1rpx solid #FF6A00;
|
||||
border-radius: 4rpx;
|
||||
padding: 2rpx 6rpx;
|
||||
flex-shrink: 0;
|
||||
width: 54rpx;
|
||||
height: 27rpx;
|
||||
margin-left: 15rpx;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
|
||||
.news-scroll-container {
|
||||
|
@@ -4,84 +4,115 @@
|
||||
<view class="scroll-content">
|
||||
<!-- 问题标题 -->
|
||||
<view class="question-title">
|
||||
包月停车、临时停车的办理流程及收费标准
|
||||
{{info.title}}
|
||||
<view class="title-underline"></view>
|
||||
</view>
|
||||
<!-- 内容区 -->
|
||||
<view class="question-content">
|
||||
<view class="question-desc">
|
||||
您好:本项目只有8组团为包月停车,办理流程为:业主携带身份证至物业客户中心前台办理,租户带租赁合同和身份证到前台办理即可;5,6,7,9,10,11组团无包月停车,无需办理包月停车手续;临时停车无需办理。5,6组团为私家车位,无需收费。8组团包月停车的收费标准为:500元/8组团临时停车的收费标准为:小区内9,10,11组团临时停车的收费标准为:二轮车:每小时1元,12小时内5元/次,24小时内10元/次;小型车:每小时3元,12小时内10元/次,24小时内20元/次;大型车:每小时4元,12小时内15元/次,24小时内25元/次
|
||||
{{info.content}}
|
||||
</view>
|
||||
|
||||
<image src="/static/ic_q_d_01.png" class="question-img" mode="widthFix" />
|
||||
<view class="question-time">{{info.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.item) {
|
||||
console.log('t1',options.item)
|
||||
const item = JSON.parse(decodeURIComponent(options.item));
|
||||
this.info = item;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.detail-container {
|
||||
.detail-container {
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-back {
|
||||
.detail-back {
|
||||
position: absolute;
|
||||
left: 37rpx;
|
||||
width: 15rpx;
|
||||
height: 33rpx;
|
||||
}
|
||||
.detail-title {
|
||||
}
|
||||
|
||||
.detail-title {
|
||||
font-size: 36rpx;
|
||||
color: #000;
|
||||
}
|
||||
.scroll-content {
|
||||
}
|
||||
|
||||
.scroll-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
.question-title {
|
||||
}
|
||||
|
||||
.question-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
margin: 40rpx 32rpx 0 64rpx;
|
||||
position: relative;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.title-underline {
|
||||
}
|
||||
|
||||
.title-underline {
|
||||
width: 120rpx;
|
||||
height: 6rpx;
|
||||
background: #3B8BFF;
|
||||
border-radius: 3rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.question-content {
|
||||
}
|
||||
|
||||
.question-content {
|
||||
min-height: 600rpx;
|
||||
margin: 34rpx 24rpx 0 24rpx;
|
||||
background: #EDF6FF;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx dashed #bfc8d6;
|
||||
padding: 32rpx 24rpx 24rpx 24rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.question-desc {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.question-desc {
|
||||
font-size: 28rpx;
|
||||
color: #4A4A4A;
|
||||
line-height: 1.8;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.question-img {
|
||||
}
|
||||
|
||||
.question-time {
|
||||
font-size: 28rpx;
|
||||
color: #4A4A4A;
|
||||
line-height: 1.8;
|
||||
align-self: flex-end;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.question-img {
|
||||
width: 100%;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
@@ -17,7 +17,7 @@
|
||||
<!-- 常见问题 -->
|
||||
<view class="faq-title">常见问题</view>
|
||||
<view class="faq-list">
|
||||
<view class="faq-item" v-for="(item, idx) in faqList" :key="idx" @click="goDetail(idx)">
|
||||
<view class="faq-item" v-for="(item, idx) in faqList" :key="idx" @click="goDetail(item)">
|
||||
<text class="faq-text">{{ item }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -65,8 +65,13 @@
|
||||
phoneNumber: '023950888'
|
||||
});
|
||||
},
|
||||
goDetail(idx) {
|
||||
uni.navigateTo({ url: '/pages/sys/user/serviceCenter/questionDetail' });
|
||||
goDetail(item) {
|
||||
let params = {}
|
||||
params.title = item
|
||||
params.content = item
|
||||
params.time = item
|
||||
const itemStr = encodeURIComponent(JSON.stringify(params));
|
||||
uni.navigateTo({ url: '/pages/sys/user/serviceCenter/questionDetail?item=' + itemStr });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -90,7 +90,8 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
this.isManager = this.vuex_user?.roles?.[0]?.roleId < 3
|
||||
this.isNaomalUser = this.vuex_user?.roles?.[0]?.roleId >10
|
||||
// this.isNaomalUser = this.vuex_user?.roles?.[0]?.roleId >10
|
||||
this.isNaomalUser = false
|
||||
if (options.item) {
|
||||
const item = JSON.parse(decodeURIComponent(options.item));
|
||||
this.detail = item;
|
||||
|
BIN
static/ic_home_tt.png
Normal file
BIN
static/ic_home_tt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
Reference in New Issue
Block a user