首页
Some checks failed
Uniapp 自动化打包 CI/CD / 打包 Uniapp 项目 (push) Has been cancelled

This commit is contained in:
2025-09-08 16:24:59 +08:00
parent 2e604b1823
commit f541c0f191
7 changed files with 637 additions and 582 deletions

View File

@@ -30,5 +30,5 @@ const config = {
config.baseUrl = 'http://183.230.235.66:11010/api'; 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; export default config;

View File

@@ -13,6 +13,9 @@ const install = (Vue, vm) => {
login: (params = {}) => vm.$u.post(config.adminPath+'/auth/login', params), login: (params = {}) => vm.$u.post(config.adminPath+'/auth/login', params),
getUserInfo: (params = {}) => vm.$u.get(config.adminPath+'/system/user/profile', 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), getFunList:(params = {})=>vm.$u.get(config.adminPath+'/system/funList/list', params),
//我的访客列表 //我的访客列表

View File

@@ -38,12 +38,12 @@
</view> </view>
<!-- 滚动资讯条 --> <!-- 滚动资讯条 -->
<view class="news-bar"> <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"> <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"> <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> </view>
</scroll-view> </scroll-view>
</view> </view>
@@ -74,6 +74,8 @@
</template> </template>
<script> <script>
import toast from '../../../uview-ui/libs/function/toast';
export default { export default {
name: 'Home', name: 'Home',
data() { data() {
@@ -131,7 +133,24 @@
] ]
} }
}, },
onLoad() {
this.getNotices()
},
methods: { 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) { onBannerChange(e) {
this.current = e.detail.current; this.current = e.detail.current;
}, },
@@ -364,21 +383,17 @@
.news-bar { .news-bar {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10rpx 0; padding: 40rpx 0;
border-top: 1rpx solid #f5f5f5; border-top: 1rpx solid #f5f5f5;
margin-top: 10rpx; margin-top: 10rpx;
height: 60rpx; height: 60rpx;
} }
.news-label { .news-label {
color: #FF6A00; width: 54rpx;
font-size: 28rpx; height: 27rpx;
font-weight: bold; margin-left: 15rpx;
margin-right: 16rpx; margin-right: 15rpx;
border: 1rpx solid #FF6A00;
border-radius: 4rpx;
padding: 2rpx 6rpx;
flex-shrink: 0;
} }
.news-scroll-container { .news-scroll-container {

View File

@@ -4,84 +4,115 @@
<view class="scroll-content"> <view class="scroll-content">
<!-- 问题标题 --> <!-- 问题标题 -->
<view class="question-title"> <view class="question-title">
包月停车临时停车的办理流程及收费标准 {{info.title}}
<view class="title-underline"></view> <view class="title-underline"></view>
</view> </view>
<!-- 内容区 --> <!-- 内容区 -->
<view class="question-content"> <view class="question-content">
<view class="question-desc"> <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> </view>
<image src="/static/ic_q_d_01.png" class="question-img" mode="widthFix" /> <image src="/static/ic_q_d_01.png" class="question-img" mode="widthFix" />
<view class="question-time">{{info.time}}</view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <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: { methods: {
},
} }
}
</script> </script>
<style scoped> <style scoped>
.detail-container { .detail-container {
height: 100vh; height: 100vh;
background: #fff; background: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.detail-back { .detail-back {
position: absolute; position: absolute;
left: 37rpx; left: 37rpx;
width: 15rpx; width: 15rpx;
height: 33rpx; height: 33rpx;
} }
.detail-title {
.detail-title {
font-size: 36rpx; font-size: 36rpx;
color: #000; color: #000;
} }
.scroll-content {
.scroll-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding-bottom: 40rpx; padding-bottom: 40rpx;
} }
.question-title {
.question-title {
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
color: #000000; color: #000000;
margin: 40rpx 32rpx 0 64rpx; margin: 40rpx 32rpx 0 64rpx;
position: relative; position: relative;
line-height: 1.4; line-height: 1.4;
} }
.title-underline {
.title-underline {
width: 120rpx; width: 120rpx;
height: 6rpx; height: 6rpx;
background: #3B8BFF; background: #3B8BFF;
border-radius: 3rpx; border-radius: 3rpx;
margin-top: 8rpx; margin-top: 8rpx;
} }
.question-content {
.question-content {
min-height: 600rpx;
margin: 34rpx 24rpx 0 24rpx; margin: 34rpx 24rpx 0 24rpx;
background: #EDF6FF; background: #EDF6FF;
border-radius: 12rpx; border-radius: 12rpx;
border: 2rpx dashed #bfc8d6;
padding: 32rpx 24rpx 24rpx 24rpx; padding: 32rpx 24rpx 24rpx 24rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; position: relative;
} }
.question-desc {
.question-desc {
font-size: 28rpx; font-size: 28rpx;
color: #4A4A4A; color: #4A4A4A;
line-height: 1.8; line-height: 1.8;
margin-bottom: 24rpx; 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%; width: 100%;
border-radius: 8rpx; border-radius: 8rpx;
} }
</style> </style>

View File

@@ -17,7 +17,7 @@
<!-- 常见问题 --> <!-- 常见问题 -->
<view class="faq-title">常见问题</view> <view class="faq-title">常见问题</view>
<view class="faq-list"> <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> <text class="faq-text">{{ item }}</text>
</view> </view>
</view> </view>
@@ -65,8 +65,13 @@
phoneNumber: '023950888' phoneNumber: '023950888'
}); });
}, },
goDetail(idx) { goDetail(item) {
uni.navigateTo({ url: '/pages/sys/user/serviceCenter/questionDetail' }); 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 });
} }
} }
} }

View File

@@ -90,7 +90,8 @@ export default {
}, },
onLoad(options) { onLoad(options) {
this.isManager = this.vuex_user?.roles?.[0]?.roleId < 3 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) { if (options.item) {
const item = JSON.parse(decodeURIComponent(options.item)); const item = JSON.parse(decodeURIComponent(options.item));
this.detail = item; this.detail = item;

BIN
static/ic_home_tt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB