1.增加vue3ui组件view-plus

2.修改登录为直接请求后台接口登录
3.隐藏tabbar,修改默认启动页
This commit is contained in:
2024-09-10 15:31:13 +08:00
parent 9bb8f88b30
commit 4a6de0a22b
458 changed files with 452 additions and 12861 deletions

View File

@@ -10,14 +10,6 @@
<!-- 导航栅格 -->
<JeepayNavigation :navList="navList" type="grid" />
<blcok v-for="v in vdata.adList" :key="v.adverId">
<JeepayBanner :list="v.appContent" :interval="v.changeTime" v-if="v.appPlaceType == 2" />
<JeepayAdCard :list="v.appContent" v-if="v.appPlaceType == 1" />
</blcok>
<view style="height: 20rpx" v-if="vdata.adList.length"></view>
<!-- 公告消息前几条 , 自定义显示字段 -->
<JeepayListview tableTitle="最新公告" :dataList="vdata.noticeList" @click="listviewClickFunc"
:fields="{ title: 'title', subtitle: 'createdAt' }" />
</JeepayBackground>
</template>
@@ -51,13 +43,9 @@
import {
$adList
} from '@/http/apiManager.js';
uni.hideTabBar()
onLoad((options) => {
//注册 push连接逻辑
registerPush();
// 添加语音播报的消息推送
pushMsgManage.addPushMsgEventListener();
});
// 导航列表
const navList = [{
title: '收银',
@@ -230,20 +218,9 @@
// 刷新数据 async 异步函数, 每个查询需要返回promise对象并标识await
async function refData() {
// 查询公告列表
await reqLoad
.list(API_URL_SYS_ARTICLES, {
pageSize: 5,
articleType: 1
})
.then(({
bizData
}) => {
vdata.noticeList = bizData.records;
});
// 调用子组件方法 , 避免组件没有加载完成。
nextTick(() => statsRef.value.refData());
// nextTick(() => statsRef.value.refData());
// 停止刷新
uni.stopPullDownRefresh();
}
@@ -256,27 +233,9 @@
});
};
// 请求首页广告
$adList({
appPlace: 2
}).then(({
bizData
}) => {
if (!bizData) return false;
bizData.forEach((v) => {
v.appContent = JSON.parse(v.appContent);
});
vdata.adList = bizData;
});
// 启动加载
onMounted(() => {
refData();
});
// 获取配置信息
$getSiteInfos().then(({
bizData
}) => {
vdata.shareImgUrl = bizData.shareImgUrl;
// refData();
});
// 微信分享
onShareAppMessage((res) => {