未央先锋

This commit is contained in:
liuye
2024-07-18 16:59:35 +08:00
parent 45da9df43c
commit 7dec8870b9
4 changed files with 26 additions and 29 deletions

View File

@@ -1,12 +1,12 @@
<template> <template>
<div class="page"> <div class="page">
<div class="header-content"> <div class="header-content">
<u-navbar :is-back="false" title="数智巫溪" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar"></u-navbar> <u-navbar :is-back="false" title="未央先锋" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar"></u-navbar>
<div class="header-bg"> <div class="header-bg">
<div class="weather-info" v-if="weatherInfo.wea"> <!-- <div class="weather-info" v-if="weatherInfo.wea">
<img :src="weatherInfo.icon" alt="" /> <img :src="weatherInfo.icon" alt="" />
<p>今天{{weatherInfo.wea}}{{weatherInfo.tem2}}~{{weatherInfo.tem1}},{{weatherInfo.air_tips}}</p> <p>今天{{weatherInfo.wea}}{{weatherInfo.tem2}}~{{weatherInfo.tem1}},{{weatherInfo.air_tips}}</p>
</div> </div> -->
<div class="swiper-content"> <div class="swiper-content">
<u-swiper :list="swiperList" mode="none" height="364" bg-color="none" @click="handleBannerClick"/> <u-swiper :list="swiperList" mode="none" height="364" bg-color="none" @click="handleBannerClick"/>
</div> </div>
@@ -80,7 +80,7 @@ export default {
data() { data() {
return { return {
cdn: "https://cdn.cunwuyun.cn/wxmp", cdn: "https://cdn.cunwuyun.cn/wxmp",
swiperList: ['https://cdn.cunwuyun.cn/wechat/wuxi/home-swiper1.png'], swiperList: ['https://cdn.cunwuyun.cn/wechat/biaopin/home/home-swiper1.png'],
index: 0, index: 0,
grids: [], grids: [],
activeList: [], activeList: [],
@@ -109,9 +109,6 @@ export default {
return notices?.length > 0 ? notices?.map(e => e.title) || ['暂无公告'] : ['暂无公告'] return notices?.length > 0 ? notices?.map(e => e.title) || ['暂无公告'] : ['暂无公告']
} }
}, },
onReady() {
// uni.setNavigationBarTitle({title: "数智巫溪"})
},
onLoad() { onLoad() {
this.autoLogin().then(() => { this.autoLogin().then(() => {
this.getSwiperList(); this.getSwiperList();
@@ -246,7 +243,7 @@ export default {
} }
}, },
getAppList() { getAppList() {
this.$instance.get("/wuxi_home.json", null, { withoutToken: true }).then(res => { this.$instance.get("/biaopin_home.json", null, { withoutToken: true }).then(res => {
if (res.length) { if (res.length) {
this.appList = res this.appList = res
} }
@@ -278,7 +275,7 @@ export default {
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '欢迎使用数智未央~', title: '欢迎使用基层治理~',
path: `/pages/AppHome/AppHome` path: `/pages/AppHome/AppHome`
} }
}, },
@@ -291,7 +288,7 @@ export default {
.page { .page {
width: 100%; width: 100%;
min-height: 100%; min-height: 100%;
background-color: #fff; background-color: #F4F5FA;
position: relative; position: relative;
.header-content { .header-content {
@@ -319,7 +316,7 @@ export default {
.swiper-content { .swiper-content {
width: 686px; width: 686px;
height: 364px; height: 364px;
margin: 20px auto 24px; margin: 0 auto 24px;
} }
::v-deep .notice { ::v-deep .notice {
width: 686px; width: 686px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 965 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1000 B

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -84,30 +84,30 @@ export default {
// path: "/mods/AppHometown/AppHometown", // path: "/mods/AppHometown/AppHometown",
// type: 'token' // type: 'token'
// }, // },
// { {
// icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdjt.png", icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdjt.png",
// label: "我的家庭", label: "我的家庭",
// path: "./myFamily", path: "./myFamily",
// type: 'token' type: 'token'
// }, },
{ {
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdjf.png", icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdjf.png",
label: "我的积分", label: "我的积分",
path: "./myIntegral", path: "./myIntegral",
type: 'token' type: 'token'
}, },
// { {
// icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdewm.png", icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-wdewm.png",
// label: "我的二维码", label: "我的二维码",
// path: "./myHarvestQR", path: "./myHarvestQR",
// type: 'token' type: 'token'
// }, },
// { {
// icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png", icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-sys.png",
// label: "扫一扫", label: "扫一扫",
// path: "./myHarvestQR", path: "./myHarvestQR",
// type: 'scan' type: 'scan'
// }, },
{ {
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-fxxcx.png", icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-fxxcx.png",
label: "分享小程序", label: "分享小程序",