(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-success"],{"27bd":function(t,e,o){var a=o("c86c");e=a(!1),e.push([t.i,".success-page[data-v-c3889f6e]{min-height:100vh;background-color:#f5f7fa;padding-bottom:30px}\n\n/* 顶部标题栏 */.header[data-v-c3889f6e]{background-color:#0af;padding:%?25?% %?20?%;text-align:center}.header-title[data-v-c3889f6e]{color:#fff;font-size:%?32?%;font-weight:500;line-height:1.5}\n\n/* 成功提示区 */.success提示[data-v-c3889f6e]{padding:20px 0 20px;text-align:center;background-color:#fff;margin-bottom:15px}.success-icon[data-v-c3889f6e]{margin-bottom:15px}.success-text[data-v-c3889f6e]{font-size:20px;color:#333;font-weight:600;display:block;margin-bottom:8px}.sub-text[data-v-c3889f6e]{font-size:14px;color:#666}\n\n/* 统计容器 */.stats-container[data-v-c3889f6e]{width:92%;margin:0 auto;background-color:#fff;border-radius:10px;padding:10px 15px;box-shadow:0 2px 10px rgba(0,0,0,.06)}.name-text[data-v-c3889f6e]{display:flex;align-items:center;justify-content:center;margin:0 auto;width:100%;text-align:center;font-size:16px;font-weight:800;margin-bottom:10px;letter-spacing:2px}\n\n/* 已投/未投统计 */.vote-count[data-v-c3889f6e]{display:flex;justify-content:space-around;margin-bottom:15px;padding-bottom:20px;border-bottom:1px solid #f0f0f0}.count-item[data-v-c3889f6e]{text-align:center}.count-num[data-v-c3889f6e]{font-size:24px;font-weight:700;color:#1677ff;display:block;margin-bottom:5px}.count-label[data-v-c3889f6e]{font-size:14px;color:#666}\n\n/* 选项占比统计 */.options-stats[data-v-c3889f6e]{margin-top:10px}.stats-title[data-v-c3889f6e]{font-size:16px;font-weight:500;color:#333;display:block;margin-bottom:15px;padding-left:5px}\n\n/* 单个选项样式 */.option-item[data-v-c3889f6e]{margin-bottom:20px}.option-info[data-v-c3889f6e]{display:flex;justify-content:space-between;margin-bottom:8px}.option-name[data-v-c3889f6e]{font-size:15px;color:#444}.option-ratio[data-v-c3889f6e]{font-size:14px;font-weight:500;color:#1677ff}\n\n/* 进度条样式 */.progress-bar[data-v-c3889f6e]{height:8px;width:100%;background-color:#f0f0f0;border-radius:4px;overflow:hidden;margin-bottom:5px}.progress[data-v-c3889f6e]{height:100%;border-radius:4px;transition:width .5s ease}\n\n/* 票数详情 */.votes-detail[data-v-c3889f6e]{font-size:12px;color:#999}\n\n/* 底部按钮组 */.btn-group[data-v-c3889f6e]{width:92%;margin:30px auto 0;display:flex;gap:15px}.back-btn[data-v-c3889f6e], .share-btn[data-v-c3889f6e]{flex:1;height:45px;line-height:45px;border-radius:8px;font-size:16px;font-weight:500}.back-btn[data-v-c3889f6e]{background-color:#fff;color:#333;border:1px solid #eee}.share-btn[data-v-c3889f6e]{background-color:#1677ff;color:#fff;border:none}",""]),t.exports=e},"2d85":function(t,e,o){"use strict";o("6a54");var a=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(o("c8e7")),i={save:function(t){return(0,n.default)({url:"/vote/record/voteRecord/save",method:"post",data:t})},delete:function(t){return(0,n.default)({url:"/vote/record/voteRecord/delete",method:"delete",params:{ids:t}})},queryById:function(t){return(0,n.default)({url:"/vote/record/voteRecord/queryById",method:"get",params:{id:t}})},getStatistics:function(t){return(0,n.default)({url:"/vote/record/voteRecord/getStatistics",method:"get",params:{id:t}})},list:function(t){return(0,n.default)({url:"/vote/record/voteRecord/list",method:"get",params:t})},exportTemplate:function(){return(0,n.default)({url:"/vote/record/voteRecord/import/template",method:"get",responseType:"blob"})},exportExcel:function(t){return(0,n.default)({url:"/vote/record/voteRecord/export",method:"get",params:t,responseType:"blob"})},importExcel:function(t){return(0,n.default)({url:"/vote/record/voteRecord/import",method:"post",data:t})}};e.default=i},"4fe3":function(t,e,o){var a=o("27bd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=o("967d").default;n("440f2e54",a,!0,{sourceMap:!1,shadowMode:!1})},"86dd":function(t,e,o){"use strict";(function(t){o("6a54");var a=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(o("2d85")),i={data:function(){return{name:"",totalVoters:568,totalVoted:326,totalUnvoted:242,voteOptions:[{name:"续签",value:"1",votes:185,ratio:56.7,color:"#1677ff"},{name:"公开招标",value:"2",votes:98,ratio:30.1,color:"#36d399"},{name:"弃权",value:"3",votes:32,ratio:9.8,color:"#722ed1"},{name:"其他",value:"4",votes:11,ratio:3.4,color:"#ff7d00"}]}},onLoad:function(e){t.log(e),e.id&&this.getStatistics(e.id)},methods:{getStatistics:function(e){var o=this;n.default.getStatistics(e).then((function(e){if(e.length>0){var a=e[0];o.totalVoters=a.allcount,o.totalVoted=a.ytcount,o.totalUnvoted=a.wtcount,o.voteOptions[0].votes=a.xqCount,o.voteOptions[0].ratio=a.xqPct,o.voteOptions[1].votes=a.zbCount,o.voteOptions[1].ratio=a.zbPct,o.voteOptions[2].votes=a.qqCount,o.voteOptions[2].ratio=a.qqPct,o.voteOptions[3].votes=a.qtCount,o.voteOptions[3].ratio=a.qtPct,o.name=a.name}t.log(e)})).catch((function(e){t.error(e)}))},navigateBack:function(){uni.reLaunch({url:"/pages/index/index"})},handleShare:function(){uni.share({title:"盐龙街道物业选聘投票结果",path:"/pages/success/vote-success",imageUrl:"/static/share-img.png",success:function(){uni.showToast({title:"分享成功",icon:"none"})},fail:function(e){t.log("分享失败",e)}})}}};e.default=i}).call(this,o("ba7c")["default"])},"877b":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"success-page"},[o("v-uni-view",{staticClass:"header"},[o("v-uni-text",{staticClass:"header-title"},[t._v("盐龙街道住宅小区物业公司选聘调研")])],1),o("v-uni-view",{staticClass:"success提示"},[o("v-uni-text",{staticClass:"success-text"},[t._v("提交成功!")]),o("v-uni-text",{staticClass:"sub-text"},[t._v("感谢您的参与,您的意见将被认真对待")])],1),o("v-uni-view",{staticClass:"stats-container"},[o("v-uni-text",{staticClass:"name-text"},[t._v(t._s(t.name)+"投票进度")]),o("v-uni-view",{staticClass:"vote-count"},[o("v-uni-view",{staticClass:"count-item"},[o("v-uni-text",{staticClass:"count-num"},[t._v(t._s(t.totalVoted))]),o("v-uni-text",{staticClass:"count-label"},[t._v("已投票")])],1),o("v-uni-view",{staticClass:"count-item"},[o("v-uni-text",{staticClass:"count-num"},[t._v(t._s(t.totalUnvoted))]),o("v-uni-text",{staticClass:"count-label"},[t._v("未投票")])],1),o("v-uni-view",{staticClass:"count-item"},[o("v-uni-text",{staticClass:"count-num"},[t._v(t._s(t.totalVoters))]),o("v-uni-text",{staticClass:"count-label"},[t._v("总户数")])],1)],1),o("v-uni-view",{staticClass:"options-stats"},[o("v-uni-text",{staticClass:"stats-title"},[t._v("各选项占比")]),t._l(t.voteOptions,(function(e,a){return o("v-uni-view",{key:a,staticClass:"option-item"},[o("v-uni-view",{staticClass:"option-info"},[o("v-uni-text",{staticClass:"option-name"},[t._v(t._s(e.name))]),o("v-uni-text",{staticClass:"option-ratio"},[t._v(t._s(e.ratio)+"%")])],1),o("v-uni-view",{staticClass:"progress-bar"},[o("v-uni-view",{staticClass:"progress",style:{width:e.ratio+"%",backgroundColor:e.color}})],1),o("v-uni-text",{staticClass:"votes-detail"},[t._v(t._s(e.votes)+" 票")])],1)}))],2)],1)],1)},n=[]},"90e8":function(t,e,o){"use strict";o.r(e);var a=o("86dd"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);e["default"]=n.a},a9e1:function(t,e,o){"use strict";var a=o("4fe3"),n=o.n(a);n.a},c37e:function(t,e,o){"use strict";o.r(e);var a=o("877b"),n=o("90e8");for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("a9e1");var s=o("828b"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"c3889f6e",null,!1,a["a"],void 0);e["default"]=c.exports}}]);