|
@@ -23,10 +23,15 @@
|
|
|
<view v-if="ValueZone.length > 0">
|
|
|
<up-swiper :list="ValueZone" :indicator="false" indicatorMode="line" circular></up-swiper>
|
|
|
</view>
|
|
|
+ <view>
|
|
|
+ <up-notice-bar :text="text1" class="notice-bar"></up-notice-bar>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<view class="home-ranking" :class="{ 'no-margin': userType === 2 }">
|
|
|
<ServIces :leftList="leftList" :rightList="rightList" :ValueZoneSwiper="ValueZoneSwiper" v-if="userType == 1">
|
|
|
</ServIces>
|
|
@@ -50,7 +55,7 @@ import { onShow, onReachBottom, onUnload, onPageScroll } from '@dcloudio/uni-app
|
|
|
import RankingList from '@/pages/common/rankingList/index.vue'
|
|
|
import ServIces from '@/components/Services/services.vue'
|
|
|
import { Client } from '@/components/Client/new_file.vue'
|
|
|
-import { volunteerinfolist } from '@/api/volunteerDetailsApi/details.js'
|
|
|
+import { volunteerinfolist, systemConfig } from '@/api/volunteerDetailsApi/details.js'
|
|
|
import { slideshow, settingHomeAddress } from '@/api/home.js'
|
|
|
import { chooseLocationInit, locateTheCurrentAddress } from '@/utils/adress'
|
|
|
import CustomTabBar from '@/components/CustomTabBar/index.vue'
|
|
@@ -65,6 +70,8 @@ const ValueZone = ref(['']) // Initialize with at least one empty item
|
|
|
const hotList = ref([])
|
|
|
const ValueZoneSwiper = ref([''])
|
|
|
const userType = uni.getStorageSync('userType'); //读取本地存储
|
|
|
+const text1 = ref('');
|
|
|
+
|
|
|
|
|
|
const globalData = ref({
|
|
|
statusBarHeight: 47,
|
|
@@ -118,6 +125,12 @@ async function handleLoadmore(e) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 加载滚动文字
|
|
|
+const getNotice = async () => {
|
|
|
+ const res = await systemConfig()
|
|
|
+ text1.value = res.data
|
|
|
+}
|
|
|
+
|
|
|
const getList = async () => {
|
|
|
try {
|
|
|
loadmoreInfo.value.status = 'loading'
|
|
@@ -270,7 +283,7 @@ onPageScroll(e => {
|
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|
|
|
-
|
|
|
+ getNotice()
|
|
|
const token = getToken();
|
|
|
// console.log("TCL: token", token || 'null')
|
|
|
if (token) {
|
|
@@ -359,11 +372,14 @@ onUnload(() => { })
|
|
|
height: 180rpx;
|
|
|
border-radius: 16rpx;
|
|
|
background: linear-gradient(180deg, #FEF9ED 0%, #FFF9F3 100%);
|
|
|
+ .notice-bar{
|
|
|
+ margin-top: 10rpx;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 瀑布流
|
|
|
.home-ranking {
|
|
|
- margin-top: 93rpx;
|
|
|
+ margin-top: 160rpx;
|
|
|
margin-left: 11rpx;
|
|
|
margin-right: 17rpx;
|
|
|
margin-bottom: 120rpx;
|