|
|
@ -0,0 +1,8 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /h5/
|
||||
RewriteRule ^index\.html$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /h5/index.html [L]
|
||||
</IfModule>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>五星党建</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="/h5/static/index.5841170f.css"/><script defer="defer" src="/h5/static/js/chunk-vendors.49434503.js"></script><script defer="defer" src="/h5/static/js/index.dd471c90.js"></script></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
::v-deep uni-page-wrapper {
|
||||
background-color: #efefef;
|
||||
}
|
||||
.page {
|
||||
background-color: #efefef;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
color: white;
|
||||
background-color: #C20000;
|
||||
}
|
||||
|
||||
.rich-text {
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.rich-text img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
|
@ -0,0 +1 @@
|
|||
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[917],{6663:function(t,e,a){var i=a(2935);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var s=a(3532).Z;s("0d1df260",i,!0,{sourceMap:!1,shadowMode:!1})},9119:function(t,e,a){"use strict";var i;a.r(e),a.d(e,{default:function(){return c}});var s,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"title"},[t._v("您好,欢迎登录!")]),a("v-uni-view",{staticClass:"form"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"label"},[t._v("帐号")]),a("v-uni-view",{staticClass:"control"},[a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"username",focus:!0,placeholder:"请输入账号"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1)],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"label"},[t._v("密码")]),a("v-uni-view",{staticClass:"control"},[a("v-uni-input",{staticClass:"input",attrs:{type:"password",name:"password",placeholder:"请输入密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1),a("v-uni-view",{staticClass:"item submit"},[a("v-uni-button",{staticClass:"btn btn-danger",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("立即登录")])],1)],1)],1)},o=[],r=a(5467),u={data:function(){return{username:"",password:"",redirect:"",openid:"",open_type:""}},onLoad:function(t){t.redirect&&(this.redirect=t.redirect),this.openid=t.openid,this.open_type=t.open_type},methods:{submit:function(){return this.username?this.password?void this.$ajax.post("/api/login",{username:this.username,password:this.password,openid:this.openid,open_type:this.open_type}).then((function(t){if(0==t.status){var e=t.data.token;(0,r.setToken)(e),uni.reLaunch({url:"/pages/index/index"})}})):uni.showToast({icon:"error",title:"密码必填"}):uni.showToast({icon:"error",title:"账号必填"})}}},d=u,p=(a(6663),a(3285)),l=(0,p.Z)(d,n,o,!1,null,"f261444a",null,!1,i,s),c=l.exports},2935:function(t,e,a){"use strict";a.r(e);var i=a(2624),s=a.n(i),n=a(196),o=a.n(n),r=o()(s());r.push([t.id,".page[data-v-f261444a]{background-color:#fff;padding-top:%?150?%;padding-left:%?60?%;padding-right:%?60?%;position:absolute;width:100%;height:100%;box-sizing:border-box}.title[data-v-f261444a]{background-color:#fff;font-size:%?56?%;font-weight:700;text-align:center;margin-top:%?150?%}.form[data-v-f261444a]{margin-top:%?95?%}.form .label[data-v-f261444a]{font-size:15px;font-weight:bolder}.form .item[data-v-f261444a]{margin-top:%?30?%}.form .input[data-v-f261444a]{padding:14px 0;border-radius:0;border-bottom:.5px solid #dadbde}.form .submit[data-v-f261444a]{font-size:%?34?%;margin:%?200?% 0;font-weight:700}",""]),e["default"]=r}}]);
|
||||
|
|
@ -0,0 +1 @@
|
|||
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[510],{538:function(t,n,a){var e=a(7906);e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.id,e,""]]),e.locals&&(t.exports=e.locals);var i=a(3532).Z;i("19a4e3e2",e,!0,{sourceMap:!1,shadowMode:!1})},2877:function(t,n,a){"use strict";var e;a.r(n),a.d(n,{default:function(){return l}});var i,o=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"form"},[a("v-uni-textarea",{attrs:{name:"content",placeholder:"请填写内容",focus:!0,"auto-height":!0},model:{value:t.content,callback:function(n){t.content=n},expression:"content"}})],1),a("v-uni-view",{staticClass:"block"},[a("v-uni-button",{staticClass:"btn-danger",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.submit.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},s=[],c={data:function(){return{content:""}},methods:{submit:function(){var t=this;if(!this.content)return uni.showToast({title:"请填写内容",icon:"error"});this.$ajax.post("/api/feedback",{content:this.content},{custom:{loading:!0}}).then((function(n){0==n.status&&(t.content="",uni.showToast({title:"提交成功",icon:"succsss"}))}))}}},u=c,d=(a(538),a(3285)),r=(0,d.Z)(u,o,s,!1,null,"40f8b3ad",null,!1,e,i),l=r.exports},7906:function(t,n,a){"use strict";a.r(n);var e=a(2624),i=a.n(e),o=a(196),s=a.n(o),c=s()(i());c.push([t.id,".page[data-v-40f8b3ad]{background-color:#fff}.form[data-v-40f8b3ad]{padding:%?20?%;margin-top:%?150?%}[data-v-40f8b3ad] uni-textarea{border:1px solid #ddd;width:100%;box-sizing:border-box;padding:%?10?%;min-height:%?400?%}.block[data-v-40f8b3ad]{padding:%?20?%;margin-top:%?40?%}.block .btn-danger[data-v-40f8b3ad]{width:100%}",""]),n["default"]=c}}]);
|
||||
|
|
@ -0,0 +1 @@
|
|||
"use strict";(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[545],{9561:function(n,u,e){var r;e.r(u),e.d(u,{default:function(){return p}});var a,t=function(){var n=this,u=n.$createElement,e=n._self._c||u;return e("div")},i=[],c=e(5467),l={data:function(){return{}},onLoad:function(n){n.token?((0,c.setToken)(n.token),uni.reLaunch({url:"/pages/index/index"})):n.reLaunch?uni.reLaunch({url:n.reLaunch}):uni.reLaunch({url:"/pages/auth/login"})}},o=l,s=e(3285),h=(0,s.Z)(o,t,i,!1,null,null,null,!1,r,a),p=h.exports}}]);
|
||||
|
|
@ -0,0 +1 @@
|
|||
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[373],{3887:function(t,a,i){var e=i(217);e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.id,e,""]]),e.locals&&(t.exports=e.locals);var n=i(3532).Z;n("a816f1be",e,!0,{sourceMap:!1,shadowMode:!1})},9080:function(t,a,i){"use strict";var e;i.r(a),i.d(a,{default:function(){return g}});var n,s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"page"},[i("v-uni-swiper",{staticClass:"swiper",attrs:{autoplay:!0,circular:!0}},t._l(t.banners,(function(t){return i("v-uni-swiper-item",{key:t.id},[i("v-uni-image",{staticStyle:{height:"300rpx",width:"100%"},attrs:{src:t.picture}})],1)})),1),i("v-uni-view",{staticClass:"app"},[i("v-uni-view",{staticClass:"row"},[t._l(t.categories,(function(a,e){return[e<2?i("v-uni-view",{key:a.id+"_0",staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navigateToForm(a.id)}}},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-image",{attrs:{src:a.image}})],1),i("v-uni-view",{staticClass:"title"},[t._v(t._s(a.name))])],1):t._e()]}))],2),i("v-uni-view",{staticClass:"row"},[t._l(t.categories,(function(a,e){return[e>=2?i("v-uni-view",{key:a.id+"_0",staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navigateToForm(a.id)}}},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-image",{attrs:{src:a.image}})],1),i("v-uni-view",{staticClass:"title"},[t._v(t._s(a.name))])],1):t._e()]}))],2)],1),i("v-uni-view",{staticClass:"article rich-text"},[i("v-uni-rich-text",{attrs:{nodes:t.content}})],1)],1)},r=[],c=i(4522),u=i(8285),o=i(6210),l=(i(9299),i(5467)),v={data:function(){return{banners:[],categories:[],content:""}},onLoad:function(){if(!(0,l.isLogin)())return uni.showModal({title:"请先登录",showCancel:!1,success:function(){uni.navigateTo({url:"/pages/auth/login"})}});this.init()},methods:{init:function(){var t=this;return(0,o.Z)((0,c.Z)().mark((function a(){var i;return(0,c.Z)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return uni.showLoading(),a.next=3,t.$ajax.get("/api/banner",{params:{key:"banner_2"}});case 3:return i=a.sent,0==i.status&&(t.banners=i.data),a.next=7,t.$ajax.get("/api/keyword",{params:{key:"score_cate_"}});case 7:return i=a.sent,0==i.status&&(t.categories=i.data.map((function(t){var a;return(0,u.Z)((0,u.Z)({},t),{},{image:null!==(a=t.image)&&void 0!==a?a:"../../static/images/bit2.png"})}))),a.next=11,t.$ajax.get("/api/article/cate");case 11:i=a.sent,0==i.status&&(t.content=i.data.content),uni.hideLoading();case 14:case"end":return a.stop()}}),a)})))()},navigateToForm:function(t){uni.navigateTo({url:"/pages/score/form?type=".concat(t)})}}},d=v,p=(i(3887),i(3285)),f=(0,p.Z)(d,s,r,!1,null,"75a8b7f9",null,!1,e,n),g=f.exports},217:function(t,a,i){"use strict";i.r(a);var e=i(2624),n=i.n(e),s=i(196),r=i.n(s),c=r()(n());c.push([t.id,".swiper[data-v-75a8b7f9]{height:%?300?%}.app .row[data-v-75a8b7f9]{margin:%?20?%;padding:%?20?% %?10?%;border-radius:%?20?%;background-color:#fff;display:flex;justify-content:center}.app .item[data-v-75a8b7f9]{text-align:center;margin:0 %?10?%}.app .icon[data-v-75a8b7f9] uni-image{border-radius:%?20?%;width:%?150?%;height:%?150?%}.article[data-v-75a8b7f9]{margin:%?20?%;padding:%?20?% %?10?%;border-radius:%?20?%;background-color:#fff}",""]),a["default"]=c}}]);
|
||||
|
|
@ -0,0 +1 @@
|
|||
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[740],{1127:function(t,a,e){var i=e(468);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var s=e(3532).Z;s("efaa9654",i,!0,{sourceMap:!1,shadowMode:!1})},1401:function(t,a,e){"use strict";e.r(a),e.d(a,{default:function(){return f}});var i,s={uIcon:e(4520).Z},n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-view",{staticClass:"name1"},[e("v-uni-picker",{attrs:{mode:"selector",range:t.dates},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.changeDate.apply(void 0,arguments)}}},[t._v(t._s(t.date)),e("u-icon",{attrs:{name:"arrow-down-fill"}})],1)],1)],1),t.user.show?e("v-uni-view",{staticClass:"me"},[t._v("我的得分:"),e("v-uni-text",{staticClass:"waring"},[t._v(t._s(t.user.score))]),t._v(", 我的排名:"),e("v-uni-text",{staticClass:"waring"},[t._v(t._s(t.user.rank))])],1):t._e(),e("v-uni-view",{staticClass:"rank"},[e("rank",{attrs:{header:t.header,list:t.list}})],1)],1)},r=[],o=(e(6228),e(8926)),d=e(5467),u={components:{Rank:o.Z},data:function(){return{type:"user",header:["排名","党员","得分"],list:[],date:"当前",index:0,dates:["当前"],user:{show:!1,score:"-",rank:"-"}}},onLoad:function(t){t.type&&(this.type=t.type,this.header=["排名","user"==this.type?"党员":"支部","得分"]),this.user.show=(0,d.isLogin)(),this.init(),this.load()},methods:{init:function(){var t=this;this.$ajax.get("/api/rank/dates",{params:{type:this.type}}).then((function(a){0==a.status&&(t.dates=["当前"].concat(a.data))}))},load:function(){var t=this,a="/api/rank",e={type:this.type};this.index>0&&(a="/api/rank/list",e.sn=this.dates[this.index]),this.$ajax.get(a,{params:e,custom:{loading:!0}}).then((function(a){0==a.status&&(t.list=a.data)})),this.loadUser()},loadUser:function(){var t=this;if(this.user.show){var a="/api/rank/current",e={type:this.type};this.index>0&&(a="/api/rank/current-list",e.sn=this.dates[this.index]),this.$ajax.get(a,{params:e}).then((function(a){0==a.status&&(t.user.rank=a.data.rank,t.user.score=a.data.score)}))}},changeDate:function(t){this.index=t.detail.value,this.date=this.dates[this.index],this.load()}}},c=u,l=(e(1127),e(3285)),h=(0,l.Z)(c,n,r,!1,null,"1e87904f",null,!1,s,i),f=h.exports},468:function(t,a,e){"use strict";e.r(a);var i=e(2624),s=e.n(i),n=e(196),r=e.n(n),o=r()(s());o.push([t.id,".title[data-v-1e87904f]{background-color:#fff;display:flex;padding:%?20?%;justify-content:space-around}.rank[data-v-1e87904f]{background-color:#fff;margin-top:%?20?%;padding:%?20?%;border-radius:%?10?%;box-sizing:border-box}.name1[data-v-1e87904f]{display:flex;width:100%;justify-content:center}.name1[data-v-1e87904f] .u-icon{margin-left:%?10?%;display:inline-block}.me[data-v-1e87904f]{background-color:#fff;text-align:center;margin:%?15?% 0;padding:%?10?% 0}.me .waring[data-v-1e87904f]{font-size:%?40?%;color:#f0ad4e}[data-v-1e87904f] uni-picker{width:100%;text-align:center}",""]),a["default"]=o}}]);
|
||||