diff --git a/spa/404.html b/spa/404.html index 96ea093..e6182be 100644 --- a/spa/404.html +++ b/spa/404.html @@ -43,11 +43,14 @@ + diff --git a/spa/assets/img/close512x512.png b/spa/assets/img/close512x512.png new file mode 100644 index 0000000..30d55a5 Binary files /dev/null and b/spa/assets/img/close512x512.png differ diff --git a/spa/assets/js/spa.js b/spa/assets/js/spa.js new file mode 100644 index 0000000..bcde373 --- /dev/null +++ b/spa/assets/js/spa.js @@ -0,0 +1,36 @@ + +function readURL(input) { + if (input.files && input.files[0]) { + var reader = new FileReader(); + reader.onload = function (e) { + $(input).closest("div.row").find("div.previewrapper > img.uploadpreview").attr('src', e.target.result) + $(input).closest("div.row").find("div.previewrapper").removeClass("hide"); + $(input).closest("div.row").find("div.previewrapper").fadeIn(1000) + } + reader.readAsDataURL(input.files[0]); + } +} + +$(".uploadimg").change(function(){ + readURL(this); +}); + +$("div.previewrapper > img.removepreview").click(function(){ + $(this).closest("div.row").find("input.uploadimg").val(''); + $(this).closest("div.row").find("input.file-path").val(''); + $(this).closest("div.previewrapper").fadeOut(1000); +}); + +function isWeixinBrowser(){ + var ua = navigator.userAgent.toLowerCase(); + return (/micromessenger/.test(ua)) ? true : false ; +} + +function closeWechatBrowser(){ + if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") { + WeixinJSBridge.call('closeWindow'); + } + $(document).on("WeixinJSBridgeReady", function(){ + WeixinJSBridge.call('closeWindow'); + }); +} \ No newline at end of file diff --git a/spa/edit.html b/spa/edit.html index 55f000c..934d811 100644 --- a/spa/edit.html +++ b/spa/edit.html @@ -62,13 +62,19 @@
头像 - +
+
+
+ + +
+
@@ -83,18 +89,21 @@ + diff --git a/spa/newevent.html b/spa/newevent.html new file mode 100644 index 0000000..d82d502 --- /dev/null +++ b/spa/newevent.html @@ -0,0 +1,74 @@ + + + + + + + + + + + + + 发起新活动 + + + + + + + + +
+

校友会活动信息

+
+
+
+
+ + + +
+
+
+
+ + + +
+
+
+
+
+
+ 封面图片 + +
+
+ +
+
+
+
+
+ + +
+
+
+
+
+ +
+ + + + + + + diff --git a/spa/pinegrow.json b/spa/pinegrow.json index c6601d7..6471928 100644 --- a/spa/pinegrow.json +++ b/spa/pinegrow.json @@ -1 +1 @@ -{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"livecast.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"} \ No newline at end of file +{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"livecast.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newEvents.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newevent.html":{"frameworks":["spa","userlib7784","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","userlib7784","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"} \ No newline at end of file diff --git a/spa/style.css b/spa/style.css index ec99a10..7c9e66c 100644 --- a/spa/style.css +++ b/spa/style.css @@ -5,3 +5,31 @@ font-size: 100px; } +.fullwidth +{ + width: 100%; +} + +div.previewrapper +{ + position: relative; +} + +div.previewrapper > img.removepreview +{ + position: absolute; + top: -9px; + right: -9px; + color: red; + cursor: pointer; + text-decoration: blink; + font-weight: bold; + font-style: normal; + border-radius: 10px; +} + +img.uploadpreview +{ + width: 100%; +} +