更改项目

This commit is contained in:
yziiy
2025-08-13 10:51:01 +08:00
parent 7e21160e13
commit e33b97fc90
23 changed files with 3685 additions and 1046 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules/

28
App.vue
View File

@@ -1,14 +1,30 @@
<script>
import http from '@/until/http.js';
export default {
onLaunch: function () {
// console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
this.getInfo()
},
onHide: function () {
console.log('App Hide')
uni.removeStorageSync('Theme_Data')
},
methods: {
async getInfo() {
http.get('/api/Theme/get_theme_data').then(response => {
const {
data,
code
} = response
if(code) {
if(data) {
uni.setStorageSync('Theme_Data',JSON.stringify(data))
} else {
uni.setStorageSync('Theme_Data','')
}
}
}).catch(error => {
uni.setStorageSync('Theme_Data','')
});
},
}
}
</script>

View File

@@ -10,6 +10,14 @@
"backgroundColor": "#00000000",
"webview": {
"transparent": "always" // 确保 Webview 透明
},
"packOptions": {
"ignore":[
{
"type":"folder",
"value":"node_modules"
}
]
},
/* 5+App */
"usingComponents": true,

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "yusheng-H5",
"name": "fanyin-h5",
"lockfileVersion": 3,
"requires": true,
"packages": {

View File

@@ -127,7 +127,6 @@
id
} = options
uni.setStorageSync('token', id)
// this.statusBarHeight = h
this.errorPage = id ? false : true
},
onReachBottom() {

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'帮助与反馈'" :emitBack="true" @backEvent="back">
</navBar>
@@ -100,6 +100,7 @@
limit: 10,
typeData: null,
typeId: null,
ThemeData:null
}
},
onLoad(options) {
@@ -110,6 +111,9 @@
if (uni.getStorageSync('token')) this.getHelpList()
this.statusBarHeight = h
uni.setStorageSync('BarHeight', h)
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
async getHelpList() {
@@ -220,7 +224,6 @@
// padding: 32rpx;
width: 100vw;
height: 100vh;
background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;

View File

@@ -54,15 +54,6 @@
} = options
if (id) this.getDetail(id)
},
// onShow() {
// if(uni.getStorageSync('statusBarHeight')) {
// this.statusBarHeight = uni.getStorageSync('statusBarHeight')
// } else {
// const systemInfo = uni.getSystemInfoSync(); // 获取系统信息
// this.statusBarHeight = systemInfo.statusBarHeight
// uni.setStorageSync('statusBarHeight', this.statusBarHeight)
// }
// },
methods: {
getDetail(id) {
http.get('/api/Help/help_detail', {

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="backgroundStyle">
<headerHeight />
<navBar :navTitle="'青少年模式'" :emitBack="true" @backEvent="back">
</navBar>
@@ -52,7 +52,21 @@
loading: false,
noMore: false,
tabs: [],
dataList: []
dataList: [],
ThemeData: null
}
},
computed: {
backgroundStyle() {
if (this.ThemeData.app_bg) {
return {
backgroundImage: `url(${this.ThemeData.app_bg})`
}
} else {
return {
background: 'linear-gradient(180deg, #B3FAEB 2%, #FFFFFF 40%)'
}
}
}
},
onReachBottom() {
@@ -68,6 +82,9 @@
} = options
uni.setStorageSync('token', id)
if (uni.getStorageSync('token')) this.getUnderageTypeList()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
back() {

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
</navBar>
@@ -20,7 +20,8 @@
},
data() {
return {
statusBarHeight:0
statusBarHeight:0,
ThemeData:null
}
},
onLoad(options) {
@@ -29,6 +30,9 @@
} = options
this.currentIndex = type !== undefined ? +type : 0
this.statusBarHeight = h
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
back() {
@@ -52,7 +56,7 @@
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
img{

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<navBar :navTitle="`规则说明`" :style="{'margin-top' : `${statusBarHeight || 0}px`}">
</navBar>
<view class="dec-view" v-if="flagIndex !== null">
@@ -18,7 +18,8 @@
data() {
return {
statusBarHeight:0,
flagIndex:null
flagIndex:null,
ThemeData:null
}
},
onLoad(options) {
@@ -27,6 +28,9 @@
} = options
this.flagIndex = +flag
this.statusBarHeight = h
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
}
}
</script>
@@ -35,7 +39,7 @@
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
img{

View File

@@ -1,5 +1,6 @@
<template>
<view class="view-page" >
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<headerHeight />
<navBar :navTitle="'公会详情'">
<template #rightView>
@@ -142,7 +143,8 @@
popupStstus: null,
messageText: "",
messageContent: '',
msgType: "success"
msgType: "success",
ThemeData: null
}
},
onLoad(options) {
@@ -153,6 +155,9 @@
this.getDetail(id)
this.getUserInfo()
}
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
// 获取用户信息 拿实名信息

View File

@@ -1,5 +1,6 @@
<template>
<view class="view-page">
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<headerHeight />
<navBar :navTitle="`退出审核`">
</navBar>
@@ -58,6 +59,7 @@
guild_id: 0,
token: uni.getStorageSync('token') ?? ''
},
ThemeData:null
}
},
onLoad(options) {
@@ -66,6 +68,9 @@
} = options
this.searchParams.guild_id = id
if (id) this.getList()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
async RefuseOrAgreeData(ele,type){
@@ -106,7 +111,6 @@
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;

View File

@@ -1,5 +1,6 @@
<template>
<view class="view-page">
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<headerHeight />
<navBar :navTitle="`历史记录`">
</navBar>
@@ -32,6 +33,7 @@
guild_id: 0,
token: uni.getStorageSync('token') ?? ''
},
ThemeData: null
}
},
onLoad(options) {
@@ -40,6 +42,9 @@
} = options
this.searchParams.guild_id = id
if (id) this.getList()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
async getList() {
@@ -76,7 +81,7 @@
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
:navTitle="'公会中心'" :emitBack="true" @backEvent="back">
<template #rightView>
@@ -90,7 +90,8 @@
isMerber: null,
listData: [],
UnionByUser: null,
statusBarHeight: 0
statusBarHeight: 0,
ThemeData:null
}
},
onLoad(options) {
@@ -105,6 +106,9 @@
}
this.statusBarHeight = h
uni.setStorageSync('BarHeight', h)
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
onReachBottom() {
if (!this.loading && !this.noMore) {
@@ -247,7 +251,7 @@
// min-height: 100vh;
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<!-- <headerHeight /> -->
<navBar :navTitle="'查看成员'" :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}">
</navBar>
@@ -51,7 +51,8 @@
},
loading:false,
noMore:true,
dataList: []
dataList: [],
ThemeData:null
}
},
onLoad(options) {
@@ -62,6 +63,9 @@
this.guildId = guildId
this.statusBarHeight = h || uni.getStorageSync('BarHeight')
if(this.guildId) this.getList()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
jumpHomePage(data){
@@ -130,7 +134,6 @@
return
}
}
console.log(this.dataList)
},
}
}
@@ -141,7 +144,7 @@
// padding: 32rpx;
display: flex;
flex-direction: column;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
min-height: 100vh;

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<headerHeight />
<navBar :navTitle="`${ leaderStatus ? '公会房间及流水' : '公会房间'}`">
<template #rightView>
@@ -85,7 +85,8 @@
},
leaderStatus: null,
flowDetail: null,
flowList:[]
flowList:[],
ThemeData:null
}
},
onLoad(options) {
@@ -99,6 +100,9 @@
this.searchParams.end_time = this.formatDate(new Date())
this.searchParams.guild_id = id
if (id) this.getFlow()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
onReachBottom() {
if (!this.loading && !this.noMore) {

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'群聊设置'" :emitBack="true" @backEvent="back">
</navBar>
@@ -91,6 +91,7 @@
},
statusBarHeight:0,
placeholderStyle: "color:321;font-size:14px",
ThemeData:null
}
},
onLoad(options) {
@@ -104,6 +105,9 @@
this.getInfo()
}
this.statusBarHeight = h || uni.getStorageSync('BarHeight')
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods:{
// 关闭当前公会中心页面
@@ -203,7 +207,7 @@
// padding: 32rpx;
display: flex;
flex-direction: column;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
min-height: 100vh;

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<headerHeight />
<navBar :navTitle="`公会补贴`">
<template #rightView>
@@ -56,6 +56,7 @@
guild_id: 0,
token: uni.getStorageSync('token') ?? '',
},
ThemeData:null
}
},
onLoad(options) {
@@ -66,6 +67,9 @@
this.leaderStatus = +leader
this.searchParams.guild_id = id
if (id) this.getSubsidy()
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
methods: {
//
@@ -89,7 +93,7 @@
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
.content-view{

View File

@@ -1,10 +1,10 @@
<template>
<view class="view-page">
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<headerHeight />
<navBar :navTitle="`公会成员`">
<template #rightView>
<view class="icon-right flex-line"
v-if="leaderStatus" @click="application">
<view class="icon-right flex-line" v-if="leaderStatus" @click="application">
<view class="font-24" style="color:#333;white-space: nowrap">
退出审核
</view>
@@ -14,8 +14,7 @@
<view class="content_view">
<view v-if="leaderStatus">
<uni-datetime-picker style="background-color: #f8f8f8;" start-placeholder="开始时间" :end="currentDate"
end-placeholder="结束时间" v-model="dateSearch" type="range" rangeSeparator="至"
@change="changeDate" />
end-placeholder="结束时间" v-model="dateSearch" type="range" rangeSeparator="至" @change="changeDate" />
</view>
<view class="header-view" v-if="flowDetail && leaderStatus">
<view class="flex-line flow-view w-fill flex-spaceB">
@@ -131,7 +130,8 @@
messageText: '',
messageContent: '',
dataList: [],
currentUserData: null
currentUserData: null,
ThemeData: null
}
},
onLoad(options) {
@@ -145,6 +145,9 @@
this.searchParams.start_time = this.formatDate(new Date())
this.searchParams.end_time = this.formatDate(new Date())
if (id) this.getList()
if (uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
},
onReachBottom() {
if (!this.loading && !this.noMore) {
@@ -260,7 +263,7 @@
// padding: 24rpx 32rpx;
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
background-image: url('@/static/image/help/bg.png');
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
@@ -371,6 +374,7 @@
.head-portrait-view {
position: relative;
.tip {
position: absolute;
bottom: 0;

View File

@@ -0,0 +1,15 @@
{
"hash": "1c17547c",
"configHash": "ad10b693",
"lockfileHash": "49722671",
"browserHash": "588f021d",
"optimized": {
"axios": {
"src": "../../../../../node_modules/axios/index.js",
"file": "axios.js",
"fileHash": "c27ebd03",
"needsInterop": false
}
},
"chunks": {}
}

2534
unpackage/dist/cache/.vite/deps/axios.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
{
"type": "module"
}