diff --git a/api/activityInfo/activityTakeInfo.js b/api/activityInfo/activityTakeInfo.js
new file mode 100644
index 0000000..2798ad7
--- /dev/null
+++ b/api/activityInfo/activityTakeInfo.js
@@ -0,0 +1,74 @@
+import request from '@/utils/request'
+
+// 查询活动参与表列表
+export function listActivityTakeInfo(query) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询活动参与表详细
+export function getActivityTakeInfo(id) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/' + id,
+ method: 'get'
+ })
+}
+
+// 查询活动参与表详细
+export function getTakePartsInfoByacId(id) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/ByacId/' + id,
+ method: 'get'
+ })
+}
+// 新增活动参与表
+export function addActivityTakeInfo(data) {
+ return request({
+ url: '/activityInfo/activityTakeInfo',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改活动参与表
+export function updateActivityTakeInfo(data) {
+ return request({
+ url: '/activityInfo/activityTakeInfo',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除活动参与表
+export function delActivityTakeInfo(id) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/' + id,
+ method: 'delete'
+ })
+}
+
+// 报名
+export function gotoSing1(id) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/goSing1/' + id,
+ method: 'get'
+ })
+}
+// 取消报名
+export function gotoSing2(id) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/goSing2/' + id,
+ method: 'get'
+ })
+}
+// 签到
+export function gotoQrcode(data) {
+ return request({
+ url: '/activityInfo/activityTakeInfo/goQrcode',
+ method: 'put',
+ data: data
+ })
+}
diff --git a/api/activityInfo/info.js b/api/activityInfo/info.js
index d1e0d7e..4657952 100644
--- a/api/activityInfo/info.js
+++ b/api/activityInfo/info.js
@@ -12,7 +12,7 @@ export function listInfo(query) {
// 查询活动详情详细
export function getInfo(id) {
return request({
- url: '/activityInfo/info/' + id,
+ url: '/activityInfo/info/app/' + id,
method: 'get'
})
}
diff --git a/main.js b/main.js
index fcae548..08620ce 100644
--- a/main.js
+++ b/main.js
@@ -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'
+
// main.js
import uviewPlus from 'uview-plus'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
diff --git a/pages.json b/pages.json
index 1900eef..fb27b92 100644
--- a/pages.json
+++ b/pages.json
@@ -7,8 +7,36 @@
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
}
},
+<<<<<<< HEAD
"pages": [{
"path": "pages/Friend/violationreporting",
+=======
+ "pages": [
+ {
+ "path": "pages/index",
+ "style": {
+ "navigationBarTitleText": "若依移动端框架",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path" : "pages/post/postInfo/postInfo",
+ "style" :
+ {
+ "navigationBarTitleText" : "话题详情"
+ }
+ },
+ {
+ "path" : "pages/post/postPublish/postPublish",
+ "style" :
+ {
+ "navigationBarTitleText" : "发布话题"
+ }
+ },
+ {
+ "path": "pages/signln/harvestaddress",
+>>>>>>> fc6726a74b5811cc7e918233ea3a847aadb88d7d
"style": {
"navigationBarTitleText": "违规举报",
"navigationStyle": "custom"
@@ -52,11 +80,18 @@
}
},
{
+<<<<<<< HEAD
"path": "pages/index",
"style": {
"navigationBarTitleText": "若依移动端框架",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
+=======
+ "path": "pages/signln/signid",
+ "style": {
+ "navigationBarTitleText": "签到任务",
+ "navigationStyle": "custom"
+>>>>>>> fc6726a74b5811cc7e918233ea3a847aadb88d7d
}
},
{
@@ -280,4 +315,4 @@
"navigationBarTitleText": "RuoYi",
"navigationBarBackgroundColor": "#FFFFFF"
}
-}
\ No newline at end of file
+}
diff --git a/pages/activity/index.vue b/pages/activity/index.vue
index 038c2fd..ab202f3 100644
--- a/pages/activity/index.vue
+++ b/pages/activity/index.vue
@@ -40,10 +40,10 @@
-
+
-
+
@@ -52,7 +52,7 @@ import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/activityI
import ActiInfoList from '../common/activityList/index.vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { getDicts } from "@/api/system/dict/data"
-import { ref, reactive, getCurrentInstance,toRefs } from 'vue'
+import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
import { useStore } from 'vuex';
const { proxy } = getCurrentInstance();
const iconConfig = proxy.iconConfig;
@@ -75,92 +75,94 @@ const list4 = reactive([
]);
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" }
- ],
- }
+ 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" }
+ ],
+ }
});
const { queryParams, form, rules } = toRefs(data);
// 表单重置
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");
+ 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");
}
/** 查询活动详情列表 */
function getList() {
- queryParams.value.params = {};
+ queryParams.value.params = {};
- listInfo(queryParams.value).then(response => {
- console.log(response);
- actiInfoList.value = response.rows;
- total.value = response.total;
- });
+ listInfo(queryParams.value).then(response => {
+ actiInfoList.value = response.rows;
+ response.rows.forEach(item => {
+ actiInfoList.value.push(item)
+ })
+ total.value = response.total;
+ });
}
onLoad((options) => {
getList();
@@ -170,15 +172,31 @@ onShow(() => {
console.log('Page onShow')
})
-const scrolltolower = () => {
- console.log("scrolltolower");
- actiInfoList.value.push({
- title: '怎么评论爱德华·艾尔加这位音乐家及其他的作品,欢迎大家发表自己的看法?',
- startTime: '2023-05-01 15:00',
- endTime: '2023-05-01 16:00',
- state: '2',
- addrs: '天津电子信息职业技术学院操场东面'
- })
+// 在data中添加isLoading标志
+const isLoading = ref(false);
+
+const scrolltolower = async () => {
+ // 检查是否还有更多数据可以加载
+ if (queryParams.value.pageNum * queryParams.value.pageSize < total.value) {
+ // 防止在数据加载时重复触发
+ if (isLoading.value) return;
+ isLoading.value = true;
+
+ queryParams.value.pageNum += 1;
+ try {
+ const response = await listInfo(queryParams.value);
+ // 使用Array.prototype.push.apply将新数据追加到actiInfoList中
+ Array.prototype.push.apply(actiInfoList.value, response.rows);
+ console.log(actiInfoList.value);
+ } catch (error) {
+ console.error("加载更多数据时发生错误:", error);
+ } finally {
+ isLoading.value = false;
+ }
+ } else {
+ // 可以在这里处理没有更多数据的情况,例如显示提示信息
+ console.log("没有更多数据了");
+ }
};
@@ -190,10 +208,7 @@ function toESearch() {
\ No newline at end of file
diff --git a/pages/activity/publish.vue b/pages/activity/publish.vue
index ce439eb..7ce6fbd 100644
--- a/pages/activity/publish.vue
+++ b/pages/activity/publish.vue
@@ -1,82 +1,94 @@
-
-
发布活动
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- 请选择活动开始时间
- {{parseTime(StartTime, '{y}-{m}-{d} {h}:{i}:{s}')}}
-
-
-
-
-
-
-
- 请选择活动结束时间
- {{parseTime(EndTime, '{y}-{m}-{d} {h}:{i}:{s}')}}
-
-
-
-
-
-
-
- 添加活动具体位置
-
-
-
-
+ placeholderStyle="color: #c0c0c0;font-size: 30rpx; background:none;">
+
+
+
+
+
+
+
-
- 发布
-
- 存草稿
-
+
+
+
+
+
+
+
+
+ 请选择活动开始时间
+
+
+
+
+
+
+
+
+
+ 请选择活动结束时间
+
+
+
+
+
+
+
+
+ 添加活动具体位置
+
+
+
+
+
+
+
+ 发布
+
+ 存草稿
+
+
+
\ No newline at end of file
+
diff --git a/pages/common/commentArea/commentArea.vue b/pages/common/commentArea/commentArea.vue
new file mode 100644
index 0000000..e69de29
diff --git a/pages/common/file/fileUpload/index.vue b/pages/common/file/fileUpload/index.vue
index cf0b6b0..72a9130 100644
--- a/pages/common/file/fileUpload/index.vue
+++ b/pages/common/file/fileUpload/index.vue
@@ -104,7 +104,7 @@ const afterRead = async (event) => {
url: store.state.user.QNDomain + result,
furl: result
});
- emit("update:modelValue", fileList1.value);
+ emit("update:modelValue", listToString(fileList1.value));
fileListLen++;
} catch (error) {
console.error("上传失败:", error);
@@ -219,7 +219,7 @@ const typeInfo = () => {
separator = separator || ",";
for (let i in list) {
if (list[i].url) {
- strs += list[i].url + separator;
+ strs += list[i].furl + separator;
}
}
return strs != '' ? strs.substr(0, strs.length - 1) : '';
diff --git a/pages/common/postview/index.vue b/pages/common/postview/index.vue
index ced057d..09b93c2 100644
--- a/pages/common/postview/index.vue
+++ b/pages/common/postview/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -18,8 +18,8 @@
- 关注
- 已关注
+ 关注
+ 已关注
{{postValue.title}}
@@ -29,7 +29,7 @@
+ @tap.stop="previewImage(postValue.media[0], postValue.media)">
@@ -62,7 +62,7 @@
- {{ postValue.likeCount }}
+ {{ postValue.likeCount }}
@@ -80,7 +80,7 @@
- {{ postValue.favoriteCount }}
+ {{ postValue.favoriteCount }}
@@ -91,7 +91,6 @@
-
@@ -128,6 +127,13 @@
// favoriteCount: 136
// }
// );
+ const { proxy } = getCurrentInstance();
+ const toPostInfoView = () => {
+ if(props.postViewType == 1) {
+ return;
+ }
+ proxy.$tab.navigateTo('/pages/post/postInfo/postInfo')
+ }
const previewImage = (url, urls) => {
uni.previewImage({
@@ -170,7 +176,7 @@
.center-content-post {
}
.center-content-post-padding {
- padding: 46rpx 32rpx;
+ padding: 46rpx 32rpx 28rpx 32rpx;
}
.center-content-post-head {
display: flex;
@@ -238,7 +244,7 @@
font-weight: 400;
/* width: 670rpx; */
// height: 80rpx;
- font-size: 32rpx;
+ font-size: 30rpx;
text-align: left;
color: #333333;
margin-top: 18rpx;
@@ -253,7 +259,7 @@
font-weight: 400;
/* width: 670rpx; */
// height: 80rpx;
- font-size: 32rpx;
+ font-size: 30rpx;
text-align: left;
color: #333333;
margin-top: 18rpx;
@@ -278,11 +284,12 @@
.center-content-post-tab{
margin-top: 20rpx;
- margin-bottom: 20rpx;
+ // margin-bottom: 20rpx;
}
.post-list-bottom {
+ margin-top: 20rpx;
display: flex;
justify-content: center; /* 水平居中 */
}
@@ -326,6 +333,30 @@
margin-left: 10rpx;
}
+ .count-like{
+ font-weight: 400;
+ width: 48rpx;
+ /* height: 23rpx; */
+ font-size: 28rpx;
+ text-align: left;
+ color: #FA3939;
+ margin-left: 10rpx;
+ }
+
+ .count-favorite{
+ font-weight: 400;
+ width: 48rpx;
+ /* height: 23rpx; */
+ font-size: 28rpx;
+ text-align: left;
+ color: #FFC729;
+ margin-left: 10rpx;
+ }
+
+ .avatar-container {
+ position: relative;
+ }
+
.avatar-1 {
position: relative;
}
diff --git a/pages/common/talkState/publish.vue b/pages/common/talkState/publish.vue
index 05c9713..703b150 100644
--- a/pages/common/talkState/publish.vue
+++ b/pages/common/talkState/publish.vue
@@ -39,7 +39,10 @@ const bgColor = ref('');
bgColor.value = 'rgba(170, 0, 0, 0)'
const leftClick = () => {
- proxy.$tab.navigateBack(1)
+ proxy.$tab.switchTab("/pages/index")
+}
+const publish = () => {
+ proxy.$tab.switchTab("/pages/index")
}
+
diff --git a/pages/post/postPublish/postPublish.vue b/pages/post/postPublish/postPublish.vue
new file mode 100644
index 0000000..4960278
--- /dev/null
+++ b/pages/post/postPublish/postPublish.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加话题(最多可添加2条)
+
+
+
+
+
+
+ 添加定位
+
+
+
+
+
+ 发布
+
+ 存草稿
+
+
+
+
+
\ No newline at end of file
diff --git a/static/images/icon/no_comment.png b/static/images/icon/no_comment.png
new file mode 100644
index 0000000..61ff8a6
Binary files /dev/null and b/static/images/icon/no_comment.png differ
diff --git a/static/images/icon/no_comment@2x.png b/static/images/icon/no_comment@2x.png
new file mode 100644
index 0000000..ebd0798
Binary files /dev/null and b/static/images/icon/no_comment@2x.png differ