diff --git a/config.js b/config.js
index c724aeb..1692a89 100644
--- a/config.js
+++ b/config.js
@@ -4,8 +4,8 @@ export default {
uploadQiNiuDomain: 'https://upload-z2.qiniup.com',
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
// baseUrl: 'http://47.93.242.168:8080',
- baseUrl: 'http://47.93.242.168:8080',
- // baseUrl: 'http://localhost:8080',
+ // baseUrl: 'http://47.93.242.168:8080',
+ baseUrl: 'http://localhost:8080',
// 应用信息
appInfo: {
// 应用名称
diff --git a/main.js b/main.js
index c6877c5..3ff3274 100644
--- a/main.js
+++ b/main.js
@@ -12,6 +12,7 @@ export function createApp() {
app.config.globalProperties.iconConfig = iconConfig
app.use(uviewPlus)
app.use(store)
+
// app.use(uView)
install(app)
return {
diff --git a/package.json b/package.json
index 7cf09d4..0927339 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"dayjs": "^1.11.11",
"qiniu": "^7.12.0",
"qiniu-js": "^3.4.2",
+ "quill": "^1.3.7",
"uview-plus": "^3.2.15"
}
}
diff --git a/pages.json b/pages.json
index 11922a4..906021f 100644
--- a/pages.json
+++ b/pages.json
@@ -8,9 +8,6 @@
}
},
"pages": [
-
-
-
{
"path": "pages/index",
"style": {
@@ -19,16 +16,67 @@
"navigationBarTextStyle": "white"
}
},
-
+ {
+ "path" : "pages/signln/signid",
+ "style" :
+ {
+ "navigationBarTitleText" : "签到任务",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/signln/signiddetails",
"style": {
"navigationBarTitleText": "签到明细",
"navigationStyle": "custom"
}
-
+
},
-
+ {
+ "path" : "pages/signln/exchangemall",
+ "style" :
+ {
+ "navigationBarTitleText" : "兑换商城",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "pages/signln/exdetail",
+ "style" :
+ {
+ "navigationBarTitleText" : "兑换商城详情",
+ "navigationStyle": "custom"
+ }
+ },
+
+
+ {
+ "path": "pages/common/talkState/publish",
+ "style": {
+ "navigationBarTitleText": "发布活动",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/common/talkState/audit",
+ "style": {
+ "navigationBarTitleText": "审核中",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/common/talkState/auditFailure",
+ "style": {
+ "navigationBarTitleText": "审核不通过",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white"
+ }
+ },
+
+
+
{
"path": "pages/loginInfo/login",
@@ -58,6 +106,14 @@
"navigationBarTextStyle": "white"
}
}
+ , {
+ "path": "pages/activity/publish",
+ "style": {
+ "navigationBarTitleText": "发布活动",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "white"
+ }
+ }
, {
"path": "pages/work/index",
"style": {
diff --git a/pages/Friend/addfruebd.vue b/pages/Friend/addfruebd.vue
new file mode 100644
index 0000000..24e0486
--- /dev/null
+++ b/pages/Friend/addfruebd.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/Friend/messagenotification.vue b/pages/Friend/messagenotification.vue
new file mode 100644
index 0000000..2c70a35
--- /dev/null
+++ b/pages/Friend/messagenotification.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/activity/publish.vue b/pages/activity/publish.vue
new file mode 100644
index 0000000..e1c92e0
--- /dev/null
+++ b/pages/activity/publish.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+ 发布活动
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择活动开始时间
+
+
+
+
+
+ 请选择活动结束时间
+
+
+
+
+
+ 添加活动具体位置
+
+
+
+
+
+ 发布
+
+ 存草稿
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/activityList/index.vue b/pages/common/activityList/index.vue
index 604a63d..05f81c7 100644
--- a/pages/common/activityList/index.vue
+++ b/pages/common/activityList/index.vue
@@ -43,6 +43,12 @@ import { useStore } from 'vuex';
const emit = defineEmits(['scrolltolower']);
const { proxy } = getCurrentInstance();
+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 props = defineProps({
modelValue: Array
});
diff --git a/pages/common/file/fileUpload/index.vue b/pages/common/file/fileUpload/index.vue
index 05079d9..b881eb6 100644
--- a/pages/common/file/fileUpload/index.vue
+++ b/pages/common/file/fileUpload/index.vue
@@ -113,6 +113,7 @@ const afterRead = async (event) => {
};
const uploadFilePromise = async (fileInfo1, name) => {
+ console.log("fileInfo1:",fileInfo1);
// 主要目的的拼名字,大小,类型
let fileNameOld = [0, 1];
if (fileInfo1.name !== undefined) {
@@ -122,12 +123,14 @@ const uploadFilePromise = async (fileInfo1, name) => {
fileInfo.name = fileNameOld[0] + "_" + store.state.user.phoneType + "_" + name;
let extension1 = fileInfo1.url.split('.');
+
// 防止 h5 报错
- if (extension1[1] == null) {
- extension1[1] = fileNameOld[1];
+ if (extension1[1] === undefined) {
+ extension1[1] = fileNameOld[fileNameOld.length-1]; //保证取最后一个
}
//主要是为了拼接文件type(video/mp4),因为各端传入的type各有不同
- fileInfo.type = fileInfo1.type + "/" + extension1[1];
+ fileInfo.type = fileInfo1.type + "/" + extension1[extension1.length-1];
+ console.log("fileInfo.type:",fileInfo);
fileInfo.extension = extension1[1];
try {
const tokenData = await getQNtoken(fileInfo);
diff --git a/pages/common/navbar/navbar.css b/pages/common/navbar/navbar.css
new file mode 100644
index 0000000..ccc2f35
--- /dev/null
+++ b/pages/common/navbar/navbar.css
@@ -0,0 +1,13 @@
+:deep(.uni-nav-bar-text.data-v-26544265) {
+ font-size: 36rpx;
+ font-weight: 600;
+}
+
+:deep(.uni-icons) {
+ font-family: uniicons;
+ text-decoration: none;
+ text-align: center;
+ width: 31rpx;
+ height: 44rpx;
+ line-height: 44rpx;
+}
\ No newline at end of file
diff --git a/pages/common/navbar/navbar_nead.vue b/pages/common/navbar/navbar_nead.vue
new file mode 100644
index 0000000..b5d4786
--- /dev/null
+++ b/pages/common/navbar/navbar_nead.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/talkState/audit.vue b/pages/common/talkState/audit.vue
new file mode 100644
index 0000000..91ad993
--- /dev/null
+++ b/pages/common/talkState/audit.vue
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/talkState/auditFailure.vue b/pages/common/talkState/auditFailure.vue
new file mode 100644
index 0000000..91ad993
--- /dev/null
+++ b/pages/common/talkState/auditFailure.vue
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/talkState/publish.vue b/pages/common/talkState/publish.vue
new file mode 100644
index 0000000..1e6d523
--- /dev/null
+++ b/pages/common/talkState/publish.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+ 发布话题
+
+
+
+
+
+
+
+ 待审核
+
+
+ 继续发布
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index cd8692f..16aa43b 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -10,7 +10,7 @@
- {{item}}
+ {{item.lable}}
@@ -56,7 +56,7 @@
{{item.uname}}
-
+
@@ -68,14 +68,14 @@
-
+
-
+
-
+
全部类目
-
+
-
+
点击选择类目,仅可选择一个
-
-
+
+
-
-
+
+
-
+
@@ -132,7 +132,7 @@ import { ref, reactive, onMounted, getCurrentInstance } from 'vue';
import {onReachBottom,onLoad} from "@dcloudio/uni-app";
import PostView from "@/pages/common/postview/index.vue";
-
+
const { proxy } = getCurrentInstance();
onReachBottom(() => {
console.log('触底了')
@@ -326,7 +326,6 @@ import PostView from "@/pages/common/postview/index.vue";
-
\ No newline at end of file
diff --git a/pages/signln/exdetail.vue b/pages/signln/exdetail.vue
new file mode 100644
index 0000000..9e300d0
--- /dev/null
+++ b/pages/signln/exdetail.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/signln/signid.vue b/pages/signln/signid.vue
new file mode 100644
index 0000000..c4dc29a
--- /dev/null
+++ b/pages/signln/signid.vue
@@ -0,0 +1,451 @@
+
+
+
+
+
+
+ 签到明细
+
+
+
+
+ {{count}}
+ 校园币
+
+
+
+ 我的校园币
+
+
+
+
+
+
+
+
+
+
+ 已连续签到1天
+
+
+
+
+
+
+ 记得去商城兑换礼物奥!
+
+
+
+
+
+ -
+
+
+
+ 12日
+
+
+ -
+
+
+
+ 12日
+
+
+ -
+
+
+
+ 12日
+
+
+ -
+
+
+
+ 12日
+
+
+ -
+
+
+
+ 12日
+
+ -
+
+
+
+ 12日
+
+
+
+
+
+
+
+
+
+
+
+
+ 签到任务
+
+
+
+
+ {{item.type}}
+
+
+ {{item.title}}
+
+
+ {{item.count}}
+
+
+ {{item.content.title}}
+ {{item.content.count}}
+ {{item.content.cuent}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/signln/signiddetails.vue b/pages/signln/signiddetails.vue
index ca62781..d3c9c96 100644
--- a/pages/signln/signiddetails.vue
+++ b/pages/signln/signiddetails.vue
@@ -1,6 +1,7 @@
+
-
+
@@ -20,6 +21,7 @@
reactive,
ref
} from "vue"
+ let leftIcon = ref("../../static/images/sign/return.png")
let arr = reactive([{
id: 1,
text: "每日签到",
@@ -79,7 +81,10 @@
height: 44rpx;
line-height: 44rpx;
}
-
+
+ *{
+ background-color: #ffffff;;
+ }
.content {
margin-left: 32rpx;
diff --git a/pages/signln/to.js b/pages/signln/to.js
new file mode 100644
index 0000000..dc5a4db
--- /dev/null
+++ b/pages/signln/to.js
@@ -0,0 +1,9 @@
+// 跳转
+
+
+// 打印
+
+
+export function Log(t1){
+ console.log(t1);
+}
\ No newline at end of file
diff --git a/pages/work/index.vue b/pages/work/index.vue
index 4d36ed7..ef3b22d 100644
--- a/pages/work/index.vue
+++ b/pages/work/index.vue
@@ -14,108 +14,57 @@
-
-
-
-
- 用户管理
-
-
-
-
-
- 角色管理
-
-
-
-
-
- 菜单管理
-
-
-
-
-
- 部门管理
-
-
-
-
-
- 岗位管理
-
-
-
-
-
- 字典管理
-
-
-
-
-
- 参数设置
-
-
-
-
-
- 通知公告
-
-
-
-
-
- 日志管理
-
-
-
+
-
-
-
+
+
+
+
+
+
-
+
-
diff --git a/permission.js b/permission.js
index 240b684..805fa42 100644
--- a/permission.js
+++ b/permission.js
@@ -1,41 +1,42 @@
-import { getToken } from '@/utils/auth'
+import { getToken } from "@/utils/auth";
// 登录页面
-const loginPage = "/pages/loginInfo/login"
-
+const loginPage = "/pages/loginInfo/login";
+
// 页面白名单
const whiteList = [
- '/pages/loginInfo/login', '/pages/register', '/pages/common/webview/index'
-]
+ "/pages/loginInfo/login",
+ "/pages/register",
+ "/pages/common/webview/index",
+];
// 检查地址白名单
function checkWhite(url) {
- const path = url.split('?')[0]
- return whiteList.indexOf(path) !== -1
+ const path = url.split("?")[0];
+ return whiteList.indexOf(path) !== -1;
}
// 页面跳转验证拦截器
-let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"]
-list.forEach(item => {
- uni.addInterceptor(item, {
- invoke(to) {
-
- if (getToken()) {
- if (to.url === loginPage) {
- console.log("to:",to);
- uni.reLaunch({ url: "/" })
- }
- return true
- } else {
- if (checkWhite(to.url)) {
- return true
- }
- uni.reLaunch({ url: loginPage })
- return false
- }
- },
- fail(err) {
- console.log("错误信息:",err)
- }
- })
-})
\ No newline at end of file
+let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
+// list.forEach((item) => {
+// uni.addInterceptor(item, {
+// invoke(to) {
+// if (getToken()) {
+// if (to.url === loginPage) {
+// console.log("to:", to);
+// uni.reLaunch({ url: "/" });
+// }
+// return true;
+// } else {
+// if (checkWhite(to.url)) {
+// return true;
+// }
+// uni.reLaunch({ url: loginPage });
+// return false;
+// }
+// },
+// fail(err) {
+// console.log("错误信息:", err);
+// },
+// });
+// });
diff --git a/static/images/sign/1.png b/static/images/sign/1.png
new file mode 100644
index 0000000..948d92e
Binary files /dev/null and b/static/images/sign/1.png differ
diff --git a/static/images/sign/return.png b/static/images/sign/return.png
new file mode 100644
index 0000000..ecd0fbb
Binary files /dev/null and b/static/images/sign/return.png differ
diff --git a/static/images/sign/返回.png b/static/images/sign/返回.png
new file mode 100644
index 0000000..15da290
Binary files /dev/null and b/static/images/sign/返回.png differ
diff --git a/store/modules/user.js b/store/modules/user.js
index bbe78c9..d637a71 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -137,7 +137,7 @@ const user = {
const avatar =
user == null || user.avatar == "" || user.avatar == null
? defaultAvatar
- : baseUrl + user.avatar;
+ : qnDomain + user.avatar;
const username =
user == null || user.userName == "" || user.userName == null
? ""
diff --git a/utils/icon/icon.js b/utils/icon/icon.js
index 2709241..5caef50 100644
--- a/utils/icon/icon.js
+++ b/utils/icon/icon.js
@@ -9,10 +9,14 @@ const tu51 = ref(QNDomain + "home/icon/image/png/tu5-1_20240601124004353.png")
const tu52 = ref(QNDomain + "home/icon/image/png/tu5-2_20240601124010403.png")
const tu53 = ref(QNDomain + "home/icon/image/png/tu5-3_20240601124016641.png")
const tu23 = ref(QNDomain + "home/icon/image/png/tu2-3_20240602093303793.png")
+//文件上传
const tu2x = ref(QNDomain + "home/icon/image/png/添加图片@2x_20240603101717136.png")
-
+//话题发布-等待审核
+const sh2x = ref(QNDomain + "home/icon/image/png/等待审核@2x_20240604202431502.png")
+const sh2x1 = ref(QNDomain + "home/icon/image/png/等待审核@2x1_20240604202431492.png")
export default {
tu21,tu22,tu23,tu2x,
- tu51,tu52,tu53
+ tu51,tu52,tu53,
+ sh2x,sh2x1
}
\ No newline at end of file