This commit is contained in:
yziiy
2025-08-14 11:26:34 +08:00
parent e33b97fc90
commit f66cc10bf2
20 changed files with 834 additions and 817 deletions

12
App.vue
View File

@@ -2,7 +2,7 @@
import http from '@/until/http.js';
export default {
onLaunch: function () {
this.getInfo()
// this.getInfo()
},
onHide: function () {
uni.removeStorageSync('Theme_Data')
@@ -51,4 +51,14 @@ img {
height: 100%;
object-fit: cover;
}
// 定制
:root {
--primary-color: #6C49E4;
--sub-color: #F0EEF7;
--subs-color: #6C49E4;
--subss-color: #DEB52E;
--warn-color:#F69627;
--font-button-color:#fff;
--font-button-size:24rpx;
}
</style>

View File

@@ -2,11 +2,11 @@
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import config from '@/until/config.js'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$config = config;
const app = new Vue({
...App
})
@@ -15,9 +15,11 @@ app.$mount()
// #ifdef VUE3
import { createSSRApp } from 'vue'
import config from '@/until/config.js'
import App from './App.vue'
export function createApp() {
const app = createSSRApp(App)
app.config.globalProperties.$config = config
return {
app
}

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'帮助与反馈'" :emitBack="true" @backEvent="back">
</navBar>

View File

@@ -1,6 +1,5 @@
<template>
<view class="view-page">
<!-- <headerHeight bgColor="#fff" /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'举报'" bgColor="#fff" :emitBack="true" @backEvent="back">
</navBar>
<view class="content">

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
</navBar>

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<navBar :navTitle="`规则说明`" :style="{'margin-top' : `${statusBarHeight || 0}px`}">
</navBar>
<view class="dec-view" v-if="flagIndex !== null">

View File

@@ -1,6 +1,5 @@
<template>
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="'公会详情'">
<template #rightView>
@@ -29,10 +28,10 @@
</view>
</view>
<view class="like-box">
<uni-icons type="heart" size="20"></uni-icons>
<span class="ml-6">
<uni-icons type="heart" color="#fff" size="20"></uni-icons>
<view class="ml-6" style="display: inline-flex;align-items: baseline;">
{{ detailData.total_transaction }}
</span>
</view>
</view>
</view>
<!-- 公会按钮 是会长可以看公会成员 不是不能看 -->
@@ -122,12 +121,12 @@
</template>
<script>
import headerHeight from '@/component/headerHeight.vue';
import navBar from '@/component/nav.vue';
import http from '@/until/http.js';
import logout from '@/static/image/union/logout.png'
import logo from '@/static/image/logo.png';
export default {
import headerHeight from '@/component/headerHeight.vue';
import navBar from '@/component/nav.vue';
import http from '@/until/http.js';
import logout from '@/static/image/union/logout.png'
import logo from '@/static/image/logo.png';
export default {
components: {
headerHeight,
navBar
@@ -224,7 +223,8 @@ export default {
});
} else if (platform === 'android') {
// 调用 Android 原生方法
window.Android.enterGroupChat(this.detailData.group_id, this.detailData.cover, this.detailData.guild_name);
window.Android.enterGroupChat(this.detailData.group_id, this.detailData.cover, this.detailData
.guild_name);
}
}
} else {
@@ -406,11 +406,11 @@ export default {
})
}
}
}
}
</script>
<style lang="scss">
.view-page {
.view-page {
// padding: 32rpx;
display: flex;
flex-direction: column;
@@ -540,16 +540,15 @@ export default {
.like-box {
display: inline-flex;
align-items: center;
align-items: flex-end;
flex-wrap: nowrap;
flex-direction: row;
padding: 6rpx 24rpx;
background: #2AFEC0;
border-radius: 35rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 28rpx;
color: #333333;
background: var(--primary-color);
color: var(--font-button-color);
margin: 8rpx 0;
}
}
@@ -664,12 +663,14 @@ export default {
height: 84rpx;
border-radius: 106rpx;
line-height: 84rpx;
background-color: #0DFFB9;
color: #333;
// background-color: #0DFFB9;
// color: #333;
background: var(--primary-color);
color: var(--font-button-color);
text-align: center;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
}
}
}
}
</style>

View File

@@ -1,6 +1,5 @@
<template>
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="`退出审核`">
</navBar>

View File

@@ -1,6 +1,5 @@
<template>
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="`历史记录`">
</navBar>

View File

@@ -1,9 +1,9 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
:navTitle="'公会中心'" :emitBack="true" @backEvent="back">
<template #rightView>
<view v-if="isMerber" @click="jumpMineUnion" class="font-24" style="color:#FF8ACC;white-space: nowrap">
<view v-if="isMerber" @click="jumpMineUnion" class="font-24 minUnicon" style="white-space: nowrap">
我的公会
</view>
</template>
@@ -50,7 +50,11 @@
</view>
</view>
<view class="right-button">
<view class="online-view" v-if="data.guild_user_list.length">
<!-- <view class="apply-button">
申请
</view> -->
<view class="online-view">
<div v-show="data.guild_user_list.length">
<div class="avatars-container" v-for="ele in data.guild_user_list.slice(0,3)" :key="ele.id">
<view class="avatar">
<img :src="ele.avatar" alt="" />
@@ -59,6 +63,8 @@
<view class="online-people truncate-three">
{{data.num}}
</view>
</div>
</view>
</view>
</view>
@@ -254,7 +260,9 @@
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
.minUnicon{
color: var(--primary-color);
}
.content {
padding: 0 32rpx;
}
@@ -320,7 +328,7 @@
background-color: antiquewhite;
border-radius: 14rpx;
margin-top: 36rpx;
background-image: url('/static/image/swiper.png');
background-image: url('/static/image/swiper.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;
}
@@ -351,8 +359,8 @@
/* 头像 */
.head-portrait {
width: 100rpx;
height: 100rpx;
width: 120rpx;
height: 120rpx;
border-radius: 50%;
img {
@@ -381,13 +389,15 @@
color: #fff;
font-size: 24rpx;
text-align: right;
background: #333333;
background: var(--subss-color);
border-radius: 116rpx 116rpx 116rpx 116rpx;
border: 2rpx solid #333333;
border: 2rpx solid var(--subss-color);
position: relative;
left: 10rpx;
margin: 32rpx 0;
.truncate-three{
text-align: left;
}
.chairman-portrait {
width: 50rpx;
height: 50rpx;
@@ -437,31 +447,27 @@
/* 右边按钮 */
.right-button {
text-align: right;
text-align: center;
.apply-button {
display: inline-block;
// width: 98rpx;
// height: 46rpx;
background: #0DFFB9;
background: var(--primary-color);
font-size: var(--font-button-size);
color: var(--font-button-color);
border-radius: 68rpx;
text-align: center;
padding: 4rpx 40rpx;
padding: 4rpx 30rpx;
}
.online-view {
// display: inline-block;
margin-top: 24rpx;
padding: 12rpx 8rpx;
// background: #333333;
// border-radius: 92rpx;
// font-size: 24rpx;
// color: #FFFFFF;
text-align: right;
width: 160rpx;
height: 44rpx;
line-height: 44rpx;
background: #333333;
// background: #333333;
border-radius: 92rpx 92rpx 92rpx 92rpx;
position: relative;
@@ -472,8 +478,9 @@
}
.online-people {
color: #FFFFFF;
color: rgba(0, 0, 0, 0.5);
font-size: 24rpx;
text-align: left;
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<!-- <headerHeight /> -->
<navBar :navTitle="'查看成员'" :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}">
</navBar>

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="`${ leaderStatus ? '公会房间及流水' : '公会房间'}`">
<template #rightView>
@@ -198,7 +198,7 @@
font-weight: 500;
font-size: 40rpx;
color: #004D3C;
color: #333;
margin-top: 24rpx;
}
}

View File

@@ -1,5 +1,5 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'群聊设置'" :emitBack="true" @backEvent="back">
</navBar>

View File

@@ -1,11 +1,11 @@
<template>
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')`}">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="`公会补贴`">
<template #rightView>
<view class="icon-right flex-line" @click="exit"
v-if="detailData && leaderStatus" >
<view @click="historyRecord" class="font-24" style="color:#FF8ACC;white-space: nowrap">
<view @click="historyRecord" class="font-24 minUnicon" style="white-space: nowrap">
历史记录
</view>
</view>
@@ -17,7 +17,7 @@
<view class="color-3 font-w500 font-32">
{{data.name}}
</view>
<view class="font-28" :style="{'color' : data.status_str === '已发放' ? '#999' : '#45D08C'}">
<view class="font-28" :style="{'color' : data.status_str === '已发放' ? '#999' : '#DEB52E'}">
{{data.status_str}}
</view>
</view>
@@ -96,6 +96,9 @@
// background-image: url('@/static/image/help/bg.png');
background-repeat: no-repeat;
background-size: 100% 100%;
.minUnicon{
color: var(--primary-color);
}
.content-view{
padding: 0 24rpx;
}
@@ -103,7 +106,7 @@
margin-top: 40rpx;
}
.cumulative {
color: #FF8ACC;
color: var(--primary-color);
}
.line {
@@ -113,8 +116,7 @@
}
.subsidy {
color: #0DFFB9;
color: var(--warn-color);
}
}
</style>

View File

@@ -1,6 +1,5 @@
<template>
<view class="view-page"
:style="{ backgroundImage: `url('${ThemeData?.app_bg ?? 'https://vespa.qxmier.com/image/bg.png'}')` }">
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
<headerHeight />
<navBar :navTitle="`公会成员`">
<template #rightView>
@@ -94,11 +93,11 @@
</template>
<script>
import headerHeight from '@/component/headerHeight.vue';
import navBar from '@/component/nav.vue';
import http from '@/until/http.js';
import logo from '@/static/image/logo.png'
export default {
import headerHeight from '@/component/headerHeight.vue';
import navBar from '@/component/nav.vue';
import http from '@/until/http.js';
import logo from '@/static/image/logo.png'
export default {
components: {
headerHeight,
navBar
@@ -255,11 +254,11 @@ export default {
})
}
}
}
}
</script>
<style scoped lang="scss">
.view-page {
.view-page {
// padding: 24rpx 32rpx;
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
@@ -326,7 +325,7 @@ export default {
font-weight: 500;
font-size: 40rpx;
color: #004D3C;
color: #333;
margin-top: 24rpx;
}
}
@@ -394,5 +393,5 @@ export default {
}
}
}
}
</style>

BIN
static/image/swiper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -3,13 +3,11 @@
// http://chat.qxmier.com
// http://vschat.qxmier.com
const BASE_URL="http://chat.qxmier.com";
//api 请求路径 测试
// const BASE_URL="https://h5.qxcms.com/api";
const PRIMARY_BGURL = "https://vespa.qxmier.com/image/fy_bg.jpg";
//IM app_key
const IM_APP_TOKEN="67962a777e2b13bc6a4bde3ccd389d1e";
export {
export default {
BASE_URL,
IM_APP_TOKEN
IM_APP_TOKEN,
PRIMARY_BGURL
}

View File

@@ -16,6 +16,7 @@ http.interceptors.request.use(
},
error => {
// 对请求错误做些什么
return Promise.reject(error);
}
);