作者 yanchengjie

判断res状态码 去登录无法测试

<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>bro1024</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=/static/index.2772579d.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.08fc8077.js></script><script src=/static/js/index.3e8c05d0.js></script></body></html>
\ No newline at end of file
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=/static/index.2772579d.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.08fc8077.js></script><script src=/static/js/index.48dc8613.js></script></body></html>
\ No newline at end of file
... ...
(function(e){function n(n){for(var i,a,u=n[0],c=n[1],d=n[2],s=0,g=[];s<u.length;s++)a=u[s],Object.prototype.hasOwnProperty.call(t,a)&&t[a]&&g.push(t[a][0]),t[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);l&&l(n);while(g.length)g.shift()();return r.push.apply(r,d||[]),o()}function o(){for(var e,n=0;n<r.length;n++){for(var o=r[n],i=!0,a=1;a<o.length;a++){var c=o[a];0!==t[c]&&(i=!1)}i&&(r.splice(n--,1),e=u(u.s=o[0]))}return e}var i={},t={index:0},r=[];function a(e){return u.p+"static/js/"+({"pages-index-Startup~pages-index-vote~pages-mine-mine":"pages-index-Startup~pages-index-vote~pages-mine-mine","pages-index-Startup":"pages-index-Startup","pages-index-vote":"pages-index-vote","pages-mine-mine":"pages-mine-mine","pages-index-index":"pages-index-index","pages-index-rankingList":"pages-index-rankingList","pages-login-login":"pages-login-login"}[e]||e)+"."+{"pages-index-Startup~pages-index-vote~pages-mine-mine":"74cd9124","pages-index-Startup":"6266807a","pages-index-vote":"63f91f79","pages-mine-mine":"cd0a0725","pages-index-index":"8ae9d3b7","pages-index-rankingList":"7ac3d6d6","pages-login-login":"2870f72f"}[e]+".js"}function u(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,u),o.l=!0,o.exports}u.e=function(e){var n=[],o=t[e];if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((function(n,i){o=t[e]=[n,i]}));n.push(o[2]=i);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,u.nc&&c.setAttribute("nonce",u.nc),c.src=a(e);var d=new Error;r=function(n){c.onerror=c.onload=null,clearTimeout(s);var o=t[e];if(0!==o){if(o){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",d.name="ChunkLoadError",d.type=i,d.request=r,o[1](d)}t[e]=void 0}};var s=setTimeout((function(){r({type:"timeout",target:c})}),12e4);c.onerror=c.onload=r,document.head.appendChild(c)}return Promise.all(n)},u.m=e,u.c=i,u.d=function(e,n,o){u.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,n){if(1&n&&(e=u(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(u.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)u.d(o,i,function(n){return e[n]}.bind(null,i));return o},u.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(n,"a",n),n},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.p="/",u.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],d=c.push.bind(c);c.push=n,c=c.slice();for(var s=0;s<c.length;s++)n(c[s]);var l=d;r.push([0,"chunk-vendors"]),o()})({0:function(e,n,o){e.exports=o("b294")},4520:function(e,n,o){"use strict";var i=o("6c0d"),t=o.n(i);t.a},"5ccb":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={onLaunch:function(){},onShow:function(){},onHide:function(){}};n.default=i},"6c0d":function(e,n,o){var i=o("6d48");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var t=o("4f06").default;t("fbcc2bfe",i,!0,{sourceMap:!1,shadowMode:!1})},"6d48":function(e,n,o){var i=o("24fb");n=i(!1),n.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.flexJ{display:flex;justify-content:space-between;align-items:center}.flexC{display:flex;justify-content:center;align-items:center}.flexA{display:flex;align-items:center}',""]),e.exports=n},"9ad7":function(e,n,o){"use strict";o.r(n);var i=o("5ccb"),t=o.n(i);for(var r in i)"default"!==r&&function(e){o.d(n,e,(function(){return i[e]}))}(r);n["default"]=t.a},"9d90":function(e,n,o){"use strict";o.r(n);var i=o("ee2c"),t=o("9ad7");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("4520");var a,u=o("f0c5"),c=Object(u["a"])(t["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);n["default"]=c.exports},b294:function(e,n,o){"use strict";var i=o("4ea4"),t=i(o("5530"));o("e260"),o("e6cf"),o("cca6"),o("a79d"),o("fa6a"),o("1c31");var r=i(o("9d90")),a=i(o("e143")),u=i(o("dc88"));a.default.config.productionTip=!1,a.default.use(u.default),r.default.mpType="app";var c=new a.default((0,t.default)({},r.default));c.$mount()},ee2c:function(e,n,o){"use strict";var i;o.d(n,"b",(function(){return t})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return i}));var t=function(){var e=this,n=e.$createElement,o=e._self._c||n;return o("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},r=[]},fa6a:function(e,n,o){"use strict";(function(e){var n=o("4ea4");o("13d5"),o("d3b7"),o("ac1f"),o("5319"),o("ddb0");var i=n(o("e143")),t={keys:function(){return[]}};e["____2B76B4B____"]=!0,delete e["____2B76B4B____"],e.__uniConfig={easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue","^unicloud-db$":"@dcloudio/uni-cli-shared/components/unicloud-db.vue","^uniad$":"@dcloudio/uni-cli-shared/components/uniad.vue","^ad-rewarded-video$":"@dcloudio/uni-cli-shared/components/ad-rewarded-video.vue","^ad-fullscreen-video$":"@dcloudio/uni-cli-shared/components/ad-fullscreen-video.vue","^ad-interstitial$":"@dcloudio/uni-cli-shared/components/ad-interstitial.vue","^ad-interactive$":"@dcloudio/uni-cli-shared/components/ad-interactive.vue","^page-meta$":"@dcloudio/uni-cli-shared/components/page-meta.vue","^navigation-bar$":"@dcloudio/uni-cli-shared/components/navigation-bar.vue","^uni-match-media$":"@dcloudio/uni-cli-shared/components/uni-match-media.vue"},tabBar:{color:"#7A7E83",selectedColor:"#824F38",borderStyle:"black",backgroundColor:"#ffffff",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"static/home.png",selectedIconPath:"static/homeCur.png",redDot:!1,badge:""},{pagePath:"pages/index/rankingList",text:"排行榜",iconPath:"static/rankingtab.png",selectedIconPath:"static/rankingtabCur.png.png",redDot:!1,badge:""}]},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"bro1024评选",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"}},e.__uniConfig.compilerVersion="3.5.3",e.__uniConfig.uniPlatform="h5",e.__uniConfig.appId="__UNI__2B76B4B",e.__uniConfig.appName="bro1024",e.__uniConfig.appVersion="1.0.0",e.__uniConfig.appVersionCode="100",e.__uniConfig.router={mode:"hash",base:"/"},e.__uniConfig.publicPath="/",e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},e.__uniConfig.sdkConfigs={},e.__uniConfig.qqMapKey=void 0,e.__uniConfig.googleMapKey=void 0,e.__uniConfig.locale="",e.__uniConfig.fallbackLocale=void 0,e.__uniConfig.locales=t.keys().reduce((function(e,n){var o=n.replace(/\.\/(uni-app.)?(.*).json/,"$2"),i=t(n);return Object.assign(e[o]||(e[o]={}),i.common||i),e}),{}),e.__uniConfig.nvue={"flex-direction":"column"},e.__uniConfig.__webpack_chunk_load__=o.e,i.default.component("pages-index-Startup",(function(e){var n={component:Promise.all([o.e("pages-index-Startup~pages-index-vote~pages-mine-mine"),o.e("pages-index-Startup")]).then(function(){return e(o("51c6"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-index",(function(e){var n={component:o.e("pages-index-index").then(function(){return e(o("a214"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-login-login",(function(e){var n={component:o.e("pages-login-login").then(function(){return e(o("7ee5"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-mine-mine",(function(e){var n={component:Promise.all([o.e("pages-index-Startup~pages-index-vote~pages-mine-mine"),o.e("pages-mine-mine")]).then(function(){return e(o("3fbb"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-vote",(function(e){var n={component:Promise.all([o.e("pages-index-Startup~pages-index-vote~pages-mine-mine"),o.e("pages-index-vote")]).then(function(){return e(o("30d3"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-rankingList",(function(e){var n={component:o.e("pages-index-rankingList").then(function(){return e(o("24b3"))}.bind(null,o)).catch(o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),e.__uniRoutes=[{path:"/",alias:"/pages/index/Startup",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"bro",navigationStyle:"custom",backgroundColor:"#eef8fe"})},[e("pages-index-Startup",{slot:"page"})])}},meta:{id:1,name:"pages-index-Startup",isNVue:!1,maxWidth:0,pagePath:"pages/index/Startup",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/index/index",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isTabBar:!0,tabBarIndex:0},__uniConfig.globalStyle,{navigationBarTitleText:"投票",navigationStyle:"custom",backgroundColor:"#eef8fe"})},[e("pages-index-index",{slot:"page"})])}},meta:{id:2,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isTabBar:!0,tabBarIndex:0,windowTop:0}},{path:"/pages/login/login",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录",navigationStyle:"custom",backgroundColor:"#eef8fe"})},[e("pages-login-login",{slot:"page"})])}},meta:{name:"pages-login-login",isNVue:!1,maxWidth:0,pagePath:"pages/login/login",windowTop:0}},{path:"/pages/mine/mine",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationStyle:"custom"})},[e("pages-mine-mine",{slot:"page"})])}},meta:{name:"pages-mine-mine",isNVue:!1,maxWidth:0,pagePath:"pages/mine/mine",windowTop:0}},{path:"/pages/index/vote",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"投票",enablePullDownRefresh:!1,navigationStyle:"custom",navigationBarTextStyle:"white"})},[e("pages-index-vote",{slot:"page"})])}},meta:{name:"pages-index-vote",isNVue:!1,maxWidth:0,pagePath:"pages/index/vote",windowTop:0}},{path:"/pages/index/rankingList",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isTabBar:!0,tabBarIndex:1},__uniConfig.globalStyle,{navigationBarTitleText:"排行榜",enablePullDownRefresh:!1,navigationStyle:"custom",navigationBarTextStyle:"white"})},[e("pages-index-rankingList",{slot:"page"})])}},meta:{id:3,name:"pages-index-rankingList",isNVue:!1,maxWidth:0,pagePath:"pages/index/rankingList",isQuit:!0,isTabBar:!0,tabBarIndex:1,windowTop:0}},{path:"/preview-image",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-preview-image",{slot:"page"})])}},meta:{name:"preview-image",pagePath:"/preview-image"}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],e.UniApp&&new e.UniApp}).call(this,o("c8ba"))}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-vote"],{"23a2":function(t,a,e){"use strict";var n=e("65f5"),i=e.n(n);i.a},"2b01":function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("96cf");var i=n(e("1da1")),o=e("69ab"),r={data:function(){return{bgColor:"transparent",id:"",type:"",detail:{}}},onLoad:function(t){this.id=t.id,this.type=t.type},onShow:function(){this.getVoteDetail()},methods:{rightClick:function(){uni.navigateBack()},getVoteDetail:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function a(){var e;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,o.getVoteDetail)(t.id,t.type);case 3:e=a.sent,t.detail=e,console.log("getVoteDetail",e),a.next=12;break;case 8:a.prev=8,a.t0=a["catch"](0),uni.showToast({title:a.t0,icon:"none"}),console.log("getVoteDetail",a.t0);case 12:case"end":return a.stop()}}),a,null,[[0,8]])})))()},vote:function(t){this.voteTwo(t)},voteTwo:function(t){var a=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,o.voteTwo)(a.id,a.type,t);case 3:n=e.sent,uni.showToast({title:1==t?"投票成功!":"取消成功!"}),a.getGoodStaff(),a.peopleList[index][idx].status=1,console.log("voteTwo",n),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("voteTwo",e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))()}}};a.default=r},"30d3":function(t,a,e){"use strict";e.r(a);var n=e("a6ef"),i=e("b666");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("23a2");var r,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"60a53aba",null,!1,n["a"],r);a["default"]=c.exports},"65f5":function(t,a,e){var n=e("d088");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("21e4dab2",n,!0,{sourceMap:!1,shadowMode:!1})},"69ab":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.voteTwo=a.getVoteDetail=a.getRanking=a.getGoodStaff=a.doLogin=void 0;var n=e("e819"),i=function(t,a){return(0,n.request)({url:"/api/user/login",method:"post",data:{mobile:t,password:a}})};a.doLogin=i;var o=function(t){return(0,n.request)({url:"/api/index/getGoodstaff",method:"post",data:{keyword:t}})};a.getGoodStaff=o;var r=function(t){return(0,n.request)({url:"/api/index/getRanking",method:"post",data:{keyword:t}})};a.getRanking=r;var s=function(t,a){return(0,n.request)({url:"/api/staff/vote",method:"post",data:{id:t,type:a}})};a.getVoteDetail=s;var c=function(t,a,e){return(0,n.request)({url:"/api/staff/voteTwo",method:"post",data:{id:t,type:a,vote:e}})};a.voteTwo=c},a6ef:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var n={uNavbar:e("17de").default},i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"main"},[e("u-navbar",{attrs:{title:"投票",placeholder:!0,autoBack:!0,bgColor:"bgColor",leftIconColor:"#fff"},on:{rightClick:function(a){arguments[0]=a=t.$handleEvent(a),t.rightClick.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"back"},[e("img",{attrs:{src:t.detail.content[0].headimage,alt:""}})]),e("v-uni-view",{staticClass:"con"},[e("v-uni-view",{staticClass:"name"},[e("v-uni-view",{staticClass:"img"},[e("img",{attrs:{src:"/static/line.png",alt:""}})]),e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.detail.content[0].name)),e("v-uni-text",[t._v(t._s(t.detail.content[0].subname))])],1),e("v-uni-view",{staticClass:"bottom"},[e("v-uni-view",{staticClass:"Rank"},[e("v-uni-view",{},[t._v(t._s(t.detail.num))]),e("v-uni-view",{staticClass:"titlet"},[t._v("名次")])],1),e("v-uni-view",{staticClass:"line"}),e("v-uni-view",{staticClass:"Rank"},[e("v-uni-view",{},[t._v(t._s(t.detail.content[0].poll))]),e("v-uni-view",{staticClass:"titlet"},[t._v("当前票数")])],1)],1),e("v-uni-view",{staticClass:"botimg"},[e("v-uni-view",{staticClass:"itemimg"},["no"!=t.detail.status?e("img",{attrs:{src:"/static/left.png",alt:""},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.vote(2)}}}):e("img",{attrs:{src:"/static/grayLeft.png",alt:""}})]),e("v-uni-view",{staticClass:"itemimg"},["no"==t.detail.status?e("img",{attrs:{src:"/static/right.png",alt:""},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.vote(1)}}}):e("img",{attrs:{src:"/static/grayRight.png",alt:""}})])],1)],1)],1)],1),e("v-uni-view",{staticClass:"bottomtitle"},[t._v("每人只有3次投票机会,不能投给同一人")])],1)},o=[]},b666:function(t,a,e){"use strict";e.r(a);var n=e("2b01"),i=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},d088:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */[data-v-60a53aba] .u-navbar__content{background:transparent!important}[data-v-60a53aba] .u-navbar__content__title{color:#fff!important}uni-page-body[data-v-60a53aba]{width:100%;background:linear-gradient(-49.4deg,#7effff,#80abff)}.u-navbar__content.data-v-75dad532[data-v-60a53aba]{background-color:rgba(126,255,255,0)!important}.data-v-75dad532[data-v-60a53aba]{background-color:rgba(126,255,255,0)!important}.u-navbar__content__title.data-v-75dad532[data-v-60a53aba]{color:#fff!important;font-size:%?32?%!important;font-weight:700!important}.back[data-v-60a53aba]{width:100%;height:%?562?%;z-index:-1}.back > img[data-v-60a53aba]{margin-top:%?40?%;width:100%;height:%?562?%}.con[data-v-60a53aba]{position:relative;z-index:100;width:%?686?%;margin:%?0?% auto;height:%?272?%;border-radius:%?12?%;opacity:1;background:#fff}.name[data-v-60a53aba]{position:absolute;top:%?0?%;left:%?0?%;width:100%;height:%?80?%;padding-top:%?52?%}.img[data-v-60a53aba]{position:absolute;left:%?32?%;top:%?32?%;width:%?622?%;height:%?80?%;z-index:-1}.img > img[data-v-60a53aba]{width:%?622?%;height:%?80?%}.title[data-v-60a53aba]{color:#fff;font-size:%?26?%;font-weight:700;margin:%?0?% %?212?%;white-space:nowrap;text-align:center}.title > uni-text[data-v-60a53aba]{margin-left:%?26?%}.bottom[data-v-60a53aba]{margin-top:%?52?%;display:flex;align-items:center;justify-content:space-around}.line[data-v-60a53aba]{width:%?2?%;height:%?60?%;background-color:#dcdcdc}.Rank[data-v-60a53aba]{width:50%;font-size:%?44?%;font-weight:700;color:#788ae8;display:flex;flex-direction:column;align-items:center;justify-content:center}.titlet[data-v-60a53aba]{color:rgba(0,0,0,.26);font-size:%?28?%}.botimg[data-v-60a53aba]{margin:%?80?% auto;display:flex;align-items:center}.itemimg[data-v-60a53aba]{width:%?322?%;height:%?148.07?%}.itemimg > img[data-v-60a53aba]{width:%?322?%;height:%?148.07?%}.bottomtitle[data-v-60a53aba]{position:absolute;left:50%;bottom:%?100?%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:100%;text-align:center;color:#fff;font-size:%?22?%}body.?%PAGE?%[data-v-60a53aba]{background:linear-gradient(-49.4deg,#7effff,#80abff)}',""]),t.exports=a},e819:function(t,a,e){"use strict";e("d3b7"),Object.defineProperty(a,"__esModule",{value:!0}),a.request=a.baseURL=void 0;var n="http://staff.shs.broing.cn";a.baseURL=n;var i=function(t){return new Promise((function(a,e){uni.request({url:n+t.url,method:t.method||"GET",data:t.data||{},header:{token:uni.getStorageSync("token")||""},success:function(t){console.log(t,uni.getStorageSync("token")),1==t.data.code?a(t.data.data):(401==t.data.code&&(uni.navigateTo({url:"/login/login"}),uni.clearStorageSync()),e(t.data.msg))},fail:function(t){console.log(t),e(t)}})}))};a.request=i}}]);
\ No newline at end of file
... ... @@ -16,9 +16,9 @@ export const request = (options) => {
resolve(res.data.data)
} else {
if(res.data.code== 401){
uni.navigateTo({
url:'/login/login'
})
uni.reLaunch({
url: '/pages/login/login'
})
uni.clearStorageSync()
}
reject(res.data.msg)
... ...