yuanyiming hai 1 ano
pai
achega
8aba8326f5

+ 0 - 59
limits.md

@@ -1,59 +0,0 @@
-const multer = require('koa-multer');
-const fs = require('fs');
-const path = require('path');
-
-// 设置文件存储位置和上传大小限制
-let storage = multer.diskStorage({
-  destination: function (req, file, cb) {
-    let date = new Date();
-    let year = date.getFullYear();
-    let month = date.getMonth() + 1;
-    let day = date.getDate();
-    let dir = "./public/uploads/" + year + month + day;
-
-    if (!fs.existsSync(dir)) {
-      fs.mkdirSync(dir, {
-        recursive: true,
-      });
-    }
-    cb(null, dir);
-  },
-  filename: function (req, file, cb) {
-    let fileName =
-      file.fieldname + "-" + Date.now() + path.extname(file.originalname);
-    cb(null, fileName);
-  },
-});
-
-const upload = multer({
-  storage: storage,
-  limits: {
-    fileSize: 5 * 1024 * 1024, // 5MB的文件大小限制
-  },
-});
-
-// 上传图片接口
-router.post("/img", upload.single("file"), async (ctx) => {
-  let path = ctx.req.file.path;
-  path = ctx.origin + "" + path.replace("public", "");
-  path = path.replace(/\\/g, "/");
-  console.log(path);
-
-  ctx.body = path;
-});
-
-// 错误处理程序
-app.use((ctx, next) => {
-  return next().catch((err) => {
-    if (err.name === "MulterError") {
-      ctx.status = 400; // 设置响应状态码为400,表示请求错误
-      ctx.body = "文件大小超过限制"; // 返回给客户端的提示信息
-    } else {
-      throw err;
-    }
-  });
-});
-
-app.listen(3000, () => {
-  console.log('Server is running on port 3000');
-});

+ 1 - 1
manifest.json

@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxcf19f82bc4ca3229",
+        "appid" : "wx1260af162664fd04",
         "setting" : {
             "urlCheck" : false
         },

+ 1 - 1
pages/Sign/Sign.vue

@@ -3,7 +3,7 @@
 		<statusBar :item="navBarData"></statusBar>
 		<view class="signBox">
 			<view class="img">
-				<image src="../../static/Vector.png" mode="aspectFill"></image>
+				<image src="http://43.139.158.220:5007/img/static/lg.png" mode="aspectFill"></image>
 			</view>
 			<text>报名已提交</text>
 			<text>等待管理员审核</text>

BIN=BIN
static/Vector.png


BIN=BIN
static/activity/bg1.png


BIN=BIN
static/activity/bg2.png


BIN=BIN
static/logo.png


BIN=BIN
static/yym/Ellipse 10.png


BIN=BIN
static/yym/Rectangle 1918.png


BIN=BIN
static/yym/Rectangle 40.png


BIN=BIN
static/yym/Rectangle23.png


BIN=BIN
static/yym/Rectangle25.png


BIN=BIN
static/yym/Star 1 (Stroke) (2).png


BIN=BIN
static/yym/Star 1 (Stroke).png


BIN=BIN
static/yym/Vector (Stroke) (1).png


BIN=BIN
static/yym/Vector (Stroke) (2).png


BIN=BIN
static/yym/Vector (Stroke).png


BIN=BIN
static/yym/jia.png


BIN=BIN
static/yym/union.png


+ 0 - 49
tool/Date.js

@@ -1,49 +0,0 @@
-function getNowDate(type=0) {
-    let date = new Date();
-    let year = date.getFullYear(); //年
-    let month = date.getMonth() + 1; //月
-    let day = date.getDate(); //日
-    let hour = date.getHours(); //时
-    let minutes = date.getMinutes(); //分
-    let seconds = date.getSeconds(); //秒
-    if (month > 1 && month <= 9) month = "0" + month;
-    if (day > 0 && day <= 9) day = "0" + day;
-    if (hour > 0 && hour < 9) hour = "0" + hour;
-    if (minutes > 0 && minutes <= 9) minutes = "0" + minutes;
-    if (seconds > 0 && seconds < 9) seconds = "0" + seconds;
-    if(type==0){
-      return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}`;
-    }else if(type==1){
-      return `${year}年${month}月${day}日`;
-    }
-    
-}
-
-//比较两时间之差
-function DifferDate(Date1, Date2) {
-    if (typeof(Date1) == "string") Date1 = Date.parse(Date1);
-    if (typeof(Date2) == "string") Date2 = Date.parse(Date2);
-    return Math.floor((Date1 - Date2) / (24 * 3600 * 1000));
-}
-
-function GetTime(data){
-    let cdata = JSON.parse(data);
-    if(cdata[0]==cdata[1])return cdata[0];
-    let sp1 = cdata[0].split('-')
-    let sp2  =cdata[1].split('-')
-    if(sp1[0]==sp2[0]){
-      if(sp1[1]==sp2[1]){
-        return `${sp1[0]}-${sp1[1]}-${sp1[2]} 至 ${sp2[2]}`
-      }else{
-        return `${sp1[0]}-${sp1[1]}-${sp1[2]} 至 ${sp2[1]}-${sp2[2]}`
-      }           
-    }else{
-      return cdata[0]+" 至 "+cdata[1]
-    }
-}
-
-export {
-    getNowDate,
-    DifferDate,
-    GetTime,
-}