更新
2
App.vue
@@ -62,6 +62,6 @@ img {
|
||||
--font-button-size:24rpx;
|
||||
--font-button-size-p:28rpx;
|
||||
/* tab图标 */
|
||||
--tab-url:url('http://1.13.101.98/h5/image/tabline.png');
|
||||
--tab-url:url('https://test.vespa.qxyushen.top/h5/image/tabline.png');
|
||||
}
|
||||
</style>
|
||||
85
pages.json
@@ -7,35 +7,49 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/union/detail",
|
||||
"path": "pages/union/list",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "公会详情",
|
||||
"app-plus": {
|
||||
"popGesture": "none" // 禁用 iOS 左滑返回
|
||||
}
|
||||
"navigationBarTitleText": "公会中心"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/union/roomAndflow",
|
||||
"path": "pages/union/agreement",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "公会房间及流水",
|
||||
"app-plus": {
|
||||
"popGesture": "none" // 禁用 iOS 左滑返回
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/union/unionMembers",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "公会成员",
|
||||
"app-plus": {
|
||||
"popGesture": "none" // 禁用 iOS 左滑返回
|
||||
}
|
||||
"navigationBarTitleText": "查看协议"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/union/detail",
|
||||
// "style": {
|
||||
// "navigationStyle": "custom",
|
||||
// "navigationBarTitleText": "公会详情",
|
||||
// "app-plus": {
|
||||
// "popGesture": "none" // 禁用 iOS 左滑返回
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "pages/union/roomAndflow",
|
||||
// "style": {
|
||||
// "navigationStyle": "custom",
|
||||
// "navigationBarTitleText": "公会房间及流水",
|
||||
// "app-plus": {
|
||||
// "popGesture": "none" // 禁用 iOS 左滑返回
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "pages/union/unionMembers",
|
||||
// "style": {
|
||||
// "navigationStyle": "custom",
|
||||
// "navigationBarTitleText": "公会成员",
|
||||
// "app-plus": {
|
||||
// "popGesture": "none" // 禁用 iOS 左滑返回
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/union/exitApplication",
|
||||
"style": {
|
||||
@@ -46,16 +60,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/union/subsidy",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "公会补贴",
|
||||
"app-plus": {
|
||||
"popGesture": "none" // 禁用 iOS 左滑返回
|
||||
}
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/union/subsidy",
|
||||
// "style": {
|
||||
// "navigationStyle": "custom",
|
||||
// "navigationBarTitleText": "公会补贴",
|
||||
// "app-plus": {
|
||||
// "popGesture": "none" // 禁用 iOS 左滑返回
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/union/historyRecord",
|
||||
"style": {
|
||||
@@ -190,17 +204,14 @@
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "关于我们"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/other/test",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "测试页面"
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
|
||||
|
||||
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "transparent"
|
||||
|
||||
@@ -234,7 +234,7 @@
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "提交失败",
|
||||
icon: 'error'
|
||||
icon: 'none'
|
||||
});
|
||||
uni.hideLoading()
|
||||
}
|
||||
@@ -242,7 +242,7 @@
|
||||
}).catch(error => {
|
||||
uni.showToast({
|
||||
title: "提交失败",
|
||||
icon: 'error'
|
||||
icon: 'none'
|
||||
});
|
||||
uni.hideLoading()
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="view-page">
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
<navBar :style="{paddingTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
:navTitle="'举报'" bgColor="#fff" :emitBack="true" @backEvent="back">
|
||||
</navBar>
|
||||
<view class="content">
|
||||
|
||||
@@ -378,7 +378,7 @@
|
||||
if (code) {
|
||||
uni.showToast({
|
||||
title: '绑定成功',
|
||||
icon: 'success',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 1000
|
||||
});
|
||||
@@ -387,7 +387,7 @@
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: msg,
|
||||
icon: 'error',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 1000
|
||||
});
|
||||
@@ -399,7 +399,7 @@
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请输入邀请码',
|
||||
icon: 'error',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 1000
|
||||
});
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData?.app_bg || baseBgUrl}')`}">
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
:navTitle="'测试页面'">
|
||||
</navBar>
|
||||
<view class="content">
|
||||
{{content}}
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import navBar from '@/component/nav.vue';
|
||||
import http from '@/until/http.js';
|
||||
import baseBgUrl from '@/static/image/general/fy_bg.jpg';
|
||||
export default {
|
||||
components: {
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
content: '测试一下',
|
||||
statusBarHeight: 0,
|
||||
ThemeData: {},
|
||||
baseBgUrl
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
id
|
||||
} = options
|
||||
uni.setStorageSync('token', id)
|
||||
http.get('/api/Guild/guild_list', {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
search_id: '',
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
this.content = `token:${id}+++++++++++++${JSON.stringify(response)}`
|
||||
}).catch(error => {
|
||||
this.content = `token:${id}+++++++++++++${JSON.stringify(response)}`
|
||||
});
|
||||
// uni.request({
|
||||
// url: 'https://md.xscmmidi.site/api/Guild/guild_list',
|
||||
// data:{
|
||||
// page: 1,
|
||||
// limit: 5,
|
||||
// search_id: '',
|
||||
// token: id || ''
|
||||
// },
|
||||
// method: 'GET',
|
||||
// success: (res) => {
|
||||
// this.content = `token:${id}+++++++++++++${JSON.stringify(res)}`
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// this.content = `token:${id}+++++++++++++${JSON.stringify(res)}`
|
||||
// }
|
||||
// });
|
||||
// const {
|
||||
// id
|
||||
// } = options
|
||||
// uni.setStorageSync('token', id)
|
||||
// this.content = id
|
||||
// if (uni.getStorageSync('token')) {
|
||||
// this.getList()
|
||||
// }
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.view-page {
|
||||
min-height: 100vh;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -164,6 +164,9 @@
|
||||
</view>
|
||||
<view v-else>
|
||||
</view>
|
||||
<uni-popup ref="message" type="message">
|
||||
<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -184,7 +187,9 @@
|
||||
decorateDetail: null,
|
||||
currentMenuIndex: 0,
|
||||
payData: null,
|
||||
isShow: true
|
||||
isShow: true,
|
||||
msgType:"success",
|
||||
messageText:"操作成功"
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -310,12 +315,9 @@
|
||||
if (this.decorateDetail.tab.type !== 12) {
|
||||
if (this.payData.price > this.decorateDetail.user_info.user_coin) {
|
||||
// 余额不足
|
||||
uni.showToast({
|
||||
title: '余额不足',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 500
|
||||
});
|
||||
this.messageText = "余额不足"
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -323,12 +325,9 @@
|
||||
// 降身卡
|
||||
if (this.payData.allPrice > this.decorateDetail.user_info.user_coin) {
|
||||
// 余额不足
|
||||
uni.showToast({
|
||||
title: '余额不足',
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 500
|
||||
});
|
||||
this.messageText = "余额不足"
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -346,21 +345,15 @@
|
||||
num: type !== 12 ? 0 : this.payData.number
|
||||
}).then(response => {
|
||||
if (response.code) {
|
||||
uni.showToast({
|
||||
title: '购买成功',
|
||||
icon: 'success',
|
||||
mask: true,
|
||||
duration: 1000
|
||||
});
|
||||
this.messageText = "购买成功"
|
||||
this.msgType = 'success'
|
||||
this.$refs.message.open()
|
||||
uni.hideLoading()
|
||||
this.closePopup()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: response.msg,
|
||||
icon: 'none',
|
||||
mask: true,
|
||||
duration: 1000
|
||||
});
|
||||
this.messageText = response.msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
|
||||
}).catch(error => {});
|
||||
|
||||
70
pages/union/agreement.vue
Normal file
@@ -0,0 +1,70 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData?.app_bg || baseBgUrl}')`}">
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
:navTitle="'公会协议'">
|
||||
</navBar>
|
||||
<view class="dec-view" v-if="detailData">
|
||||
<web-view :src="detailData.agreement"></web-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import http from '@/until/http.js';
|
||||
import navBar from '@/component/nav.vue';
|
||||
import config from '@/until/config.js';
|
||||
export default {
|
||||
components: {
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
baseBgUrl: config.new_unionUrl || '',
|
||||
unionBgUrl: config.unicon_url || '',
|
||||
statusBarHeight: 0,
|
||||
ThemeData: null,
|
||||
detailData:null
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
h
|
||||
} = options
|
||||
this.statusBarHeight = h
|
||||
uni.setStorageSync('BarHeight', h)
|
||||
if(uni.getStorageSync('token'))this.getInfo()
|
||||
},
|
||||
methods:{
|
||||
async getInfo() {
|
||||
http.get('/api/Guild/my_guild', {
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
// console.log(data)
|
||||
this.detailData = code ? data : false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.view-page {
|
||||
min-height: 100vh;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.dec-view {
|
||||
min-height: calc(99vh - 160rpx);
|
||||
position: relative;
|
||||
border-radius: 16rpx;
|
||||
margin: 24rpx;
|
||||
// background-color: white;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,681 +0,0 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData?.app_bg || baseBgUrl}')`}">
|
||||
<headerHeight />
|
||||
<navBar :navTitle="'公会详情'">
|
||||
<template #rightView>
|
||||
<view class="icon-right flex-line" @click="exit"
|
||||
v-if="detailData && detailData.is_join && detailData.is_leader === 0">
|
||||
<img :src="logout" alt="" />
|
||||
</view>
|
||||
</template>
|
||||
</navBar>
|
||||
<view class="content" v-if="detailData">
|
||||
<view class="union-info">
|
||||
<view class="left-view">
|
||||
<view class="head-portrait">
|
||||
<img :src="detailData.cover || logo" alt="" />
|
||||
</view>
|
||||
<view class="info-detail">
|
||||
<view class="union-title">
|
||||
{{ detailData.guild_name }}
|
||||
</view>
|
||||
<view class="union-id">
|
||||
ID:{{ detailData.guild_special_id }}
|
||||
</view>
|
||||
<view class="union-date">
|
||||
{{ detailData.createtime }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="like-box">
|
||||
<uni-icons type="heart" color="#fff" size="20"></uni-icons>
|
||||
<view class="ml-6" style="display: inline-flex;align-items: baseline;">
|
||||
{{ detailData.total_transaction }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 公会按钮 是会长可以看公会成员 不是不能看 -->
|
||||
<view class="icon-wrap">
|
||||
<img class="icon-box" @click.stop="viewDetails(0)" src="@/static/image/union/ghfj.png" alt="" />
|
||||
<img class="icon-box" @click.stop="viewDetails(1)" src="@/static/image/union/ghcy.png" alt="" />
|
||||
<img class="icon-box" v-if="detailData.is_leader" @click.stop="viewDetails(2)"
|
||||
src="@/static/image/union/ghbt.png" alt="" />
|
||||
<img class="icon-box" v-if="detailData.is_join" @click.stop="viewDetails(3)"
|
||||
src="@/static/image/union/qlsz.png" alt="" />
|
||||
</view>
|
||||
<!-- 公会会长信息 -->
|
||||
<view class="union-user">
|
||||
<view class="user-title">
|
||||
公会会长
|
||||
</view>
|
||||
<view class="user-info" @click="jumpHomePage(detailData)">
|
||||
<view class="flex-line">
|
||||
<view class="head-portrait">
|
||||
<img :src="detailData.user_data.avatar" alt="" />
|
||||
</view>
|
||||
<view class="info-view">
|
||||
<view class="">
|
||||
{{ detailData.user_data.nickname }}
|
||||
</view>
|
||||
<view class="iconTag-view"
|
||||
v-if="detailData.user_data.icon || detailData.user_data.icon.length">
|
||||
<view class="icon-tag" v-for="icon in detailData.user_data.icon" :key="icon">
|
||||
<img :src="icon" alt="" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<uni-icons type="right" size="20"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 公会介绍 -->
|
||||
<view class="union-dec">
|
||||
<view class="user-title">
|
||||
公会介绍
|
||||
</view>
|
||||
<view class="user-dec">
|
||||
{{ detailData.intro || '暂无数据' }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer" v-if="!detailData.is_join">
|
||||
<view class="confirm-button" @click="applyToJoin">
|
||||
<view class="button">
|
||||
{{ buttonText }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer" v-if="detailData.is_leader">
|
||||
<view class="confirm-button" @click="dissolveUnion">
|
||||
<view class="button">
|
||||
{{ buttonText }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<uni-popup ref="message" type="message">
|
||||
<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
|
||||
</uni-popup>
|
||||
<uni-popup ref="popup" type="center">
|
||||
<view class="popup_view">
|
||||
<view class="color-3 font-32 popup_title">
|
||||
温馨提示
|
||||
</view>
|
||||
<view class="color-3 font-24 messageContent">
|
||||
{{ messageContent }}
|
||||
</view>
|
||||
<view class="popup_button flex-line">
|
||||
<view class="close_button flex-line" @click="closePopup">
|
||||
取消
|
||||
</view>
|
||||
<view class="confirm-button flex-line" @click="confirmPopup">
|
||||
确认
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import headerHeight from '@/component/headerHeight.vue';
|
||||
import config from '@/until/config.js';
|
||||
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
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
detailData: null,
|
||||
baseBgUrl:config.PRIMARY_BGURL,
|
||||
logo,
|
||||
logout,
|
||||
buttonStatus: null,
|
||||
buttonText: '申请加入公会',
|
||||
// 弹出窗状态 null 不展示 0 申请退出 1申请加入公会 2 付费退出 3实名认证
|
||||
popupStstus: null,
|
||||
messageText: "",
|
||||
messageContent: '',
|
||||
msgType: "success",
|
||||
ThemeData: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
id
|
||||
} = options
|
||||
if (id) {
|
||||
this.getDetail(id)
|
||||
this.getUserInfo()
|
||||
}
|
||||
if (uni.getStorageSync('Theme_Data')) {
|
||||
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getUserInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取用户信息 拿实名信息
|
||||
async getUserInfo() {
|
||||
http.get('/api/User/get_user_info', {
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
this.isAuth = code ? data.auth : 0
|
||||
})
|
||||
},
|
||||
// 获取公会信息
|
||||
async getDetail(Id) {
|
||||
uni.showLoading({
|
||||
mask: true,
|
||||
title: '加载中'
|
||||
})
|
||||
http.get('/api/Guild/guild_detail', {
|
||||
id: Id,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
uni.hideLoading()
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
this.detailData = code ? data : null
|
||||
if (data) {
|
||||
this.buttonText = !data.is_leader ? data.is_join ? '退出公会' : '申请加入公会' : '解散公会'
|
||||
this.buttonStatus = !data.is_leader ? data.is_join ? 0 : 1 : 2
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击房间
|
||||
viewDetails(index) {
|
||||
// 0 公会房间 1 公会成员 2公会补贴 3 群聊设置
|
||||
if (index) {
|
||||
if (index === 1) {
|
||||
// 公会成员
|
||||
uni.navigateTo({
|
||||
url: `/pages/union/unionMembers?id=${this.detailData.id || null}&leader=${this.detailData.is_leader || 0}`
|
||||
});
|
||||
} else if (index === 2) {
|
||||
// 公会补贴
|
||||
uni.navigateTo({
|
||||
url: `/pages/union/subsidy?id=${this.detailData.id || null}&leader=${this.detailData.is_leader || 0}`
|
||||
});
|
||||
} else {
|
||||
// 群聊抛出
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
const ParmData = {
|
||||
group_id: this.detailData.group_id,
|
||||
cover: this.detailData.cover,
|
||||
guild_name: this.detailData.guild_name
|
||||
}
|
||||
if (platform === 'ios') {
|
||||
// 通过 messageHandlers 调用 iOS 原生方法
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'enterGroupChat',
|
||||
'data': ParmData
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
// 调用 Android 原生方法
|
||||
window.Android.enterGroupChat(this.detailData.group_id, this.detailData.cover, this.detailData
|
||||
.guild_name);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 房间
|
||||
uni.navigateTo({
|
||||
url: `/pages/union/roomAndflow?id=${this.detailData.id || null}&leader=${this.detailData.is_leader || 0}`
|
||||
});
|
||||
}
|
||||
},
|
||||
//申请加入公会
|
||||
applyToJoin() {
|
||||
if (this.buttonStatus === 1) {
|
||||
if (this.isAuth) {
|
||||
this.popupStstus = 1
|
||||
this.messageContent = "是否选择加入当前公会"
|
||||
this.$refs.popup.open('center')
|
||||
} else {
|
||||
this.popupStstus = 3
|
||||
this.messageContent = "当前尚未实名认证,是否跳转到实名认证页面?"
|
||||
this.$refs.popup.open('center')
|
||||
}
|
||||
}
|
||||
},
|
||||
// 申请加入公会
|
||||
async joinUnionize() {
|
||||
http.post('/api/Guild/join_guild', {
|
||||
guild_id: this.detailData.id,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = response
|
||||
if (code) {
|
||||
this.messageText = `加入成功`
|
||||
this.$refs.message.open()
|
||||
this.msgType = 'success'
|
||||
this.getDetail(this.detailData.id)
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
this.closePopup()
|
||||
})
|
||||
},
|
||||
// 退出公会
|
||||
exit() {
|
||||
uni.showActionSheet({
|
||||
itemList: ["申请退出", "付费退出"],
|
||||
success: (res) => {
|
||||
if (res.tapIndex === 0) {
|
||||
this.applyToWithdraw();
|
||||
} else if (res.tapIndex === 1) {
|
||||
this.paidWithdrawal();
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("用户取消选择:", err);
|
||||
},
|
||||
});
|
||||
},
|
||||
// 申请退出
|
||||
applyToWithdraw() {
|
||||
this.popupStstus = 0
|
||||
this.messageContent = "亲爱的会员,会长将在3天内审核,若超时未通过,您将自动退出并可加入其他公会;若通过,则30天内无法加入其他公会,是否还需要申请退出?"
|
||||
this.$refs.popup.open('center')
|
||||
},
|
||||
// 付费退出
|
||||
paidWithdrawal() {
|
||||
this.popupStstus = 2
|
||||
this.messageContent = `亲爱的会员,支付${this.detailData.quit_guild_gold || 0}金币,即可及时退出公会!是否需要付费退出?`
|
||||
this.$refs.popup.open('center')
|
||||
},
|
||||
// 解散公会
|
||||
dissolveUnion() {
|
||||
this.popupStstus = 4
|
||||
this.messageContent = `亲爱的会长,您当前操作将解散公会,是否解散?`
|
||||
this.$refs.popup.open('center')
|
||||
},
|
||||
closePopup() {
|
||||
this.popupStstus = null
|
||||
this.messageContent = ""
|
||||
this.$refs.popup.close()
|
||||
},
|
||||
confirmPopup() {
|
||||
if (this.popupStstus !== null) {
|
||||
if (this.popupStstus === 0) {
|
||||
this.exitUnionize(1)
|
||||
} else if (this.popupStstus === 1) {
|
||||
this.joinUnionize()
|
||||
} else if (this.popupStstus === 2) {
|
||||
// 付费退出
|
||||
this.exitUnionize(2)
|
||||
} else if (this.popupStstus === 3) {
|
||||
// 实名认证页面
|
||||
this.authConfirm()
|
||||
} else if (this.popupStstus === 4) {
|
||||
// 解散公会
|
||||
if (this.detailData.is_leader) {
|
||||
this.unionDissolve()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
authConfirm() {
|
||||
// 去实名认证页面
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
if (platform === 'ios') {
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'enterAuthent'
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
window.Android.enterAuthent();
|
||||
}
|
||||
this.closePopup()
|
||||
},
|
||||
// 跳转公会长个人页面
|
||||
jumpHomePage(data) {
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
if (platform === 'ios') {
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'jumpWebPage',
|
||||
'data': {
|
||||
userId: data.user_id
|
||||
}
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
window.Android.jumpWebPage(data.user_id);
|
||||
}
|
||||
},
|
||||
// 会长解散公会
|
||||
async unionDissolve() {
|
||||
http.post('/api/Guild/diss_guild', {
|
||||
guild_id: this.detailData.id,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = response
|
||||
if (code === 1) {
|
||||
this.msgType = 'success'
|
||||
this.messageText = `操作成功,将返回上一页!`
|
||||
this.$refs.message.open()
|
||||
uni.$emit('refreshList');
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
this.closePopup()
|
||||
})
|
||||
},
|
||||
// 申请退出公会接口
|
||||
async exitUnionize(type) {
|
||||
http.post('/api/Guild/quit_guild', {
|
||||
guild_id: this.detailData.id,
|
||||
type: type,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = response
|
||||
if (code === 1) {
|
||||
this.msgType = 'success'
|
||||
this.messageText = `${type === 1 ? '退出申请已提交,请等待审核' : '付费退出成功'}`
|
||||
this.$refs.message.open()
|
||||
this.getDetail(this.detailData.id)
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
this.closePopup()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.view-page {
|
||||
// padding: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-image: url('@/static/image/help/bg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
min-height: 100vh;
|
||||
|
||||
.content {
|
||||
padding: 0 32rpx;
|
||||
flex: 1;
|
||||
/* 关键:撑满剩余空间 */
|
||||
overflow: auto;
|
||||
/* 允许内容滚动 */
|
||||
}
|
||||
|
||||
.icon-right {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.popup_view {
|
||||
width: 550rpx;
|
||||
// height: 40vh;
|
||||
background-color: #fff;
|
||||
border-radius: 32rpx;
|
||||
padding: 32rpx;
|
||||
|
||||
.popup_title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.messageContent {
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
|
||||
.popup_button {
|
||||
margin-top: 24rpx;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
|
||||
.close_button,
|
||||
.confirm-button {
|
||||
width: 200rpx;
|
||||
height: 84rpx;
|
||||
background: #F3F3F3;
|
||||
border-radius: 106rpx;
|
||||
color: #999999;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.confirm-button {
|
||||
background: var(--primary-color);
|
||||
color: var(--font-button-color);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.footer {
|
||||
// background: #f0f0f0;
|
||||
padding: 20rpx;
|
||||
text-align: center;
|
||||
/* 适配iPhoneX等刘海屏 */
|
||||
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
/* 确保容器占满屏幕 */
|
||||
.union-info {
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
|
||||
/* 头像 */
|
||||
.head-portrait {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
// background-color: aquamarine;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.left-view {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
|
||||
.info-detail {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
margin-left: 24rpx;
|
||||
|
||||
.union-title {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.union-id {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.union-date {
|
||||
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.like-box {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
padding: 6rpx 24rpx;
|
||||
border-radius: 35rpx;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 400;
|
||||
background: var(--primary-color);
|
||||
color: var(--font-button-color);
|
||||
margin: 8rpx 0;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-wrap {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 25px;
|
||||
margin: 24rpx 0;
|
||||
|
||||
.icon-box {
|
||||
width: 48%;
|
||||
height: 30%;
|
||||
flex: 1;
|
||||
max-width: calc(50% - 12.5px);
|
||||
border-radius: 15px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.union-user,
|
||||
.union-dec {
|
||||
padding: 24rpx;
|
||||
height: 220rpx;
|
||||
background: #fff;
|
||||
border-radius: 22rpx;
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.user-title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
|
||||
/* 头像 */
|
||||
.head-portrait {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
background-color: aquamarine;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.info-view {
|
||||
margin-left: 24rpx;
|
||||
|
||||
.iconTag-view {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
padding: 12rpx 0;
|
||||
|
||||
.icon-tag {
|
||||
width: 148rpx;
|
||||
height: 34rpx;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.union-dec {
|
||||
min-height: 220rpx;
|
||||
|
||||
.user-dec {
|
||||
text-indent: 2em;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-button {
|
||||
padding: 0 50rpx;
|
||||
|
||||
.button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
border-radius: 106rpx;
|
||||
line-height: 84rpx;
|
||||
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>
|
||||
530
pages/union/list.vue
Normal file
@@ -0,0 +1,530 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData?.app_bg || baseBgUrl}')`}">
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
:navTitle="'公会中心'">
|
||||
<template #rightView>
|
||||
<view class="icon-right flex-line" @click="exit" v-if="isHasUnicon && !isLeader">
|
||||
<img :src="logout" alt="" />
|
||||
</view>
|
||||
</template>
|
||||
</navBar>
|
||||
<view class="content">
|
||||
<view class="flex-input">
|
||||
<uni-easyinput prefixIcon="search" clearSize="18" v-model="searchValue"
|
||||
placeholder="请输入公会ID/昵称">
|
||||
</uni-easyinput>
|
||||
<view class="search-button" @click="search">
|
||||
搜索
|
||||
</view>
|
||||
</view>
|
||||
<view class="hotspot-view">
|
||||
<view class="hotspot-box" v-for="data in listData" :key="data.id">
|
||||
<view class="flex-line">
|
||||
<view class="head-portrait">
|
||||
<img :src="data.cover || logo" alt="" />
|
||||
</view>
|
||||
<view class="info-box ml-20">
|
||||
<view class="flex-line">
|
||||
<span class="truncate">{{data.guild_name}}</span><span
|
||||
class="id-title">ID:{{data.guild_special_id}}</span>
|
||||
<img @click.stop="copyData(data.guild_special_id)" class="icon-box"
|
||||
src="@/static/image/union/copy.png" alt="" />
|
||||
</view>
|
||||
<view class="subhead-title truncate">
|
||||
{{data.intro}}
|
||||
</view>
|
||||
<view class="chairman">
|
||||
<view class="chairman-portrait">
|
||||
<img :src="data.user_avatar" alt="暂无头像" />
|
||||
</view>
|
||||
<view class="chairman-name">
|
||||
{{data.user_name}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right-button">
|
||||
<view class="apply-button" @click="applyUnion(data)">
|
||||
申请
|
||||
</view>
|
||||
<view class="online-view">
|
||||
<view v-show="data.guild_user_list.length">
|
||||
<view class="avatars-container">
|
||||
<view class="avatar" v-for="ele in data.guild_user_list.slice(0,3)" :key="ele.id">
|
||||
<img :src="ele.avatar" alt="" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="online-people">
|
||||
{{data.num}}人
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 弹窗 -->
|
||||
<uni-popup ref="message" type="message">
|
||||
<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
|
||||
</uni-popup>
|
||||
<uni-popup ref="popup" type="center">
|
||||
<view class="popup_view">
|
||||
<view class="color-3 font-32 popup_title">
|
||||
温馨提示
|
||||
</view>
|
||||
<view class="color-3 font-24 messageContent">
|
||||
{{ messageContent }}
|
||||
</view>
|
||||
<view class="popup_button flex-line">
|
||||
<view class="close_button flex-line" @click="closePopup">
|
||||
取消
|
||||
</view>
|
||||
<view class="confirm-button flex-line" @click="confirmPopup">
|
||||
确认
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import navBar from '@/component/nav.vue';
|
||||
import http from '@/until/http.js';
|
||||
import logo from '@/static/image/logo.png';
|
||||
import config from '@/until/config.js';
|
||||
import logout from '@/static/image/union/logout.png'
|
||||
export default {
|
||||
components: {
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
searchValue: '',
|
||||
noUnionImage: config.not_unionUrl,
|
||||
baseBgUrl: config.new_unionUrl,
|
||||
unionBgUrl: config.unicon_url,
|
||||
logo,
|
||||
logout,
|
||||
loading: false,
|
||||
noMore: false,
|
||||
isMerber: null,
|
||||
listData: [],
|
||||
UnionByUser: null,
|
||||
statusBarHeight: 0,
|
||||
ThemeData: null,
|
||||
// 是否實名
|
||||
isAuth: false,
|
||||
// 是否为公会长,
|
||||
isLeader: false,
|
||||
// 是否有公会
|
||||
isHasUnicon: false,
|
||||
messageContent: '',
|
||||
popupStstus: 0,
|
||||
messageText: "",
|
||||
msgType: "success",
|
||||
detailData:null
|
||||
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.getUserInfo()
|
||||
} else {
|
||||
uni.navigateBack()
|
||||
}
|
||||
if (uni.getStorageSync('BarHeight')) {
|
||||
this.statusBarHeight = uni.getStorageSync('BarHeight')
|
||||
}
|
||||
if (uni.getStorageSync('Theme_Data')) {
|
||||
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 获取用户信息 拿实名信息
|
||||
async getUserInfo() {
|
||||
http.get('/api/User/get_user_info', {
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
this.isAuth = code ? data.auth : 0
|
||||
})
|
||||
},
|
||||
async getUnionList(name) {
|
||||
this.loading = true
|
||||
http.get('/api/Guild/guild_list', {
|
||||
page: 1,
|
||||
limit: 1000,
|
||||
search_id: name,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
if (code) {
|
||||
this.loading = false
|
||||
this.listData = data.list || []
|
||||
}
|
||||
}).catch(error => {
|
||||
this.loading = false
|
||||
});
|
||||
},
|
||||
search() {
|
||||
if (this.searchValue) {
|
||||
// 搜索
|
||||
this.getUnionList(this.searchValue)
|
||||
}
|
||||
},
|
||||
// 申請加入工會
|
||||
applyUnion(data) {
|
||||
if (this.isAuth) {
|
||||
this.detailData = data
|
||||
this.popupStstus = 1
|
||||
this.messageContent = "是否选择加入当前公会"
|
||||
this.$refs.popup.open('center')
|
||||
} else {
|
||||
this.popupStstus = 3
|
||||
this.messageContent = "当前尚未实名认证,是否跳转到实名认证页面?"
|
||||
this.$refs.popup.open('center')
|
||||
}
|
||||
},
|
||||
closePopup() {
|
||||
this.popupStstus = null
|
||||
this.detailData = null
|
||||
this.messageContent = ""
|
||||
this.$refs.popup.close()
|
||||
},
|
||||
confirmPopup() {
|
||||
if (this.popupStstus !== null) {
|
||||
if (this.popupStstus === 1) {
|
||||
this.joinUnionize()
|
||||
} else if (this.popupStstus === 3) {
|
||||
// 实名认证页面
|
||||
this.authConfirm()
|
||||
}
|
||||
}
|
||||
},
|
||||
authConfirm() {
|
||||
// 去实名认证页面
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
if (platform === 'ios') {
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'enterAuthent'
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
window.Android.enterAuthent();
|
||||
}
|
||||
this.closePopup()
|
||||
},
|
||||
// 申请加入公会
|
||||
async joinUnionize() {
|
||||
http.post('/api/Guild/join_guild', {
|
||||
guild_id: this.detailData.id,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = response
|
||||
if (code) {
|
||||
this.messageText = `加入成功`
|
||||
this.$refs.message.open()
|
||||
this.msgType = 'success'
|
||||
uni.$emit('refreshList');
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
this.closePopup()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.view-page {
|
||||
// padding: 32rpx;
|
||||
// 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-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.popup_view {
|
||||
width: 550rpx;
|
||||
// height: 40vh;
|
||||
background-color: #fff;
|
||||
border-radius: 32rpx;
|
||||
padding: 32rpx;
|
||||
|
||||
.popup_title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.messageContent {
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
|
||||
.popup_button {
|
||||
margin-top: 24rpx;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
|
||||
.close_button,
|
||||
.confirm-button {
|
||||
width: 200rpx;
|
||||
height: 84rpx;
|
||||
background: #F3F3F3;
|
||||
border-radius: 106rpx;
|
||||
color: #999999;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.confirm-button {
|
||||
background: var(--primary-color);
|
||||
color: var(--font-button-color);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 0 32rpx;
|
||||
}
|
||||
|
||||
// /* 搜索框 */
|
||||
.flex-input {
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
|
||||
.search-button {
|
||||
padding: 0 0 0 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 热门公会 */
|
||||
.hotspot-view {
|
||||
margin-top: 28rpx;
|
||||
|
||||
.hotspot-box {
|
||||
width: calc(100% - 48rpx);
|
||||
padding: 24rpx;
|
||||
position: relative;
|
||||
// min-height: calc(268rpx - 48rpx);
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 24rpx;
|
||||
/* */
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
|
||||
/* 头像 */
|
||||
.head-portrait {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* 中间信息 */
|
||||
.info-box {
|
||||
padding: 0 24rpx;
|
||||
// max-width: 40%;
|
||||
width: 55%;
|
||||
|
||||
.icon-box {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
|
||||
/* 会长样式 */
|
||||
.chairman {
|
||||
min-width: 106rpx;
|
||||
height: 36rpx;
|
||||
padding: 0 12rpx;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
text-align: right;
|
||||
background: var(--subss-color);
|
||||
border-radius: 116rpx 116rpx 116rpx 116rpx;
|
||||
border: 2rpx solid var(--subss-color);
|
||||
position: relative;
|
||||
left: 10rpx;
|
||||
margin: 32rpx 0;
|
||||
display: inline-flex;
|
||||
|
||||
.truncate-three {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.chairman-portrait {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #FFFFFF;
|
||||
position: absolute;
|
||||
top: -10rpx;
|
||||
left: -20rpx;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.chairman-name {
|
||||
margin-left: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.id-title {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
margin-left: 24rpx;
|
||||
}
|
||||
|
||||
.subhead-title {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
margin: 8rpx 0;
|
||||
}
|
||||
|
||||
.like-box {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
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;
|
||||
margin: 8rpx 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* 右边按钮 */
|
||||
.right-button {
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
bottom: 50rpx;
|
||||
|
||||
.apply-button {
|
||||
display: inline-block;
|
||||
background: var(--primary-color);
|
||||
font-size: var(--font-button-size);
|
||||
color: var(--font-button-color);
|
||||
border-radius: 68rpx;
|
||||
text-align: center;
|
||||
|
||||
padding: 4rpx 30rpx;
|
||||
}
|
||||
|
||||
.online-view {
|
||||
|
||||
.avatar {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
border: 2px solid white;
|
||||
/* 白色边框 */
|
||||
background-size: cover;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||
transition: all 0.4s ease;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* 头像位置 */
|
||||
.avatar:nth-child(1) {
|
||||
left: calc(50% - 60rpx);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.avatar:nth-child(2) {
|
||||
left: calc(50% - 35rpx);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.avatar:nth-child(3) {
|
||||
left: calc(50% - 10rpx);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 悬停效果 */
|
||||
.avatar:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
// display: inline-block;
|
||||
margin-top: 24rpx;
|
||||
padding: 12rpx 8rpx;
|
||||
text-align: right;
|
||||
width: 160rpx;
|
||||
height: 44rpx;
|
||||
line-height: 44rpx;
|
||||
// background: #333333;
|
||||
border-radius: 92rpx 92rpx 92rpx 92rpx;
|
||||
position: relative;
|
||||
|
||||
.avatars-container {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
left: 40%;
|
||||
}
|
||||
|
||||
.online-people {
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
font-size: 24rpx;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
/* width: 6ch; */
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
word-break: keep-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,235 +0,0 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg || $config.PRIMARY_BGURL}')`}">
|
||||
<headerHeight />
|
||||
<navBar :navTitle="`${ leaderStatus ? '公会房间及流水' : '公会房间'}`">
|
||||
<template #rightView>
|
||||
</template>
|
||||
</navBar>
|
||||
<view class="content_view">
|
||||
<view>
|
||||
<uni-datetime-picker type="range" style="background-color: #f8f8f8;" start-placeholder="开始时间" :end="currentDate" end-placeholder="结束时间"
|
||||
v-model="dateSearch" rangeSeparator="至" @change="changeDate" />
|
||||
</view>
|
||||
<view class="header-view" v-if="flowDetail && leaderStatus">
|
||||
<view class="flex-line flow-view w-fill flex-spaceB">
|
||||
<view class="flowTitle color-3">
|
||||
总流水
|
||||
</view>
|
||||
</view>
|
||||
<view class="flowNumber">
|
||||
{{flowDetail.total_transaction}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="room-list flex-line" v-if="flowList && flowList.length">
|
||||
<view class="room-line flex-line flex-spaceB" v-for="data in flowList" :key="data.room_id" @click="jumpRoomPage(data)">
|
||||
<view class="flex-line">
|
||||
<view class="head-portrait">
|
||||
<img :src="data.room_cover || logo" alt="" />
|
||||
</view>
|
||||
<view class="ml-20">
|
||||
<view class="color-3 font-32 font-w500">
|
||||
{{data.room_name}}
|
||||
</view>
|
||||
<view class="color-6 font-24">
|
||||
ID:{{data.room_number}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-line" v-if="leaderStatus">
|
||||
<view class="flowIcon">
|
||||
<img src="@/static/image/union/flowIcon.png" alt="" />
|
||||
</view>
|
||||
<view class="ml-20">
|
||||
{{data.total_price || 0}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-24">
|
||||
<uni-load-more :status="loading ? 'loading' : noMore ? 'noMore' : 'more'" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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 {
|
||||
components: {
|
||||
headerHeight,
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dateSearch: [new Date(),new Date()],
|
||||
currentDate: +new Date(),
|
||||
logo,
|
||||
loading: false,
|
||||
noMore: false,
|
||||
detailData: null,
|
||||
pageConfig: {
|
||||
pageSize: 20,
|
||||
currentPage: 1,
|
||||
total: 0
|
||||
},
|
||||
searchParams: {
|
||||
guild_id: 0,
|
||||
start_time:new Date(),
|
||||
end_time: new Date(),
|
||||
token: uni.getStorageSync('token') || '',
|
||||
page: 1,
|
||||
page_size: 20
|
||||
},
|
||||
leaderStatus: null,
|
||||
flowDetail: null,
|
||||
flowList:[],
|
||||
ThemeData:null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
id,
|
||||
leader
|
||||
} = options
|
||||
|
||||
this.leaderStatus = +leader
|
||||
this.searchParams.start_time = this.formatDate(new Date())
|
||||
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) {
|
||||
this.getFlow()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatDate(timestamp) {
|
||||
const date = new Date(timestamp);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始需+1
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
// 获取流水
|
||||
async getFlow() {
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await http.get('/api/Guild/guild_flow', {
|
||||
...this.searchParams,
|
||||
page: this.pageConfig.currentPage,
|
||||
page_size: this.pageConfig.pageSize,
|
||||
})
|
||||
if(code) {
|
||||
this.flowDetail = data
|
||||
this.pageConfig.total = data.count
|
||||
this.loading = false
|
||||
const newData = data.list || []
|
||||
if (newData.length === 0) {
|
||||
this.noMore = true
|
||||
return
|
||||
}
|
||||
this.flowList = [...this.flowList, ...newData]
|
||||
this.pageConfig.currentPage++
|
||||
if (this.flowList.length === this.pageConfig.total) {
|
||||
this.noMore = true
|
||||
return
|
||||
}
|
||||
// console.log(this.flowList.length === this.pageConfig.total)
|
||||
}
|
||||
},
|
||||
jumpRoomPage(data){
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
if (platform === 'ios') {
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'jumpRoomPage',
|
||||
'data': {
|
||||
room_id: data.room_id
|
||||
}
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
window.Android.jumpRoomPage(data.room_id);
|
||||
}
|
||||
},
|
||||
// 日期范围
|
||||
changeDate(date) {
|
||||
this.searchParams.start_time = date.length ? date[0] : ''
|
||||
this.searchParams.end_time = date.length ? date[1] : ''
|
||||
this.getFlow()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.view-page {
|
||||
// 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-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.content_view {
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.header-view {
|
||||
padding: 24rpx;
|
||||
margin-top: 24rpx;
|
||||
background-image: url('/static/image/union/flowbg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
height: 152rpx;
|
||||
|
||||
.flow-view {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.flowNumber {
|
||||
|
||||
font-weight: 500;
|
||||
font-size: 40rpx;
|
||||
color: #333;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.room-list {
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
.room-line {
|
||||
width: 100%;
|
||||
// background-color: #004D3C;
|
||||
margin-top: 24rpx;
|
||||
padding:24rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.flowIcon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
|
||||
.head-portrait {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
|
||||
img {
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -177,7 +177,7 @@
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "提交失败",
|
||||
icon: 'error'
|
||||
icon: 'none'
|
||||
});
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
<template>
|
||||
<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 minUnicon" style="white-space: nowrap">
|
||||
历史记录
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</navBar>
|
||||
<view class="content-view" v-if="detailData">
|
||||
<view class="bottom" v-for="(data,index) in detailData" :key="index">
|
||||
<view class="flex-line flex-spaceB w-fill">
|
||||
<view class="color-3 font-w500 font-32">
|
||||
{{data.name}}
|
||||
</view>
|
||||
<view class="font-28" :style="{'color' : data.status_str === '已发放' ? '#999' : '#DEB52E'}">
|
||||
</view>
|
||||
</view>
|
||||
<view class="line">
|
||||
|
||||
</view>
|
||||
<view class="flex-line flex-spaceB w-fill">
|
||||
<view class="cumulative font-28 font-w400">
|
||||
累计流水:{{data.total_transaction}}
|
||||
</view>
|
||||
<view class="subsidy font-28">
|
||||
获得补贴:{{data.subsidy_amount}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</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 {
|
||||
components: {
|
||||
headerHeight,
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
logo,
|
||||
detailData: null,
|
||||
searchParams: {
|
||||
guild_id: 0,
|
||||
token: uni.getStorageSync('token') || '',
|
||||
},
|
||||
ThemeData:null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
id,
|
||||
leader
|
||||
} = options
|
||||
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: {
|
||||
//
|
||||
async getSubsidy() {
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await http.get('/api/Guild/guild_subsidy', this.searchParams)
|
||||
this.detailData = code ? data.list : null
|
||||
},
|
||||
historyRecord(){
|
||||
uni.navigateTo({
|
||||
url: `/pages/union/historyRecord?id=${this.searchParams.guild_id}`
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.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%;
|
||||
.minUnicon{
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.content-view{
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
.bottom{
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.cumulative {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.line {
|
||||
background-color: #ECECEC;
|
||||
height: 1rpx;
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
|
||||
.subsidy {
|
||||
color: var(--warn-color);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,719 +0,0 @@
|
||||
<template>
|
||||
<div class="wealth-level-page">
|
||||
<!-- 顶部导航栏 -->
|
||||
<div class="header">
|
||||
<div class="back-btn" @click="goBack">
|
||||
<i class="icon-back">‹</i>
|
||||
</div>
|
||||
<div class="title-section">
|
||||
<h1 class="main-title">财富等级</h1>
|
||||
<span class="sub-title">主播等级</span>
|
||||
</div>
|
||||
<div class="help-btn" @click="showHelp">
|
||||
<i class="icon-help">?</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 等级进度环形图 -->
|
||||
<div class="level-progress-section">
|
||||
<div class="progress-ring-container">
|
||||
<!-- 等级标签 -->
|
||||
<div class="level-labels">
|
||||
<div
|
||||
class="level-label"
|
||||
v-for="(level, index) in levels"
|
||||
:key="index"
|
||||
:class="{ active: currentLevelIndex >= index }"
|
||||
>
|
||||
<span class="level-name">{{ level.name }}</span>
|
||||
<div
|
||||
class="level-dot"
|
||||
:class="{ active: currentLevelIndex >= index }"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 中心头像和信息 -->
|
||||
<div class="center-info">
|
||||
<div class="avatar">
|
||||
<img :src="userAvatar" alt="用户头像" />
|
||||
</div>
|
||||
<div class="experience-info">
|
||||
<div class="current-exp">
|
||||
<span class="exp-number">{{ currentExp }}</span>
|
||||
<span class="exp-label">当前经验</span>
|
||||
</div>
|
||||
<div class="next-level-exp">
|
||||
<span class="exp-number">{{ nextLevelExp }}</span>
|
||||
<span class="exp-label">距离下一个等级</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 进度弧线 -->
|
||||
<svg class="progress-ring" viewBox="0 0 200 200">
|
||||
<circle
|
||||
class="progress-ring-bg"
|
||||
cx="100"
|
||||
cy="100"
|
||||
r="85"
|
||||
fill="none"
|
||||
stroke="#2a2a2a"
|
||||
stroke-width="4"
|
||||
/>
|
||||
<circle
|
||||
class="progress-ring-progress"
|
||||
cx="100"
|
||||
cy="100"
|
||||
r="85"
|
||||
fill="none"
|
||||
stroke="#00ff88"
|
||||
stroke-width="4"
|
||||
stroke-linecap="round"
|
||||
:stroke-dasharray="circumference"
|
||||
:stroke-dashoffset="progressOffset"
|
||||
transform="rotate(-90 100 100)"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 当前等级卡片 -->
|
||||
<div class="current-level-card">
|
||||
<div class="level-badge">
|
||||
<img :src="currentLevel.badge" alt="等级徽章" />
|
||||
</div>
|
||||
<div class="level-info">
|
||||
<h2 class="level-title">{{ currentLevel.name }}</h2>
|
||||
<p class="level-description">{{ currentLevel.description }}</p>
|
||||
<div class="level-progress-bar">
|
||||
<div class="progress-track">
|
||||
<div
|
||||
class="progress-fill"
|
||||
:style="{ width: levelProgress + '%' }"
|
||||
></div>
|
||||
</div>
|
||||
<div class="progress-labels">
|
||||
<span>Lv.{{ currentLevel.level }}</span>
|
||||
<span>Lv.{{ currentLevel.level + 1 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="next-level-requirement">{{ nextLevelRequirement }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 每日奖励 -->
|
||||
<div class="daily-rewards-section">
|
||||
<h3 class="section-title">每日奖励</h3>
|
||||
<div class="reward-item">
|
||||
<div class="reward-icon">
|
||||
<img src="/icons/coin.png" alt="金币" />
|
||||
</div>
|
||||
<div class="reward-info">
|
||||
<p class="reward-title">段位达到富豪8</p>
|
||||
<p class="reward-desc">可每日领取金币</p>
|
||||
</div>
|
||||
<button
|
||||
class="claim-btn"
|
||||
@click="claimDailyReward"
|
||||
:disabled="dailyRewardClaimed"
|
||||
>
|
||||
{{ dailyRewardClaimed ? "已领取" : "立即领取" }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 等级需求及福利 -->
|
||||
<div class="level-benefits-section">
|
||||
<h3 class="section-title">等级需求及福利</h3>
|
||||
<div class="benefits-grid">
|
||||
<div
|
||||
class="benefit-item"
|
||||
v-for="(benefit, index) in levelBenefits"
|
||||
:key="index"
|
||||
>
|
||||
<div class="benefit-icon">
|
||||
<img :src="benefit.icon" alt="福利图标" />
|
||||
</div>
|
||||
<p class="benefit-value">{{ benefit.value }}</p>
|
||||
<p class="benefit-desc">{{ benefit.description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 财富特权 -->
|
||||
<div class="wealth-privileges-section">
|
||||
<h3 class="section-title">财富特权</h3>
|
||||
<div class="privileges-grid">
|
||||
<div
|
||||
class="privilege-item"
|
||||
v-for="(privilege, index) in wealthPrivileges"
|
||||
:key="index"
|
||||
>
|
||||
<div class="privilege-icon">
|
||||
<img :src="privilege.icon" alt="特权图标" />
|
||||
</div>
|
||||
<p class="privilege-name">{{ privilege.name }}</p>
|
||||
<p class="privilege-level">{{ privilege.level }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "WealthLevelPage",
|
||||
data() {
|
||||
return {
|
||||
// 用户信息
|
||||
userAvatar: "",
|
||||
currentExp: 1608,
|
||||
nextLevelExp: 1608,
|
||||
currentLevelIndex: 1,
|
||||
dailyRewardClaimed: false,
|
||||
|
||||
// 等级配置
|
||||
levels: [
|
||||
{ name: "新人", value: 0 },
|
||||
{ name: "富豪", value: 1000 },
|
||||
{ name: "星爵", value: 5000 },
|
||||
{ name: "星侯", value: 15000 },
|
||||
{ name: "星王", value: 50000 },
|
||||
],
|
||||
|
||||
// 当前等级信息
|
||||
currentLevel: {
|
||||
name: "星爵",
|
||||
level: 1,
|
||||
description: "进30天保段已成功",
|
||||
badge: "",
|
||||
requirement: 10000,
|
||||
},
|
||||
|
||||
// 等级福利
|
||||
levelBenefits: [
|
||||
{
|
||||
icon: "",
|
||||
value: "100万",
|
||||
description: "所需经验值",
|
||||
},
|
||||
{
|
||||
icon: "",
|
||||
value: "100万",
|
||||
description: "保段经验值",
|
||||
},
|
||||
{
|
||||
icon: "",
|
||||
value: "100万",
|
||||
description: "每日可领",
|
||||
},
|
||||
{
|
||||
icon: "",
|
||||
value: "吉普",
|
||||
description: "专属座驾",
|
||||
},
|
||||
],
|
||||
|
||||
// 财富特权
|
||||
wealthPrivileges: Array(12)
|
||||
.fill()
|
||||
.map((_, index) => ({
|
||||
name: "吉普",
|
||||
level: "富豪6解锁",
|
||||
icon: "",
|
||||
})),
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
// 计算圆形进度条
|
||||
circumference() {
|
||||
return 2 * Math.PI * 85;
|
||||
},
|
||||
|
||||
progressOffset() {
|
||||
const progress = this.levelProgress / 100;
|
||||
return this.circumference - progress * this.circumference;
|
||||
},
|
||||
|
||||
// 计算当前等级进度
|
||||
levelProgress() {
|
||||
const currentLevelExp = this.levels[this.currentLevelIndex].value;
|
||||
const nextLevelExp =
|
||||
this.levels[this.currentLevelIndex + 1]?.value ||
|
||||
currentLevelExp + 10000;
|
||||
const progress =
|
||||
((this.currentExp - currentLevelExp) /
|
||||
(nextLevelExp - currentLevelExp)) *
|
||||
100;
|
||||
return Math.min(Math.max(progress, 0), 100);
|
||||
},
|
||||
|
||||
// 下一等级需求
|
||||
nextLevelRequirement() {
|
||||
const nextLevel = this.levels[this.currentLevelIndex + 1];
|
||||
if (nextLevel) {
|
||||
const remaining = nextLevel.value - this.currentExp;
|
||||
return `距离下一个段位还差${remaining.toLocaleString()}经验`;
|
||||
}
|
||||
return "已达到最高等级";
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 返回上一页
|
||||
goBack() {
|
||||
this.$router.go(-1);
|
||||
},
|
||||
|
||||
// 显示帮助
|
||||
showHelp() {
|
||||
this.$toast("帮助信息");
|
||||
},
|
||||
|
||||
// 领取每日奖励
|
||||
claimDailyReward() {
|
||||
if (this.dailyRewardClaimed) return;
|
||||
|
||||
this.dailyRewardClaimed = true;
|
||||
this.$toast("领取成功!");
|
||||
|
||||
// 这里可以调用API
|
||||
this.apiClaimDailyReward();
|
||||
},
|
||||
|
||||
// API调用示例
|
||||
async apiClaimDailyReward() {
|
||||
try {
|
||||
// const response = await this.$api.claimDailyReward()
|
||||
console.log("API: 领取每日奖励");
|
||||
} catch (error) {
|
||||
console.error("领取失败:", error);
|
||||
this.dailyRewardClaimed = false;
|
||||
}
|
||||
},
|
||||
|
||||
// 获取用户等级数据
|
||||
async fetchUserLevelData() {
|
||||
try {
|
||||
// const response = await this.$api.getUserLevel()
|
||||
// this.currentExp = response.currentExp
|
||||
// this.currentLevelIndex = response.levelIndex
|
||||
console.log("API: 获取用户等级数据");
|
||||
} catch (error) {
|
||||
console.error("获取数据失败:", error);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.fetchUserLevelData();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.wealth-level-page {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #f5f5f5 50%);
|
||||
color: #fff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 顶部导航 */
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 44px 20px 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.back-btn,
|
||||
.help-btn {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.back-btn:hover,
|
||||
.help-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.icon-back {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.icon-help {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.title-section {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 4px 0;
|
||||
}
|
||||
|
||||
.sub-title {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 等级进度环形图 */
|
||||
.level-progress-section {
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.progress-ring-container {
|
||||
position: relative;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
}
|
||||
|
||||
.level-labels {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.level-label {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.level-label:nth-child(1) {
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
} /* 新人 */
|
||||
.level-label:nth-child(2) {
|
||||
top: 40px;
|
||||
right: 10px;
|
||||
} /* 富豪 */
|
||||
.level-label:nth-child(3) {
|
||||
bottom: 40px;
|
||||
right: 10px;
|
||||
} /* 星爵 */
|
||||
.level-label:nth-child(4) {
|
||||
bottom: 10px;
|
||||
left: 20px;
|
||||
} /* 星侯 */
|
||||
.level-label:nth-child(5) {
|
||||
top: 50%;
|
||||
right: 0;
|
||||
transform: translateY(-50%);
|
||||
} /* 星王 */
|
||||
|
||||
.level-name {
|
||||
margin-bottom: 4px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.level-label.active .level-name {
|
||||
color: #00ff88;
|
||||
}
|
||||
|
||||
.level-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #333;
|
||||
border: 2px solid #555;
|
||||
}
|
||||
|
||||
.level-dot.active {
|
||||
background: #00ff88;
|
||||
border-color: #00ff88;
|
||||
}
|
||||
|
||||
.center-info {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
margin: 0 auto 16px;
|
||||
border: 3px solid #00ff88;
|
||||
}
|
||||
|
||||
.avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.experience-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 200px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.current-exp,
|
||||
.next-level-exp {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.exp-number {
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #00ff88;
|
||||
}
|
||||
|
||||
.exp-label {
|
||||
font-size: 10px;
|
||||
color: #999;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.progress-ring {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.progress-ring-progress {
|
||||
transition: stroke-dashoffset 0.5s ease;
|
||||
}
|
||||
|
||||
/* 当前等级卡片 */
|
||||
.current-level-card {
|
||||
margin: 20px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 16px;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.level-badge {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin-right: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.level-badge img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.level-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.level-title {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
margin: 0 0 4px 0;
|
||||
color: #00ff88;
|
||||
}
|
||||
|
||||
.level-description {
|
||||
font-size: 12px;
|
||||
color: #ccc;
|
||||
margin: 0 0 12px 0;
|
||||
}
|
||||
|
||||
.level-progress-bar {
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.progress-track {
|
||||
height: 4px;
|
||||
background: #333;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #00ff88, #00ccff);
|
||||
border-radius: 2px;
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
|
||||
.progress-labels {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 10px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.next-level-requirement {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
margin: 8px 0 0 0;
|
||||
}
|
||||
|
||||
/* 每日奖励和福利区域 */
|
||||
.daily-rewards-section,
|
||||
.level-benefits-section,
|
||||
.wealth-privileges-section {
|
||||
background: #fff;
|
||||
color: #333;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 16px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.reward-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.reward-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.reward-icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.reward-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.reward-title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin: 0 0 2px 0;
|
||||
}
|
||||
|
||||
.reward-desc {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.claim-btn {
|
||||
background: #00ff88;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 20px;
|
||||
padding: 8px 16px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.claim-btn:hover:not(:disabled) {
|
||||
background: #00e67a;
|
||||
}
|
||||
|
||||
.claim-btn:disabled {
|
||||
background: #ccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 福利网格 */
|
||||
.benefits-grid,
|
||||
.privileges-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.benefit-item,
|
||||
.privilege-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 12px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.benefit-icon,
|
||||
.privilege-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.benefit-icon img,
|
||||
.privilege-icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.benefit-value,
|
||||
.privilege-name {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin: 0 0 2px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.benefit-desc,
|
||||
.privilege-level {
|
||||
font-size: 10px;
|
||||
color: #666;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 375px) {
|
||||
.progress-ring-container {
|
||||
width: 240px;
|
||||
height: 240px;
|
||||
}
|
||||
|
||||
.experience-info {
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
.benefits-grid,
|
||||
.privileges-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,397 +0,0 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg || $config.PRIMARY_BGURL}')`}">
|
||||
<headerHeight />
|
||||
<navBar :navTitle="`公会成员`">
|
||||
<template #rightView>
|
||||
<view class="icon-right flex-line" v-if="leaderStatus" @click="application">
|
||||
<view class="font-24" style="color:#333;white-space: nowrap">
|
||||
退出审核
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</navBar>
|
||||
<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" />
|
||||
</view>
|
||||
<view class="header-view" v-if="flowDetail && leaderStatus">
|
||||
<view class="flex-line flow-view w-fill flex-spaceB">
|
||||
<view class="flowTitle color-3">
|
||||
总支出
|
||||
</view>
|
||||
</view>
|
||||
<view class="flowNumber">
|
||||
{{ flowDetail.total_consumption }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="room-list flex-line mt-24" v-if="dataList && dataList.length">
|
||||
<view class="room-line w-fill" v-for="data in dataList" :key="data.room_id">
|
||||
<view class="w-fill flex-line flex-spaceB" @click="jumpHomePage(data)">
|
||||
<view class="flex-line w-fill">
|
||||
<view class="head-portrait-view">
|
||||
<view class="head-portrait">
|
||||
<img :src="data.avatar || logo" alt="" />
|
||||
|
||||
</view>
|
||||
<view class="tip" v-if="data.is_deacon === 1">
|
||||
<img src="@/static/image/union/ghz_tip.png" alt="" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="ml-20">
|
||||
<view class="color-3 font-32 font-w500">
|
||||
{{ data.nickname }}
|
||||
</view>
|
||||
<view class="color-6 font-24" style="margin-top: 12rpx;">
|
||||
ID:{{ data.user_code }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-line" v-if="leaderStatus">
|
||||
<view class="flowIcon">
|
||||
<img src="@/static/image/union/flowIcon.png" alt="" />
|
||||
</view>
|
||||
<view class="ml-20">
|
||||
{{ data.total_consumption || 0 }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="w-fill operate_button" v-if="leaderStatus && data.is_deacon === 2">
|
||||
<view class="color-f font-24 button" @click="kickGuild(data)">
|
||||
踢出公会
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-24">
|
||||
<uni-load-more :status="loading ? 'loading' : noMore ? 'noMore' : 'more'" />
|
||||
</view>
|
||||
</view>
|
||||
<uni-popup ref="message" type="message">
|
||||
<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
|
||||
</uni-popup>
|
||||
<uni-popup ref="popup" type="center">
|
||||
<view class="popup_view">
|
||||
<view class="color-3 font-32 popup_title">
|
||||
温馨提示
|
||||
</view>
|
||||
<view class="color-3 font-24 messageContent">
|
||||
{{ messageContent }}
|
||||
</view>
|
||||
<view class="popup_button flex-line">
|
||||
<view class="close_button flex-line" @click="closePopup">
|
||||
取消
|
||||
</view>
|
||||
<view class="confirm-button flex-line" @click="confirmPopup">
|
||||
确认
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</uni-popup>
|
||||
</view>
|
||||
</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 {
|
||||
components: {
|
||||
headerHeight,
|
||||
navBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dateSearch: [new Date(), new Date()],
|
||||
currentDate: +new Date(),
|
||||
logo,
|
||||
loading: false,
|
||||
noMore: false,
|
||||
detailData: null,
|
||||
pageConfig: {
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
total: 0
|
||||
},
|
||||
searchParams: {
|
||||
guild_id: 0,
|
||||
start_time: '',
|
||||
end_time: '',
|
||||
token: uni.getStorageSync('token') || '',
|
||||
page: 1,
|
||||
page_size: 20
|
||||
},
|
||||
leaderStatus: null,
|
||||
flowDetail: null,
|
||||
msgType: '',
|
||||
messageText: '',
|
||||
messageContent: '',
|
||||
dataList: [],
|
||||
currentUserData: null,
|
||||
ThemeData: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
const {
|
||||
id,
|
||||
leader
|
||||
} = options
|
||||
|
||||
this.leaderStatus = +leader
|
||||
this.searchParams.guild_id = id
|
||||
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) {
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
application() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/union/exitApplication?id=${this.searchParams.guild_id}`
|
||||
});
|
||||
},
|
||||
formatDate(timestamp) {
|
||||
const date = new Date(timestamp);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始需+1
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
// 获取成员列表
|
||||
async getList() {
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await http.get('/api/Guild/get_guild_member_list', {
|
||||
...this.searchParams,
|
||||
page: this.pageConfig.currentPage,
|
||||
page_limit: this.pageConfig.pageSize,
|
||||
})
|
||||
if (code) {
|
||||
this.flowDetail = data
|
||||
this.pageConfig.total = data.count
|
||||
this.loading = false
|
||||
const newData = data.list || []
|
||||
if (newData.length === 0) {
|
||||
this.noMore = true
|
||||
return
|
||||
}
|
||||
this.dataList = [...this.dataList, ...newData]
|
||||
this.pageConfig.currentPage++
|
||||
if (this.dataList.length === this.pageConfig.total) {
|
||||
this.noMore = true
|
||||
return
|
||||
}
|
||||
}
|
||||
},
|
||||
// 日期范围
|
||||
changeDate(date) {
|
||||
this.searchParams.start_time = date.length ? date[0] : ''
|
||||
this.searchParams.end_time = date.length ? date[1] : ''
|
||||
this.getList()
|
||||
},
|
||||
// 踢出公会
|
||||
kickGuild(userData) {
|
||||
this.currentUserData = userData
|
||||
this.messageContent = `亲爱的会长,您当前操作将踢出该成员,是否继续?`
|
||||
this.$refs.popup.open('center')
|
||||
},
|
||||
jumpHomePage(data) {
|
||||
const platform = uni.getSystemInfoSync().platform;
|
||||
if (platform === 'ios') {
|
||||
window.webkit.messageHandlers.nativeHandler.postMessage({
|
||||
'action': 'jumpWebPage',
|
||||
'data': {
|
||||
userId: data.user_id
|
||||
}
|
||||
});
|
||||
} else if (platform === 'android') {
|
||||
window.Android.jumpWebPage(data.user_id);
|
||||
}
|
||||
},
|
||||
confirmPopup() {
|
||||
this.kickUser()
|
||||
},
|
||||
closePopup() {
|
||||
this.currentUserData = null
|
||||
this.messageContent = ""
|
||||
this.$refs.popup.close()
|
||||
},
|
||||
async kickUser() {
|
||||
http.post('/api/Guild/kick_guild_member', {
|
||||
guild_id: this.currentUserData.guild_id,
|
||||
user_id: this.currentUserData.user_id,
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
const {
|
||||
data,
|
||||
code,
|
||||
msg
|
||||
} = response
|
||||
if (code) {
|
||||
this.msgType = 'success'
|
||||
this.messageText = `操作成功`
|
||||
this.$refs.message.open()
|
||||
this.dataList = []
|
||||
this.pageConfig.currentPage = 1
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
this.$refs.message.open()
|
||||
}
|
||||
this.currentUserData = null
|
||||
this.closePopup()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.view-page {
|
||||
// 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-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.content_view {
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.popup_view {
|
||||
width: 550rpx;
|
||||
// height: 40vh;
|
||||
background-color: #fff;
|
||||
border-radius: 32rpx;
|
||||
padding: 32rpx;
|
||||
|
||||
.popup_title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.messageContent {
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
|
||||
.popup_button {
|
||||
margin-top: 24rpx;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
|
||||
.close_button,
|
||||
.confirm-button {
|
||||
width: 200rpx;
|
||||
height: 84rpx;
|
||||
background: #F3F3F3;
|
||||
border-radius: 106rpx;
|
||||
color: #999999;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.confirm-button {
|
||||
background: var(--primary-color);
|
||||
color: var(--font-button-color);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.header-view {
|
||||
padding: 24rpx;
|
||||
margin-top: 24rpx;
|
||||
background-image: url('/static/image/union/flowbg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
height: 152rpx;
|
||||
|
||||
.flow-view {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.flowNumber {
|
||||
|
||||
font-weight: 500;
|
||||
font-size: 40rpx;
|
||||
color: #333;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.room-list {
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
|
||||
.operate_button {
|
||||
border-top: 1rpx solid #E2E2E2;
|
||||
margin-top: 24rpx;
|
||||
padding-top: 24rpx;
|
||||
|
||||
.button {
|
||||
padding: 12rpx 24rpx;
|
||||
background-color: #333;
|
||||
display: inline-flex;
|
||||
border-radius: 32rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.room-line {
|
||||
width: 100%;
|
||||
// background-color: #004D3C;
|
||||
margin-bottom: 24rpx;
|
||||
padding: 24rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.flowIcon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
|
||||
.head-portrait {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
|
||||
|
||||
img {
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.head-portrait-view {
|
||||
position: relative;
|
||||
|
||||
.tip {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 5rpx;
|
||||
right: 0;
|
||||
width: 96rpx;
|
||||
height: 26rpx;
|
||||
border-radius: 0;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
Before Width: | Height: | Size: 585 KiB |
|
Before Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 62 KiB |
BIN
unpackage/dist/build/web/assets/WeChat-L5Y1pZVj.png
vendored
|
Before Width: | Height: | Size: 7.7 KiB |
@@ -1 +0,0 @@
|
||||
const o=(o,t)=>{const c=o.__vccOpts||o;for(const[s,n]of t)c[s]=n;return c};export{o as _};
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-fad43f9c]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page img[data-v-fad43f9c]{width:100%}.view-page .dec-view[data-v-fad43f9c]{min-height:calc(99vh - 5rem);position:relative;border-radius:.5rem;margin:.75rem}
|
||||
BIN
unpackage/dist/build/web/assets/bg-yYu5gMyW.png
vendored
|
Before Width: | Height: | Size: 169 KiB |
BIN
unpackage/dist/build/web/assets/coin-tLYa0maw.png
vendored
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1 +0,0 @@
|
||||
.view-page[data-v-8c524529]{width:100vw;min-height:100vh;background-repeat:no-repeat;background-size:100% 100%}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-71e806b5]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .content[data-v-71e806b5]{padding:0 .75rem;width:calc(100vw - 1.5rem);height:calc(100vh - 67px)}.view-page .content .box-line[data-v-71e806b5]{justify-content:space-between;margin-top:.75rem}.view-page .content .box-line .success-text[data-v-71e806b5]{color:var(--primary-color)}.view-page .content .box-line .error-text[data-v-71e806b5]{color:#fc8871}.view-page .content .box-line .agree-button[data-v-71e806b5],.view-page .content .box-line .no-button[data-v-71e806b5]{width:4.375rem;height:1.5rem;background:var(--primary-color);color:var(--font-button-color);border-radius:2.125rem;display:inline-flex;justify-content:center;align-items:center;font-size:.75rem;font-family:Source Han Sans CN,Source Han Sans CN}.view-page .content .box-line .no-button[data-v-71e806b5]{background-color:#333;color:#fff;margin-right:.75rem}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-790a9cd4]{width:100vw;min-height:100vh;background-color:#f8f8f8}.view-page .text-content-image[data-v-790a9cd4]{width:calc(100% - 8.125rem);position:relative;display:inline-flex;flex-wrap:wrap;align-content:space-between}.view-page .text-content[data-v-790a9cd4]{width:100%;position:relative;display:inline-flex;flex-wrap:wrap;align-content:space-between}.view-page .footer[data-v-790a9cd4]{height:3.0625rem;background:#fff;box-shadow:0 -.1875rem .25rem rgba(222,222,222,.25);position:fixed;left:0;right:0;bottom:0;width:100%;justify-content:space-around}.view-page .footer .footer-button .icon[data-v-790a9cd4]{width:1.5rem;height:1.5rem}.view-page .footer .active[data-v-790a9cd4]{color:var(--primary-color)}.view-page .status-bar[data-v-790a9cd4]{background-color:#fff}.view-page .nav[data-v-790a9cd4]{padding:1rem;width:calc(100% - 2rem);justify-content:start;background-color:#fff}.view-page .nav .icon-image[data-v-790a9cd4]{width:1.5rem;height:1.5rem}.view-page .nav .title[data-v-790a9cd4]{width:calc(100% - 1.5rem);text-align:center}.view-page .container[data-v-790a9cd4]{padding:.75rem 1rem}.view-page .container .feed-box[data-v-790a9cd4]{padding:.75rem;background-color:#fff;border-radius:.6875rem;margin-bottom:.75rem;width:calc(100% - 1.5rem)}.view-page .container .feed-box .box-top-line[data-v-790a9cd4]{width:100%;display:inline-flex;justify-content:flex-start;position:relative}.view-page .container .feed-box .new-box-image[data-v-790a9cd4]{width:7.5rem;height:5.75rem;border-radius:.375rem}.view-page .container .feed-box .new-box-image img[data-v-790a9cd4]{border-radius:.375rem}.view-page .container .title[data-v-790a9cd4]{margin-bottom:.75rem}.view-page .container .textarea-view[data-v-790a9cd4]{padding:.75rem;background-color:#fff;border-radius:.6875rem}.view-page .container .textarea-view .image-upload[data-v-790a9cd4]{width:6.25rem;height:6.25rem;border-radius:.625rem}.view-page .container .confirm-view[data-v-790a9cd4]{justify-content:center;margin:1.5rem 0;width:100%}.view-page .container .confirm-view .confirm-button[data-v-790a9cd4]{width:18.75rem;height:2.625rem;background:var(--primary-color);font-size:var(--font-button-size);color:var(--font-button-color);border-radius:3.3125rem;display:inline-flex;justify-content:center;align-items:center}
|
||||
BIN
unpackage/dist/build/web/assets/flowbg-tH-2-EBN.png
vendored
|
Before Width: | Height: | Size: 69 KiB |
BIN
unpackage/dist/build/web/assets/follow-jqHsW7Zy.png
vendored
|
Before Width: | Height: | Size: 11 KiB |
BIN
unpackage/dist/build/web/assets/fy_bg-Cx8qcedx.jpg
vendored
|
Before Width: | Height: | Size: 22 KiB |
BIN
unpackage/dist/build/web/assets/ghbt-GwD_IaCN.png
vendored
|
Before Width: | Height: | Size: 70 KiB |
BIN
unpackage/dist/build/web/assets/ghcy-vBU-NVTW.png
vendored
|
Before Width: | Height: | Size: 64 KiB |
BIN
unpackage/dist/build/web/assets/ghfj-DW9fEani.png
vendored
|
Before Width: | Height: | Size: 74 KiB |
BIN
unpackage/dist/build/web/assets/give-BlYdVsi1.png
vendored
|
Before Width: | Height: | Size: 5.0 KiB |
@@ -1 +0,0 @@
|
||||
.level-container[data-v-deb39de0]{position:relative;width:100%;height:110px;display:flex;justify-content:center;align-items:center}.level-svg[data-v-deb39de0]{width:100%;height:100%;position:absolute;top:0;left:0}.track[data-v-deb39de0]{stroke:rgba(255,255,255,.3);stroke-width:2;fill:none;stroke-linecap:round;filter:url(#glowFilter)}.highlight-dot[data-v-deb39de0]{fill:#fff;filter:drop-shadow(0 0 12px rgba(255,255,255,.8))}.normal-dot[data-v-deb39de0]{fill:rgba(255,255,255,.3)}.level-text[data-v-deb39de0]{position:absolute;color:#fff;font-size:14px;bottom:10px}.text-1[data-v-deb39de0]{left:1.875rem}.text-3[data-v-deb39de0]{right:1.875rem}svg[data-v-deb39de0]{overflow:visible}#glowFilter[data-v-deb39de0]{filterUnits:userSpaceOnUse}#glowFilter feGaussianBlur[data-v-deb39de0]{stdDeviation:3;result:blur}@font-face{font-family:MyCustomFont;src:url(/h5/web/assets/youshe-fahbdFno.ttf) format("truetype")}.level-str[data-v-1b19b6f0]{font-family:MyCustomFont,sans-serif;font-weight:400;font-size:1.875rem;color:#fff;font-style:normal;text-transform:none;text-align:left}.view-page[data-v-1b19b6f0]{width:100vw;height:100vh;overflow-x:hidden;background:#f3f5f9;display:inline-flex;flex-wrap:wrap}.view-page .LevelProgress-view[data-v-1b19b6f0]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#fff;display:flex;width:100%;flex-direction:column;align-items:center;justify-content:flex-start}.view-page .top-view[data-v-1b19b6f0]{width:100vw;min-height:50vh;background-image:url(/h5/web/assets/Maskgroupx-BN3FJh26.png);background-repeat:no-repeat;position:relative}.view-page .top-view .navbar[data-v-1b19b6f0]{display:inline-flex;justify-content:space-around;align-items:center;height:3rem;width:100%}.view-page .top-view .navbar .icon-image[data-v-1b19b6f0]{width:1.5rem;height:1.5rem}.view-page .top-view .navbar .tab[data-v-1b19b6f0]{display:inline-flex;align-items:center}.view-page .top-view .navbar .tab uni-view[data-v-1b19b6f0]{padding:0 .75rem;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:400;font-size:.875rem;color:rgba(255,255,255,.7)}.view-page .top-view .navbar .tab .active[data-v-1b19b6f0]{font-weight:500;color:#fff}.view-page .top-view .swiper-view[data-v-1b19b6f0]{width:100%;display:inline-flex;justify-content:center}.view-page .top-view .swiper-view .swiper-image[data-v-1b19b6f0]{width:80%;height:8.3125rem;background-repeat:no-repeat;background-size:100%;margin-top:.75rem;display:inline-flex;justify-content:center}.view-page .top-view .swiper-view .swiper-image .view-level[data-v-1b19b6f0]{width:93%;display:inline-flex;align-items:center;justify-content:space-between}.view-page .top-view .swiper-view .swiper-image .view-level .icon[data-v-1b19b6f0]{width:6.875rem;height:4.875rem}.view-page .top-view .business-card[data-v-1b19b6f0]{justify-content:space-around;align-items:flex-end;margin:1.5625rem 0}.view-page .top-view .business-card uni-view[data-v-1b19b6f0]{text-align:center}.view-page .top-view .business-card .head-sculpture[data-v-1b19b6f0]{width:3.8125rem;height:3.8125rem;border-radius:50%}.view-page .top-view .business-card .head-sculpture img[data-v-1b19b6f0]{border-radius:50%}.view-page .content-view[data-v-1b19b6f0]{min-height:46vh;width:calc(100% - 2rem);padding:1rem;border-radius:1rem 1rem 0 0;background-color:#fff}.view-page .content-view .card-view .card-title[data-v-1b19b6f0]{padding:.75rem 0;font-family:Source Han Sans CN,Source Han Sans CN}.view-page .content-view .card-view .card-body[data-v-1b19b6f0]{width:100%;min-height:4.8125rem;background-color:#fff;border-radius:.625rem}.view-page .content-view .card-view .card-body .coin[data-v-1b19b6f0]{height:4.1875rem;width:5.625rem;margin:0 .625rem}.view-page .content-view .card-view .card-body .receive-button[data-v-1b19b6f0]{width:5.375rem;height:1.75rem;background:#0dffb9;border-radius:3.3125rem;justify-content:center}.view-page .content-view .card-view .flex-container[data-v-1b19b6f0]{display:flex;flex-wrap:wrap}.view-page .content-view .card-view .flex-item[data-v-1b19b6f0]{flex:0 0 calc(25% - 10px);margin:5px;min-height:8.125rem;padding:.625rem 0;box-sizing:border-box;border-radius:.4375rem;background-color:#fff;text-align:center}.view-page .content-view .card-view .flex-item .image[data-v-1b19b6f0]{width:100%;height:60%;margin-bottom:.4375rem}.view-page .content-view .card-view .flex-item .image img[data-v-1b19b6f0]{width:80%}.view-page .content-view .card-view .flex-item .title[data-v-1b19b6f0]{max-width:60px}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-5219db17]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page img[data-v-5219db17]{width:100%}.view-page .dec-view[data-v-5219db17]{min-height:calc(99vh - 5rem);position:relative;border-radius:.5rem;margin:.75rem}
|
||||
@@ -1 +0,0 @@
|
||||
.status-bar[data-v-8e5378ec]{width:100%}
|
||||
@@ -1 +0,0 @@
|
||||
import{b as t,s as a,o as s,i as e,j as r,k as i}from"./index-CjgLNey7.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const o=h({name:"headerHeight",props:{bgColor:{type:String,default:()=>"transparent"}},data:()=>({statusBarHeight:0}),created(){this.statusBarHeight=this.getStatusBarHeight()},activated(){this.statusBarHeight=this.getStatusBarHeight()},methods:{getStatusBarHeight(){const s=t();return a("BarHeight",s.statusBarHeight),s.statusBarHeight||0}}},[["render",function(t,a,h,o,g,u){const n=i;return s(),e(n,{class:"status-bar",style:r({height:`${g.statusBarHeight}px`,backgroundColor:h.bgColor})},null,8,["style"])}],["__scopeId","data-v-8e5378ec"]]);export{o as h};
|
||||
@@ -1 +0,0 @@
|
||||
@media screen and (max-width: 500px){.hide-on-phone[data-v-fe4b6be6]{display:none}}.uni-stat__select[data-v-fe4b6be6]{display:flex;align-items:center;cursor:pointer;width:100%;flex:1;box-sizing:border-box}.uni-stat-box[data-v-fe4b6be6],.uni-stat__actived[data-v-fe4b6be6]{width:100%;flex:1}.uni-label-text[data-v-fe4b6be6]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 5px auto 0}.uni-select[data-v-fe4b6be6]{font-size:14px;border:1px solid #e5e5e5;box-sizing:border-box;border-radius:4px;padding:0 5px 0 10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;border-bottom:solid 1px #e5e5e5;width:100%;flex:1;height:35px}.uni-select--disabled[data-v-fe4b6be6]{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label[data-v-fe4b6be6]{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-fe4b6be6]{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-fe4b6be6]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-fe4b6be6]{font-size:14px;color:#909399}.uni-select__selector[data-v-fe4b6be6]{box-sizing:border-box;position:absolute;left:0;width:100%;background-color:#fff;border:1px solid #EBEEF5;border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll[data-v-fe4b6be6]{max-height:200px;box-sizing:border-box}@media (min-width: 768px){.uni-select__selector-scroll[data-v-fe4b6be6]{max-height:600px}}.uni-select__selector-empty[data-v-fe4b6be6],.uni-select__selector-item[data-v-fe4b6be6]{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;padding:0 10px}.uni-select__selector-item[data-v-fe4b6be6]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-fe4b6be6]:last-child,.uni-select__selector-item[data-v-fe4b6be6]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-fe4b6be6]{opacity:.4;cursor:default}.uni-popper__arrow_bottom[data-v-fe4b6be6],.uni-popper__arrow_bottom[data-v-fe4b6be6]:after,.uni-popper__arrow_top[data-v-fe4b6be6],.uni-popper__arrow_top[data-v-fe4b6be6]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow_bottom[data-v-fe4b6be6]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow_bottom[data-v-fe4b6be6]:after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-popper__arrow_top[data-v-fe4b6be6]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));bottom:-6px;left:10%;margin-right:3px;border-bottom-width:0;border-top-color:#ebeef5}.uni-popper__arrow_top[data-v-fe4b6be6]:after{content:" ";bottom:1px;margin-left:-6px;border-bottom-width:0;border-top-color:#fff}.uni-select__input-text[data-v-fe4b6be6]{width:100%;color:#3a3a3a;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder[data-v-fe4b6be6]{color:#6a6a6a;font-size:12px}.uni-select--mask[data-v-fe4b6be6]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:2}[data-v-f9b06fcd] .uni-select{border:0!important;padding:0}.view-page[data-v-f9b06fcd]{width:100vw;height:100vh;background-repeat:no-repeat;background-size:100% 100%}.view-page .top-tip[data-v-f9b06fcd]{font-family:Source Han Sans CN,Source Han Sans CN;margin:1.125rem 0;padding:1rem;width:calc(100% - 2rem)}.view-page .top-tip .tip[data-v-f9b06fcd]{font-weight:500;font-size:1.125rem;color:#333}.view-page .top-tip .kefu-icon[data-v-f9b06fcd]{width:6.8125rem;height:6.8125rem}.view-page .problem-view[data-v-f9b06fcd]{padding:0 .75rem}.view-page .problem-view .problem-box[data-v-f9b06fcd]{font-family:Source Han Sans CN,Source Han Sans CN}.view-page .problem-view .problem-box .box-title[data-v-f9b06fcd]{padding:.75rem 0}.view-page .problem-view .problem-box .box-content .box-line[data-v-f9b06fcd],.view-page .problem-view .problem-box .box-content .box-lines[data-v-f9b06fcd]{width:100%;padding:.5625rem .75rem;background-color:#fff;border-radius:.4375rem;margin-bottom:.75rem;justify-content:space-between}.view-page .problem-view .problem-box .box-content .box-line .title[data-v-f9b06fcd],.view-page .problem-view .problem-box .box-content .box-lines .title[data-v-f9b06fcd]{color:#3a3a3a;font-size:.75rem}.view-page .problem-view .problem-box .box-content .box-lines[data-v-f9b06fcd]{width:calc(100% - 1.5rem)}.view-page .footer[data-v-f9b06fcd]{height:3.0625rem;background:#fff;box-shadow:0 -.1875rem .25rem rgba(222,222,222,.25);position:fixed;left:0;right:0;bottom:0;width:100%;justify-content:space-around}.view-page .footer .footer-button .icon[data-v-f9b06fcd]{width:1.5rem;height:1.5rem}
|
||||
@@ -1 +0,0 @@
|
||||
.container[data-v-ceedcd16]{box-sizing:border-box}.table-scroll[data-v-ceedcd16]{width:100%;background-color:#fff;border-radius:.3125rem}.table-header[data-v-ceedcd16],.table-row[data-v-ceedcd16]{display:flex;flex-direction:row;align-items:center;border-bottom:.03125rem solid #f5f5f5}.header-item[data-v-ceedcd16],.row-item[data-v-ceedcd16]{flex:1;padding:.625rem .3125rem;text-align:center;font-size:.8125rem;color:#333}.header-item[data-v-ceedcd16]{font-weight:700}.time-col[data-v-ceedcd16]{flex:1.2}.sort-icon[data-v-ceedcd16]{display:inline-block;margin-left:.3125rem}.status-0[data-v-ceedcd16]{color:#999}.status-1[data-v-ceedcd16]{color:var(--subss-color)}.status-2[data-v-ceedcd16]{color:#fa3534}.load-more[data-v-ceedcd16]{padding:.625rem;text-align:center;font-size:.75rem;color:#999}.view-page[data-v-9b174e22]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .content[data-v-9b174e22]{padding:0 .75rem;width:calc(100vw - 1.5rem);height:calc(100vh - 67px);background:#fff;border-radius:1rem 1rem 0 0}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-45b62409]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .minUnicon[data-v-45b62409]{color:var(--primary-color)}.view-page .content[data-v-45b62409]{padding:0 1rem}.view-page .avatar[data-v-45b62409]{width:1.375rem;height:1.375rem;border-radius:50%;position:absolute;border:2px solid white;background-size:cover;box-shadow:0 5px 15px rgba(0,0,0,.2);transition:all .4s ease}.view-page .avatar img[data-v-45b62409]{width:100%;height:100%;border-radius:50%}.view-page .avatar[data-v-45b62409]:nth-child(1){left:calc(50% - 1.875rem);z-index:3}.view-page .avatar[data-v-45b62409]:nth-child(2){left:calc(50% - 1.09375rem);z-index:2}.view-page .avatar[data-v-45b62409]:nth-child(3){left:calc(50% - .3125rem);z-index:1}.view-page .avatar[data-v-45b62409]:hover{transform:translateY(-10px);box-shadow:0 10px 25px rgba(0,0,0,.25);z-index:10}.view-page .flex-input[data-v-45b62409]{width:100%;display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row}.view-page .flex-input .search-button[data-v-45b62409]{padding:0 0 0 .625rem}.view-page .swipe-view[data-v-45b62409]{width:100%;height:6.25rem;border-radius:.4375rem;margin-top:1.125rem}.view-page .title[data-v-45b62409]{padding:.75rem 0;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:500;font-size:1rem;color:#333}.view-page .hotspot-view .hotspot-box[data-v-45b62409]{width:calc(100% - 1.5rem);padding:.75rem;background:#fff;border-radius:.625rem;margin-bottom:.75rem;display:inline-flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;flex-direction:row}.view-page .hotspot-view .hotspot-box .head-portrait[data-v-45b62409]{width:3.75rem;height:3.75rem;border-radius:50%}.view-page .hotspot-view .hotspot-box .head-portrait img[data-v-45b62409]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box[data-v-45b62409]{padding:0 .75rem}.view-page .hotspot-view .hotspot-box .info-box .icon-box[data-v-45b62409]{width:.625rem;height:.625rem;margin-left:.15625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman[data-v-45b62409]{min-width:3.3125rem;height:1.125rem;padding:0 .375rem;color:#fff;font-size:.75rem;text-align:right;background:var(--subss-color);border-radius:3.625rem;border:.0625rem solid var(--subss-color);position:relative;left:.3125rem;margin:1rem 0;display:inline-flex}.view-page .hotspot-view .hotspot-box .info-box .chairman .truncate-three[data-v-45b62409]{text-align:left}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait[data-v-45b62409]{width:1.5625rem;height:1.5625rem;border-radius:50%;border:.0625rem solid #FFFFFF;position:absolute;top:-.3125rem;left:-.625rem}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-portrait img[data-v-45b62409]{width:100%;height:100%;border-radius:50%}.view-page .hotspot-view .hotspot-box .info-box .chairman .chairman-name[data-v-45b62409]{margin-left:.9rem}.view-page .hotspot-view .hotspot-box .info-box .id-title[data-v-45b62409]{font-size:.75rem;color:#666;margin-left:.75rem}.view-page .hotspot-view .hotspot-box .info-box .subhead-title[data-v-45b62409]{display:block;font-weight:400;font-size:.75rem;color:#666;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .info-box .like-box[data-v-45b62409]{display:inline-flex;align-items:center;flex-wrap:nowrap;flex-direction:row;padding:.1875rem .75rem;background:#2afec0;border-radius:1.09375rem;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:400;font-size:.875rem;color:#333;margin:.25rem 0}.view-page .hotspot-view .hotspot-box .right-button[data-v-45b62409]{text-align:center}.view-page .hotspot-view .hotspot-box .right-button .apply-button[data-v-45b62409]{display:inline-block;background:var(--primary-color);font-size:var(--font-button-size);color:var(--font-button-color);border-radius:2.125rem;text-align:center;padding:.125rem .9375rem}.view-page .hotspot-view .hotspot-box .right-button .online-view[data-v-45b62409]{margin-top:.75rem;padding:.375rem .25rem;text-align:right;width:5rem;height:1.375rem;line-height:1.375rem;border-radius:2.875rem;position:relative}.view-page .hotspot-view .hotspot-box .right-button .online-view .avatars-container[data-v-45b62409]{position:absolute;top:.3125rem;left:40%}.view-page .hotspot-view .hotspot-box .right-button .online-view .online-people[data-v-45b62409]{color:rgba(0,0,0,.5);font-size:.75rem;text-align:left;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}
|
||||
BIN
unpackage/dist/build/web/assets/kefu-BdcHH_a1.png
vendored
|
Before Width: | Height: | Size: 63 KiB |
BIN
unpackage/dist/build/web/assets/logo-LS8UnBYJ.png
vendored
|
Before Width: | Height: | Size: 330 KiB |
@@ -1 +0,0 @@
|
||||
const s="/h5/web/assets/logo-LS8UnBYJ.png";export{s as l};
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-173e0753]{display:flex;flex-direction:column;background-repeat:no-repeat;background-size:100% 100%;min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN}.view-page .image-view[data-v-173e0753]{width:3.125rem;height:3.125rem;margin:0 .75rem}.view-page .image-view img[data-v-173e0753]{border-radius:50%}.view-page .icon-button[data-v-173e0753]{width:4.375rem;height:1.5rem}.view-page .content[data-v-173e0753]{padding:0 1rem}
|
||||
@@ -1 +0,0 @@
|
||||
.nav[data-v-d84aaf9a]{padding:1rem;width:calc(100% - 2rem);justify-content:start}.nav .icon-image[data-v-d84aaf9a]{width:1.5rem;height:1.5rem}.nav .title[data-v-d84aaf9a]{width:calc(100% - 3rem);text-align:center}
|
||||
@@ -1 +0,0 @@
|
||||
import{G as a,o as e,i as t,w as s,l as A,K as o,q as l,m as i,v as n,j as r,k as d}from"./index-CjgLNey7.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=c({name:"navBar",props:{bgColor:{type:String,default:()=>"transparent"},navTitle:{type:String,default:()=>"标题"},emitBack:{type:Boolean,default:()=>!1},isLeftSlot:{type:Boolean,default:()=>!1}},methods:{back(){this.emitBack?this.$emit("backEvent"):a()}}},[["render",function(a,c,g,f,B,u){const m=d;return e(),t(m,{class:"nav flex-line",style:r(`background-color:${g.bgColor}`)},{default:s((()=>[A(m,{class:"icon-image"},{default:s((()=>[g.isLeftSlot?o(a.$slots,"leftView",{key:0},void 0,!0):(e(),l("img",{key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAStJREFUaEPt2GEKwjAMBeBmeKDRHUdhHkFPokdQ0OOsJxIqgw2GqKxrXtJC9rsr70s6yEqu8ocqz+8MoN1B64B1ILMCdoRSCui93xPRbhiGe8p7/9aKdcB7fyGi0xgmxngIITw5ECKAZfgp9JGrC3DAZ/gY4zWEcOao/rgHFIAODwVIhIcBpMJDAJLh2QHS4VkBGuHZAFrhWQCa4bMB2uGzACWE3wwoJfwmQNd1vXPuNs8y3LNN6oyUPAtNM/2jWsAYvOojNFe+FETyEVqe0RIQWYASjlM2QBvBAtBEsAG0EKwADQQ7QBoBAUgiYAApBBQggYADfiDquhv9gqjnbnQ5O7Vt2zdN8+K6md70Q5P6w4FeL/INIBEGQFZ3zd7WgTVVQq6xDiCru2bvN0OV8zHm2XzEAAAAAElFTkSuQmCC",alt:"",onClick:c[0]||(c[0]=(...a)=>u.back&&u.back(...a))}))])),_:3}),A(m,{class:"color-3 title font-w500 font-36"},{default:s((()=>[i(n(g.navTitle),1)])),_:1}),A(m,{class:"flex-line"},{default:s((()=>[o(a.$slots,"rightView",{},void 0,!0)])),_:3})])),_:3},8,["style"])}],["__scopeId","data-v-d84aaf9a"]]);export{g as n};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as a,g as s,r as t,i as e,w as r,j as o,k as n,o as l,l as i,b as u,u as p}from"./index-CjgLNey7.js";import{n as m}from"./nav.BPYuvgkN.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=c({components:{navBar:m},data:()=>({statusBarHeight:0}),onLoad(t){const{h:e}=t;this.statusBarHeight=e,a("BarHeight",e),s("Theme_Data")&&(this.ThemeData=JSON.parse(s("Theme_Data")))}},[["render",function(a,s,m,c,g,d){var h;const _=t("navBar"),f=n;return l(),e(f,{class:"view-page",style:o({backgroundImage:`url('${(null==(h=a.ThemeData)?void 0:h.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:r((()=>[i(_,{style:o({marginTop:`${g.statusBarHeight}${"ios"===u().platform?"px":"dp"}`}),navTitle:"在线客服",emitBack:!1},null,8,["style"]),i(f,{class:""},{default:r((()=>[p("img",{src:a.$config.kefu_url,alt:""},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-8c524529"]]);export{g as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{h as a,g as e,G as t,r as s,f as l,i as o,w as n,k as i,o as r,l as c,m as d,v as f,p}from"./index-CjgLNey7.js";import{_ as u}from"./uni-icons.Cd3ohCN4.js";import{r as h}from"./uni-app.es.Lj9F4eZi.js";import{h as m}from"./headerHeight.CXXE7c94.js";import{n as _}from"./nav.BPYuvgkN.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v=g({components:{headerHeight:m,navBar:_},data:()=>({errorPage:!1,detailData:null,statusBarHeight:0}),onLoad(a){const{id:e}=a;e&&this.getDetail(e)},methods:{getDetail(t){a.get("/api/Help/help_detail",{token:e("token")||"",id:t}).then((a=>{const{data:e,code:t}=a;console.log(t,e),this.detailData=t?e:null,this.errorPage=!1})).catch((a=>{this.errorPage=!0}))},back(){t()}}},[["render",function(a,e,t,m,_,g){const v=s("headerHeight"),k=s("navBar"),b=i,D=h(l("uni-icons"),u);return r(),o(b,{class:"view-page"},{default:n((()=>[c(v),c(k,{navTitle:"问题详情",bgColor:"#fff",emitBack:!0,onBackEvent:g.back},null,8,["onBackEvent"]),_.detailData?(r(),o(b,{key:0,class:"container"},{default:n((()=>[c(b,{class:"title"},{default:n((()=>[d(f(_.detailData.title),1)])),_:1}),c(b,{class:"title mt-24",innerHTML:_.detailData.content},null,8,["innerHTML"])])),_:1})):p("",!0),c(b,{class:"flex-line footer mt-24 w-fill"},{default:n((()=>[c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(D,{type:"hand-up",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 有帮助 ")])),_:1})])),_:1}),c(b,{class:"help-box"},{default:n((()=>[c(b,{class:"help-icon"},{default:n((()=>[c(D,{type:"hand-down",size:"30"})])),_:1}),c(b,{class:"color-0 mt-24 font-24"},{default:n((()=>[d(" 没帮助 ")])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-4e1bb458"]]);export{v as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as a,g as e,b as t,h as s,n as i,r as o,f as n,i as r,w as l,j as d,k as g,o as c,l as h,q as p,t as u,F as f,m,v as b,u as v}from"./index-CjgLNey7.js";import{_}from"./uni-load-more.CzXabmC7.js";import{r as k}from"./uni-app.es.Lj9F4eZi.js";import{n as L}from"./nav.BPYuvgkN.js";import{N as T}from"./tab.AKA2NclF.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";const C=y({components:{navBar:L,NavigationTabs:T},data:()=>({errorPage:!0,currentIndex:0,statusBarHeight:0,pageConfig:{pageSize:10,currentPage:1,total:0},loading:!1,noMore:!1,tabs:[],dataList:[],ThemeData:null}),onReachBottom(){this.loading||this.noMore||this.getUnderageModeList(this.tabs[0].type)},onLoad(t){this.errorPage=!0,this.dataList=[];const{id:s,h:i}=t;a("token",s),this.statusBarHeight=i,a("BarHeight",i),e("token")&&this.getUnderageTypeList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=t().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()},async getUnderageTypeList(){s.get("/api/Usermode/getUnderageTypeList",{token:e("token")||""}).then((a=>{const{data:e,code:t}=a;t&&(this.tabs=e.map((a=>({type:a.id,value:a.type_name})))),this.errorPage=!1,this.$nextTick((()=>{this.getUnderageModeList(this.tabs[0].type)}))})).catch((a=>{this.tabs=[],this.errorPage=!0}))},async getUnderageModeList(a){s.get("/api/Usermode/getUnderageModeList",{token:e("token")||"",type:a,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize}).then((a=>{const{code:e,data:t}=a;if(e){this.pageConfig.total=t.total,this.loading=!1;const a=t.data||[];if(0===a.length)return void(this.noMore=!0);if(this.dataList=[...this.dataList,...a],this.pageConfig.currentPage++,this.dataList.length===this.pageConfig.total)return void(this.noMore=!0)}}))},handleTabChange(a){this.dataList=[],this.noMore=!1,this.loading=!1,this.pageConfig.currentPage=1,this.pageConfig.pageSize=10,this.getUnderageModeList(a.tab.type)},openDetail(a){i({url:`/pages/feedback/teenageDetail?dataId=${a.id}`})}}},[["render",function(a,e,s,i,L,T){var y;const C=o("navBar"),M=o("NavigationTabs"),w=g,x=k(n("uni-load-more"),_);return c(),r(w,{class:"view-page",style:d({backgroundImage:`url('${(null==(y=L.ThemeData)?void 0:y.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:l((()=>[h(C,{style:d({marginTop:`${L.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"青少年模式",emitBack:!0,onBackEvent:T.back},null,8,["style","onBackEvent"]),h(w,{class:"content-view"},{default:l((()=>[h(w,{class:"flex-line"},{default:l((()=>[h(M,{"tabs-data":L.tabs,"default-active":L.currentIndex,onTabChange:T.handleTabChange},null,8,["tabs-data","default-active","onTabChange"])])),_:1}),h(w,{class:""},{default:l((()=>[(c(!0),p(f,null,u(L.dataList,((a,e)=>(c(),r(w,{class:"flex-line flex-spaceB w-fill new-box",key:e,onClick:e=>T.openDetail(a)},{default:l((()=>[h(w,{class:""},{default:l((()=>[h(w,{class:"color-3 font-32 font-w500"},{default:l((()=>[m(b(a.title),1)])),_:2},1024),h(w,{class:"color-6 mt-24 font-28 font-w400 multi-line"},{default:l((()=>[m(b(a.introduced),1)])),_:2},1024)])),_:2},1024),h(w,{class:"new-box-image"},{default:l((()=>[v("img",{src:a.img,alt:""},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128)),h(x,{class:"mt-24",status:L.loading?"loading":L.noMore?"noMore":"more"},null,8,["status"])])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-c0e4addd"]]);export{C as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{g as a,B as e,h as t,C as s,r as l,i,w as n,j as d,k as r,o,l as h,q as m,u as c,m as u,v as g,F as p,p as D}from"./index-CjgLNey7.js";import{h as f}from"./headerHeight.CXXE7c94.js";import{n as _}from"./nav.BPYuvgkN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=v({components:{headerHeight:f,navBar:_},data:()=>({detailData:null,ThemeData:null,BarHeight:0}),onLoad(e){const{dataId:t}=e;t&&this.getDetail(t),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data"))),this.BarHeight=a("BarHeight")},methods:{async getDetail(l){e({mask:!0,title:"加载中"}),t.get("/api/Usermode/getUnderageModeContent",{id:l,token:a("token")||""}).then((a=>{s();const{data:e,code:t}=a;this.detailData=t?e:null,console.log(this.detailData)}))}}},[["render",function(a,e,t,s,f,_){var v;const y=l("headerHeight"),T=l("navBar"),k=r;return o(),i(k,{class:"view-page",style:d({backgroundImage:`url('${(null==(v=f.ThemeData)?void 0:v.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:n((()=>[h(y),h(T,{navTitle:"内容详情"}),f.detailData?(o(),m(p,{key:0},[2===f.detailData.from?(o(),i(k,{key:0,class:""},{default:n((()=>[c("iframe",{id:"myIframe",src:f.detailData.url,style:{width:"100%",border:"none",height:"100dvh"}},null,8,["src"])])),_:1})):(o(),i(k,{key:1,class:"detailContent"},{default:n((()=>[h(k,{class:""},{default:n((()=>[h(k,{class:"detailTitle"},{default:n((()=>[u(g(f.detailData.title),1)])),_:1}),h(k,{class:"detailData",innerHTML:f.detailData.content||""},null,8,["innerHTML"])])),_:1})])),_:1}))],64)):D("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-a1c4d327"]]);export{y as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as a,g as e,b as s,r as t,i as o,w as n,j as l,k as r,o as i,l as c,R as d}from"./index-CjgLNey7.js";import{n as p}from"./nav.BPYuvgkN.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const m=h({components:{navBar:p},data:()=>({statusBarHeight:0,ThemeData:null,httpUrl:null}),onLoad(s){this.httpUrl=a.BASE_URL;const{h:t}=s;this.statusBarHeight=t,e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const a=s().platform;"ios"===a?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===a&&window.Android.closeWeb()}}},[["render",function(a,e,p,h,m,u){var g;const v=t("navBar"),_=d,f=r;return i(),o(f,{class:"view-page",style:l({backgroundImage:`url('${(null==(g=m.ThemeData)?void 0:g.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:n((()=>[c(v,{style:l({marginTop:`${m.statusBarHeight}${"ios"===s().platform?"px":"dp"}`}),navTitle:"关于我们",emitBack:!0,onBackEvent:u.back},null,8,["style","onBackEvent"]),c(f,{class:"dec-view"},{default:n((()=>[c(_,{src:`${m.httpUrl}/api/Page/page_show?id=20`},null,8,["src"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-fad43f9c"]]);export{m as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as a,g as t,r as e,i as s,w as l,j as n,k as r,o,l as i,p,R as u}from"./index-CjgLNey7.js";import{n as d}from"./nav.BPYuvgkN.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=g({components:{navBar:d},data:()=>({httpUrl:null,statusBarHeight:0,flagIndex:null,ThemeData:null}),onLoad(e){const{h:s,flag:l}=e;this.flagIndex=+l,this.httpUrl=a.BASE_URL,this.statusBarHeight=s,t("Theme_Data")&&(this.ThemeData=JSON.parse(t("Theme_Data")))}},[["render",function(a,t,d,g,h,c){var m;const f=e("navBar"),_=u,v=r;return o(),s(v,{class:"view-page",style:n({backgroundImage:`url('${(null==(m=h.ThemeData)?void 0:m.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:l((()=>[i(f,{navTitle:"规则说明",style:n({"margin-top":`${h.statusBarHeight||0}px`})},null,8,["style"]),null!==h.flagIndex?(o(),s(v,{key:0,class:"dec-view"},{default:l((()=>[i(_,{src:`${h.httpUrl}/api/Page/page_show?id=${1===h.flagIndex?10:11}`},null,8,["src"])])),_:1})):p("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-5219db17"]]);export{h as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as a,i as e,w as s,k as r,o as t,l,u as o,R as n}from"./index-CjgLNey7.js";import{_ as d}from"./_plugin-vue_export-helper.BCo6x5W8.js";const i=d({data:()=>({httpUrl:null,webviewStyles:{progress:{color:"transparent"},android:{hardwareAccelerated:!0,backgroundColor:"transparent"},ios:{allowsInlineMediaPlayback:!0,backgroundColor:"transparent"}}}),onLoad(){this.httpUrl=a.BASE_URL},onReady(){}},[["render",function(a,d,i,c,p,u){const w=r,g=n;return t(),e(w,{class:"view-page"},{default:s((()=>[l(w,{class:"image"},{default:s((()=>[o("img",{src:"/h5/web/assets/rule-D8yU_r7I.png",alt:""})])),_:1}),l(w,{class:"dec-view",style:{"background-color":"transparent !important"}},{default:s((()=>[l(g,{style:{backgroundColor:"transparent"},"webview-styles":p.webviewStyles,src:`${p.httpUrl}/api/Page/page_show?id=17`},null,8,["webview-styles","src"])])),_:1})])),_:1})}],["__scopeId","data-v-7097dda3"]]);export{i as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as t,h as a,g as s,r as e,i as n,w as o,j as r,k as i,o as l,l as p,b as d,m as c,v as g}from"./index-CjgLNey7.js";import{n as u}from"./nav.BPYuvgkN.js";import{_ as m}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=m({components:{navBar:u},data:()=>({content:"测试一下",statusBarHeight:0,ThemeData:{},baseBgUrl:"/h5/web/assets/fy_bg-Cx8qcedx.jpg"}),onLoad(e){const{id:n}=e;t("token",n),a.get("/api/Guild/guild_list",{page:1,limit:10,search_id:"",token:s("token")||""}).then((t=>{this.content=`token:${n}+++++++++++++${JSON.stringify(t)}`})).catch((t=>{this.content=`token:${n}+++++++++++++${JSON.stringify(response)}`}))},methods:{}},[["render",function(t,a,s,u,m,h){var f;const _=e("navBar"),v=i;return l(),n(v,{class:"view-page",style:r({backgroundImage:`url('${(null==(f=m.ThemeData)?void 0:f.app_bg)||m.baseBgUrl}')`})},{default:o((()=>[p(_,{style:r({marginTop:`${m.statusBarHeight}${"ios"===d().platform?"px":"dp"}`}),navTitle:"测试页面"},null,8,["style"]),p(v,{class:"content"},{default:o((()=>[c(g(m.content),1)])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-f7bd8541"]]);export{h as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as s,g as e,h as a,r as t,f as l,i,w as o,j as r,k as n,o as u,l as p,q as d,t as m,F as c,u as g,m as f,v as h,H as _}from"./index-CjgLNey7.js";import{_ as y}from"./uni-popup-message.DH7nc4kh.js";import{r as x}from"./uni-app.es.Lj9F4eZi.js";import{_ as T}from"./uni-popup.BsE0nR7F.js";import{h as k}from"./headerHeight.CXXE7c94.js";import{l as v}from"./logo.DDDG-929.js";import{n as b}from"./nav.BPYuvgkN.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";const D=j({components:{headerHeight:k,navBar:b},data:()=>({logo:v,baseBgUrl:s.PRIMARY_BGURL,guildId:null,msgType:"",messageText:"",dataList:[],searchParams:{guild_id:0,token:e("token")||""},ThemeData:null}),onLoad(s){const{id:a}=s;this.searchParams.guild_id=a,a&&this.getList(),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async RefuseOrAgreeData(s,t){const{code:l,data:i,msg:o}=await a.post("/api/Guild/quit_apply_audit",{token:e("token")||"",apply_id:s.id,type:t});1===l?(this.msgType="success",this.messageText="操作成功",this.$refs.message.open(),this.getList()):(this.messageText=o,this.msgType="error",this.$refs.message.open())},async getList(){const{code:s,data:e}=await a.get("/api/Guild/quit_apply_list",this.searchParams);s&&(this.dataList=e.list)}}},[["render",function(s,e,a,k,v,b){var j;const D=t("headerHeight"),w=t("navBar"),L=n,R=x(l("uni-popup-message"),y),B=x(l("uni-popup"),T);return u(),i(L,{class:"view-page",style:r({backgroundImage:`url('${(null==(j=v.ThemeData)?void 0:j.app_bg)||v.baseBgUrl}')`})},{default:o((()=>[p(D),p(w,{navTitle:"退出审核"}),p(L,{class:"content"},{default:o((()=>[(u(!0),d(c,null,m(v.dataList,((s,e)=>(u(),i(L,{class:"box-line flex-line w-fill"},{default:o((()=>[p(L,{class:"flex-line"},{default:o((()=>[g("img",{style:{width:"100rpx",height:"100rpx","border-radius":"50%"},src:s.avatar||v.logo,alt:""},null,8,["src"]),p(L,{class:"ml-20"},{default:o((()=>[p(L,{class:"color-3 font-32 font-w500"},{default:o((()=>[f(h(s.nickname),1)])),_:2},1024),p(L,{class:"color-6 font-24"},{default:o((()=>[f(" ID: "+h(s.user_code),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),p(L,null,{default:o((()=>[s.status?(u(),i(L,{key:0,class:_(1===s.status?"success-text":"error-text")},{default:o((()=>[f(h(1===s.status?"已同意":"已拒绝"),1)])),_:2},1032,["class"])):(u(),i(L,{key:1,class:"flex-line"},{default:o((()=>[p(L,{class:"no-button",onClick:e=>b.RefuseOrAgreeData(s,2)},{default:o((()=>[f(" 拒绝 ")])),_:2},1032,["onClick"]),p(L,{class:"agree-button",onClick:e=>b.RefuseOrAgreeData(s,1)},{default:o((()=>[f(" 同意 ")])),_:2},1032,["onClick"])])),_:2},1024))])),_:2},1024)])),_:2},1024)))),256))])),_:1}),p(B,{ref:"message",type:"message"},{default:o((()=>[p(R,{type:v.msgType,message:v.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1},8,["style"])}],["__scopeId","data-v-71e806b5"]]);export{D as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{b as t,o as a,i as e,w as s,l as i,m as l,q as o,t as r,F as n,p as d,j as h,I as c,k as g,Q as u,v as m,H as f,c as p,g as _,h as D,r as b}from"./index-CjgLNey7.js";import{h as w}from"./headerHeight.CXXE7c94.js";import{n as y}from"./nav.BPYuvgkN.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S=M({components:{headerHeight:w,navBar:y,tableView:M({props:{tableData:{type:Array,default:()=>[]}},data:()=>({sortOrder:"desc",page:1,pageSize:10,loading:!1,noMore:!1,scrollHeight:600}),created(){this.calculateScrollHeight()},methods:{calculateScrollHeight(){const a=t();this.scrollHeight=a.windowHeight-50-67},toggleSort(){this.sortOrder="desc"===this.sortOrder?"asc":"desc",this.page=1,this.tableData=[],this.noMore=!1,this.loadData()},async loadData(){if(!this.loading&&!this.noMore){this.loading=!0;try{const t=this.getMockData(this.page,this.pageSize,this.sortOrder);if(0===t.length)return void(this.noMore=!0);1===this.page?this.tableData=t:this.tableData=[...this.tableData,...t],this.page++}finally{this.loading=!1}}},loadMore(){this.loadData()},getMockData(t,a,e){if(t>3)return[];const s=[],i=new Date,l=[0,1,2];for(let o=0;o<a;o++){const e=(t-1)*a+o,r=new Date(i);r.setDate(i.getDate()-e),s.push({time:`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`,amount:(1e4*Math.random()).toFixed(2),subsidy:(1e3*Math.random()).toFixed(2),status:l[Math.floor(Math.random()*l.length)]})}return"asc"===e?s.sort(((t,a)=>new Date(t.time)-new Date(a.time))):s.sort(((t,a)=>new Date(a.time)-new Date(t.time)))},getStatusText:t=>({0:"待审核",1:"已通过",2:"已拒绝"}[t]||"未知")}},[["render",function(t,p,_,D,b,w){const y=c,M=g,S=u;return a(),e(M,{class:"container"},{default:s((()=>[i(S,{"scroll-y":"",class:"table-scroll",onScrolltolower:w.loadMore,style:h({height:b.scrollHeight+"px"})},{default:s((()=>[i(M,{class:"table-header"},{default:s((()=>[i(M,{class:"header-item time-col",onClick:w.toggleSort},{default:s((()=>[i(y,null,{default:s((()=>[l("时间")])),_:1})])),_:1},8,["onClick"]),i(M,{class:"header-item"},{default:s((()=>[l("累计流水")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("获得补贴")])),_:1}),i(M,{class:"header-item"},{default:s((()=>[l("状态")])),_:1})])),_:1}),(a(!0),o(n,null,r(_.tableData,((t,o)=>(a(),e(M,{class:"table-row",key:o},{default:s((()=>[i(M,{class:"row-item time-col"},{default:s((()=>[l(m(t.time),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.total_transaction),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[l(m(t.subsidy_amount),1)])),_:2},1024),i(M,{class:"row-item"},{default:s((()=>[i(y,{class:f("status-"+("已发放"===t.status_str?0:1))},{default:s((()=>[l(m(t.status_str),1)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128)),i(M,{class:"load-more"},{default:s((()=>[b.loading?(a(),e(y,{key:0},{default:s((()=>[l("加载中...")])),_:1})):b.noMore?(a(),e(y,{key:1},{default:s((()=>[l("没有更多数据了")])),_:1})):d("",!0)])),_:1})])),_:1},8,["onScrolltolower","style"])])),_:1})}],["__scopeId","data-v-ceedcd16"]])},data:()=>({guildId:null,aseBgUrl:p.PRIMARY_BGURL,dataList:[],pageConfig:{currentPage:1,pageSize:10},searchParams:{guild_id:0,token:_("token")||""},ThemeData:null}),onLoad(t){const{id:a}=t;this.searchParams.guild_id=a,a&&this.getList(),_("Theme_Data")&&(this.ThemeData=JSON.parse(_("Theme_Data")))},methods:{async getList(){const{code:t,data:a}=await D.get("/api/Guild/guild_subsidy_list",{...this.searchParams,page:this.pageConfig.currentPage,page_limit:this.pageConfig.pageSize});if(t){this.pageConfig.total=a.count,this.loading=!1;const t=a.list||[];if(0===t.length)return void(this.noMore=!0);if(this.dataList.length===this.pageConfig.total)return void(this.noMore=!0);this.dataList=[...this.dataList,...t],this.pageConfig.currentPage++}}}},[["render",function(t,l,o,r,n,d){var c;const u=b("headerHeight"),m=b("navBar"),f=b("tableView"),p=g;return a(),e(p,{class:"view-page",style:h({backgroundImage:`url('${(null==(c=n.ThemeData)?void 0:c.app_bg)||t.baseBgUrl}')`})},{default:s((()=>[i(u),i(m,{navTitle:"历史记录"}),i(p,{class:"content"},{default:s((()=>[i(f,{tableData:n.dataList},null,8,["tableData"])])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-9b174e22"]]);export{S as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{g as a,h as e,b as t,r as o,f as s,i as l,w as i,j as r,k as n,o as d,l as m,m as f,v as c,p as g,q as u,t as h,F as p,u as _}from"./index-CjgLNey7.js";import{_ as w,a as D}from"./flowIcon.CkJkLSSQ.js";import{r as v}from"./uni-app.es.Lj9F4eZi.js";import{_ as S}from"./uni-load-more.CzXabmC7.js";import{h as P}from"./headerHeight.CXXE7c94.js";import{n as j}from"./nav.BPYuvgkN.js";import{l as k}from"./logo.DDDG-929.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.Cd3ohCN4.js";const y=x({components:{headerHeight:P,navBar:j},data:()=>({dateSearch:[new Date,new Date],currentDate:+new Date,logo:k,loading:!1,noMore:!1,detailData:null,pageConfig:{pageSize:20,currentPage:1,total:0},searchParams:{guild_id:0,start_time:new Date,end_time:new Date,token:a("token")||"",page:1,page_size:20},leaderStatus:null,flowDetail:null,flowList:[],ThemeData:null}),onLoad(e){const{id:t,leader:o}=e;this.leaderStatus=+o,this.searchParams.start_time=this.formatDate(new Date),this.searchParams.end_time=this.formatDate(new Date),this.searchParams.guild_id=t,t&&this.getFlow(),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},onReachBottom(){this.loading||this.noMore||this.getFlow()},methods:{formatDate(a){const e=new Date(a);return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},async getFlow(){const{code:a,data:t}=await e.get("/api/Guild/guild_flow",{...this.searchParams,page:this.pageConfig.currentPage,page_size:this.pageConfig.pageSize});if(a){this.flowDetail=t,this.pageConfig.total=t.count,this.loading=!1;const a=t.list||[];if(0===a.length)return void(this.noMore=!0);if(this.flowList=[...this.flowList,...a],this.pageConfig.currentPage++,this.flowList.length===this.pageConfig.total)return void(this.noMore=!0)}},jumpRoomPage(a){const e=t().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"jumpRoomPage",data:{room_id:a.room_id}}):"android"===e&&window.Android.jumpRoomPage(a.room_id)},changeDate(a){this.searchParams.start_time=a.length?a[0]:"",this.searchParams.end_time=a.length?a[1]:"",this.getFlow()}}},[["render",function(a,e,t,P,j,k){var x;const y=o("headerHeight"),C=o("navBar"),L=v(s("uni-datetime-picker"),w),M=n,R=v(s("uni-load-more"),S);return d(),l(M,{class:"view-page",style:r({backgroundImage:`url('${(null==(x=j.ThemeData)?void 0:x.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:i((()=>[m(y),m(C,{navTitle:""+(j.leaderStatus?"公会房间及流水":"公会房间")},{rightView:i((()=>[])),_:1},8,["navTitle"]),m(M,{class:"content_view"},{default:i((()=>[m(M,null,{default:i((()=>[m(L,{type:"range",style:{"background-color":"#f8f8f8"},"start-placeholder":"开始时间",end:j.currentDate,"end-placeholder":"结束时间",modelValue:j.dateSearch,"onUpdate:modelValue":e[0]||(e[0]=a=>j.dateSearch=a),rangeSeparator:"至",onChange:k.changeDate},null,8,["end","modelValue","onChange"])])),_:1}),j.flowDetail&&j.leaderStatus?(d(),l(M,{key:0,class:"header-view"},{default:i((()=>[m(M,{class:"flex-line flow-view w-fill flex-spaceB"},{default:i((()=>[m(M,{class:"flowTitle color-3"},{default:i((()=>[f(" 总流水 ")])),_:1})])),_:1}),m(M,{class:"flowNumber"},{default:i((()=>[f(c(j.flowDetail.total_transaction),1)])),_:1})])),_:1})):g("",!0),j.flowList&&j.flowList.length?(d(),l(M,{key:1,class:"room-list flex-line"},{default:i((()=>[(d(!0),u(p,null,h(j.flowList,(a=>(d(),l(M,{class:"room-line flex-line flex-spaceB",key:a.room_id,onClick:e=>k.jumpRoomPage(a)},{default:i((()=>[m(M,{class:"flex-line"},{default:i((()=>[m(M,{class:"head-portrait"},{default:i((()=>[_("img",{src:a.room_cover||j.logo,alt:""},null,8,["src"])])),_:2},1024),m(M,{class:"ml-20"},{default:i((()=>[m(M,{class:"color-3 font-32 font-w500"},{default:i((()=>[f(c(a.room_name),1)])),_:2},1024),m(M,{class:"color-6 font-24"},{default:i((()=>[f(" ID:"+c(a.room_number),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),j.leaderStatus?(d(),l(M,{key:0,class:"flex-line"},{default:i((()=>[m(M,{class:"flowIcon"},{default:i((()=>[_("img",{src:D,alt:""})])),_:1}),m(M,{class:"ml-20"},{default:i((()=>[f(c(a.total_price||0),1)])),_:2},1024)])),_:2},1024)):g("",!0)])),_:2},1032,["onClick"])))),128))])),_:1})):g("",!0),m(M,{class:"mt-24"},{default:i((()=>[m(R,{status:j.loading?"loading":j.noMore?"noMore":"more"},null,8,["status"])])),_:1})])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-1a89a496"]]);export{y as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as e,g as a,b as t,h as l,n as s,d as i,B as o,C as n,r as d,f as c,i as r,w as u,j as m,k as f,o as p,l as g,u as h,m as _,v as y,q as b,t as v,F as k,p as D}from"./index-CjgLNey7.js";import{_ as w}from"./uni-icons.Cd3ohCN4.js";import{r as x}from"./uni-app.es.Lj9F4eZi.js";import{_ as I}from"./uni-easyinput.BXW6uw5V.js";import{h as B}from"./headerHeight.CXXE7c94.js";import{n as j}from"./nav.BPYuvgkN.js";import{l as H}from"./logo.DDDG-929.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S=C({components:{headerHeight:B,navBar:j},data:()=>({logo:H,guildId:null,notice:"",value:"",guildName:"",detailData:null,styles:{color:"#333",borderColor:"none"},statusBarHeight:0,placeholderStyle:"color:321;font-size:14px",ThemeData:null}),onLoad(t){const{id:l,guildId:s,h:i}=t;e("token",l),this.guildId=s||"",a("token")&&this.getInfo(),this.statusBarHeight=i||a("BarHeight"),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{back(){this.closeWeb()},closeWeb(){const e=t().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()},async getInfo(){l.get("/api/Guild/get_guild_info",{token:a("token")||"",guild_id:this.guildId}).then((e=>{const{data:a,code:t}=e;this.detailData=a||null,a&&(this.detailData.user_list=a.user_list.slice(0,4)),this.guildName=a.name||null})).catch((e=>{}))},memberList(){s({url:`/pages/union/memberList?guildId=${this.guildId}`})},async confirmInfo(){if(""===this.guildName)return void i({title:"请输入群聊名称",icon:"none"});const e={token:a("token"),guild_id:this.detailData.guild_id,name:this.guildName,notice:this.detailData.notice,avatar:this.detailData.guild_cover};o({title:"提交中",mask:!0}),l.post("/api/Guild/set_guild_info",e).then((e=>{const{data:a,code:t}=e;t?setTimeout((()=>{n(),i({title:"提交成功",icon:"none",mask:!0}),this.getInfo()}),1e3):(i({title:"提交失败",icon:"error"}),n())})).catch((e=>{i({title:"提交失败",icon:"error"}),n()}))}}},[["render",function(e,a,l,s,i,o){var n;const B=d("navBar"),j=f,H=x(c("uni-icons"),w),C=x(c("uni-easyinput"),I);return p(),r(j,{class:"view-page",style:m({backgroundImage:`url('${(null==(n=i.ThemeData)?void 0:n.app_bg)||e.$config.PRIMARY_BGURL}')`})},{default:u((()=>[g(B,{style:m({marginTop:`${i.statusBarHeight}${"ios"===t().platform?"px":"dp"}`}),navTitle:"群聊设置",emitBack:!0,onBackEvent:o.back},null,8,["style","onBackEvent"]),i.detailData?(p(),r(j,{key:0,class:"content"},{default:u((()=>[g(j,{class:"name-view flex-line"},{default:u((()=>[g(j,{class:"name-image"},{default:u((()=>[h("img",{src:i.detailData.guild_cover,alt:""},null,8,["src"])])),_:1}),g(j,{class:"name-title"},{default:u((()=>[_(y(i.detailData.name),1)])),_:1})])),_:1}),g(j,{class:"member-view"},{default:u((()=>[g(j,{class:"flex-line w-fill",style:{"justify-content":"space-between"}},{default:u((()=>[g(j,{class:"member-name"},{default:u((()=>[_(" 群聊成员 ")])),_:1}),g(j,{class:"flex-line member-detail",onClick:o.memberList},{default:u((()=>[h("span",{class:"color-6"},"查看成员"),_(),g(H,{class:"flex-line",type:"right",color:"#666",size:"16"})])),_:1},8,["onClick"])])),_:1}),g(j,{class:"w-fill flex-line mt-24",style:{"align-items":"flex-start","justify-content":"space-between"}},{default:u((()=>[(p(!0),b(k,null,v(i.detailData.user_list,(e=>(p(),r(j,{class:""},{default:u((()=>[g(j,{class:"image-view"},{default:u((()=>[h("img",{src:e.avatar,alt:""},null,8,["src"])])),_:2},1024),g(j,{class:"color-9 font-28 mt-24 text-container",style:{"text-align":"center"}},{default:u((()=>[_(y(e.nickname),1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1}),g(j,{class:"edit-name"},{default:u((()=>[g(C,{modelValue:i.guildName,"onUpdate:modelValue":a[0]||(a[0]=e=>i.guildName=e),disabled:1!==i.detailData.is_deacon,primaryColor:"#999",inputBorder:!1,styles:i.styles,placeholderStyle:i.placeholderStyle,placeholder:"请输入内容"},null,8,["modelValue","disabled","styles","placeholderStyle"])])),_:1}),g(j,{class:"edit-notice"},{default:u((()=>[g(j,{class:"notice-title"},{default:u((()=>[_(" 群聊公告 ")])),_:1}),g(j,{class:"notice-view"},{default:u((()=>[g(C,{primaryColor:"#999",inputBorder:!1,disabled:1!==i.detailData.is_deacon,styles:i.styles,placeholderStyle:i.placeholderStyle,type:"textarea",autoHeight:"",modelValue:i.detailData.notification,"onUpdate:modelValue":a[1]||(a[1]=e=>i.detailData.notification=e),placeholder:"请输入群聊公告"},null,8,["disabled","styles","placeholderStyle","modelValue"])])),_:1})])),_:1}),1===i.detailData.is_deacon?(p(),r(j,{key:0,class:"footer"},{default:u((()=>[g(j,{class:"confirm-button",onClick:o.confirmInfo},{default:u((()=>[g(j,{class:"button"},{default:u((()=>[_(" 确认保存 ")])),_:1})])),_:1},8,["onClick"])])),_:1})):D("",!0)])),_:1})):D("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-676fcbb7"]]);export{S as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{g as a,h as s,n as t,r as e,i as l,w as i,j as o,k as n,o as d,l as r,m as c,p as u,q as f,t as h,F as m,v as _}from"./index-CjgLNey7.js";import{h as g}from"./headerHeight.CXXE7c94.js";import{n as p}from"./nav.BPYuvgkN.js";import{l as y}from"./logo.DDDG-929.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=v({components:{headerHeight:g,navBar:p},data:()=>({logo:y,detailData:null,searchParams:{guild_id:0,token:a("token")||""},ThemeData:null}),onLoad(s){const{id:t,leader:e}=s;this.leaderStatus=+e,this.searchParams.guild_id=t,t&&this.getSubsidy(),a("Theme_Data")&&(this.ThemeData=JSON.parse(a("Theme_Data")))},methods:{async getSubsidy(){const{code:a,data:t}=await s.get("/api/Guild/guild_subsidy",this.searchParams);this.detailData=a?t.list:null},historyRecord(){t({url:`/pages/union/historyRecord?id=${this.searchParams.guild_id}`})}}},[["render",function(a,s,t,g,p,y){var v;const k=e("headerHeight"),w=n,D=e("navBar");return d(),l(w,{class:"view-page",style:o({backgroundImage:`url('${(null==(v=p.ThemeData)?void 0:v.app_bg)||a.$config.PRIMARY_BGURL}')`})},{default:i((()=>[r(k),r(D,{navTitle:"公会补贴"},{rightView:i((()=>[p.detailData&&a.leaderStatus?(d(),l(w,{key:0,class:"icon-right flex-line",onClick:a.exit},{default:i((()=>[r(w,{onClick:y.historyRecord,class:"font-24 minUnicon",style:{"white-space":"nowrap"}},{default:i((()=>[c(" 历史记录 ")])),_:1},8,["onClick"])])),_:1},8,["onClick"])):u("",!0)])),_:1}),p.detailData?(d(),l(w,{key:0,class:"content-view"},{default:i((()=>[(d(!0),f(m,null,h(p.detailData,((a,s)=>(d(),l(w,{class:"bottom",key:s},{default:i((()=>[r(w,{class:"flex-line flex-spaceB w-fill"},{default:i((()=>[r(w,{class:"color-3 font-w500 font-32"},{default:i((()=>[c(_(a.name),1)])),_:2},1024),r(w,{class:"font-28",style:o({color:"已发放"===a.status_str?"#999":"#DEB52E"})},null,8,["style"])])),_:2},1024),r(w,{class:"line"}),r(w,{class:"flex-line flex-spaceB w-fill"},{default:i((()=>[r(w,{class:"cumulative font-28 font-w400"},{default:i((()=>[c(" 累计流水:"+_(a.total_transaction),1)])),_:2},1024),r(w,{class:"subsidy font-28"},{default:i((()=>[c(" 获得补贴:"+_(a.subsidy_amount),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):u("",!0)])),_:1},8,["style"])}],["__scopeId","data-v-3b3df461"]]);export{k as default};
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-4e1bb458]{width:100vw;min-height:100vh;background-color:#f8f8f8}.view-page .status-bar[data-v-4e1bb458]{background-color:#fff}.view-page .nav[data-v-4e1bb458]{padding:1rem;width:calc(100% - 2rem);justify-content:start;background-color:#fff}.view-page .nav .icon-image[data-v-4e1bb458]{width:1.5rem;height:1.5rem}.view-page .nav .title[data-v-4e1bb458]{width:calc(100% - 1.5rem);text-align:center}.view-page .container[data-v-4e1bb458]{padding:.75rem 1rem}.view-page .container .title[data-v-4e1bb458]{background-color:#fff;border-radius:.4375rem;padding:.4375rem .75rem}.view-page .footer[data-v-4e1bb458]{display:inline-flex;justify-items:center;justify-content:space-evenly;align-items:center}.view-page .footer .help-box[data-v-4e1bb458]{text-align:center}.view-page .footer .help-box .help-icon[data-v-4e1bb458]{width:3.125rem;height:3.125rem;background:#eff2f8;border-radius:50%;display:inline-flex;justify-items:center;justify-content:center;align-items:center}
|
||||
BIN
unpackage/dist/build/web/assets/pyq-C3q9X15E.png
vendored
|
Before Width: | Height: | Size: 8.4 KiB |
BIN
unpackage/dist/build/web/assets/qlsz-3H3uXhBc.png
vendored
|
Before Width: | Height: | Size: 64 KiB |
@@ -1 +0,0 @@
|
||||
.uni-forms-item[data-v-ab882ba0]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-ab882ba0]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-ab882ba0]{padding:0}.uni-forms-item__content[data-v-ab882ba0]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-ab882ba0]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-ab882ba0]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:transform .3s;transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-ab882ba0]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-ab882ba0]{opacity:1;transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-ab882ba0]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-ab882ba0]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-ab882ba0]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:initial}.uni-forms-item .is-required[data-v-ab882ba0]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-ab882ba0]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-ab882ba0]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-ab882ba0]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-ab882ba0]{border:none}[data-v-ad2003b9] .is-input-border{border:0;border-radius:.6875rem}.view-page[data-v-ad2003b9]{font-family:Source Han Sans CN,Source Han Sans CN;display:flex;flex-direction:column;background-color:#f8f8f8;background-repeat:no-repeat;background-size:100% 100%;min-height:100vh}.view-page .content[data-v-ad2003b9]{padding:0 .75rem;margin-top:.75rem}.view-page .content .view-picker[data-v-ad2003b9]{background-color:#fff;padding:.65625rem;border-radius:.4375rem}.view-page .content .comfirmButton[data-v-ad2003b9]{width:18.75rem;height:2.625rem;background:var(--primary-color);font-size:var(--font-button-size);color:var(--font-button-color);border-radius:3.3125rem;justify-content:center}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-1a89a496]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-image:url(/h5/web/assets/bg-yYu5gMyW.png);background-repeat:no-repeat;background-size:100% 100%}.view-page .content_view[data-v-1a89a496]{padding:0 .75rem}.view-page .header-view[data-v-1a89a496]{padding:.75rem;margin-top:.75rem;background-image:url(/h5/web/assets/flowbg-tH-2-EBN.png);background-repeat:no-repeat;background-size:100% 100%;height:4.75rem}.view-page .header-view .flow-view[data-v-1a89a496]{font-weight:400;font-size:.75rem}.view-page .header-view .flowNumber[data-v-1a89a496]{font-weight:500;font-size:1.25rem;color:#333;margin-top:.75rem}.view-page .room-list[data-v-1a89a496]{flex-wrap:wrap;width:100%}.view-page .room-list .room-line[data-v-1a89a496]{width:100%;margin-top:.75rem;padding:.75rem;border-radius:.3125rem;background-color:#fff}.view-page .room-list .room-line .flowIcon[data-v-1a89a496]{width:1.5rem;height:1.5rem}.view-page .room-list .room-line .head-portrait[data-v-1a89a496]{width:3.125rem;height:3.125rem;border-radius:50%}.view-page .room-list .room-line .head-portrait img[data-v-1a89a496]{border-radius:50%}
|
||||
BIN
unpackage/dist/build/web/assets/rule-D8yU_r7I.png
vendored
|
Before Width: | Height: | Size: 617 KiB |
@@ -1 +0,0 @@
|
||||
.view-page[data-v-676fcbb7]{display:flex;flex-direction:column;background-repeat:no-repeat;background-size:100% 100%;min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN}.view-page .text-container[data-v-676fcbb7]{width:4.6875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.view-page .footer[data-v-676fcbb7]{padding:.625rem;text-align:center;padding-bottom:calc(.625rem + env(safe-area-inset-bottom))}.view-page .footer .confirm-button[data-v-676fcbb7]{padding:0 1.5625rem}.view-page .footer .confirm-button .button[data-v-676fcbb7]{display:block;width:100%;height:2.625rem;border-radius:3.3125rem;line-height:2.625rem;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}.view-page .image-view[data-v-676fcbb7]{width:3.125rem;height:3.125rem;margin:0 .75rem}.view-page .image-view img[data-v-676fcbb7]{border-radius:50%}.view-page .content[data-v-676fcbb7]{padding:0 1rem}.view-page .content .name-view[data-v-676fcbb7]{width:100%;margin-top:.75rem;height:4.625rem;background:#fff;border-radius:.6875rem}.view-page .content .name-view .name-image[data-v-676fcbb7]{width:3.125rem;height:3.125rem;margin:0 .75rem}.view-page .content .name-view .name-image img[data-v-676fcbb7]{border-radius:50%}.view-page .content .name-view .name-title[data-v-676fcbb7]{font-weight:400;font-size:.875rem;color:#333;text-align:left;font-style:normal;text-transform:none}.view-page .content .member-view[data-v-676fcbb7]{padding:.75rem;margin-top:.75rem;background-color:#fff;border-radius:.6875rem}.view-page .content .member-view .member-name[data-v-676fcbb7]{font-family:Source Han Sans CN,Source Han Sans CN;font-weight:500;font-size:1rem;color:#333;text-align:left;font-style:normal;text-transform:none}.view-page .content .member-view .member-name .member-detail[data-v-676fcbb7]{color:#666}.view-page .content .edit-name[data-v-676fcbb7]{margin-top:.75rem;background:#eff2f8;padding:.75rem;border-radius:.6875rem}.view-page .content .edit-notice .notice-title[data-v-676fcbb7]{padding:.75rem 0;font-family:Source Han Sans CN,Source Han Sans CN;font-weight:500;font-size:1rem;color:#333;text-align:left;font-style:normal;text-transform:none}.view-page .content .edit-notice .notice-view[data-v-676fcbb7]{background:#eff2f8;padding:.75rem;border-radius:.6875rem}
|
||||
BIN
unpackage/dist/build/web/assets/sixin-BDnmnsvk.png
vendored
|
Before Width: | Height: | Size: 11 KiB |
@@ -1 +0,0 @@
|
||||
.view-page[data-v-3b3df461]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}.view-page .minUnicon[data-v-3b3df461]{color:var(--primary-color)}.view-page .content-view[data-v-3b3df461]{padding:0 .75rem}.view-page .bottom[data-v-3b3df461]{margin-top:1.25rem}.view-page .cumulative[data-v-3b3df461]{color:var(--primary-color)}.view-page .line[data-v-3b3df461]{background-color:#ececec;height:.03125rem;margin:.75rem 0}.view-page .subsidy[data-v-3b3df461]{color:var(--warn-color)}
|
||||
BIN
unpackage/dist/build/web/assets/swipers-CQVg5lHa.png
vendored
|
Before Width: | Height: | Size: 163 KiB |
@@ -1 +0,0 @@
|
||||
.navigation-container[data-v-38ec4fb0]{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}.nav-tabs[data-v-38ec4fb0]{display:flex;font-size:.75rem;overflow-x:auto;scrollbar-width:none}.nav-tab[data-v-38ec4fb0]{flex:1;text-align:center;cursor:pointer;border-radius:6px;font-size:.75rem;font-weight:400;color:#666;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap;margin:auto .3125rem;font-family:Source Han Sans CN,Source Han Sans CN}.nav-tab[data-v-38ec4fb0]:hover{color:#1a4332}.nav-tab.active[data-v-38ec4fb0]{color:#333;font-size:1rem;font-weight:500;z-index:5}.nav-tab.active[data-v-38ec4fb0]:after{content:"";position:absolute;bottom:.4375rem;left:50%;transform:translate(-50%);width:80%;height:.5rem;background-image:var(--tab-url);background-repeat:no-repeat;background-size:100% 100%;border-radius:1px;z-index:-10;border-radius:.3125rem}@media (max-width: 480px){.nav-tab[data-v-38ec4fb0]{padding:8px 4px;font-size:12px}}
|
||||
@@ -1 +0,0 @@
|
||||
import{o as t,q as a,u as e,F as i,t as s,H as n,v as b}from"./index-CjgLNey7.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const l=c({name:"NavigationTabs",props:{tabsData:{type:Array,default:()=>[]},defaultActive:{type:Number,default:0}},data(){return{activeTab:this.defaultActive,defaultTabs:[{key:"created",label:"我创建的",title:"我创建的内容",content:"这里显示您创建的所有内容和项目。"},{key:"hosted",label:"我主持的",title:"我主持的内容",content:"这里显示您正在主持的活动和会议。"},{key:"managed",label:"我管理的",title:"我管理的内容",content:"这里显示您管理的团队和资源。"},{key:"focused",label:"我关注的",title:"我关注的内容",content:"这里显示您关注的话题和动态。"}]}},computed:{tabs(){return this.tabsData.length>0?this.tabsData:this.defaultTabs}},watch:{defaultActive:{handler(t){this.activeTab=t},immediate:!0}},methods:{switchTab(t){t!==this.activeTab&&(this.activeTab=t,this.$emit("tab-change",{index:t,tab:this.tabs[t]}))},getCurrentTab(){return this.tabs[this.activeTab]},setActiveTab(t){t>=0&&t<this.tabs.length&&this.switchTab(t)}},mounted(){this.$emit("tab-change",{index:this.activeTab,tab:this.tabs[this.activeTab]})}},[["render",function(c,l,h,d,r,o){return t(),a("div",{class:"navigation-container"},[e("div",{class:"nav-tabs"},[(t(!0),a(i,null,s(o.tabs,((e,i)=>(t(),a("div",{key:i,class:n(["nav-tab",{active:r.activeTab===i}]),onClick:t=>o.switchTab(i)},b(e.value),11,["onClick"])))),128))])])}],["__scopeId","data-v-38ec4fb0"]]);export{l as N};
|
||||
@@ -1 +0,0 @@
|
||||
[data-v-7097dda3]::-webkit-scrollbar{display:none!important}uni-page-body[data-v-7097dda3]{background-color:transparent!important}body[data-v-7097dda3]{background-color:transparent!important}uni-web-view>div[data-v-7097dda3]{background-color:transparent!important}.view-page[data-v-7097dda3]{font-family:Source Han Sans CN,Source Han Sans CN;min-width:calc(100% - 1.25rem);padding:0 .625rem;height:100vh;overflow:hidden;background-color:transparent!important;margin:0 auto;position:relative}.view-page .image[data-v-7097dda3]{width:calc(100% - 1.25rem);position:absolute;top:0;left:.625rem;right:.625rem}.view-page .dec-view[data-v-7097dda3]{width:calc(100% - 2.75rem);min-height:calc(60% - 1.5rem);position:absolute;top:33%;border-radius:.5rem;padding:.75rem}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-c0e4addd]{background:linear-gradient(180deg,#b3faeb 2%,#fff 40%);background-size:100% 100%;min-height:100vh}.view-page .content-view[data-v-c0e4addd]{padding:0 1rem}.view-page .new-box[data-v-c0e4addd]{margin-top:1rem}.view-page .new-box .new-box-image[data-v-c0e4addd]{width:7.5rem;height:4.5rem;border-radius:.375rem}.view-page .new-box .new-box-image img[data-v-c0e4addd]{border-radius:.375rem}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-a1c4d327]{display:flex;flex-direction:column;background-image:url(/h5/web/assets/bg-yYu5gMyW.png);background-repeat:no-repeat;background-size:100% 100%;min-height:100vh}.view-page .detailContent[data-v-a1c4d327]{padding:0 1rem;flex:1;overflow:auto}.view-page .detailContent .detailTitle[data-v-a1c4d327]{font-size:1rem;font-weight:700;color:#333;line-height:1.4;padding-bottom:1.5rem;text-align:center}.view-page .detailContent .detailData[data-v-a1c4d327]{padding:0 1rem}
|
||||
@@ -1 +0,0 @@
|
||||
.view-page[data-v-f7bd8541]{min-height:100vh;font-family:Source Han Sans CN,Source Han Sans CN;background-repeat:no-repeat;background-size:100% 100%}
|
||||
|
Before Width: | Height: | Size: 6.8 KiB |
@@ -1 +0,0 @@
|
||||
import"./index-CjgLNey7.js";function r(r,t){return"string"==typeof r?t:r}export{r};
|
||||
@@ -1 +0,0 @@
|
||||
.uni-easyinput[data-v-5763a810]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-5763a810]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-5763a810]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-5763a810] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-5763a810] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-5763a810] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-5763a810]{color:#999;font-size:12px}.is-textarea[data-v-5763a810]{align-items:flex-start}.is-textarea-icon[data-v-5763a810]{margin-top:5px}.uni-easyinput__content-textarea[data-v-5763a810]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-5763a810]{padding-left:10px}.content-clear-icon[data-v-5763a810]{padding:0 5px}.label-icon[data-v-5763a810]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-5763a810]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #F0F0F0;border-radius:4px}.uni-error-message[data-v-5763a810]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-5763a810]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-5763a810]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-5763a810]{color:#f29e99}.uni-easyinput--border[data-v-5763a810]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-5763a810]{padding-bottom:0}.is-first-border[data-v-5763a810]{border:none}.is-disabled[data-v-5763a810]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-5763a810]{color:#d5d5d5;font-size:12px}
|
||||