页面完善

main
尕宋 2024-06-12 12:30:05 +08:00
commit 5e5a19bd59
36 changed files with 2155 additions and 299 deletions

View File

@ -3,6 +3,7 @@
import store from '@/store'
import { getToken } from '@/utils/auth'
export default {
onLaunch: function() {
this.initApp()
@ -22,7 +23,7 @@
},
checkLogin() {
if (!getToken()) {
this.$tab.reLaunch('pages/loginInfo/login')
this.$tab.reLaunch('pages/login')
}
}
}

View File

@ -72,3 +72,12 @@ export function gotoQrcode(data) {
data: data
})
}
//查询用户所有活动参与的详细信息
// 报名
export function getUserAcInfo() {
return request({
url: '/activityInfo/activityTakeInfo/getUserAcInfo',
method: 'get'
})
}

View File

@ -16,7 +16,14 @@ export function getInfo(id) {
method: 'get'
})
}
getInfoall
// 查询活动详情详细 所有额外信息
export function getInfoall(id) {
return request({
url: '/activityInfo/info/app/all/' + id,
method: 'get'
})
}
// 新增活动详情
export function addInfo(data) {
return request({
@ -42,3 +49,12 @@ export function delInfo(id) {
method: 'delete'
})
}
// 查询自己的活动详情列表
export function getmelistInfo(query) {
return request({
url: '/activityInfo/info/app/getmelistInfo',
method: 'get',
params: query
})
}

View File

@ -1,11 +1,16 @@
// 应用全局配置
export default {
qnDomain: 'http://sdcwwvrwz.hn-bkt.clouddn.com/',
qnDomain: 'http://seueton5q.hn-bkt.clouddn.com/',
uploadQiNiuDomain: 'https://upload-z2.qiniup.com',
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
// baseUrl: 'http://47.93.242.168:8080',
<<<<<<< HEAD
// baseUrl: 'http://47.93.242.168:8080',
baseUrl: 'http://localhost:8080',
=======
// baseUrl: 'http://47.93.242.168:8080',
baseUrl: 'http://localhost:8080',
>>>>>>> 628ee1926942d01758e141fb0b5393a175968240
// 应用信息
appInfo: {
// 应用名称

View File

@ -4,6 +4,7 @@ import store from './store' // store
import { install } from './plugins' // plugins
import './permission.js' // permission
import iconConfig from './utils/icon/icon.js'
import { getDictLabelByValue } from '@/utils/dict'
// main.js
import uviewPlus from 'uview-plus'
@ -11,6 +12,7 @@ import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, select
export function createApp() {
const app = createSSRApp(App)
app.config.globalProperties.iconConfig = iconConfig
app.config.globalProperties.getDictLabelByValue = getDictLabelByValue
app.config.globalProperties.parseTime = parseTime
app.config.globalProperties.resetForm = resetForm
app.config.globalProperties.handleTree = handleTree

View File

@ -14,7 +14,10 @@
"autoclose" : true,
"delay" : 0
},
"modules" : {},
"modules" : {
"Barcode" : {},
"Camera" : {}
},
"distribute" : {
"android" : {
"permissions" : [
@ -45,7 +48,24 @@
"UniversalLinks" : ""
}
},
"ad" : {}
"ad" : {},
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
},
"amap" : {
"name" : "",
"__platform__" : [ "ios", "android" ],
"appkey_ios" : "",
"appkey_android" : ""
}
},
"push" : {
"unipush" : {
"version" : "2",
"offline" : false
}
}
}
}
},

View File

@ -297,6 +297,29 @@
"navigationBarTitleText" : ""
}
}
,
{
"path": "pages/mine/myActivity/index",
"style": {
"navigationBarTitleText": "我的活动",
"enablePullDownRefresh": true,
"onReachBottomDistance": 100
}
}
,{
"path": "pages/mine/myActivity/info",
"style": {
"navigationBarTitleText": "活动详情",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
}
,{
"path": "pages/activity/map",
"style": {
"navigationBarTitleText": "地图"
}
}
],
"tabBar": {
"color": "#000000",

View File

@ -1,10 +1,8 @@
<template class="content">
<view class="fixed-header">
<!-- 顶部导航栏 -->
<up-navbar leftText="" title="" :placeholder="true" :safeAreaInsetTop="true" :bgColor="bgColor">
<template class="img1BOX" #left>
<view class="leftinfo">
<view class="leftinfo" @click="queryTime">
<span class="lefttext">时间</span>
<image
style=" margin-left: 10rpx; transform: rotate(-45deg); /* 旋转45度 */ width: 15rpx; height: 15rpx;"
@ -35,38 +33,52 @@
color: '#999999',
fontSize: '28rpx',
transform: 'scale(1.05)'
}" itemStyle=" width: 200rpx; padding-bottom:18rpx;">
}" itemStyle=" width: 185rpx; padding-bottom:18rpx;">
</up-tabs>
</view>
</view>
<!-- 列表信息 -->
<view>
<ActiInfoList v-model="actiInfoList" @scrolltolower="scrolltolower"></ActiInfoList>
</view>
<view v-if="show">
<up-datetime-picker
hasInput
:show="show"
v-model="newData"
mode="date"
@cancel="close"
@confirm="confirm"
></up-datetime-picker>
</view>
<view>
</view>
</template>
<script setup>
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/activityInfo/info";
import ActiInfoList from '../common/activityList/index.vue'
import { onShow, onLoad ,onPullDownRefresh} from '@dcloudio/uni-app'
import { getDicts } from "@/api/system/dict/data"
import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
import { useStore } from 'vuex';
import { func } from "uview-plus/libs/function/test";
const timeFormat = uni.$u.timeFormat;
const { proxy } = getCurrentInstance();
const newData = ref(new Date().getTime());
const iconConfig = proxy.iconConfig;
const tu21 = iconConfig.tu21;
const tu22 = iconConfig.tu22;
const tu51 = iconConfig.tu51;
const tu52 = iconConfig.tu52;
const tu53 = iconConfig.tu53;
const show = ref(false)
const total = ref()
const imgInfo = ref("")
const search = ref("电音节节日活动")
// ref('#001f3f')
const bgColor = ref('');
bgColor.value = 'rgba(170, 0, 0, 0)'
const bgColor = ref('rgba(170, 0, 0, 0)');
const store = useStore()
const list4 = reactive([
{ name: '全部',state:9 },
@ -86,6 +98,7 @@ const data = reactive({
acTitle: null,
acContent: null,
startTime: null,
startTime1: null,
endTime: null,
state: null,
addres: null,
@ -126,6 +139,7 @@ function reset() {
acTitle: null,
acContent: null,
startTime: null,
startTime1: null,
endTime: null,
state: null,
addres: null,
@ -158,6 +172,19 @@ function reset() {
console.log("下拉刷新,",options);
getList();
})
const queryTime = () => {
show.value = true
}
//
const confirm = (e) => {
queryParams.value.startTime1 = timeFormat(e.value, 'yyyy-mm-dd');
show.value = false
getList()
}
const close = () =>{
queryParams.value.startTime1=null
show.value = false
}
//tabs
const tabsClick =(e) =>{
if(e.state == 9){
@ -174,15 +201,16 @@ function getList() {
queryParams.value.pageNum = 1
queryParams.value.pageSize = 5
listInfo(queryParams.value).then(response => {
uni.stopPullDownRefresh()
actiInfoList.value = response.rows;
response.rows.forEach(item => {
actiInfoList.value.push(item)
})
total.value = response.total;
});
}
onLoad((options) => {
getList();
})
onShow(() => {
@ -229,9 +257,6 @@ page{
background-color: #FBFBFB;
}
.fixed-header {
overflow: auto;
}
.leftinfo {
@ -278,18 +303,22 @@ page{
}
.bgc {
width: 100%;
width: 750rpx;
height: 500rpx;
background: linear-gradient(180deg, rgb(201, 246, 245), rgb(248, 248, 226));
background: linear-gradient(
180deg, /* 渐变方向,从上到下 */
#C9F6F5 0%, /* 起始颜色 */
#F8F8E2 80%, /* 中间颜色 */
#FBFBFB 100% /* 结束颜色 */
);
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: -1;
}
.sousuoBox1 {
margin: 10rpx 32rpx;
width: auto;
}
.sousuoBox {
@ -298,9 +327,11 @@ page{
border: #B3D7FF solid 2rpx;
border-radius: 30rpx 30rpx 30rpx 30rpx;
background: #ffffff80;
z-index: 1;
}
.souBOx {
width: 684rpx;
margin-left: 32rpx;
}
@ -319,6 +350,6 @@ page{
.tabsinfo {
height: 80rpx;
margin: 0 auto;
margin: 0 32rpx;
}
</style>

View File

@ -16,9 +16,7 @@
<view class="addrs">活动地点{{ actiInfoList.addres }}</view>
</view>
<view class="cardz">
<!-- <up-parse :content="processContent(actiInfoList.acContent)" :tagStyle="style"></up-parse> -->
<view v-if="textopen" v-html="actiInfoList.acContent" class="acContentstyle"></view>
<up-text size="15" color="#000000" lineHeight="23" v-else :text="actiInfoList.acContent"></up-text>
<up-text size="15" color="#000000" lineHeight="23" :text="actiInfoList.acContent"></up-text>
</view>
<view class="cardx" v-for="(item, index) in toimage(actiInfoList.file)" :key="index">
@ -30,33 +28,43 @@
<view v-if="actiInfoList.state === '0'">
<view class="state3"
v-if="activityAttendInfo.attendState === '0' || activityAttendInfo.attendState === '1'">
<up-button color="#F1F1F1" size="large" shape="circle"><span class="btnText">未参加</span></up-button>
<view class="btn btnText">
未参加
</view>
</view>
<view class="state3" v-else-if="activityAttendInfo.attendState === '2'">
<up-button color="#F1F1F1" size="large" shape="circle"><span class="btnText">已参加</span></up-button>
<view class="btn btnText">
已参加
</view>
</view>
</view>
<view v-else-if="actiInfoList.state === '2'">
<view class="state1" v-if="activityAttendInfo.attendState === '0'">
<up-button color="#C0F0EC" size="large" shape="circle" @click="goSing(1)"><span
class="btnText">立即报名</span></up-button>
<view class="btn btnText" @click="goSing(1)">
立即报名
</view>
</view>
<view class="state2" v-else-if="activityAttendInfo.attendState === '1'">
<up-button color="#FDE2E2" size="large" shape="circle" @click="goQrcode(1)"><span
class="btnText">扫码签到</span></up-button>
<view class="btn btnText" @click="goQrcode(1)">
扫码签到
</view>
</view>
<view class="state2" v-else-if="activityAttendInfo.attendState === '2'">
<up-button color="#FDE2E2" size="large" shape="circle"><span class="btnText">已签到</span></up-button>
<view class="btn btnText">
已签到
</view>
</view>
</view>
<view v-else-if="actiInfoList.state === '1'">
<view class="state1" v-if="activityAttendInfo.attendState === '0'">
<up-button color="#C0F0EC" size="large" shape="circle" @click="goSing(1)"><span
class="btnText">立即报名</span></up-button>
<view class="btn btnText" @click="goSing(1)">
立即报名
</view>
</view>
<view class="state1" v-else-if="activityAttendInfo.attendState === '1'">
<up-button color="#C0F0EC" size="large" shape="circle" @click="goSing(0)"><span
class="btnText">取消报名</span></up-button>
<view class="btn btnText" @click="goSing(0)">
取消报名
</view>
</view>
</view>
</view>
@ -175,11 +183,12 @@ const goSing = (e) => {
//
checkStatus(actiInfoList.value.id);
}
const goQrcode = () => {
const goQrcode = (e) => {
console.log("saoma");
uni.scanCode({
onlyFromCamera: true,
success: (res) => {
console.log('扫描二维码成功,结果:', res);
console.log('扫描二维码成功,结果:', res.result);
toqrcode(res);
},
@ -202,6 +211,7 @@ function confirm() {
}
const toqrcode = (e) => {
qrcodeInfo.value = JSON.parse(e.result);
console.log("数据结果:",qrcodeInfo.value);
if (actiInfoList.value.id !== qrcodeInfo.value.id) {
proxy.$modal.msgError('二维码不匹配!')
return;
@ -217,6 +227,7 @@ page{
background-color: #ffffff;
}
.navbarcenter {
font-weight: 400;
width: 148rpx;
@ -232,7 +243,7 @@ page{
.cards {
.title {
font-weight: 400 !important;
font-weight: 600 !important;
font-size: 32rpx;
text-align: left;
color: #000000 !important;
@ -266,8 +277,10 @@ page{
.cardx {
margin-top: 48rpx;
.image {
width: 686rpx;
border-radius: 24rpx;
height: 720rpx;
}
}
@ -279,14 +292,23 @@ page{
margin: 4rpx auto;
margin-bottom: 400rpx;
.btn {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.state1 {
width: 686rpx;
height: 80rpx;
margin: 0 auto;
border-radius: 40rpx;
background-color: #C0F0EC;
.btnText {
font-weight: 400;
width: 120rpx;
font-weight: bold;
font-size: 30rpx;
color: #00CCBE !important;
}
@ -296,10 +318,11 @@ page{
width: 686rpx;
height: 80rpx;
margin: 0 auto;
border-radius: 40rpx;
background-color: #FDE2E2;
.btnText {
font-weight: 400;
width: 120rpx;
font-weight: bold;
font-size: 30rpx;
color: #FFABAB !important;
}
@ -309,10 +332,11 @@ page{
width: 686rpx;
height: 80rpx;
margin: 0 auto;
border-radius: 40rpx;
background-color: #F1F1F1;
.btnText {
font-weight: 400;
width: 120rpx;
font-weight: bold;
font-size: 30rpx;
color: #7E7E7E !important;
}
@ -342,6 +366,22 @@ page{
.infoavatar {
display: flex;
height: 60rpx;
.launchName {
font-size: 26rpx;
color: #000000 !important;
}
.launchAddres {
font-size: 24rpx;
color: #999999 !important;
}
}
.elroll {
font-size: 24rpx;
color: #999999 !important;
}
}

37
pages/activity/map.vue Normal file
View File

@ -0,0 +1,37 @@
<template class="content">
<view>12</view>
</template>
<script setup>
import ActiInfoList from '../common/activityList/index.vue'
import { onShow, onLoad ,onPullDownRefresh} from '@dcloudio/uni-app'
import { getDicts } from "@/api/system/dict/data"
import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
import { useStore } from 'vuex';
const timeFormat = uni.$u.timeFormat;
const { proxy } = getCurrentInstance();
const newData = ref(new Date().getTime());
const iconConfig = proxy.iconConfig;
const tu21 = iconConfig.tu21;
onLoad((options) => {
})
onShow(() => {
console.log('Page onShow')
})
</script>
<style lang="scss">
page{
background-color: #FBFBFB;
}
</style>

View File

@ -14,18 +14,23 @@
<view class="titleInfo">
<up-form-item label="" prop="acTitle" borderBottom>
<up-input placeholder="输入活动标题~5~20个字" v-model="form.acTitle" border="none" maxlength="20"
fontSize="34rpx" color="#C0C0C0" clearable></up-input>
fontSize="34rpx" color="#333333" clearable
placeholderStyle="color: #c0c0c0;font-size: 34rpx;"></up-input>
</up-form-item>
<view class="xian"></view>
</view>
<view class="contentInfo">
<up-form-item label="" prop="acContent" borderBottom>
<up-textarea v-model="form.acContent" placeholder="
活动图片最多可发布两张
输入准确定位可以更好提供活动信息奥安全指南请勿发布带有个人信息住址" count border="none" height="270" maxlength="500"
placeholderStyle="color: #c0c0c0;font-size: 30rpx; background:none;"></up-textarea>
<textarea class="text_style" v-model="form.acContent"
placeholder="输入活动内容\n活动图片最多可发布两张\n输入准确定位可以更好提供活动信息奥\n安全指南请勿发布带有个人信息住址\n" cols="50"
rows="10" maxlength="500"
placeholderStyle="color: #c0c0c0;font-size: 30rpx; white-space: pre-wrap;" color="#333333"
fontSize="30rpx" @linechange="inputtextInfo"></textarea>
<view class="char-count">{{ form.acContent.length }}/500</view>
</up-form-item>
</view>
<up-form-item label="" prop="file" borderBottom>
<view class="cardzfile">
<fileUpload v-model="form.file" :fileTypeInfo="fileTypeInfo1" :limit="2"></fileUpload>
@ -37,7 +42,8 @@
<up-cell-group :border="false">
<up-form-item label="" prop="startTime" borderBottom @click="showStartTime = !showStartTime">
<view style="margin-top: 2rpx;width: 100%;height: 30rpx;display: flex;align-items: center;">
<image v-if="showtext1" :src="tu52" style="width: 30rpx; height: 32rpx; margin-right: 12rpx;"></image>
<image v-if="showtext1" :src="tu52" style="width: 30rpx; height: 32rpx; margin-right: 12rpx;">
</image>
<image v-else :src="tu522" style="width: 30rpx; height: 32rpx; margin-right: 12rpx;"></image>
<up-input v-model="form.startTime" disabled disabledColor="#ffffff" color="#C9F6F5"
placeholder="请选择活动开始时间" placeholderStyle="color: #333333 !important;font-size: 30rpx;"
@ -49,7 +55,8 @@
</up-form-item>
<up-form-item label="" prop="endTime" borderBottom @click="showEndTime = !showEndTime">
<view style="margin-top: 2rpx;width: 100%;height: 30rpx;display: flex;align-items: center;">
<image v-if="showtext2" :src="tu53" style="width: 30rpx; height: 32rpx;margin-right: 12rpx;"></image>
<image v-if="showtext2" :src="tu53" style="width: 30rpx; height: 32rpx;margin-right: 12rpx;">
</image>
<image v-else :src="tu532" style="width: 30rpx; height: 32rpx; margin-right: 12rpx;"></image>
<up-input v-model="form.endTime" disabled disabledColor="#ffffff" color="#C9F6F5"
placeholder="请选择活动结束时间" placeholderStyle="color: #333333 !important;font-size: 30rpx;"
@ -59,27 +66,33 @@
<up-icon slot="right" name="arrow-right"></up-icon>
</view>
</up-form-item>
<up-cell :border="false" :isLink="true" :center="true">
<template #title
style="margin-top: 2rpx;width: 100%;height: 30rpx;display: flex;align-items: center;">
<image v-if="showtext3" :src="tu51" style="width: 30rpx; height: 32rpx;"></image>
<image v-else :src="tu512" style="width: 30rpx; height: 32rpx;"></image>
<span>添加活动具体位置</span>
</template>
</up-cell>
<up-form-item label="" prop="addres" borderBottom @click="showaddres = !showaddres">
<view style="margin-top: 2rpx;width: 100%;height: 30rpx;display: flex;align-items: center;">
<image v-if="showtext3" :src="tu51" style="width: 30rpx; height: 32rpx;margin-right: 12rpx;">
</image>
<image v-else :src="tu512" style="width: 30rpx; height: 32rpx; margin-right: 12rpx;"></image>
<up-input v-model="form.addres" disabledColor="#ffffff" color="#C9F6F5" @change="change1"
placeholder="添加活动具体位置" placeholderStyle="color: #333333 !important;font-size: 30rpx;"
border="none">
<span v-if="showtext2"></span>
</up-input>
<up-icon slot="right" name="arrow-right" @click="gotomap"></up-icon>
</view>
</up-form-item>
</up-cell-group>
</view>
<up-datetime-picker :show="showStartTime" v-model="newData" :modelValue="newData" @confirm="confirm1" format="YYYY-MM-DD HH:mm:ss"
@cancel="cancel" mode="datetime"></up-datetime-picker>
<up-datetime-picker :show="showEndTime" v-model="newData" @confirm="confirm2" :modelValue="newData" format="YYYY-MM-DD HH:mm:ss"
@cancel="cancel" mode="datetime"></up-datetime-picker>
<up-datetime-picker :show="showStartTime" v-model="newData" :modelValue="newData" @confirm="confirm1"
format="YYYY-MM-DD HH:mm:ss" @cancel="cancel" mode="datetime"></up-datetime-picker>
<up-datetime-picker :show="showEndTime" v-model="newData" @confirm="confirm2" :modelValue="newData"
format="YYYY-MM-DD HH:mm:ss" @cancel="cancel" mode="datetime"></up-datetime-picker>
<view class="cardxx">
<up-button color="#C9F6F5" size="large" shape="circle" @click="publish" throttleTime="500"><span
class="fbText">发布</span></up-button>
<view style="width: 26rpx;height: 80rpx;"></view>
<up-button color="#F8F8E3" size="large" shape="circle" @click="draft" style="margin-left: 26rpx;"><span
class="cgText">存草稿</span></up-button>
<view class="cardxx-btn" @click="publish">
发布
</view>
<view class="cardxx-btn cgText" @click="draft">
存草稿
</view>
</view>
</up-form>
</template>
@ -108,6 +121,9 @@ const data = reactive({
endTime: null,
file: null,
state: null,
addres: null,
longitude: null,
latitude: null
},
rules: {
acTitle: [
@ -123,15 +139,17 @@ const data = reactive({
],
endTime: [
{ required: true, message: '请选择活动结束时间', trigger: 'change' },
{ validator: (rule, value, callback) => {
console.log(form.value.startTime," ",value," ",value <= form.value.startTime)
{
validator: (rule, value, callback) => {
if (value <= form.value.startTime) {
callback(proxy.$modal.msgError('时间选择错误'));
} else {
callback();
}
}, trigger: 'change' }
]
}, trigger: 'change'
}
],
addres: []
}
});
const { form, rules } = toRefs(data);
@ -141,6 +159,7 @@ const bgColor = ref('');
bgColor.value = 'rgba(170, 0, 0, 0)'
const showStartTime = ref(false);
const showEndTime = ref(false);
const showaddres = ref(false);
const StartTime = ref('请选择活动开始时间');
const showtext1 = ref(true);
const showtext2 = ref(true);
@ -151,7 +170,7 @@ const timeFormat = uni.$u.timeFormat;
//
const uFormRef = ref(null);
onLoad((options) => {
console.log("页面参数:", options.id);
})
const leftClick = () => {
@ -169,21 +188,28 @@ const publish = () => {
submitForm('publish');
console.log("发布");
}
const change1 = (e) => {
showtext3.value = false;
}
const inputtextInfo = (e) => {
console.log("测试输入1", e);
}
const gotomap = () => {
proxy.$tab.navigateTo('/pages/activity/map')
}
const submitForm = (type) => {
if (uFormRef.value) {
uFormRef.value.validate().then(valid => {
if (valid) {
console.log('表单验证通过:', form.value);
proxy.$modal.loading('正在提交数据,请稍候...');
//
if (type === 'publish') {
console.log("调用发布接口", form.value);
//
addInfo(form.value).then(response => {
proxy.$modal.closeLoading();
proxy.$modal.msgSuccess("发布成功");
proxy.$tab.navigateTo('/pages/common/talkState/publish')
rotation(response.data.id);
});
} else {
// 稿
@ -202,13 +228,38 @@ const submitForm = (type) => {
console.log('表单引用未定义');
}
}
//
const rotation = (id) => {
setTimeout(() => {
getInfo(id).then(response => {
if (response.data.auditStatus === 3 | response.data.auditStatus === 4) {
proxy.$modal.closeLoading();
proxy.$modal.msgError("审核失败");
proxy.$tab.navigateTo('/pages/common/talkState/auditFailure')
}else if(response.data.auditStatus === 2){
proxy.$modal.closeLoading();
proxy.$modal.msgSuccess("审核中~");
proxy.$tab.navigateTo('/pages/common/talkState/audit')
}else if(response.data.auditStatus === 0){
proxy.$modal.closeLoading();
proxy.$modal.msgSuccess("发布成功");
proxy.$tab.navigateTo('/pages/common/talkState/publis')
}
else {
rotation(id);
}
});
}, 1000);
}
const startTime = (e) => {
showStartTime.value = !showStartTime.value
}
const confirm1 = (e) => {
console.log(e);
showtext1.value = false;
StartTime.value = e.value
form.value.startTime = timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
@ -216,7 +267,6 @@ const confirm1 = (e) => {
}
const confirm2 = (e) => {
console.log(e);
showtext2.value = false;
EndTime.value = e.value
form.value.endTime = timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
@ -229,6 +279,10 @@ const cancel = (e) => {
}
</script>
<style lang="scss">
page {
background-color: #FFFFFF;
}
.navbarcenter {
font-weight: 400;
font-size: 36rpx;
@ -243,7 +297,7 @@ const cancel = (e) => {
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: -1;
}
.cardz {
@ -263,6 +317,24 @@ const cancel = (e) => {
.contentInfo {
margin-top: 46rpx;
.text_style {
white-space: pre-wrap;
width: 100%;
overflow: auto;
font-weight: 400;
font-size: 30rpx;
line-height: 46rpx;
}
.char-count {
z-index: 1;
text-align: right;
font-size: 24rpx;
color: #999999;
}
}
.cardzfile {
@ -290,17 +362,25 @@ const cancel = (e) => {
margin-left: 32rpx;
margin-right: 32rpx;
margin-top: 80rpx;
justify-content: space-between;
padding-bottom: 32rpx;
.fbText {
font-weight: 400;
.cardxx-btn {
width: 330rpx;
height: 80rpx;
border-radius: 40rpx 40rpx 40rpx 40rpx;
background: #c9f6f5;
font-size: 30rpx;
color: #FBFBFB !important;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
color: #FBFBFB;
}
.cgText {
font-weight: 400;
font-size: 30rpx;
color: #999999 !important;
background-color: #F8F8E3;
color: #999999;
}
}
@ -311,4 +391,9 @@ const cancel = (e) => {
text-align: left;
color: #C9F6F5 !important;
}
.btnInfo1 {
width: 330rpx !important;
height: 80rpx !important;
}
</style>

View File

@ -16,17 +16,20 @@
结束时间{{ item.endTime }}
</view>
<view class="addrs flex alignCenter">
<image :src="tu51" style="width: 20rpx; height: 26rpx; margin-right: 12rpx;"></image>
<image :src="tu51" style="width: 25rpx; height: 26rpx; margin-right: 12rpx;"></image>
活动地点{{ item.addres }}
</view>
<view class="statsInfo">
<view class="statsInfo1" v-if="getDictLabelByValue2(item.attendState) != null">
<!-- 动态数据 -->
<view class="state1" >
<span class="text">{{ getDictLabelByValue2(item.attendState) }}</span></view>
</view>
<view class="statsInfo2">
<!-- 动态数据 -->
<view :class="getDictLabelByValue(item.state).cssClass" >
<span class="text">{{ getDictLabelByValue(item.state).dictLabel }}</span></view>
<!-- 静态数据 -->
<!-- <view class="state1">
<span class="text">报名中</span>
</view> -->
</view>
</view>
@ -43,6 +46,7 @@ import { useStore } from 'vuex';
const emit = defineEmits(['scrolltolower']);
const { proxy } = getCurrentInstance();
const activityState = ref([])//
const activityState2 = ref([])// take_part_state
const iconConfig = proxy.iconConfig;
const tu21 = iconConfig.tu21;
const tu22 = iconConfig.tu22;
@ -62,13 +66,29 @@ const toInfo = (item) => {
}
const getDictLabelByValue = (state) => {
const dict = activityState.value.find((dict) => dict.dictValue === state);
return dict ? dict : '未知状态';
};
const getDictLabelByValue2 = (state) => {
if(state == null)return null;
const dict = activityState2.value.find((dict) => dict.dictValue === state);
if( dict== undefined | dict.dictValue == 0){
return null;
}
if(dict.dictValue == 1 | dict.dictValue == 2){
dict.dictLabel = "已报名"
return dict ? dict.dictLabel : '未知状态';
}
return dict ? dict.dictLabel : '未知状态';
};
onLoad((options) => {
getDicts('activity_state').then(e => {
activityState.value = e.data
console.log(activityState.value);
})
getDicts('take_part_state').then(e => {
activityState2.value = e.data
})
})
@ -97,7 +117,7 @@ onShow(() => {
padding-left: 24rpx;
.titile {
font-weight: 400;
font-weight: 600;
height: 80rpx;
font-size: 32rpx;
@ -130,8 +150,13 @@ onShow(() => {
color: #000000 100%;
}
}
.statsInfo1 {
position: absolute;
right: 130rpx;
bottom: 24rpx;
}
.statsInfo {
.statsInfo2 {
position: absolute;
right: 24rpx;
bottom: 24rpx;

View File

@ -10,9 +10,10 @@
name="fileInfowx"
multiple
:previewFullImage="true"
width="210rpx"
height="210rpx"
>
<image :src="tu2x"
style="width: 210rpx;height: 210rpx;"></image>
<image :src="tu2x" style="width: 210rpx; height: 210rpx;"></image>
</up-upload>
</view>
</template>
@ -148,30 +149,7 @@ const uploadFilePromise = async (fileInfo1, name) => {
const uploadQN = (file) => {
return uploadQN1(file.url);
};
//
const uploadQN2 = (file) => {
return new Promise((resolve, reject) => {
const observable = qiniu.upload(file, dataToken.key, dataToken.token, putExtra, config);
const subscription = observable.subscribe({
next(res) {
console.log("next:", res);
},
error(err) {
console.log("error:", err);
reject(err);
},
async complete(res) {
console.log("complete:", res);
form.url = res.key;
form.name = res.key;
form.type = res.mimeType;
form.size = res.fsize;
await addFileList(form);
resolve(res.key);
}
});
});
};
//uni
const uploadQN1 = (file) => {
return new Promise((resolve, reject) => {

View File

@ -0,0 +1,208 @@
<template>
<view>
<up-upload
:accept="fileTypeInfo"
:maxCount="limit"
:fileList="fileList1"
@afterRead="afterRead"
@delete="deletePic"
:maxSize="fileSize"
name="fileInfowx"
multiple
:previewFullImage="true"
>
<image :src="tu2x"
style="width: 210rpx;height: 210rpx;"></image>
</up-upload>
</view>
</template>
<script setup>
import { getQNtoken, addFileList } from "@/api/qiniu/info";
import config1 from "@/config";
import { ref, reactive, getCurrentInstance, defineEmits } from 'vue';
import { useStore } from 'vuex';
import * as qiniu from 'qiniu-js'
const emit = defineEmits();
const { proxy } = getCurrentInstance();
const uploadQiNiuDomain = config1.uploadQiNiuDomain;
const iconConfig = proxy.iconConfig;
const tu2x = iconConfig.tu2x;
const props = defineProps({
modelValue: [String, Object, Array],
fileTypeInfo: {
type: String,
default: "image",
},
limit: {
type: Number,
default: 6,
},
fileSize: {
type: Number,
default: 100 * 1024 * 1024,
}
});
const url = ref('');
const fileList1 = ref([]);
const store = useStore();
const dataToken = reactive({
token: '',
key: ''
});
const fileInfo = reactive({
name: '',
type: '',
extension: ''
});
const config = reactive({
useCdnDomain: true,
region: qiniu.region.z2,
checkByMD5: true,
forceDirect: false
});
const putExtra = reactive({});
const form = reactive({
id: null,
configId: null,
name: null,
path: null,
url: null,
type: null,
fileCategory: null,
size: null,
creator: null,
createTime: null,
updater: null,
updateTime: null,
deleted: null
});
//
const afterRead = async (event) => {
let name = event.name;
let lists = [].concat(event.file);
let fileListLen = fileList1.value.length;
lists.forEach(item => {
fileList1.value.push({
...item,
status: 'uploading',
message: '上传中',
});
});
for (let i = 0; i < lists.length; i++) {
try {
const result = await uploadFilePromise(lists[i], name);
let item = fileList1.value[fileListLen];
fileList1.value.splice(fileListLen, 1, {
...item,
status: 'success',
message: '',
url: store.state.user.QNDomain + result,
furl: result
});
emit("update:modelValue", listToString(fileList1.value));
fileListLen++;
} catch (error) {
console.error("上传失败:", error);
}
}
};
const uploadFilePromise = async (fileInfo1, name) => {
//
let fileNameOld = [0, 1];
if (fileInfo1.name !== undefined) {
fileNameOld = fileInfo1.name.split('.');
}
fileInfo.name = fileNameOld[0] + "_" + store.state.user.phoneType + "_" + name;
let extension1 = fileInfo1.url.split('.');
// h5
if (extension1[1] === undefined) {
extension1[1] = fileNameOld[fileNameOld.length-1]; //
}
//typevideo/mp4type
fileInfo.type = fileInfo1.type + "/" + extension1[extension1.length-1];
fileInfo.extension = extension1[1];
try {
const tokenData = await getQNtoken(fileInfo);
dataToken.token = tokenData.QNtoken;
dataToken.key = tokenData.key;
const result = await uploadQN(fileInfo1);
return result;
} catch (error) {
console.error("获取 token 或上传失败:", error);
throw error;
}
};
//
const uploadQN = (file) => {
return uploadQN1(file.url);
};
//uni
const uploadQN1 = (file) => {
return new Promise((resolve, reject) => {
uni.uploadFile({
url: uploadQiNiuDomain,
filePath: file,
name: 'file',
formData: {
'key': dataToken.key,
'token': dataToken.token
},
success: async (e) => {
try {
let data = JSON.parse(e.data);
form.url = data.key;
form.name = data.key;
form.type = data.fileType;
form.size = data.fsize;
await addFileList(form);
resolve(form.url);
} catch (error) {
console.error("处理上传成功响应时出错:", error);
reject(error);
}
},
fail: (e) => {
console.log("上传失败:", e);
reject(e);
}
});
});
};
const deletePic = (e) => {
fileList1.value.splice(e.index, 1);
};
const typeInfo = () => {
store.dispatch('getPhoneType');
};
//
function listToString(list, separator) {
let strs = "";
separator = separator || ",";
for (let i in list) {
if (list[i].url) {
strs += list[i].furl + separator;
}
}
return strs != '' ? strs.substr(0, strs.length - 1) : '';
}
typeInfo();
</script>
<style lang="scss" scoped>
</style>

View File

@ -40,8 +40,40 @@
</view>
</block>
<!-- 三张图片 -->
<block v-if="postValue.media.length >= 3">
<u-album :urls="postValue.media" singleSize="660rpx" multipleSize="220rpx" space="10rpx" maxCount="3"></u-album>
<block v-if="postValue.media.length == 3">
<!-- <u-album :urls="postValue.media" singleSize="660rpx" multipleSize="220rpx" space="10rpx" maxCount="3"></u-album> -->
<view class="flex justifyBetween">
<view class="img-style-3-1" v-for="(mediaItem, index3) in postValue.media.slice(0,3)" :key="index3">
<image :lazy-load="true"
@tap.stop="previewImage(mediaItem, postValue.media)" mode="aspectFill"
:src="mediaItem"></image>
</view>
</view>
</block>
<!--大于三张图片-列表-->
<block v-if="postValue.media.length > 3 && postViewType == 0">
<!-- <u-album :urls="postValue.media" singleSize="660rpx" multipleSize="220rpx" space="10rpx" maxCount="3"></u-album> -->
<view class="flex justifyBetween">
<view class="img-style-3-2" v-for="(mediaItem, index3) in postValue.media.slice(0,3)" :key="index3">
<image :lazy-load="true"
@tap.stop="previewImage(mediaItem, postValue.media)" mode="aspectFill"
:src="mediaItem"></image>
<view v-if="index3 == 2" class="img-cover-style" @tap.stop="previewImage(mediaItem, postValue.media)">
<text>+{{ postValue.media.length - 3 }}</text>
</view>
</view>
</view>
</block>
<!--大于三张图片-详情-->
<block v-if="postValue.media.length > 3 && postViewType == 1">
<!-- <u-album :urls="postValue.media" singleSize="660rpx" multipleSize="220rpx" space="10rpx" maxCount="3"></u-album> -->
<view class="flex justifyBetween wrap">
<view class="img-style-3-1" v-for="(mediaItem, index3) in postValue.media" :key="index3">
<image :lazy-load="true"
@tap.stop="previewImage(mediaItem, postValue.media)" mode="aspectFill"
:src="mediaItem"></image>
</view>
</view>
</block>
<!-- tab -->
<view class="center-content-post-tab" style="display: flex;">
@ -214,7 +246,7 @@
line-height: 30rpx;
}
.no-focus-text {
font-weight: 400;
font-weight: 600;
width: 58rpx;
// height: 30rpx;
font-size: 28rpx;
@ -222,7 +254,7 @@
color: #3477FC;
}
.focus-text {
font-weight: 400;
font-weight: 600;
/* width: 58rpx; */
// height: 30rpx;
font-size: 28rpx;
@ -281,7 +313,7 @@
.u-album__row__wrapper {}
.data-v-6fcabaad {
border-radius: 20rpx 20rpx 20rpx 20rpx !important;
border-radius: 20rpx !important;
/* width: 200rpx !important;
height: 200rpx !important; */
}
@ -305,7 +337,7 @@
}
.center-content-post-tab-text{
font-weight: 400;
font-weight: 600;
/* width: 139rpx; */
// height: 26rpx;
font-size: 24rpx;
@ -381,7 +413,7 @@
width: 686rpx;
height: 370rpx;
border-radius: 18rpx 18rpx 18rpx 18rpx;
border-radius: 20rpx;
background: #b3d7ff;
}
@ -393,7 +425,46 @@
width: 100%;
height: 306rpx;
border-radius: 18rpx 18rpx 18rpx 18rpx;
border-radius: 20rpx;
}
}
.img-style-3-1{
image {
// margin: 6rpx;
width: 222rpx;
height: 222rpx;
border-radius: 20rpx;
}
}
.img-style-3-2{
display: flex;
justify-content: space-between;
position: relative;
image {
// margin: 6rpx;
width: 222rpx;
height: 222rpx;
border-radius: 20rpx;
}
}
.img-cover-style{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: 20rpx;
text{
color: #fff;
}
}

View File

@ -35,15 +35,20 @@ const { proxy } = getCurrentInstance();
const iconConfig = proxy.iconConfig;
const sh2x1 = iconConfig.sh2x1;
const sh2x = iconConfig.sh2x;
const bgColor = ref('');
bgColor.value = 'rgba(170, 0, 0, 0)'
const bgColor = ref('rgba(170, 0, 0, 0)');
const leftClick = () => {
proxy.$tab.navigateBack(1)
}
</script>
<style lang="scss" scoped>
<style lang="scss" >
page{
background-color: #ffffff;
}
.bacimg2 {
z-index: 1;
width: 508rpx;
height: 540rpx;
position: fixed;
@ -66,7 +71,7 @@ const leftClick = () => {
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: -1;
}
.shenhe2x1 {

View File

@ -45,6 +45,10 @@ const leftClick = () => {
}
</script>
<style lang="scss" scoped>
page{
background-color: #ffffff;
}
.bacimg2 {
width: 508rpx;
height: 540rpx;
@ -68,7 +72,7 @@ const leftClick = () => {
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: -1;
}
.shenhe2x1 {
@ -80,7 +84,7 @@ const leftClick = () => {
}
.text1 {
font-weight: 400;
font-weight: 600;
font-size: 48rpx;
text-align: left;
@ -109,7 +113,7 @@ const leftClick = () => {
}
.fbText {
font-weight: 400;
font-weight: 600;
font-size: 30rpx;
text-align: left;

View File

@ -11,14 +11,14 @@
</template>
</up-navbar>
</view>
<image class="bacimg2" :src="cg2x22"></image>
<image class="bacimg2" :src="cg2x21"></image>
<view class="bgc"></view>
<view class="cardz">
<image :src="cg2x21" class="shenhe2x1"></image>
<span class="text">待审核</span>
<image :src="cg2x22" class="shenhe2x1"></image>
<span class="text">发布成功</span>
</view>
<view style="position: fixed; top: 632rpx; width: 100%; padding-left: 32rpx; padding-right: 32rpx;">
<up-button color="#c0f0ec" size="large" shape="circle" @click="publish"><span
<up-button color="#DBF6EF" size="large" shape="circle" @click="publish"><span
class="fbText">继续发布</span></up-button>
</view>
@ -34,9 +34,9 @@ const { proxy } = getCurrentInstance();
const iconConfig = proxy.iconConfig;
const cg2x21 = iconConfig.cg2x21;
const cg2x22 = iconConfig.cg2x21;
const bgColor = ref('');
bgColor.value = 'rgba(170, 0, 0, 0)'
const cg2x22 = iconConfig.cg2x22;
const bgColor = ref('rgba(170, 0, 0, 0)');
const leftClick = () => {
proxy.$tab.switchTab("/pages/index")
@ -45,13 +45,18 @@ const publish = () => {
proxy.$tab.switchTab("/pages/index")
}
</script>
<style lang="scss" scoped>
<style lang="scss" >
page{
background-color: #ffffff;
}
.bacimg2 {
width: 508rpx;
height: 540rpx;
position: fixed;
top: -100rpx;
left: -100rpx;
z-index: 1;
}
.navbarcenter {
@ -69,7 +74,7 @@ const publish = () => {
position: fixed;
top: 0rpx;
left: 0rpx;
z-index: -1;
}
.shenhe2x1 {
@ -78,14 +83,15 @@ const publish = () => {
position: fixed;
top: 276rpx;
left: 260rpx;
z-index: 2;
}
.text {
font-weight: 400;
font-weight: 600;
font-size: 48rpx;
text-align: left;
color: #00CCBE !important;
color: #5CCDB1 !important;
position: fixed;
top: 500rpx;
left: 300rpx;
@ -97,7 +103,7 @@ const publish = () => {
align-items: center;
}
.fbText{
font-weight: 400;
font-weight: 600;
font-size: 30rpx;
text-align: left;

View File

@ -17,7 +17,7 @@
</template>
<template class="img2Box" #center>
<view class="qiehuanBox">
<u-tabs lineColor="#B3D7FF" lineWidth="24" lineHeight="4"
<u-tabs lineColor="#B3D7FF" lineWidth="24" lineHeight="4" :scrollable="false"
:activeStyle="{ fontWeight: '600rpx',fontSize:'40rpx',color: '#000000'}"
:inactiveStyle="{fontWeight: '400rpx',fontSize:'36rpx',color: '#999999'}"
:list="list1" :current="viewIndex" @click="click"></u-tabs>
@ -108,18 +108,17 @@
<view class="box-a">
<view class="box-b" v-for="(item, index) in searchPrerequisiteList" :key="index">
<ul
<view
class="box-c"
:class="{ 'box-d': lefther === index }"
@click="handerShowHand"
>
<li class="offtext" :class="{ boxtext: lefther === index }" @click.stop="handerLi(index)">
<view class="offtext" :class="{ boxtext: lefther === index }" @click.stop="handerLi(index)">
<text>{{ item }}</text>
</li>
</ul>
</view>
</view>
</view>
</view>
</view>
</u-popup>
@ -128,27 +127,39 @@
</template>
<script setup>
import { ref, reactive, onMounted, getCurrentInstance } from 'vue';
import {onReachBottom,onLoad} from "@dcloudio/uni-app";
import { ref, reactive, onMounted, onUnmounted, onBeforeUnmount, getCurrentInstance } from 'vue';
import {onReachBottom,onLoad,onPageScroll} from "@dcloudio/uni-app";
import PostView from "@/pages/common/postview/index.vue";
const { proxy } = getCurrentInstance();
const bgColor = ref('rgba(170, 0, 0, 0)');
onMounted(() => {
onPageScroll((e) => {
// console.log("" + e.scrollTop);
if (e.scrollTop >= 70) {
bgColor.value = 'rgba(255, 255, 255, 1)'
} else {
bgColor.value = 'rgba(170, 0, 0, 0)'
}
});
onReachBottom(() => {
console.log('触底了')
})
})
const { proxy } = getCurrentInstance();
const viewIndex = ref(1);
const searchOpen = ref(false);
const lefther = ref(0);
const searchPrerequisite = ref('热门');
const postTypeOpen = ref(false);
const bgColor = ref('rgba(170, 0, 0, 0)');
// const postTypeList = ['', ''];
const postTypeList = [{lable:'发布话题',id:1}, {lable:'发布活动',id:2}];
const searchPrerequisiteList = [
'热门', '最新', '筛选3', '筛选4', '筛选5', '筛选6', '筛选7', '筛选8', '筛选9'
'热门', '最新', '筛选3', '筛选4', '筛选5', '筛选6', '筛选7', '筛选8'
];
const list1 = reactive([
@ -187,10 +198,10 @@ import PostView from "@/pages/common/postview/index.vue";
content: '八年前,学弟在工地上杀了一个工友,杀人前,他给警察打了电话,预告杀人的时间和地点,并超出部分测试超出部分测试超出部分测试超出部分测试......超出部分测试超出部分测试超出部分测试超出部分测试',
type: '1',
media: [
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b',
'https://bpic.51yuansu.com/backgd/cover/00/63/09/64b52b1426fff_800.jpg?x-oss-process=image/resize,w_780/sharpen,100',
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://img1.baidu.com/it/u=1179199327,1946315836&fm=253&fmt=auto&app=138&f=JPEG?w=1364&h=800',
'https://www4.bing.com//th?id=OHR.CopenhagenBicycles_ZH-CN3047958346_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
'https://www4.bing.com//th?id=OHR.CarnavalTenerife_ZH-CN1559136778_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
'https://www4.bing.com//th?id=OHR.StJamesPool_ZH-CN5930624359_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
],
tab: ['学术讨论组', '校园风景'],
transmitCount: 136,
@ -210,7 +221,7 @@ import PostView from "@/pages/common/postview/index.vue";
content: '是一个中文互联网高质量问答社区和创作者聚集的原创内容平台于2011年1月正式上线',
type: '1',
media: [
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://www4.bing.com//th?id=OHR.BambooPanda_ZH-CN8455481760_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
],
tab: ['校园风景'],
transmitCount: 13,
@ -231,8 +242,8 @@ import PostView from "@/pages/common/postview/index.vue";
content: '是一个中文互联网高质量问答社区和创作者聚集的原创内容平台于2011年1月正式上线',
type: '1',
media: [
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b'
'https://www4.bing.com//th?id=OHR.PlitviceWinter_ZH-CN0407572344_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
'https://www4.bing.com//th?id=OHR.HawkOwl_ZH-CN3401920167_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202'
],
tab: ['校园风景'],
transmitCount: 13,
@ -304,12 +315,6 @@ import PostView from "@/pages/common/postview/index.vue";
searchOpen.value = !searchOpen.value;
};
onMounted(() => {
console.log(proxy.$store.state.user.QNDomain);
});
function GotoUNISignid(){
proxy.$tab.navigateTo("/pages/signln/signid");
}
@ -495,16 +500,22 @@ import PostView from "@/pages/common/postview/index.vue";
height: 200rpx !important; */
}
.data-v-6fcabaad{
border-radius: 20rpx 20rpx 20rpx 20rpx !important;
}
.box-a {
margin-top: 42rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
// justify-content: space-between;
}
.box-b {
width: calc(33.33% - 16rpx); /* 每行三个元素,减去外边距的总宽度 */
width: calc(33.33% - 26rpx); /* 每行三个元素,减去外边距的总宽度 */
margin-bottom: 24rpx;
// margin-left: 12rpx;
margin-right: 24rpx;
}
.box-c {
@ -524,7 +535,7 @@ import PostView from "@/pages/common/postview/index.vue";
text-align: center;
font-family: "Microsoft YaHei";
// line-height: 82rpx;
display: block;
// display: block;
cursor: pointer;
transition: all 0.3s ease;
padding: 12rpx 0;

View File

@ -138,9 +138,10 @@ export default {
//
loginSuccess(result) {
//
this.$store.dispatch('GetUserInfo');
this.$store.dispatch('GetInfo').then(res => {
this.$store.dispatch('getQNDomainInfo')
this.$store.dispatch('GetUserInfo');
this.$tab.reLaunch('/pages/index')
})
}

View File

@ -12,9 +12,36 @@
</view>
<view v-else>
<view class="userInfoNot">
<view class="avatarInfo">
<up-avatar :src="avatar" size="148rpx"></up-avatar>
<up-text :text="nickName" size="44rpx" color="#FFFFFF" bold="400" margin="24rpx"></up-text>
<up-text :text="sex" size="44rpx" color="#FFFFFF" bold="400" margin="24rpx"></up-text>
<image v-if="isOfficial" class="official" :src="tu36"></image>
</view>
<view class="simpleInfo-text">
<view class="textgrid1">
<view class="grid11">{{ nickName }}</view>
<image :src="mupdate" style="width: 32rpx; height: 32rpx;"></image>
</view>
<view class="textgrid2">
<view class="textInfo grid21">{{ dictSex(sex) }}</view>
<view class="textInfo grid22">LV{{ infoRank }}</view>
<view class="textInfo grid23">ID:{{ name }}</view>
</view>
<view class="textgrid3">
<view class="grid31">[签名]{{ qm(remark) }}</view>
</view>
</view>
</view>
</view>
<view class="school">
<view class="school1">
<image :src="tu51addres" style="width: 16rpx; height: 20rpx;"></image>
<view class="textInfo">{{ infoSchool }}</view>
</view>
</view>
<view class="smallUserInfo">
@ -37,8 +64,7 @@
<text class="text1">我的话题</text>
<view>
<up-grid :border="false" col="5" @click="grid1Click1">
<up-grid-item v-for="(listItem, listIndex) in list1" :key="listIndex"
customStyle="padding-top: 24rpx; ">
<up-grid-item v-for="(listItem, listIndex) in list1" :key="listIndex" customStyle="padding-top: 24rpx; ">
<image :src="listItem.icon" style="width: 66rpx; height: 66rpx;"></image>
<text style="font-size: 24rpx;color: #999999;margin-top: 20rpx;">{{ listItem.title }}</text>
</up-grid-item>
@ -49,8 +75,7 @@
<text class="text1">我的活动</text>
<view>
<up-grid :border="false" col="5" @click="grid1Click2">
<up-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex"
customStyle="padding-top: 24rpx; ">
<up-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex" customStyle="padding-top: 24rpx; ">
<image :src="listItem.icon" style="width: 66rpx; height: 66rpx;"></image>
<text style="font-size: 24rpx;color: #999999;margin-top: 20rpx;">{{ listItem.title }}</text>
</up-grid-item>
@ -61,8 +86,7 @@
<text class="text1">更多功能</text>
<view>
<up-grid :border="false" col="4" @click="grid1Click3">
<up-grid-item v-for="(listItem, listIndex) in list3" :key="listIndex"
customStyle="padding-top: 24rpx; ">
<up-grid-item v-for="(listItem, listIndex) in list3" :key="listIndex" customStyle="padding-top: 24rpx; ">
<image :src="listItem.icon" style="width: 66rpx; height: 66rpx;"></image>
<text style="font-size: 24rpx;color: #999999;margin-top: 20rpx;">{{ listItem.title }}</text>
</up-grid-item>
@ -77,10 +101,17 @@ import { useStore } from 'vuex'
import { useRouter } from 'vue-router'
import { ref, getCurrentInstance } from 'vue';
import { getDicts } from "@/api/system/dict/data";
import { onShow, onLoad } from '@dcloudio/uni-app'
import image from 'uview-plus/libs/config/props/image';
const { proxy } = getCurrentInstance();
const isOfficial = ref(true)
const iconConfig = proxy.iconConfig;
const bjt = iconConfig.bjt;
const bjt2 = iconConfig.bjt2;
const mupdate = iconConfig.mupdate;
const tu36 = iconConfig.tu36;
//
const tu51addres = iconConfig.tu51addres;
//+
const gd11 = iconConfig.gd11;
const gd12 = iconConfig.gd12;
@ -127,14 +158,39 @@ const list3 = ref([
{ icon: gd24, title: '系统设置' }
])
const infoAssist = ref(0)
const followCount = ref(0)
const fanCount = ref(0)
const name = ref(proxy.$store.state.user.name)
const nickName = ref(proxy.$store.state.user.nickName)
const sex = ref(proxy.$store.state.user.sex)
const infoSchool = ref(proxy.$store.state.userInfo.infoSchool)//
const infoRank = ref(proxy.$store.state.userInfo.infoRank)
const remark = ref(proxy.$store.state.userInfo.remark)//
const infoAssist = ref(proxy.$store.state.userInfo.infoAssist)//
const followCount = ref(proxy.$store.state.userInfo.followCount)//
const fanCount = ref(proxy.$store.state.userInfo.fanCount)//
const qm = (e) => {
if (e === "" | e === null) {
return "这个人很懒什么都没有留下……"
} else {
return e
}
}
const dictSexInfo = ref('')
onLoad((options) => {
getDicts('sys_user_sex').then(e => {
console.log("字典:", e);
dictSexInfo.value = e.data
})
})
const dictSex = (state) => {
const dict = dictSexInfo.value.find((dict) => dict.dictValue === state);
return dict ? dict.dictLabel : '未知状态';
}
const version = ref(getApp().globalData.config.appInfo.version)
const avatar = ref(proxy.$store.state.user.avatar)
function handleLogout() {
@ -149,6 +205,7 @@ const grid1Click1 = (e) => {
console.log(e);
}
const grid1Click2 = (e) => {
proxy.$tab.navigateTo('/pages/mine/myActivity/index?type='+e)
console.log(e);
}
const grid1Click3 = (e) => {
@ -156,7 +213,8 @@ const grid1Click3 = (e) => {
}
const info = () => {
console.log(avatar);
console.log("昵称:", useStore().state.userInfo);
}
info();
function handleToLogin() {
@ -214,6 +272,65 @@ page {
display: flex;
justify-content: center;
align-items: center;
.avatarInfo {
position: relative;
.official {
position: absolute;
width: 48rpx;
height: 48rpx;
bottom: 0;
right: 0;
}
}
.simpleInfo-text {
margin-left: 24rpx;
text-align: left;
.textgrid1 {
display: flex;
align-items: center;
.grid11 {
font-weight: 600;
font-size: 44rpx;
color: #FFFFFF !important;
margin-right: 10rpx;
}
}
.textgrid2 {
display: flex;
align-items: center;
.textInfo {
font-size: 24rpx;
color: #FFFFFF !important;
}
.grid21 {
margin-right: 24rpx;
}
.grid22 {
margin-right: 24rpx;
}
.grid23 {}
}
.textgrid3 {
.grid31 {
font-size: 24rpx;
text-align: left;
color: #FFFFFF !important;
}
}
}
}
.smallUserInfo {
@ -252,6 +369,7 @@ page {
margin: 0 24rpx; // margin top margin
}
}
.cardz3 {
width: 686rpx;
height: 356rpx;
@ -268,4 +386,29 @@ page {
margin: 0 24rpx; // margin top margin
}
}
.school {
position: absolute;
top: 362rpx;
right: 32rpx;
height: 28rpx;
border-radius: 14rpx;
opacity: 0.5;
background: #000000 !important;
display: flex; /* 添加 flex 布局 */
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
.school1 {
display: flex;
align-items: center;
margin: 4rpx 18rpx;
.textInfo {
margin-left: 8rpx;
font-size: 18rpx;
color: #FFFFFF !important;
line-height: 28rpx; /* 确保文字垂直居中 */
}
}
}
</style>

View File

@ -0,0 +1,401 @@
<template>
<view class="cardss">
<!-- tabs标签 -->
<view class="tabsinfo flex ">
<up-tabs :list="list4" lineWidth="20" lineHeight="2" @click="tabsClick" lineColor="#3477FC" :activeStyle="{
color: '#000000',
fontSize: '28rpx',
transform: 'scale(1.05)'
}" :inactiveStyle="{
color: '#999999',
fontSize: '28rpx',
transform: 'scale(1.05)'
}" itemStyle=" width: 180rpx; padding-bottom:18rpx;">
</up-tabs>
</view>
</view>
<view class="cardz">
<!-- 列表信息 -->
<view class="scrollable-list">
<up-list @scrolltolower="scrolltolower" :showScrollbar="false" :pagingEnabled="true">
<up-list-item v-for="(item, index) in modelValue" :key="index">
<view class="listInfo" @click="toInfo(item)">
<view class="titile-Time">
发布时间 {{ item.startTime }}
</view>
<view class="statsInfo1">
<view v-if="item.auditStatus == 0"
style="font-size: 24rpx;color: #3477FC ;width: 74rpx; height: 25rpx;">已发布</view>
<view v-else-if="item.auditStatus == 2"
style="font-size: 24rpx;color: #43CE8F ;width: 74rpx; height: 25rpx;">审核中</view>
<view v-else-if="item.auditStatus == 3 |item.auditStatus==4"
style="font-size: 24rpx;color: #F87863 ;width: 74rpx; height: 25rpx;">未通过</view>
</view>
<up-line color="#f4f5f6" length="96%" direction="row" margin="24rpx 24rpx 24rpx 0" ></up-line>
<view class="titile">
{{ item.acTitle }}
</view>
<view class="startTime flex alignCenter">
<image :src="tu52" style="width: 25rpx; height: 26rpx; margin-right: 12rpx;"></image>
开始时间{{ item.startTime }}
</view>
<view class="endTime flex alignCenter">
<image :src="tu53" style="width: 25rpx; height: 26rpx; margin-right: 12rpx;"></image>
结束时间{{ item.endTime }}
</view>
<view class="addrs flex alignCenter">
<image :src="tu51" style="width: 25rpx; height: 26rpx; margin-right: 12rpx;"></image>
活动地点{{ item.addres }}
</view>
<view class="statsInfo">
<!-- 动态数据 -->
<view :class="getDictLabelByValue(item.state).cssClass">
<span class="text">{{ getDictLabelByValue(item.state).dictLabel }}</span>
</view>
</view>
</view>
</up-list-item>
</up-list>
</view>
</view>
</template>
<script setup>
import { getmelistInfo } from "@/api/activityInfo/info";
import { useStore } from 'vuex'
import { useRouter } from 'vue-router'
import { ref, getCurrentInstance, reactive, toRefs } from 'vue';
import { getDicts } from "@/api/system/dict/data";
import { onShow, onLoad, onPullDownRefresh } from '@dcloudio/uni-app'
import image from 'uview-plus/libs/config/props/image';
const { proxy } = getCurrentInstance();
const isOfficial = ref(true)
const iconConfig = proxy.iconConfig;
const bjt = iconConfig.bjt;
const tu51 = iconConfig.tu51;
const tu52 = iconConfig.tu52;
const tu53 = iconConfig.tu53;
const list4 = reactive([
{ name: '全部活动', state: 9 },
{ name: '已发布', state: 0 },
{ name: '未通过', state: 3 },
{ name: '审核中', state: 2 }
]);
const total = ref()
const actiInfoList = ref()
const data = reactive({
form: {},
queryParams: {
pageNum: 1,
pageSize: 5,
launchUserId: null,
accendCondition: null,
acName: null,
acTitle: null,
acContent: null,
startTime: null,
endTime: null,
state: null,
addres: null,
longitude: null,
latitude: null,
file: null,
elroll: null,
acQrcode: null,
tab: null,
readCount: null,
transmitCount: null,
likeCount: null,
commentCount: null,
favoriteCount: null,
postTop: null,
type: null,
anonymity: null,
auditor: null,
auditStatus: null,
auditTime: null,
auditAdvice: null,
cut: null,
},
rules: {
auditStatus: [
{ required: true, message: "状态0正常1待脱敏 2待审核 3脱敏未通过 4 审核未通过 5草稿不能为空", trigger: "change" }
],
}
});
//
function reset() {
form.value = {
id: null,
launchUserId: null,
accendCondition: null,
acName: null,
acTitle: null,
acContent: null,
startTime: null,
endTime: null,
state: null,
addres: null,
longitude: null,
latitude: null,
file: null,
elroll: null,
acQrcode: null,
tab: null,
readCount: null,
transmitCount: null,
likeCount: null,
commentCount: null,
favoriteCount: null,
postTop: null,
type: null,
anonymity: null,
createTime: null,
auditor: null,
auditStatus: null,
auditTime: null,
auditAdvice: null,
cut: null,
delFlag: null
};
proxy.resetForm("infoRef");
}
const { queryParams, form, rules } = toRefs(data);
const modelValue = ref()
// dataisLoading
const isLoading = ref(false);
const scrolltolower = async () => {
console.log("加载新数据:");
//
if (queryParams.value.pageNum * queryParams.value.pageSize < total.value) {
//
if (isLoading.value) return;
isLoading.value = true;
queryParams.value.pageNum += 1;
try {
const response = await getmelistInfo(queryParams.value);
// 使Array.prototype.push.applyactiInfoList
Array.prototype.push.apply(modelValue.value, response.rows);
console.log(modelValue.value);
} catch (error) {
console.error("加载更多数据时发生错误:", error);
} finally {
isLoading.value = false;
}
} else {
//
console.log("没有更多数据了");
}
};
const toInfo = (item) => {
proxy.$tab.navigateTo(`/pages/mine/myActivity/info?id=${item.id}`);
}
//
const removePage = () => {
queryParams.value.pageNum = 1
queryParams.value.pageSize = 5
}
const activityState = ref()
onLoad((options) => {
getDicts('activity_state').then(e => {
activityState.value = e.data;
})
reset()
getListBytype(options.type)
})
const getListBytype = (type) => {
if(type == 0){
queryParams.value.auditStatus = null;
}else if(type == 1){
queryParams.value.auditStatus = 0;
}else if(type == 2){
queryParams.value.auditStatus = 2;
}else if(type == 3){
queryParams.value.auditStatus = 3;
}
getList()
}
//
onPullDownRefresh((options) => {
removePage();
console.log("下拉刷新,", queryParams.value);
getList();
})
//
const tabsClick = (index) => {
removePage()
if (index.state == 9) {
queryParams.value.auditStatus = null;
} else {
queryParams.value.auditStatus = index.state
}
getList()
}
const getList = () => {
getmelistInfo(queryParams.value)
.then(res => {
uni.stopPullDownRefresh()
total.value = res.total
modelValue.value = res.rows
})
}
const getDictLabelByValue = (state) => {
const dict = activityState.value.find((dict) => dict.dictValue === state);
return dict ? dict : '未知状态';
};
</script>
<style lang="scss">
page {
background-color: #F4F5F6;
}
.tabsinfo {
background-color: #ffffff;
margin: 0 auto;
justify-content: space-between;
}
.cardss {
width: 100%;
height: 68rpx;
background-color: #FFFFFF;
display: flex;
align-items: flex-end;
}
.scrollable-list {
overflow-x: hidden;
overflow-y: auto;
}
.listInfo {
position: relative;
width: 686rpx;
height: 408rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
background: #ffffff;
margin: 0 auto;
margin-top: 24rpx;
padding-top: 24rpx;
padding-left: 24rpx;
.titile-Time {
font-weight: 600;
font-size: 30rpx;
color: #000000 !important;
}
.titile {
font-weight: 400;
font-size: 32rpx;
color: #000000 100%;
}
.startTime {
margin-top: 34rpx;
font-weight: 400;
height: 24rpx;
font-size: 24rpx;
color: #000000 100%;
}
.endTime {
margin-top: 12rpx;
font-weight: 400;
height: 24rpx;
font-size: 24rpx;
color: #000000 100%;
}
.addrs {
margin-top: 22rpx;
font-weight: 400;
height: 24rpx;
font-size: 24rpx;
color: #000000 100%;
}
}
.statsInfo1 {
position: absolute;
right: 24rpx;
top: 24rpx;
}
.statsInfo {
position: absolute;
right: 24rpx;
bottom: 24rpx;
}
.state0 {
width: 84rpx;
height: 28rpx;
border-radius: 14rpx 14rpx 14rpx 14rpx;
background: #f1f1f1;
display: flex;
justify-content: center;
align-content: center;
.text {
font-weight: 400;
width: 60rpx;
height: 20rpx;
font-size: 20rpx;
text-align: center;
color: #7E7E7E;
}
}
.state1 {
width: 84rpx;
height: 28rpx;
border-radius: 14rpx 14rpx 14rpx 14rpx;
background: #c0f0ec;
display: flex;
justify-content: center;
align-content: center;
.text {
font-weight: 400;
font-size: 20rpx;
text-align: center;
color: #00CCBE;
}
}
.state2 {
width: 84rpx;
height: 28rpx;
border-radius: 14rpx 14rpx 14rpx 14rpx;
background: #fde2e2;
display: flex;
justify-content: center;
align-content: center;
.text {
font-weight: 400;
width: 60rpx;
height: 20rpx;
font-size: 20rpx;
text-align: center;
color: #FFABAB;
}
}
</style>

View File

@ -0,0 +1,405 @@
<template class="content">
<view class="fixed-header">
<!-- 顶部导航栏 -->
<up-navbar leftText="" title="" :placeholder="true" :safeAreaInsetTop="true" @leftClick="leftClick">
<template #center>
<div class="navbarcenter"><span>活动详情</span></div>
</template>
</up-navbar>
</view>
<view style=" overflow: auto;">
<view class="avtivityInfo">
<view>
<view class="cards">
<view class="title"> {{ actiInfoList.acTitle }}</view>
<view class="time">活动时间{{ actiInfoList.startTime }} - {{ actiInfoList.endTime }}</view>
<view class="addrs">活动地点{{ actiInfoList.addres }}</view>
</view>
<view class="cardz">
<up-text size="15" color="#000000" lineHeight="23" :text="actiInfoList.acContent"></up-text>
</view>
<view class="cardx" v-for="(item, index) in toimage(actiInfoList.file)" :key="index">
<image :src="item" class="image"></image>
</view>
</view>
</view>
<view class="qrcode" v-if="actiInfoList.state == '2' & actiInfoList.auditStatus == 0 ">
<image :src="basetoimg(actiInfoList.acQrcode)" style="width: 200rpx; height: 200rpx;"
@click="showqr = true">
</image>
<view class="text">签到二维码</view>
</view>
</view>
<!-- 当前是审核中就展示 -->
<view v-if="actiInfoList.auditStatus == 1 | actiInfoList.auditStatus == 2" class="infox4">
<view class="line"></view>
<view class="text1 text" >发布审核时间<span>{{ actiInfoList.startTime }}</span></view>
<view class="text2 text">审核状态<span style="color: #43CE8F">审核中</span></view>
</view>
<!-- 当前是未通过 -->
<view v-else-if="actiInfoList.auditStatus == 3 | actiInfoList.auditStatus == 4 " class="infox4">
<view class="line"></view>
<view class="text1 text" >发布审核时间<span>{{ actiInfoList.startTime }}</span></view>
<view class="text1 text">审核状态<span style="color: #F87863">未通过</span></view>
<view class="text2 text">未通过原因<span style="color: #F87863">{{actiInfoList.auditAdvice}}</span></view>
</view>
<!-- 进行中或者报名中就展示 -->
<view v-else-if="actiInfoList.auditStatus == 0">
<view class="infox1" v-if="actiInfoList.state == '1'">
<view>
<view v-if="dataopen">
<up-avatar-group :urls="participation(participationInfo.elrollAvatars)" size="30"
gap="0.4"></up-avatar-group>
</view>
</view>
<view class="elroll">已报名{{ actiInfoList.elroll }}</view>
</view>
<view class="infox2" v-else>
<view class="flex justifyCenter alignCenter">
<view v-if="dataopen">
<up-avatar-group :urls="participation(participationInfo.elrollAvatars)" size="30"
gap="0.4"></up-avatar-group>
</view>
<view class="elroll">已报名{{ actiInfoList.elroll }}</view>
</view>
<view v-if="actiInfoList.state != '1'" class="flex justifyCenter alignCenter">
<view v-if="dataopen">
<up-avatar-group :urls="participation(participationInfo.qrcodeElrollAvatars)" size="30"
gap="0.4"></up-avatar-group>
</view>
<view class="elroll">已签到{{ actiInfoList.qrcodeElroll }}</view>
</view>
</view>
</view>
<view style="width: 100%; height: 400rpx;"></view>
<view class="infox3"></view>
<view>
<up-overlay :show="showqr" @click="showqr = false">
<view class="warp">
<image class="rect" @tap.stop :src="basetoimg(actiInfoList.acQrcode)"
style="width: 600rpx; height: 600rpx">
</image>
</view>
</up-overlay>
</view>
</template>
<script setup>
import { getTakePartsInfoByacId, gotoQrcode, gotoSing1, gotoSing2 } from "@/api/activityInfo/activityTakeInfo";
import { listInfo, getInfo, getInfoall, delInfo, addInfo, updateInfo } from "@/api/activityInfo/info";
import { getDicts } from "@/api/system/dict/data";
import { onShow, onLoad } from '@dcloudio/uni-app';
import { ref, reactive, getCurrentInstance, toRefs, computed } from 'vue';
import { useStore } from 'vuex';
const showqr = ref(false)
const { proxy } = getCurrentInstance();
const iconConfig = proxy.iconConfig;
const style = ref({
p: 'font-weight: 400;font-size: 24rpx;color: #000000 !important;',
});
const activityState = ref([]); // activity_state
const takePartState = ref([]); // take_part_state
const open = ref(false);
const title = ref('确认签到');
const content = ref('请您确认活动签到,祝您玩的愉快!');
const bgColor = ref('');
const store = useStore();
const QNDomain = store.state.user.QNDomain;
const actiInfoList = ref({});
const activityAttendInfo = ref({});
const qrcodeInfo = ref();
//
const dataopen = ref(false)
const urls1 = reactive([])
const participationInfo = ref([])
const participation = (data) => {
//
const limit = actiInfoList.state === '1' ? 6 : 4;
// limit
const limitedData = data.slice(0, limit);
//
const refObjects = limitedData.map(item => (QNDomain + item.avatar));
return refObjects;
}
function basetoimg(e) {
return "data:image/png;base64," + e
}
onLoad((options) => {
const _id = options.id;
getInfo(_id).then(response => {
actiInfoList.value = response.data;
console.log("actiInfoList:", actiInfoList.value);
});
getInfoall(_id).then(e => {
participationInfo.value = e.data
dataopen.value = true;
console.log("参与人信息:", e);
})
getDicts('activity_state').then(e => {
activityState.value = e.data;
});
getDicts('take_part_state').then(e => {
takePartState.value = e.data;
});
checkStatus(options.id);
});
const checkStatus = (id) => {
getTakePartsInfoByacId(id).then(e => {
activityAttendInfo.value = e.data;
console.log("个人信息:", activityAttendInfo.value)
});
};
const leftClick = () => {
proxy.$tab.navigateBack(1);
};
const toimage = (url) => {
if (typeof url === 'string') {
let info = url.split(",");
let processedInfo = info.map(item => QNDomain + item);
console.log("processedInfo", processedInfo);
return processedInfo;
}
return null;
};
const goQrcode = () => {
uni.scanCode({
onlyFromCamera: true,
success: (res) => {
console.log('扫描二维码成功,结果:', res);
toqrcode(res);
},
error: (res) => {
console.log('扫描二维码出现错误');
}
});
}
const toqrcode = (e) => {
qrcodeInfo.value = JSON.parse(e.result);
if (actiInfoList.value.id !== qrcodeInfo.value.id) {
proxy.$modal.msgError('二维码不匹配!')
return;
} else {
open.value = !open.value;
console.log("信息:", qrcodeInfo.value);
}
};
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
.navbarcenter {
font-weight: 400;
width: 148rpx;
height: 37rpx;
font-size: 36rpx;
text-align: left;
color: #000000;
}
.avtivityInfo {
width: 686rpx;
margin: 44rpx auto;
margin-bottom: 0;
.cards {
.title {
font-weight: 600 !important;
font-size: 32rpx;
text-align: left;
color: #000000 !important;
}
.time {
margin-top: 28rpx;
font-weight: 400;
font-size: 24rpx;
text-align: left;
color: #999999 !important;
}
.addrs {
margin-top: 12rpx;
font-weight: 400;
font-size: 24rpx;
text-align: left;
color: #999999 !important;
}
}
.cardz {
margin-top: 48rpx;
font-weight: 400;
width: 674rpx;
font-size: 24rpx;
text-align: left;
color: #000000 !important;
}
.cardx {
margin-top: 48rpx;
.image {
width: 686rpx;
border-radius: 24rpx;
height: 720rpx;
}
}
}
.infox1 {
display: flex;
justify-content: space-between;
align-items: center;
height: 74rpx;
padding-left: 32rpx;
padding-right: 32rpx;
position: fixed;
/* 固定位置 */
left: 0;
/* 左对齐 */
right: 0;
/* 右对齐 */
bottom: 68rpx;
/* 底部对齐 */
border-top: 1px solid #ccc;
/* 上边框 */
background-color: white;
/* 背景色设置为白色,防止透明背景导致内容重叠可见 */
z-index: 10;
.elroll {
margin-left: 10rpx;
font-size: 24rpx;
color: #999999 !important;
}
}
.infox2 {
display: flex;
justify-content: space-between;
align-items: center;
height: 74rpx;
padding-left: 32rpx;
padding-right: 32rpx;
position: fixed;
/* 固定位置 */
left: 0;
/* 左对齐 */
right: 0;
/* 右对齐 */
bottom: 68rpx;
/* 底部对齐 */
border-top: 1px solid #ccc;
/* 上边框 */
background-color: white;
/* 背景色设置为白色,防止透明背景导致内容重叠可见 */
z-index: 10;
.elroll {
margin-left: 10rpx;
font-size: 24rpx;
color: #999999 !important;
}
}
.infox3 {
width: 100%;
height: 68rpx;
background-color: #F6F6F6;
position: fixed;
/* 固定位置 */
left: 0;
/* 左对齐 */
right: 0;
/* 右对齐 */
bottom: 0;
}
.acContentstyle {
color: #000000 !important;
font-weight: 400;
font-size: 24rpx;
text-align: left;
line-height: 46rpx;
}
.qrcode {
margin-top: 20rpx;
margin-bottom: 24rpx;
text-align: center;
.text {
font-weight: 600;
font-size: 30rpx;
color: #000000 !important;
}
}
.warp {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.infox4{
width: 686rpx;
height: 400rpx;
margin: 60rpx auto;
.line{
width: 100%;
height: 4rpx;
background-color: #F4F5F6;
border-radius: 2rpx 2rpx 2rpx 2rpx;
margin-bottom: 60rpx;
}
.text{
font-size: 30rpx;
color: #000000 !important;
}
.text1 {
margin-bottom: 24rpx;
}
.text2 {
}
}
</style>

View File

@ -50,7 +50,7 @@
handleLogout() {
this.$modal.confirm('确定注销并退出系统吗?').then(() => {
this.$store.dispatch('LogOut').then(() => {
this.$tab.reLaunch('/pages/loginInfo/login')
this.$tab.reLaunch('/pages/login')
})
})
}

View File

@ -34,18 +34,21 @@
</view>
</view>
<view class="" v-if="item.answerCommentList.length != 0">
<text v-if="!item.isDeployment" class="deploymentAnswer-text" @click="deploymentAnswer(index)">---</text>
<view v-if="item.isDeployment" class="have-comment-answer" v-for="answer in item.answerCommentList" :key="answer">
<view v-if="item.isDeployment" class="have-comment-answer" v-for="answer in item.answerCommentList.slice(0,item.answerCommentDisplayCount)" :key="answer">
<view class="flex alignCenter">
<!-- 头像 -->
<view class="have-comment-answer-avatar-container">
<u-avatar class="have-comment-answer-avatar-1" size="48rpx" :src="answer.avatar"></u-avatar>
<image v-if="answer.isOfficial" class="have-comment-answer-official-1" src="../../../static/images/icon/tu3-6.png"></image>
</view>
<view class="flex alignCenter justifyBetween">
<text class="have-comment-answer-uname">{{answer.uname}}</text>
<text v-if="answer.toUserName" class="have-comment-answer-uname">-></text>
<!-- <text v-if="answer.toUserName" class="have-comment-answer-uname">-></text> -->
<image v-if="answer.toUserName" class="have-comment-answer-uname-img" src="../../../static/images/icon/ring-1.png"></image>
<text v-if="answer.toUserName" class="have-comment-answer-uname">{{answer.toUserName}}</text>
</view>
</view>
<view class="have-comment-answer-content">
<text class="have-comment-answer-content-text-1">{{answer.content}}</text>
<view class="have-comment-answer-content-text-2">
@ -54,7 +57,21 @@
</view>
</view>
</view>
<text v-if="item.isDeployment" class="deploymentAnswer-text" @click="putAnswer(index)">---</text>
<view class="have-comment-answer-deploy flex alignCenter">
<up-line class="have-comment-answer-line" length="40rpx"></up-line>
<view class="have-comment-answer-deploy-1 flex alignCenter" v-if="!item.isDeployment">
<text class="deploymentAnswer-text" @click="deploymentAnswer(index)">{{item.answerCommentAllCount}}</text>
<image class="have-comment-answer-img-1" src="../../../static/images/icon/deployment-1.png" mode=""></image>
</view>
<view class="have-comment-answer-deploy-1 flex alignCenter" v-if="item.isDeployment && item.answerCommentDisplayCount < item.answerCommentAllCount">
<text class="deploymentAnswer-text" @click="loadMoreAnswers(index)"></text>
<image class="have-comment-answer-img-1" src="../../../static/images/icon/deployment-1.png" mode=""></image>
</view>
<view class="have-comment-answer-deploy-1 flex alignCenter" v-if="item.isDeployment">
<text class="deploymentAnswer-text" @click="putAnswer(index)"></text>
<image class="have-comment-answer-img-2" src="../../../static/images/icon/deployment-1.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
@ -79,7 +96,7 @@
<!-- <view class="flex justifyCenter"> -->
<view class="flex alignCenter justifyCenter">
<view class="flex justifyCenter alignCenter commentInput" @click="toInput()">
<image class="commentInput-img" src="../../../static/logo.png" mode=""></image>
<image class="commentInput-img-1" src="../../../static/images/icon/write-1.png" mode=""></image>
<text class="commentInput-text">友好评论~</text>
</view>
</view>
@ -93,11 +110,11 @@
<text class="commentInput-txt">{{postValue.likeCount}}</text>
</view>
<view v-if="postValue.ifFavorite" @click.stop="cancelFavorite()" class="flex alignCenter justifyCenter flexColumn">
<view v-if="postValue.ifFavorite" @click.stop="cancelFavorite()" class="flex flexColumn alignCenter justifyCenter ">
<image class="commentInput-img" src="../../../static/images/icon/tu3-2.png" mode=""></image>
<text class="commentInput-txt-favorite">{{postValue.favoriteCount}}</text>
</view>
<view v-if="!postValue.ifFavorite" @click.stop="addFavorite()" class="flex alignCenter justifyCenter flexColumn">
<view v-if="!postValue.ifFavorite" @click.stop="addFavorite()" class="flex flexColumn alignCenter justifyCenter ">
<image class="commentInput-img" src="../../../static/images/icon/tu3-1.png" mode=""></image>
<text class="commentInput-txt">{{postValue.favoriteCount}}</text>
</view>
@ -112,12 +129,13 @@
<script setup>
import { ref, reactive, computed, onMounted, onBeforeUnmount, getCurrentInstance } from 'vue';
import {onReachBottom,onLoad,onPageScroll} from "@dcloudio/uni-app";
import PostView from "@/pages/common/postview/index.vue";
const bottomVal = ref(0);
//
onMounted(async () => {
onLoad(() => {
// if (!data.value) {
uni.onKeyboardHeightChange(res => {
if(res.height == 0) {
@ -143,6 +161,9 @@
createTime: '7分钟前',
isOfficial: true,
isDeployment: false,
answerCommentAllCount: 4,
answerCommentPage: 0,
answerCommentDisplayCount: 0,
answerCommentList: [{
avatar: 'https://picx.zhimg.com/v2-02f89d05a781ffed9fd2e32654d93135_720w.jpg?source=172ae18b',
uname: '恋爱60秒',
@ -160,6 +181,24 @@
content: '你干嘛~',
toUserName: '恋爱60秒',
},
{
avatar: 'https://www.tboxn.com/wp-content/uploads/2022/11/%E5%A4%B4%E5%83%8F.png',
uname: '神奇宝贝',
createTime: '2024.05.04',
isOfficial: false,
address: '理工大学',
content: '哎呦~',
toUserName: '喜欢你没道理',
},
{
avatar: 'https://files.codelife.cc/wallhaven/full/wq/wallhaven-wqkw2r.jpg?x-oss-process=image/resize,limit_0,m_fill,w_307,h_158/quality,Q_92/format,webp',
uname: '皮卡丘',
createTime: '2024.05.04',
isOfficial: true,
address: '理工大学',
content: '要再点一下才能看到我',
toUserName: '喜欢你没道理',
},
]
},
{
@ -185,10 +224,10 @@
content: '八年前,学弟在工地上杀了一个工友,上杀了一个工友,杀人前,他给警察打了电话,预告杀人的时间和地点,和地点,并......',
type: '1',
media: [
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b',
'https://bpic.51yuansu.com/backgd/cover/00/63/09/64b52b1426fff_800.jpg?x-oss-process=image/resize,w_780/sharpen,100',
'https://tu.sioe.cn/gj/qiege/image.jpg',
'https://img1.baidu.com/it/u=1179199327,1946315836&fm=253&fmt=auto&app=138&f=JPEG?w=1364&h=800',
'https://www4.bing.com//th?id=OHR.CopenhagenBicycles_ZH-CN3047958346_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
'https://www4.bing.com//th?id=OHR.CarnavalTenerife_ZH-CN1559136778_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
'https://www4.bing.com//th?id=OHR.StJamesPool_ZH-CN5930624359_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp&w=360&h=202',
],
tab: ['学术讨论组', '校园风景'],
transmitCount: 136,
@ -254,11 +293,25 @@
const deploymentAnswer = (index) => {
postList[index].isDeployment = true;
loadMoreAnswers(index);
};
const putAnswer = (index) => {
postList[index].isDeployment = false;
postList[index].answerCommentDisplayCount = 0;
postList[index].answerCommentPage = 0;
};
const loadMoreAnswers = (index) => {
const increment = 3; //
const comment = postList[index];
if (comment.answerCommentDisplayCount + increment <= comment.answerCommentAllCount) {
comment.answerCommentDisplayCount += increment;
} else {
comment.answerCommentDisplayCount = comment.answerCommentAllCount; //
}
};
</script>
<style lang="scss">
@ -347,8 +400,14 @@ page{
}
.commentInput-img{
width: 40rpx;
height: 40rpx;
width: 36rpx;
height: 36rpx;
// margin-right: 12rpx;
}
.commentInput-img-1{
width: 36rpx;
height: 36rpx;
margin-right: 12rpx;
}
.commentInput-text{
@ -483,7 +542,6 @@ page{
}
.deploymentAnswer-text{
margin-left: 80rpx;
font-weight: 400;
font-size: 24rpx;
color: #999999;
@ -527,5 +585,37 @@ page{
font-size: 28rpx;
color: #FFFFFF;
}
.have-comment-answer-deploy{
margin-top: 30rpx;
margin-left: 80rpx;
}
.have-comment-answer-line{
}
.have-comment-answer-img-1{
width: 26rpx;
height: 14rpx;
margin-left: 12rpx;
}
.have-comment-answer-img-2{
width: 26rpx;
height: 14rpx;
margin-left: 12rpx;
transform: scaleY(-1);
}
.have-comment-answer-deploy-1{
margin-left: 12rpx;
margin-right: 130rpx;
}
.have-comment-answer-uname-img{
width: 14rpx;
height: 24rpx;
margin: 0 8rpx;
}
</style>

View File

@ -111,6 +111,7 @@
registerSuccess(result) {
//
this.$store.dispatch('GetInfo').then(res => {
this.$store.dispatch('GetUserInfo');
this.$tab.reLaunch('/pages/index')
})
}

View File

@ -7,11 +7,11 @@
<view class="sousuoBox1 flex alignCenter justifyBetween">
<view class="sousuoBox flex alignCenter justifyBetween">
<view class="souBOx flex alignCenter justifyBetween" >
<image src="../static/images/icon/tu2-2.png" class="img3"></image>
<image src="../../static/images/icon/tu2-2.png" class="img3"></image>
<!-- <view class="shuruText">在食堂捡到一张饭卡</view> -->
<input v-model="keyword" @input="toContent" @confirm="onSearch" class="shuruText" :placeholder="placeholderText" type="text">
</view>
<image @click.stop="toScanCode" src="../static/images/icon/tu2-3.png" class="img4"></image>
<image @click.stop="toScanCode" src="../../static/images/icon/tu2-3.png" class="img4"></image>
</view>
<view class="category-dropdown flex alignCenter">
<text class="text1 flex alignCenter" @click="onSearch"></text>
@ -22,7 +22,7 @@
<view class="history" v-if="!noHistortOpen">
<view class="history-top">
<view class="history-title">搜索历史</view>
<image src="../static/images/icon/tu3-4.png" class="history-icon" @click="clearHistory"></image>
<image src="../../static/images/icon/tu3-4.png" class="history-icon" @click="clearHistory"></image>
</view>
<view class="history-center">
<view v-for="(item, index) in historyList" :key="index" class="history-item">
@ -33,7 +33,7 @@
<!-- 无内容 -->
<view v-else>
<view class="noContent">
<image src="../static/images/icon/tu4-9.png" class="img6"></image>
<image src="../../static/images/icon/tu4-9.png" class="img6"></image>
<view class="noContentText">没有找到相关内容奥,换个词试试吧!</view>
</view>
</view>

View File

@ -1,19 +1,159 @@
<template class="content">
<view class="fixed-header">
外卖
<template>
<view class="work-container">
<!-- 轮播图 -->
<uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
<swiper-item v-for="(item, index) in data" :key="index">
<view class="swiper-item" @click="clickBannerItem(item)">
<image class="w-full" :src="item.image" mode="aspectFill" :draggable="false" />
</view>
</swiper-item>
</swiper>
</uni-swiper-dot>
<!-- 宫格组件 -->
<uni-section title="系统管理" type="line"></uni-section>
<view class="grid-body">
</view>
<view>
<up-button type="primary" text="待审核" size @click="clickBannerItem(1)"></up-button>
<up-button type="primary" text="发布成功" size @click="clickBannerItem(2)"></up-button>
<up-button type="primary" text="审核失败" size @click="clickBannerItem(3)"></up-button>
</view>
<fileUpload v-model="fileList1" :fileTypeInfo="fileTypeInfo1">
</fileUpload>
<fileUpload v-model="fileList1" :fileTypeInfo="fileTypeInfo2">
</fileUpload>
<view class="album" v-for="(item, index) in fileList1" :key="index">
<view class="album__avatar">
<image :src="QNDomain + item.furl" mode="" style="width: 32px;height: 32px;"></image>
</view>
</view>
</view>
</template>
<script setup>
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/activityInfo/info";
import ActiInfoList from '../common/activityList/index.vue'
import { onShow, onLoad ,onPullDownRefresh} from '@dcloudio/uni-app'
import { getDicts } from "@/api/system/dict/data"
import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
import fileUpload from './../common/file/fileUpload/index.vue'
import { ref, reactive, getCurrentInstance } from 'vue'
import { useStore } from 'vuex';
import { func } from "uview-plus/libs/function/test";
const { proxy } = getCurrentInstance();
const store = useStore();
const fileTypeInfo1 = ref("image")
const fileTypeInfo2 = ref("video")
const QNDomain = store.state.user.QNDomain
const current = ref(0)
const swiperDotIndex = ref(0)
const data = ref([{
image: '/static/images/banner/banner01.jpg'
},
{
image: '/static/images/banner/banner02.jpg'
},
{
image: '/static/images/banner/banner03.jpg'
}
])
const fileList1 = ref([])
function clickBannerItem(item) {
if(item === 1){
proxy.$tab.navigateTo('/pages/common/talkState/audit')
}
if(item === 2){
proxy.$tab.navigateTo('/pages/common/talkState/publish')
}
if(item === 3){
proxy.$tab.navigateTo('/pages/common/talkState/auditFailure')
}
}
function changeSwiper(e) {
current.value = e.detail.current
}
</script>
<style lang="scss">
<style lang="scss">
/* #ifndef APP-NVUE */
page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #fff;
min-height: 100%;
height: auto;
}
view {
font-size: 14px;
line-height: inherit;
}
/* #endif */
.text {
text-align: center;
font-size: 26rpx;
margin-top: 10rpx;
}
.grid-item-box {
flex: 1;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px 0;
}
.uni-margin-wrap {
width: 690rpx;
width: 100%;
}
.swiper {
height: 300rpx;
}
.swiper-box {
height: 150px;
}
.swiper-item {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
height: 300rpx;
line-height: 300rpx;
}
@media screen and (min-width: 500px) {
.uni-swiper-dot-box {
width: 400px;
/* #ifndef APP-NVUE */
margin: 0 auto;
/* #endif */
margin-top: 8px;
}
.image {
width: 100%;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -7,7 +7,7 @@ import defaultAvatar from "@/static/images/profile.jpg";
import { ref } from 'vue';
const baseUrl = config.baseUrl;
const user = {
const userInfo = {
state: {
birthday: storage.get(constant.birthday) /** 生日 */,
doingsStatus: storage.get(constant.doingsStatus) /** 活动发布权限(0没有1有) */,
@ -21,48 +21,78 @@ const user = {
infoRank: storage.get(constant.infoRank) /** 用户等级 */,
infoCoin: storage.get(constant.infoCoin) /** 虚拟币数量 */,
infoActive: storage.get(constant.infoActive) /** 活跃度 */,
remark: storage.get(constant.remark) /** 简介 */,
infoAssist: storage.get(constant.infoAssist) /** 获赞 */,
followCount: storage.get(constant.followCount) /** 关注 */,
fanCount: storage.get(constant.fanCount) /** 粉丝 */,
remark: storage.get(constant.remark) /** 签名 */,
},
mutations: {
SET_BIRTHDAY: (state, birthday) => {
state.birthday = birthday;
storage.set(constant.birthday, birthday);
},
SET_doingsStatus: (state, doingsStatus) => {
state.doingsStatus = doingsStatus;
storage.set(constant.doingsStatus, doingsStatus);
},
SET_infoName: (state, infoName) => {
state.infoName = infoName;
storage.set(constant.infoName, infoName);
},
SET_infoSchool: (state, infoSchool) => {
state.infoSchool = infoSchool;
storage.set(constant.infoSchool, infoSchool);
},
SET_infoDepartment: (state, infoDepartment) => {
state.infoDepartment = infoDepartment;
storage.set(constant.infoDepartment, infoDepartment);
},
SET_infoGrade: (state, infoGrade) => {
state.infoGrade = infoGrade;
storage.set(constant.infoGrade, infoGrade);
},
SET_infoCode: (state, infoCode) => {
state.infoCode = infoCode;
storage.set(constant.infoCode, infoCode);
},
SET_infoDocument: (state, infoDocument) => {
state.infoDocument = infoDocument;
storage.set(constant.infoDocument, infoDocument);
},
SET_auditInfo: (state, auditInfo) => {
state.auditInfo = auditInfo;
storage.set(constant.auditInfo, auditInfo);
},
SET_infoRank: (state, infoRank) => {
state.infoRank = infoRank;
storage.set(constant.infoRank, infoRank);
},
SET_infoCoin: (state, infoCoin) => {
state.infoCoin = infoCoin;
storage.set(constant.infoCoin, infoCoin);
},
SET_infoActive: (state, infoActive) => {
state.infoActive = infoActive;
storage.set(constant.infoActive, infoActive);
},
SET_infoAssist: (state, infoAssist) => {
state.infoAssist = infoAssist;
storage.set(constant.infoAssist, infoAssist);
},
SET_followCount: (state, followCount) => {
state.followCount = followCount;
storage.set(constant.followCount, followCount);
},
SET_fanCount: (state, fanCount) => {
state.fanCount = fanCount;
storage.set(constant.fanCount, fanCount);
},
SET_remark: (state, remark) => {
state.remark = remark;
storage.set(constant.remark, remark);
},
},
@ -73,8 +103,6 @@ const user = {
getUserInfo()
.then((res) => {
const userInfo = res.data;
console.log("res", res);
const infoDocument = ref([]);
infoDocument.value =
userInfo == null ||
@ -83,6 +111,7 @@ const user = {
? defaultAvatar
: userInfo.infoDocument;
if (userInfo) {
console.log("userInfo:",userInfo);
commit("SET_BIRTHDAY", userInfo.birthday);
commit("SET_doingsStatus", userInfo.doingsStatus);
commit("SET_infoName", userInfo.infoName);
@ -95,6 +124,9 @@ const user = {
commit("SET_infoRank", userInfo.infoRank);
commit("SET_infoCoin", userInfo.infoCoin);
commit("SET_infoActive", userInfo.infoActive);
commit("SET_infoAssist", userInfo.infoAssist);
commit("SET_followCount", userInfo.followCount);
commit("SET_fanCount", userInfo.fanCount);
commit("SET_remark", userInfo.remark);
}
@ -108,4 +140,4 @@ const user = {
},
};
export default user;
export default userInfo;

View File

@ -1,8 +1,30 @@
const constant = {
avatar: 'vuex_avatar',
name: 'vuex_name',
roles: 'vuex_roles',
permissions: 'vuex_permissions'
}
avatar: "vuex_avatar",
name: "vuex_name",
roles: "vuex_roles",
permissions: "vuex_permissions",
nickName: "vuex_nickName",
// userInfo
sex: "vuex_sex",
QNDomain: "vuex_QNDomain",
phoneType: "vuex_phoneType",
// userInfo
birthday: "vuex_birthday",
doingsStatus: "vuex_doingsStatus",
infoName: "vuex_infoName",
infoSchool: "vuex_infoSchool",
infoDepartment: "vuex_infoDepartment",
infoGrade: "vuex_infoGrade",
infoCode: "vuex_infoCode",
infoDocument: "vuex_infoDocument",
auditInfo: "vuex_auditInfo",
infoRank: "vuex_infoRank",
infoCoin: "vuex_infoCoin",
infoActive: "vuex_infoActive",
infoAssist: "vuex_infoAssist",
followCount: "vuex_followCount",
fanCount: "vuex_fanCount",
remark: "vuex_remark",
};
export default constant
export default constant;

13
utils/dict.js Normal file
View File

@ -0,0 +1,13 @@
import { ref } from 'vue'
import store from '@/store'
import { getDicts } from "@/api/system/dict/data"
const sex_dict = ref([])
export const getDictLabelByValue = (dictInfo, state) => {
return getDicts(dictInfo).then(e => {
const dict = e.data.find((dict) => dict.dictValue === state);
return dict ? dict : '未知状态';
});
};

View File

@ -7,6 +7,8 @@ const tu21 = ref(QNDomain + "home/icon/image/png/tu2-1_20240531153239639.png")
const tu22 = ref(QNDomain + "home/icon/image/png/tu2-2_20240531163115818.png")
//定位
const tu51 = ref(QNDomain + "home/icon/image/png/tu5-1_20240601124004353.png")
const tu51addres = ref(QNDomain + "home/icon/image/png/addres_20240609145253989.png")
const tu512 = ref(QNDomain + "home/icon/image/png/tu5-1-2_20240605120128566.png")
//开始
const tu52 = ref(QNDomain + "home/icon/image/png/tu5-2_20240601124010403.png")
@ -14,6 +16,8 @@ const tu522 = ref(QNDomain + "home/icon/image/png/tu5-2-2_20240605120128561.png"
//结束
const tu53 = ref(QNDomain + "home/icon/image/png/tu5-3_20240601124016641.png")
const tu532 = ref(QNDomain + "home/icon/image/png/tu5-3-2_20240605120128565.png")
//V
const tu36 = ref(QNDomain + "home/icon/image/png/tu3-6_20240609144044085.png")
const tu23 = ref(QNDomain + "home/icon/image/png/tu2-3_20240602093303793.png")
@ -34,6 +38,8 @@ const sb2x1 = ref(QNDomain + "home/icon/image/png/审核失败@2x1_2024060510110
//+背景图
const bjt = ref(QNDomain + "home/icon/image/png/bjtu_20240608121940341.png");
const bjt2 = ref(QNDomain + "home/icon/image/png/minebackpng2_20240608144208172.png");
//修改
const mupdate = ref(QNDomain + "home/icon/image/png/mineupdate_20240609132053217.png");
//+更多
const gd11 = ref(QNDomain + "home/icon/image/png/gd11_20240608080819017.png");
@ -58,13 +64,13 @@ const hd14 = ref(QNDomain + "home/icon/image/png/hd14_20240608080819057.png");
const hd15 = ref(QNDomain + "home/icon/image/png/hd15_20240608080819068.png");
export default {
tu21,tu22,tu23,tu2x,
tu51,tu52,tu53,tu512,tu522,tu532,
tu51,tu51addres,tu52,tu53,tu512,tu522,tu532,tu36,
sh2x,sh2x1,
cg2x21,cg2x22,
sb2x,sb2x1,
//我的界面
bjt,bjt2,
bjt,bjt2,mupdate,
gd11,gd12,gd13,gd14,gd21,gd22,gd23,gd24,
ht11,ht12,ht13,ht14,ht15,
hd11,hd12,hd13,hd14,hd15,

View File

@ -4,7 +4,32 @@ import constant from './constant'
let storageKey = 'storage_data'
// 存储节点变量名
let storageNodeKeys = [constant.avatar, constant.name, constant.roles, constant.permissions]
let storageNodeKeys = [
constant.avatar,
constant.nickName,
constant.sex,
constant.QNDomain,
constant.phoneType,
// userInfo
constant.birthday,
constant.doingsStatus,
constant.infoName,
constant.infoSchool,
constant.infoDepartment,
constant.infoGrade,
constant.infoCode,
constant.infoDocument,
constant.auditInfo,
constant.infoRank,
constant.infoCoin,
constant.infoActive,
constant.infoAssist,
constant.followCount,
constant.fanCount,
constant.remark,
constant.name, constant.roles, constant.permissions]
const storage = {
set: function(key, value) {