	var __wxAppData = __wxAppData || {}; 	var __wxRoute = __wxRoute || ""; 	var __wxRouteBegin = __wxRouteBegin || ""; 	var __wxAppCode__ = __wxAppCode__ || {};	var global = global || {};	var __WXML_GLOBAL__=__WXML_GLOBAL__ || {};	var __wxAppCurrentFile__=__wxAppCurrentFile__||""; 	var Component = Component || function(){};	var definePlugin = definePlugin || function(){};	var requirePlugin = requirePlugin || function(){};	var Behavior = Behavior || function(){};	var __vd_version_info__ = __vd_version_info__ || {};
	/*v0.5vv_20200413_syb_scopedata*/global.__wcc_version__='v0.5vv_20200413_syb_scopedata';global.__wcc_version_info__={"customComponents":true,"fixZeroRpx":true,"propValueDeepCopy":false};
var $gwxc
var $gaic={}
$gwx=function(path,global){
if(typeof global === 'undefined') global={};if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
function _(a,b){if(typeof(b)!='undefined')a.children.push(b);}
function _v(k){if(typeof(k)!='undefined')return {tag:'virtual','wxKey':k,children:[]};return {tag:'virtual',children:[]};}
function _n(tag){$gwxc++;if($gwxc>=16000){throw 'Dom limit exceeded, please check if there\'s any mistake you\'ve made.'};return {tag:'wx-'+tag,attr:{},children:[],n:[],raw:{},generics:{}}}
function _p(a,b){b&&a.properities.push(b);}
function _s(scope,env,key){return typeof(scope[key])!='undefined'?scope[key]:env[key]}
function _wp(m){console.warn("WXMLRT_$gwx:"+m)}
function _wl(tname,prefix){_wp(prefix+':-1:-1:-1: Template `' + tname + '` is being called recursively, will be stop.')}
$gwn=console.warn;
$gwl=console.log;
function $gwh()
{
function x()
{
}
x.prototype = 
{
hn: function( obj, all )
{
if( typeof(obj) == 'object' )
{
var cnt=0;
var any1=false,any2=false;
for(var x in obj)
{
any1=any1|x==='__value__';
any2=any2|x==='__wxspec__';
cnt++;
if(cnt>2)break;
}
return cnt == 2 && any1 && any2 && ( all || obj.__wxspec__ !== 'm' || this.hn(obj.__value__) === 'h' ) ? "h" : "n";
}
return "n";
},
nh: function( obj, special )
{
return { __value__: obj, __wxspec__: special ? special : true }
},
rv: function( obj )
{
return this.hn(obj,true)==='n'?obj:this.rv(obj.__value__);
},
hm: function( obj )
{
if( typeof(obj) == 'object' )
{
var cnt=0;
var any1=false,any2=false;
for(var x in obj)
{
any1=any1|x==='__value__';
any2=any2|x==='__wxspec__';
cnt++;
if(cnt>2)break;
}
return cnt == 2 && any1 && any2 && (obj.__wxspec__ === 'm' || this.hm(obj.__value__) );
}
return false;
}
}
return new x;
}
wh=$gwh();
function $gstack(s){
var tmp=s.split('\n '+' '+' '+' ');
for(var i=0;i<tmp.length;++i){
if(0==i) continue;
if(")"===tmp[i][tmp[i].length-1])
tmp[i]=tmp[i].replace(/\s\(.*\)$/,"");
else
tmp[i]="at anonymous function";
}
return tmp.join('\n '+' '+' '+' ');
}
function $gwrt( should_pass_type_info )
{
function ArithmeticEv( ops, e, s, g, o )
{
var _f = false;
var rop = ops[0][1];
var _a,_b,_c,_d, _aa, _bb;
switch( rop )
{
case '?:':
_a = rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && ( wh.hn(_a) === 'h' );
_d = wh.rv( _a ) ? rev( ops[2], e, s, g, o, _f ) : rev( ops[3], e, s, g, o, _f );
_d = _c && wh.hn( _d ) === 'n' ? wh.nh( _d, 'c' ) : _d;
return _d;
break;
case '&&':
_a = rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && ( wh.hn(_a) === 'h' );
_d = wh.rv( _a ) ? rev( ops[2], e, s, g, o, _f ) : wh.rv( _a );
_d = _c && wh.hn( _d ) === 'n' ? wh.nh( _d, 'c' ) : _d;
return _d;
break;
case '||':
_a = rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && ( wh.hn(_a) === 'h' );
_d = wh.rv( _a ) ? wh.rv(_a) : rev( ops[2], e, s, g, o, _f );
_d = _c && wh.hn( _d ) === 'n' ? wh.nh( _d, 'c' ) : _d;
return _d;
break;
case '+':
case '*':
case '/':
case '%':
case '|':
case '^':
case '&':
case '===':
case '==':
case '!=':
case '!==':
case '>=':
case '<=':
case '>':
case '<':
case '<<':
case '>>':
_a = rev( ops[1], e, s, g, o, _f );
_b = rev( ops[2], e, s, g, o, _f );
_c = should_pass_type_info && (wh.hn( _a ) === 'h' || wh.hn( _b ) === 'h');
switch( rop )
{
case '+':
_d = wh.rv( _a ) + wh.rv( _b );
break;
case '*':
_d = wh.rv( _a ) * wh.rv( _b );
break;
case '/':
_d = wh.rv( _a ) / wh.rv( _b );
break;
case '%':
_d = wh.rv( _a ) % wh.rv( _b );
break;
case '|':
_d = wh.rv( _a ) | wh.rv( _b );
break;
case '^':
_d = wh.rv( _a ) ^ wh.rv( _b );
break;
case '&':
_d = wh.rv( _a ) & wh.rv( _b );
break;
case '===':
_d = wh.rv( _a ) === wh.rv( _b );
break;
case '==':
_d = wh.rv( _a ) == wh.rv( _b );
break;
case '!=':
_d = wh.rv( _a ) != wh.rv( _b );
break;
case '!==':
_d = wh.rv( _a ) !== wh.rv( _b );
break;
case '>=':
_d = wh.rv( _a ) >= wh.rv( _b );
break;
case '<=':
_d = wh.rv( _a ) <= wh.rv( _b );
break;
case '>':
_d = wh.rv( _a ) > wh.rv( _b );
break;
case '<':
_d = wh.rv( _a ) < wh.rv( _b );
break;
case '<<':
_d = wh.rv( _a ) << wh.rv( _b );
break;
case '>>':
_d = wh.rv( _a ) >> wh.rv( _b );
break;
default:
break;
}
return _c ? wh.nh( _d, "c" ) : _d;
break;
case '-':
_a = ops.length === 3 ? rev( ops[1], e, s, g, o, _f ) : 0;
_b = ops.length === 3 ? rev( ops[2], e, s, g, o, _f ) : rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && (wh.hn( _a ) === 'h' || wh.hn( _b ) === 'h');
_d = _c ? wh.rv( _a ) - wh.rv( _b ) : _a - _b;
return _c ? wh.nh( _d, "c" ) : _d;
break;
case '!':
_a = rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && (wh.hn( _a ) == 'h');
_d = !wh.rv(_a);
return _c ? wh.nh( _d, "c" ) : _d;
case '~':
_a = rev( ops[1], e, s, g, o, _f );
_c = should_pass_type_info && (wh.hn( _a ) == 'h');
_d = ~wh.rv(_a);
return _c ? wh.nh( _d, "c" ) : _d;
default:
$gwn('unrecognized op' + rop );
}
}
function rev( ops, e, s, g, o, newap )
{
var op = ops[0];
var _f = false;
if ( typeof newap !== "undefined" ) o.ap = newap;
if( typeof(op)==='object' )
{
var vop=op[0];
var _a, _aa, _b, _bb, _c, _d, _s, _e, _ta, _tb, _td;
switch(vop)
{
case 2:
return ArithmeticEv(ops,e,s,g,o);
break;
case 4: 
return rev( ops[1], e, s, g, o, _f );
break;
case 5: 
switch( ops.length )
{
case 2: 
_a = rev( ops[1],e,s,g,o,_f );
return should_pass_type_info?[_a]:[wh.rv(_a)];
return [_a];
break;
case 1: 
return [];
break;
default:
_a = rev( ops[1],e,s,g,o,_f );
_b = rev( ops[2],e,s,g,o,_f );
_a.push( 
should_pass_type_info ?
_b :
wh.rv( _b )
);
return _a;
break;
}
break;
case 6:
_a = rev(ops[1],e,s,g,o);
var ap = o.ap;
_ta = wh.hn(_a)==='h';
_aa = _ta ? wh.rv(_a) : _a;
o.is_affected |= _ta;
if( should_pass_type_info )
{
if( _aa===null || typeof(_aa) === 'undefined' )
{
return _ta ? wh.nh(undefined, 'e') : undefined;
}
_b = rev(ops[2],e,s,g,o,_f);
_tb = wh.hn(_b) === 'h';
_bb = _tb ? wh.rv(_b) : _b;
o.ap = ap;
o.is_affected |= _tb;
if( _bb===null || typeof(_bb) === 'undefined' || 
_bb === "__proto__" || _bb === "prototype" || _bb === "caller" ) 
{
return (_ta || _tb) ? wh.nh(undefined, 'e') : undefined;
}
_d = _aa[_bb];
if ( typeof _d === 'function' && !ap ) _d = undefined;
_td = wh.hn(_d)==='h';
o.is_affected |= _td;
return (_ta || _tb) ? (_td ? _d : wh.nh(_d, 'e')) : _d;
}
else
{
if( _aa===null || typeof(_aa) === 'undefined' )
{
return undefined;
}
_b = rev(ops[2],e,s,g,o,_f);
_tb = wh.hn(_b) === 'h';
_bb = _tb ? wh.rv(_b) : _b;
o.ap = ap;
o.is_affected |= _tb;
if( _bb===null || typeof(_bb) === 'undefined' || 
_bb === "__proto__" || _bb === "prototype" || _bb === "caller" ) 
{
return undefined;
}
_d = _aa[_bb];
if ( typeof _d === 'function' && !ap ) _d = undefined;
_td = wh.hn(_d)==='h';
o.is_affected |= _td;
return _td ? wh.rv(_d) : _d;
}
case 7: 
switch(ops[1][0])
{
case 11:
o.is_affected |= wh.hn(g)==='h';
return g;
case 3:
_s = wh.rv( s );
_e = wh.rv( e );
_b = ops[1][1];
if (g && g.f && g.f.hasOwnProperty(_b) )
{
_a = g.f;
o.ap = true;
}
else
{
_a = _s && _s.hasOwnProperty(_b) ? 
s : (_e && _e.hasOwnProperty(_b) ? e : undefined );
}
if( should_pass_type_info )
{
if( _a )
{
_ta = wh.hn(_a) === 'h';
_aa = _ta ? wh.rv( _a ) : _a;
_d = _aa[_b];
_td = wh.hn(_d) === 'h';
o.is_affected |= _ta || _td;
_d = _ta && !_td ? wh.nh(_d,'e') : _d;
return _d;
}
}
else
{
if( _a )
{
_ta = wh.hn(_a) === 'h';
_aa = _ta ? wh.rv( _a ) : _a;
_d = _aa[_b];
_td = wh.hn(_d) === 'h';
o.is_affected |= _ta || _td;
return wh.rv(_d);
}
}
return undefined;
}
break;
case 8: 
_a = {};
_a[ops[1]] = rev(ops[2],e,s,g,o,_f);
return _a;
break;
case 9: 
_a = rev(ops[1],e,s,g,o,_f);
_b = rev(ops[2],e,s,g,o,_f);
function merge( _a, _b, _ow )
{
var ka, _bbk;
_ta = wh.hn(_a)==='h';
_tb = wh.hn(_b)==='h';
_aa = wh.rv(_a);
_bb = wh.rv(_b);
for(var k in _bb)
{
if ( _ow || !_aa.hasOwnProperty(k) )
{
_aa[k] = should_pass_type_info ? (_tb ? wh.nh(_bb[k],'e') : _bb[k]) : wh.rv(_bb[k]);
}
}
return _a;
}
var _c = _a
var _ow = true
if ( typeof(ops[1][0]) === "object" && ops[1][0][0] === 10 ) {
_a = _b
_b = _c
_ow = false
}
if ( typeof(ops[1][0]) === "object" && ops[1][0][0] === 10 ) {
var _r = {}
return merge( merge( _r, _a, _ow ), _b, _ow );
}
else
return merge( _a, _b, _ow );
break;
case 10:
_a = rev(ops[1],e,s,g,o,_f);
_a = should_pass_type_info ? _a : wh.rv( _a );
return _a ;
break;
case 12:
var _r;
_a = rev(ops[1],e,s,g,o);
if ( !o.ap )
{
return should_pass_type_info && wh.hn(_a)==='h' ? wh.nh( _r, 'f' ) : _r;
}
var ap = o.ap;
_b = rev(ops[2],e,s,g,o,_f);
o.ap = ap;
_ta = wh.hn(_a)==='h';
_tb = _ca(_b);
_aa = wh.rv(_a);	
_bb = wh.rv(_b); snap_bb=$gdc(_bb,"nv_");
try{
_r = typeof _aa === "function" ? $gdc(_aa.apply(null, snap_bb)) : undefined;
} catch (e){
e.message = e.message.replace(/nv_/g,"");
e.stack = e.stack.substring(0,e.stack.indexOf("\n", e.stack.lastIndexOf("at nv_")));
e.stack = e.stack.replace(/\snv_/g," "); 
e.stack = $gstack(e.stack);	
if(g.debugInfo)
{
e.stack += "\n "+" "+" "+" at "+g.debugInfo[0]+":"+g.debugInfo[1]+":"+g.debugInfo[2];
console.error(e);
}
_r = undefined;
}
return should_pass_type_info && (_tb || _ta) ? wh.nh( _r, 'f' ) : _r;
}
}
else
{
if( op === 3 || op === 1) return ops[1];
else if( op === 11 ) 
{
var _a='';
for( var i = 1 ; i < ops.length ; i++ )
{
var xp = wh.rv(rev(ops[i],e,s,g,o,_f));
_a += typeof(xp) === 'undefined' ? '' : xp;
}
return _a;
}
}
}
function wrapper( ops, e, s, g, o, newap )
{
if( ops[0] == '11182016' )
{
g.debugInfo = ops[2];
return rev( ops[1], e, s, g, o, newap );
}
else
{
g.debugInfo = null;
return rev( ops, e, s, g, o, newap );
}
}
return wrapper;
}
gra=$gwrt(true); 
grb=$gwrt(false); 
function TestTest( expr, ops, e,s,g, expect_a, expect_b, expect_affected )
{
{
var o = {is_affected:false};
var a = gra( ops, e,s,g, o );
if( JSON.stringify(a) != JSON.stringify( expect_a )
|| o.is_affected != expect_affected )
{
console.warn( "A. " + expr + " get result " + JSON.stringify(a) + ", " + o.is_affected + ", but " + JSON.stringify( expect_a ) + ", " + expect_affected + " is expected" );
}
}
{
var o = {is_affected:false};
var a = grb( ops, e,s,g, o );
if( JSON.stringify(a) != JSON.stringify( expect_b )
|| o.is_affected != expect_affected )
{
console.warn( "B. " + expr + " get result " + JSON.stringify(a) + ", " + o.is_affected + ", but " + JSON.stringify( expect_b ) + ", " + expect_affected + " is expected" );
}
}
}

function wfor( to_iter, func, env, _s, global, father, itemname, indexname, keyname )
{
var _n = wh.hn( to_iter ) === 'n'; 
var scope = wh.rv( _s ); 
var has_old_item = scope.hasOwnProperty(itemname);
var has_old_index = scope.hasOwnProperty(indexname);
var old_item = scope[itemname];
var old_index = scope[indexname];
var full = Object.prototype.toString.call(wh.rv(to_iter));
var type = full[8]; 
if( type === 'N' && full[10] === 'l' ) type = 'X'; 
var _y;
if( _n )
{
if( type === 'A' ) 
{
var r_iter_item;
for( var i = 0 ; i < to_iter.length ; i++ )
{
scope[itemname] = to_iter[i];
scope[indexname] = _n ? i : wh.nh(i, 'h');
r_iter_item = wh.rv(to_iter[i]);
var key = keyname && r_iter_item ? (keyname==="*this" ? r_iter_item : wh.rv(r_iter_item[keyname])) : undefined;
_y = _v(key);
_(father,_y);
func( env, scope, _y, global );
}
}
else if( type === 'O' ) 
{
var i = 0;
var r_iter_item;
for( var k in to_iter )
{
scope[itemname] = to_iter[k];
scope[indexname] = _n ? k : wh.nh(k, 'h');
r_iter_item = wh.rv(to_iter[k]);
var key = keyname && r_iter_item ? (keyname==="*this" ? r_iter_item : wh.rv(r_iter_item[keyname])) : undefined;
_y = _v(key);
_(father,_y);
func( env,scope,_y,global );
i++;
}
}
else if( type === 'S' ) 
{
for( var i = 0 ; i < to_iter.length ; i++ )
{
scope[itemname] = to_iter[i];
scope[indexname] = _n ? i : wh.nh(i, 'h');
_y = _v( to_iter[i] + i );
_(father,_y);
func( env,scope,_y,global );
}
}
else if( type === 'N' ) 
{
for( var i = 0 ; i < to_iter ; i++ )
{
scope[itemname] = i;
scope[indexname] = _n ? i : wh.nh(i, 'h');
_y = _v( i );
_(father,_y);
func(env,scope,_y,global);
}
}
else
{
}
}
else
{
var r_to_iter = wh.rv(to_iter);
var r_iter_item, iter_item;
if( type === 'A' ) 
{
for( var i = 0 ; i < r_to_iter.length ; i++ )
{
iter_item = r_to_iter[i];
iter_item = wh.hn(iter_item)==='n' ? wh.nh(iter_item,'h') : iter_item;
r_iter_item = wh.rv( iter_item );
scope[itemname] = iter_item
scope[indexname] = _n ? i : wh.nh(i, 'h');
var key = keyname && r_iter_item ? (keyname==="*this" ? r_iter_item : wh.rv(r_iter_item[keyname])) : undefined;
_y = _v(key);
_(father,_y);
func( env, scope, _y, global );
}
}
else if( type === 'O' ) 
{
var i=0;
for( var k in r_to_iter )
{
iter_item = r_to_iter[k];
iter_item = wh.hn(iter_item)==='n'? wh.nh(iter_item,'h') : iter_item;
r_iter_item = wh.rv( iter_item );
scope[itemname] = iter_item;
scope[indexname] = _n ? k : wh.nh(k, 'h');
var key = keyname && r_iter_item ? (keyname==="*this" ? r_iter_item : wh.rv(r_iter_item[keyname])) : undefined;
_y=_v(key);
_(father,_y);
func( env, scope, _y, global );
i++
}
}
else if( type === 'S' ) 
{
for( var i = 0 ; i < r_to_iter.length ; i++ )
{
iter_item = wh.nh(r_to_iter[i],'h');
scope[itemname] = iter_item;
scope[indexname] = _n ? i : wh.nh(i, 'h');
_y = _v( to_iter[i] + i );
_(father,_y);
func( env, scope, _y, global );
}
}
else if( type === 'N' ) 
{
for( var i = 0 ; i < r_to_iter ; i++ )
{
iter_item = wh.nh(i,'h');
scope[itemname] = iter_item;
scope[indexname]= _n ? i : wh.nh(i,'h');
_y = _v( i );
_(father,_y);
func(env,scope,_y,global);
}
}
else
{
}
}
if(has_old_item)
{
scope[itemname]=old_item;
}
else
{
delete scope[itemname];
}
if(has_old_index)
{
scope[indexname]=old_index;
}
else
{
delete scope[indexname];
}
}

function _ca(o)
{ 
if ( wh.hn(o) == 'h' ) return true;
if ( typeof o !== "object" ) return false;
for(var i in o){ 
if ( o.hasOwnProperty(i) ){
if (_ca(o[i])) return true;
}
}
return false;
}
function _da( node, attrname, opindex, raw, o )
{
var isaffected = false;
var value = $gdc( raw, "", 2 );
if ( o.ap && value && value.constructor===Function ) 
{
attrname = "$wxs:" + attrname; 
node.attr["$gdc"] = $gdc;
}
if ( o.is_affected || _ca(raw) ) 
{
node.n.push( attrname );
node.raw[attrname] = raw;
}
node.attr[attrname] = value;
}
function _r( node, attrname, opindex, env, scope, global ) 
{
global.opindex=opindex;
var o = {}, _env;
var a = grb( z[opindex], env, scope, global, o );
_da( node, attrname, opindex, a, o );
}
function _rz( z, node, attrname, opindex, env, scope, global ) 
{
global.opindex=opindex;
var o = {}, _env;
var a = grb( z[opindex], env, scope, global, o );
_da( node, attrname, opindex, a, o );
}
function _o( opindex, env, scope, global )
{
global.opindex=opindex;
var nothing = {};
var r = grb( z[opindex], env, scope, global, nothing );
return (r&&r.constructor===Function) ? undefined : r;
}
function _oz( z, opindex, env, scope, global )
{
global.opindex=opindex;
var nothing = {};
var r = grb( z[opindex], env, scope, global, nothing );
return (r&&r.constructor===Function) ? undefined : r;
}
function _1( opindex, env, scope, global, o )
{
var o = o || {};
global.opindex=opindex;
return gra( z[opindex], env, scope, global, o );
}
function _1z( z, opindex, env, scope, global, o )
{
var o = o || {};
global.opindex=opindex;
return gra( z[opindex], env, scope, global, o );
}
function _2( opindex, func, env, scope, global, father, itemname, indexname, keyname )
{
var o = {};
var to_iter = _1( opindex, env, scope, global );
wfor( to_iter, func, env, scope, global, father, itemname, indexname, keyname );
}
function _2z( z, opindex, func, env, scope, global, father, itemname, indexname, keyname )
{
var o = {};
var to_iter = _1z( z, opindex, env, scope, global );
wfor( to_iter, func, env, scope, global, father, itemname, indexname, keyname );
}


function _m(tag,attrs,generics,env,scope,global)
{
var tmp=_n(tag);
var base=0;
for(var i = 0 ; i < attrs.length ; i+=2 )
{
if(base+attrs[i+1]<0)
{
tmp.attr[attrs[i]]=true;
}
else
{
_r(tmp,attrs[i],base+attrs[i+1],env,scope,global);
if(base===0)base=attrs[i+1];
}
}
for(var i=0;i<generics.length;i+=2)
{
if(base+generics[i+1]<0)
{
tmp.generics[generics[i]]="";
}
else
{
var $t=grb(z[base+generics[i+1]],env,scope,global);
if ($t!="") $t="wx-"+$t;
tmp.generics[generics[i]]=$t;
if(base===0)base=generics[i+1];
}
}
return tmp;
}
function _mz(z,tag,attrs,generics,env,scope,global)
{
var tmp=_n(tag);
var base=0;
for(var i = 0 ; i < attrs.length ; i+=2 )
{
if(base+attrs[i+1]<0)
{
tmp.attr[attrs[i]]=true;
}
else
{
_rz(z, tmp,attrs[i],base+attrs[i+1],env,scope,global);
if(base===0)base=attrs[i+1];
}
}
for(var i=0;i<generics.length;i+=2)
{
if(base+generics[i+1]<0)
{
tmp.generics[generics[i]]="";
}
else
{
var $t=grb(z[base+generics[i+1]],env,scope,global);
if ($t!="") $t="wx-"+$t;
tmp.generics[generics[i]]=$t;
if(base===0)base=generics[i+1];
}
}
return tmp;
}

var nf_init=function(){
if(typeof __WXML_GLOBAL__==="undefined"||undefined===__WXML_GLOBAL__.wxs_nf_init){
nf_init_Object();nf_init_Function();nf_init_Array();nf_init_String();nf_init_Boolean();nf_init_Number();nf_init_Math();nf_init_Date();nf_init_RegExp();
}
if(typeof __WXML_GLOBAL__!=="undefined") __WXML_GLOBAL__.wxs_nf_init=true;
};
var nf_init_Object=function(){
Object.defineProperty(Object.prototype,"nv_constructor",{writable:true,value:"Object"})
Object.defineProperty(Object.prototype,"nv_toString",{writable:true,value:function(){return "[object Object]"}})
}
var nf_init_Function=function(){
Object.defineProperty(Function.prototype,"nv_constructor",{writable:true,value:"Function"})
Object.defineProperty(Function.prototype,"nv_length",{get:function(){return this.length;},set:function(){}});
Object.defineProperty(Function.prototype,"nv_toString",{writable:true,value:function(){return "[function Function]"}})
}
var nf_init_Array=function(){
Object.defineProperty(Array.prototype,"nv_toString",{writable:true,value:function(){return this.nv_join();}})
Object.defineProperty(Array.prototype,"nv_join",{writable:true,value:function(s){
s=undefined==s?',':s;
var r="";
for(var i=0;i<this.length;++i){
if(0!=i) r+=s;
if(null==this[i]||undefined==this[i]) r+='';	
else if(typeof this[i]=='function') r+=this[i].nv_toString();
else if(typeof this[i]=='object'&&this[i].nv_constructor==="Array") r+=this[i].nv_join();
else r+=this[i].toString();
}
return r;
}})
Object.defineProperty(Array.prototype,"nv_constructor",{writable:true,value:"Array"})
Object.defineProperty(Array.prototype,"nv_concat",{writable:true,value:Array.prototype.concat})
Object.defineProperty(Array.prototype,"nv_pop",{writable:true,value:Array.prototype.pop})
Object.defineProperty(Array.prototype,"nv_push",{writable:true,value:Array.prototype.push})
Object.defineProperty(Array.prototype,"nv_reverse",{writable:true,value:Array.prototype.reverse})
Object.defineProperty(Array.prototype,"nv_shift",{writable:true,value:Array.prototype.shift})
Object.defineProperty(Array.prototype,"nv_slice",{writable:true,value:Array.prototype.slice})
Object.defineProperty(Array.prototype,"nv_sort",{writable:true,value:Array.prototype.sort})
Object.defineProperty(Array.prototype,"nv_splice",{writable:true,value:Array.prototype.splice})
Object.defineProperty(Array.prototype,"nv_unshift",{writable:true,value:Array.prototype.unshift})
Object.defineProperty(Array.prototype,"nv_indexOf",{writable:true,value:Array.prototype.indexOf})
Object.defineProperty(Array.prototype,"nv_lastIndexOf",{writable:true,value:Array.prototype.lastIndexOf})
Object.defineProperty(Array.prototype,"nv_every",{writable:true,value:Array.prototype.every})
Object.defineProperty(Array.prototype,"nv_some",{writable:true,value:Array.prototype.some})
Object.defineProperty(Array.prototype,"nv_forEach",{writable:true,value:Array.prototype.forEach})
Object.defineProperty(Array.prototype,"nv_map",{writable:true,value:Array.prototype.map})
Object.defineProperty(Array.prototype,"nv_filter",{writable:true,value:Array.prototype.filter})
Object.defineProperty(Array.prototype,"nv_reduce",{writable:true,value:Array.prototype.reduce})
Object.defineProperty(Array.prototype,"nv_reduceRight",{writable:true,value:Array.prototype.reduceRight})
Object.defineProperty(Array.prototype,"nv_length",{get:function(){return this.length;},set:function(value){this.length=value;}});
}
var nf_init_String=function(){
Object.defineProperty(String.prototype,"nv_constructor",{writable:true,value:"String"})
Object.defineProperty(String.prototype,"nv_toString",{writable:true,value:String.prototype.toString})
Object.defineProperty(String.prototype,"nv_valueOf",{writable:true,value:String.prototype.valueOf})
Object.defineProperty(String.prototype,"nv_charAt",{writable:true,value:String.prototype.charAt})
Object.defineProperty(String.prototype,"nv_charCodeAt",{writable:true,value:String.prototype.charCodeAt})
Object.defineProperty(String.prototype,"nv_concat",{writable:true,value:String.prototype.concat})
Object.defineProperty(String.prototype,"nv_indexOf",{writable:true,value:String.prototype.indexOf})
Object.defineProperty(String.prototype,"nv_lastIndexOf",{writable:true,value:String.prototype.lastIndexOf})
Object.defineProperty(String.prototype,"nv_localeCompare",{writable:true,value:String.prototype.localeCompare})
Object.defineProperty(String.prototype,"nv_match",{writable:true,value:String.prototype.match})
Object.defineProperty(String.prototype,"nv_replace",{writable:true,value:String.prototype.replace})
Object.defineProperty(String.prototype,"nv_search",{writable:true,value:String.prototype.search})
Object.defineProperty(String.prototype,"nv_slice",{writable:true,value:String.prototype.slice})
Object.defineProperty(String.prototype,"nv_split",{writable:true,value:String.prototype.split})
Object.defineProperty(String.prototype,"nv_substring",{writable:true,value:String.prototype.substring})
Object.defineProperty(String.prototype,"nv_toLowerCase",{writable:true,value:String.prototype.toLowerCase})
Object.defineProperty(String.prototype,"nv_toLocaleLowerCase",{writable:true,value:String.prototype.toLocaleLowerCase})
Object.defineProperty(String.prototype,"nv_toUpperCase",{writable:true,value:String.prototype.toUpperCase})
Object.defineProperty(String.prototype,"nv_toLocaleUpperCase",{writable:true,value:String.prototype.toLocaleUpperCase})
Object.defineProperty(String.prototype,"nv_trim",{writable:true,value:String.prototype.trim})
Object.defineProperty(String.prototype,"nv_length",{get:function(){return this.length;},set:function(value){this.length=value;}});
}
var nf_init_Boolean=function(){
Object.defineProperty(Boolean.prototype,"nv_constructor",{writable:true,value:"Boolean"})
Object.defineProperty(Boolean.prototype,"nv_toString",{writable:true,value:Boolean.prototype.toString})
Object.defineProperty(Boolean.prototype,"nv_valueOf",{writable:true,value:Boolean.prototype.valueOf})
}
var nf_init_Number=function(){
Object.defineProperty(Number,"nv_MAX_VALUE",{writable:false,value:Number.MAX_VALUE})
Object.defineProperty(Number,"nv_MIN_VALUE",{writable:false,value:Number.MIN_VALUE})
Object.defineProperty(Number,"nv_NEGATIVE_INFINITY",{writable:false,value:Number.NEGATIVE_INFINITY})
Object.defineProperty(Number,"nv_POSITIVE_INFINITY",{writable:false,value:Number.POSITIVE_INFINITY})
Object.defineProperty(Number.prototype,"nv_constructor",{writable:true,value:"Number"})
Object.defineProperty(Number.prototype,"nv_toString",{writable:true,value:Number.prototype.toString})
Object.defineProperty(Number.prototype,"nv_toLocaleString",{writable:true,value:Number.prototype.toLocaleString})
Object.defineProperty(Number.prototype,"nv_valueOf",{writable:true,value:Number.prototype.valueOf})
Object.defineProperty(Number.prototype,"nv_toFixed",{writable:true,value:Number.prototype.toFixed})
Object.defineProperty(Number.prototype,"nv_toExponential",{writable:true,value:Number.prototype.toExponential})
Object.defineProperty(Number.prototype,"nv_toPrecision",{writable:true,value:Number.prototype.toPrecision})
}
var nf_init_Math=function(){
Object.defineProperty(Math,"nv_E",{writable:false,value:Math.E})
Object.defineProperty(Math,"nv_LN10",{writable:false,value:Math.LN10})
Object.defineProperty(Math,"nv_LN2",{writable:false,value:Math.LN2})
Object.defineProperty(Math,"nv_LOG2E",{writable:false,value:Math.LOG2E})
Object.defineProperty(Math,"nv_LOG10E",{writable:false,value:Math.LOG10E})
Object.defineProperty(Math,"nv_PI",{writable:false,value:Math.PI})
Object.defineProperty(Math,"nv_SQRT1_2",{writable:false,value:Math.SQRT1_2})
Object.defineProperty(Math,"nv_SQRT2",{writable:false,value:Math.SQRT2})
Object.defineProperty(Math,"nv_abs",{writable:false,value:Math.abs})
Object.defineProperty(Math,"nv_acos",{writable:false,value:Math.acos})
Object.defineProperty(Math,"nv_asin",{writable:false,value:Math.asin})
Object.defineProperty(Math,"nv_atan",{writable:false,value:Math.atan})
Object.defineProperty(Math,"nv_atan2",{writable:false,value:Math.atan2})
Object.defineProperty(Math,"nv_ceil",{writable:false,value:Math.ceil})
Object.defineProperty(Math,"nv_cos",{writable:false,value:Math.cos})
Object.defineProperty(Math,"nv_exp",{writable:false,value:Math.exp})
Object.defineProperty(Math,"nv_floor",{writable:false,value:Math.floor})
Object.defineProperty(Math,"nv_log",{writable:false,value:Math.log})
Object.defineProperty(Math,"nv_max",{writable:false,value:Math.max})
Object.defineProperty(Math,"nv_min",{writable:false,value:Math.min})
Object.defineProperty(Math,"nv_pow",{writable:false,value:Math.pow})
Object.defineProperty(Math,"nv_random",{writable:false,value:Math.random})
Object.defineProperty(Math,"nv_round",{writable:false,value:Math.round})
Object.defineProperty(Math,"nv_sin",{writable:false,value:Math.sin})
Object.defineProperty(Math,"nv_sqrt",{writable:false,value:Math.sqrt})
Object.defineProperty(Math,"nv_tan",{writable:false,value:Math.tan})
}
var nf_init_Date=function(){
Object.defineProperty(Date.prototype,"nv_constructor",{writable:true,value:"Date"})
Object.defineProperty(Date,"nv_parse",{writable:true,value:Date.parse})
Object.defineProperty(Date,"nv_UTC",{writable:true,value:Date.UTC})
Object.defineProperty(Date,"nv_now",{writable:true,value:Date.now})
Object.defineProperty(Date.prototype,"nv_toString",{writable:true,value:Date.prototype.toString})
Object.defineProperty(Date.prototype,"nv_toDateString",{writable:true,value:Date.prototype.toDateString})
Object.defineProperty(Date.prototype,"nv_toTimeString",{writable:true,value:Date.prototype.toTimeString})
Object.defineProperty(Date.prototype,"nv_toLocaleString",{writable:true,value:Date.prototype.toLocaleString})
Object.defineProperty(Date.prototype,"nv_toLocaleDateString",{writable:true,value:Date.prototype.toLocaleDateString})
Object.defineProperty(Date.prototype,"nv_toLocaleTimeString",{writable:true,value:Date.prototype.toLocaleTimeString})
Object.defineProperty(Date.prototype,"nv_valueOf",{writable:true,value:Date.prototype.valueOf})
Object.defineProperty(Date.prototype,"nv_getTime",{writable:true,value:Date.prototype.getTime})
Object.defineProperty(Date.prototype,"nv_getFullYear",{writable:true,value:Date.prototype.getFullYear})
Object.defineProperty(Date.prototype,"nv_getUTCFullYear",{writable:true,value:Date.prototype.getUTCFullYear})
Object.defineProperty(Date.prototype,"nv_getMonth",{writable:true,value:Date.prototype.getMonth})
Object.defineProperty(Date.prototype,"nv_getUTCMonth",{writable:true,value:Date.prototype.getUTCMonth})
Object.defineProperty(Date.prototype,"nv_getDate",{writable:true,value:Date.prototype.getDate})
Object.defineProperty(Date.prototype,"nv_getUTCDate",{writable:true,value:Date.prototype.getUTCDate})
Object.defineProperty(Date.prototype,"nv_getDay",{writable:true,value:Date.prototype.getDay})
Object.defineProperty(Date.prototype,"nv_getUTCDay",{writable:true,value:Date.prototype.getUTCDay})
Object.defineProperty(Date.prototype,"nv_getHours",{writable:true,value:Date.prototype.getHours})
Object.defineProperty(Date.prototype,"nv_getUTCHours",{writable:true,value:Date.prototype.getUTCHours})
Object.defineProperty(Date.prototype,"nv_getMinutes",{writable:true,value:Date.prototype.getMinutes})
Object.defineProperty(Date.prototype,"nv_getUTCMinutes",{writable:true,value:Date.prototype.getUTCMinutes})
Object.defineProperty(Date.prototype,"nv_getSeconds",{writable:true,value:Date.prototype.getSeconds})
Object.defineProperty(Date.prototype,"nv_getUTCSeconds",{writable:true,value:Date.prototype.getUTCSeconds})
Object.defineProperty(Date.prototype,"nv_getMilliseconds",{writable:true,value:Date.prototype.getMilliseconds})
Object.defineProperty(Date.prototype,"nv_getUTCMilliseconds",{writable:true,value:Date.prototype.getUTCMilliseconds})
Object.defineProperty(Date.prototype,"nv_getTimezoneOffset",{writable:true,value:Date.prototype.getTimezoneOffset})
Object.defineProperty(Date.prototype,"nv_setTime",{writable:true,value:Date.prototype.setTime})
Object.defineProperty(Date.prototype,"nv_setMilliseconds",{writable:true,value:Date.prototype.setMilliseconds})
Object.defineProperty(Date.prototype,"nv_setUTCMilliseconds",{writable:true,value:Date.prototype.setUTCMilliseconds})
Object.defineProperty(Date.prototype,"nv_setSeconds",{writable:true,value:Date.prototype.setSeconds})
Object.defineProperty(Date.prototype,"nv_setUTCSeconds",{writable:true,value:Date.prototype.setUTCSeconds})
Object.defineProperty(Date.prototype,"nv_setMinutes",{writable:true,value:Date.prototype.setMinutes})
Object.defineProperty(Date.prototype,"nv_setUTCMinutes",{writable:true,value:Date.prototype.setUTCMinutes})
Object.defineProperty(Date.prototype,"nv_setHours",{writable:true,value:Date.prototype.setHours})
Object.defineProperty(Date.prototype,"nv_setUTCHours",{writable:true,value:Date.prototype.setUTCHours})
Object.defineProperty(Date.prototype,"nv_setDate",{writable:true,value:Date.prototype.setDate})
Object.defineProperty(Date.prototype,"nv_setUTCDate",{writable:true,value:Date.prototype.setUTCDate})
Object.defineProperty(Date.prototype,"nv_setMonth",{writable:true,value:Date.prototype.setMonth})
Object.defineProperty(Date.prototype,"nv_setUTCMonth",{writable:true,value:Date.prototype.setUTCMonth})
Object.defineProperty(Date.prototype,"nv_setFullYear",{writable:true,value:Date.prototype.setFullYear})
Object.defineProperty(Date.prototype,"nv_setUTCFullYear",{writable:true,value:Date.prototype.setUTCFullYear})
Object.defineProperty(Date.prototype,"nv_toUTCString",{writable:true,value:Date.prototype.toUTCString})
Object.defineProperty(Date.prototype,"nv_toISOString",{writable:true,value:Date.prototype.toISOString})
Object.defineProperty(Date.prototype,"nv_toJSON",{writable:true,value:Date.prototype.toJSON})
}
var nf_init_RegExp=function(){
Object.defineProperty(RegExp.prototype,"nv_constructor",{writable:true,value:"RegExp"})
Object.defineProperty(RegExp.prototype,"nv_exec",{writable:true,value:RegExp.prototype.exec})
Object.defineProperty(RegExp.prototype,"nv_test",{writable:true,value:RegExp.prototype.test})
Object.defineProperty(RegExp.prototype,"nv_toString",{writable:true,value:RegExp.prototype.toString})
Object.defineProperty(RegExp.prototype,"nv_source",{get:function(){return this.source;},set:function(){}});
Object.defineProperty(RegExp.prototype,"nv_global",{get:function(){return this.global;},set:function(){}});
Object.defineProperty(RegExp.prototype,"nv_ignoreCase",{get:function(){return this.ignoreCase;},set:function(){}});
Object.defineProperty(RegExp.prototype,"nv_multiline",{get:function(){return this.multiline;},set:function(){}});
Object.defineProperty(RegExp.prototype,"nv_lastIndex",{get:function(){return this.lastIndex;},set:function(v){this.lastIndex=v;}});
}
nf_init();
var nv_getDate=function(){var args=Array.prototype.slice.call(arguments);args.unshift(Date);return new(Function.prototype.bind.apply(Date, args));}
var nv_getRegExp=function(){var args=Array.prototype.slice.call(arguments);args.unshift(RegExp);return new(Function.prototype.bind.apply(RegExp, args));}
var nv_console={}
nv_console.nv_log=function(){var res="WXSRT:";for(var i=0;i<arguments.length;++i)res+=arguments[i]+" ";console.log(res);}
var nv_parseInt = parseInt, nv_parseFloat = parseFloat, nv_isNaN = isNaN, nv_isFinite = isFinite, nv_decodeURI = decodeURI, nv_decodeURIComponent = decodeURIComponent, nv_encodeURI = encodeURI, nv_encodeURIComponent = encodeURIComponent;
function $gdc(o,p,r) {
o=wh.rv(o);
if(o===null||o===undefined) return o;
if(o.constructor===String||o.constructor===Boolean||o.constructor===Number) return o;
if(o.constructor===Object){
var copy={};
for(var k in o)
if(o.hasOwnProperty(k))
if(undefined===p) copy[k.substring(3)]=$gdc(o[k],p,r);
else copy[p+k]=$gdc(o[k],p,r);
return copy;
}
if(o.constructor===Array){
var copy=[];
for(var i=0;i<o.length;i++) copy.push($gdc(o[i],p,r));
return copy;
}
if(o.constructor===Date){
var copy=new Date();
copy.setTime(o.getTime());
return copy;
}
if(o.constructor===RegExp){
var f="";
if(o.global) f+="g";
if(o.ignoreCase) f+="i";
if(o.multiline) f+="m";
return (new RegExp(o.source,f));
}
if(r&&o.constructor===Function){
if ( r == 1 ) return $gdc(o(),undefined, 2);
if ( r == 2 ) return o;
}
return null;
}
var nv_JSON={}
nv_JSON.nv_stringify=function(o){
JSON.stringify(o);
return JSON.stringify($gdc(o));
}
nv_JSON.nv_parse=function(o){
if(o===undefined) return undefined;
var t=JSON.parse(o);
return $gdc(t,'nv_');
}

function _af(p, a, r, c){
p.extraAttr = {"t_action": a, "t_rawid": r };
if ( typeof(c) != 'undefined' ) p.extraAttr.t_cid = c;
}

function _ai(i,p,e,me,r,c){var x=_grp(p,e,me);if(x)i.push(x);else{i.push('');_wp(me+':import:'+r+':'+c+': Path `'+p+'` not found from `'+me+'`.')}}
function _grp(p,e,me){if(p[0]!='/'){var mepart=me.split('/');mepart.pop();var ppart=p.split('/');for(var i=0;i<ppart.length;i++){if( ppart[i]=='..')mepart.pop();else if(!ppart[i]||ppart[i]=='.')continue;else mepart.push(ppart[i]);}p=mepart.join('/');}if(me[0]=='.'&&p[0]=='/')p='.'+p;if(e[p])return p;if(e[p+'.wxml'])return p+'.wxml';}
function _gd(p,c,e,d){if(!c)return;if(d[p][c])return d[p][c];for(var x=e[p].i.length-1;x>=0;x--){if(e[p].i[x]&&d[e[p].i[x]][c])return d[e[p].i[x]][c]};for(var x=e[p].ti.length-1;x>=0;x--){var q=_grp(e[p].ti[x],e,p);if(q&&d[q][c])return d[q][c]}var ii=_gapi(e,p);for(var x=0;x<ii.length;x++){if(ii[x]&&d[ii[x]][c])return d[ii[x]][c]}for(var k=e[p].j.length-1;k>=0;k--)if(e[p].j[k]){for(var q=e[e[p].j[k]].ti.length-1;q>=0;q--){var pp=_grp(e[e[p].j[k]].ti[q],e,p);if(pp&&d[pp][c]){return d[pp][c]}}}}
function _gapi(e,p){if(!p)return [];if($gaic[p]){return $gaic[p]};var ret=[],q=[],h=0,t=0,put={},visited={};q.push(p);visited[p]=true;t++;while(h<t){var a=q[h++];for(var i=0;i<e[a].ic.length;i++){var nd=e[a].ic[i];var np=_grp(nd,e,a);if(np&&!visited[np]){visited[np]=true;q.push(np);t++;}}for(var i=0;a!=p&&i<e[a].ti.length;i++){var ni=e[a].ti[i];var nm=_grp(ni,e,a);if(nm&&!put[nm]){put[nm]=true;ret.push(nm);}}}$gaic[p]=ret;return ret;}
var $ixc={};function _ic(p,ent,me,e,s,r,gg){var x=_grp(p,ent,me);ent[me].j.push(x);if(x){if($ixc[x]){_wp('-1:include:-1:-1: `'+p+'` is being included in a loop, will be stop.');return;}$ixc[x]=true;try{ent[x].f(e,s,r,gg)}catch(e){}$ixc[x]=false;}else{_wp(me+':include:-1:-1: Included path `'+p+'` not found from `'+me+'`.')}}
function _w(tn,f,line,c){_wp(f+':template:'+line+':'+c+': Template `'+tn+'` not found.');}function _ev(dom){var changed=false;delete dom.properities;delete dom.n;if(dom.children){do{changed=false;var newch = [];for(var i=0;i<dom.children.length;i++){var ch=dom.children[i];if( ch.tag=='virtual'){changed=true;for(var j=0;ch.children&&j<ch.children.length;j++){newch.push(ch.children[j]);}}else { newch.push(ch); } } dom.children = newch; }while(changed);for(var i=0;i<dom.children.length;i++){_ev(dom.children[i]);}} return dom; }
function _tsd( root )
{
if( root.tag == "wx-wx-scope" ) 
{
root.tag = "virtual";
root.wxCkey = "11";
root['wxScopeData'] = root.attr['wx:scope-data'];
delete root.n;
delete root.raw;
delete root.generics;
delete root.attr;
}
for( var i = 0 ; root.children && i < root.children.length ; i++ )
{
_tsd( root.children[i] );
}
return root;
}

var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx || [];
function gz$gwx_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_1)return __WXML_GLOBAL__.ops_cached.$gwx_1
__WXML_GLOBAL__.ops_cached.$gwx_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'onClick'])
Z([a,[3,'custom-class '],[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'cell']],[[4],[[5],[[5],[[7],[3,'size']]],[[9],[[9],[[9],[[8],'center',[[7],[3,'center']]],[[8],'required',[[7],[3,'required']]]],[[8],'borderless',[[2,'!'],[[7],[3,'border']]]]],[[8],'clickable',[[2,'||'],[[7],[3,'isLink']],[[7],[3,'clickable']]]]]]]]]])
Z([3,'van-cell--hover hover-class'])
Z([3,'70'])
Z([[7],[3,'customStyle']])
Z([[7],[3,'icon']])
Z([3,'van-cell__left-icon-wrap'])
Z([3,'van-cell__left-icon'])
Z(z[5])
Z([3,'icon'])
Z([3,'van-cell__title title-class'])
Z([[2,'?:'],[[7],[3,'titleWidth']],[[2,'+'],[[2,'+'],[[2,'+'],[1,'max-width:'],[[7],[3,'titleWidth']]],[1,';min-width:']],[[7],[3,'titleWidth']]],[1,'']])
Z([[7],[3,'title']])
Z([3,'title'])
Z([[2,'||'],[[7],[3,'label']],[[7],[3,'useLabelSlot']]])
Z([3,'van-cell__label label-class'])
Z([[7],[3,'useLabelSlot']])
Z([3,'label'])
Z([[7],[3,'label']])
Z([3,'van-cell__value value-class'])
Z([[2,'||'],[[7],[3,'value']],[[2,'==='],[[7],[3,'value']],[1,0]]])
Z([[7],[3,'isLink']])
Z([3,'van-cell__right-icon-wrap right-icon-class'])
Z([3,'van-cell__right-icon'])
Z([[2,'?:'],[[7],[3,'arrowDirection']],[[2,'+'],[[2,'+'],[1,'arrow'],[1,'-']],[[7],[3,'arrowDirection']]],[1,'arrow']])
Z([3,'right-icon'])
Z([3,'extra'])
})(__WXML_GLOBAL__.ops_cached.$gwx_1);return __WXML_GLOBAL__.ops_cached.$gwx_1
}
function gz$gwx_2(){
if( __WXML_GLOBAL__.ops_cached.$gwx_2)return __WXML_GLOBAL__.ops_cached.$gwx_2
__WXML_GLOBAL__.ops_cached.$gwx_2=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([a,[3,'van-collapse-item custom-class '],[[2,'?:'],[[2,'!=='],[[7],[3,'index']],[1,0]],[1,'van-hairline--top'],[1,'']]])
Z([3,'onClick'])
Z([[2,'&&'],[[7],[3,'border']],[[7],[3,'expanded']]])
Z([[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'collapse-item__title']],[[9],[[8],'disabled',[[7],[3,'disabled']]],[[8],'expanded',[[7],[3,'expanded']]]]]])
Z([[7],[3,'clickable']])
Z([3,'van-cell'])
Z([3,'van-cell--hover'])
Z([[7],[3,'icon']])
Z([[7],[3,'isLink']])
Z([[7],[3,'label']])
Z([3,'van-cell__right-icon'])
Z([[7],[3,'title']])
Z([3,'title-class'])
Z([[7],[3,'value']])
Z([3,'title'])
Z(z[14])
Z([3,'icon'])
Z(z[16])
Z([3,'value'])
Z([3,'right-icon'])
Z(z[19])
Z([3,'onTransitionEnd'])
Z([[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'collapse-item__wrapper']],[[8],'transition',[[7],[3,'transition']]]]])
Z([a,[3,'height: '],[[7],[3,'contentHeight']],[3,';']])
})(__WXML_GLOBAL__.ops_cached.$gwx_2);return __WXML_GLOBAL__.ops_cached.$gwx_2
}
function gz$gwx_3(){
if( __WXML_GLOBAL__.ops_cached.$gwx_3)return __WXML_GLOBAL__.ops_cached.$gwx_3
__WXML_GLOBAL__.ops_cached.$gwx_3=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
})(__WXML_GLOBAL__.ops_cached.$gwx_3);return __WXML_GLOBAL__.ops_cached.$gwx_3
}
function gz$gwx_4(){
if( __WXML_GLOBAL__.ops_cached.$gwx_4)return __WXML_GLOBAL__.ops_cached.$gwx_4
__WXML_GLOBAL__.ops_cached.$gwx_4=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'onClick'])
Z([a,[3,'custom-class '],[[7],[3,'classPrefix']],[3,' '],[[2,'?:'],[[7],[3,'isImageName']],[1,'van-icon--image'],[[2,'+'],[[2,'+'],[[7],[3,'classPrefix']],[1,'-']],[[7],[3,'name']]]]])
Z([a,[[2,'?:'],[[7],[3,'color']],[[2,'+'],[[2,'+'],[1,'color: '],[[7],[3,'color']]],[1,';']],[1,'']],[[2,'?:'],[[7],[3,'size']],[[2,'+'],[[2,'+'],[1,'font-size: '],[[7],[3,'sizeWithUnit']]],[1,';']],[1,'']],[[7],[3,'customStyle']]])
Z([[2,'||'],[[2,'!=='],[[7],[3,'info']],[1,null]],[[7],[3,'dot']]])
Z([3,'van-icon__info'])
Z([[7],[3,'dot']])
Z([[7],[3,'info']])
Z([[7],[3,'isImageName']])
})(__WXML_GLOBAL__.ops_cached.$gwx_4);return __WXML_GLOBAL__.ops_cached.$gwx_4
}
function gz$gwx_5(){
if( __WXML_GLOBAL__.ops_cached.$gwx_5)return __WXML_GLOBAL__.ops_cached.$gwx_5
__WXML_GLOBAL__.ops_cached.$gwx_5=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[2,'!=='],[[7],[3,'info']],[1,null]])
})(__WXML_GLOBAL__.ops_cached.$gwx_5);return __WXML_GLOBAL__.ops_cached.$gwx_5
}
function gz$gwx_6(){
if( __WXML_GLOBAL__.ops_cached.$gwx_6)return __WXML_GLOBAL__.ops_cached.$gwx_6
__WXML_GLOBAL__.ops_cached.$gwx_6=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'show']])
Z([3,'onClick'])
Z([a,[3,'custom-class '],[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'notice-bar']],[[9],[[8],'withicon',[[7],[3,'mode']]],[[8],'wrapable',[[7],[3,'wrapable']]]]]]])
Z([a,[3,'color: '],[[7],[3,'color']],[3,'; background-color: '],[[7],[3,'backgroundColor']],[3,';']])
Z([[7],[3,'leftIcon']])
Z([3,'van-notice-bar__left-icon'])
Z(z[4])
Z([3,'16px'])
Z([3,'left-icon'])
Z([[2,'==='],[[7],[3,'mode']],[1,'closeable']])
Z([3,'onClickIcon'])
Z([3,'van-notice-bar__right-icon'])
Z([3,'cross'])
Z([[2,'==='],[[7],[3,'mode']],[1,'link']])
Z(z[11])
Z([3,'arrow'])
Z([3,'right-icon'])
})(__WXML_GLOBAL__.ops_cached.$gwx_6);return __WXML_GLOBAL__.ops_cached.$gwx_6
}
function gz$gwx_7(){
if( __WXML_GLOBAL__.ops_cached.$gwx_7)return __WXML_GLOBAL__.ops_cached.$gwx_7
__WXML_GLOBAL__.ops_cached.$gwx_7=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[2,'||'],[[7],[3,'animated']],[[7],[3,'inited']]])
})(__WXML_GLOBAL__.ops_cached.$gwx_7);return __WXML_GLOBAL__.ops_cached.$gwx_7
}
function gz$gwx_8(){
if( __WXML_GLOBAL__.ops_cached.$gwx_8)return __WXML_GLOBAL__.ops_cached.$gwx_8
__WXML_GLOBAL__.ops_cached.$gwx_8=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([a,[3,'custom-class '],[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'tabs']],[[4],[[5],[[7],[3,'type']]]]]]])
Z([a,[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'tabs__wrap']],[[8],'scrollable',[[7],[3,'scrollable']]]]],[3,' '],[[2,'?:'],[[2,'&&'],[[2,'==='],[[7],[3,'type']],[1,'line']],[[7],[3,'border']]],[1,'van-hairline--top-bottom'],[1,'']]])
Z([a,[3,'z-index: '],[[7],[3,'zIndex']],[3,'; '],[[7],[3,'wrapStyle']]])
Z([3,'nav-left'])
Z([a,z[1][2],[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'tabs__nav']],[[4],[[5],[[7],[3,'type']]]]]],[3,' nav-class']])
Z([[2,'==='],[[7],[3,'type']],[1,'line']])
Z([[7],[3,'tabs']])
Z([3,'index'])
Z([3,'onTap'])
Z([a,[3,'van-ellipsis tab-class '],[[2,'?:'],[[2,'==='],[[7],[3,'index']],[[7],[3,'active']]],[1,'tab-active-class'],[1,'']],z[1][2],[[12],[[6],[[7],[3,'utils']],[3,'bem']],[[5],[[5],[1,'tab']],[[9],[[8],'active',[[2,'==='],[[7],[3,'index']],[[7],[3,'active']]]],[[8],'disabled',[[6],[[7],[3,'item']],[3,'disabled']]]]]]])
Z([[7],[3,'index']])
Z([a,[[2,'?:'],[[2,'&&'],[[2,'&&'],[[2,'&&'],[[7],[3,'color']],[[2,'!=='],[[7],[3,'index']],[[7],[3,'active']]]],[[2,'==='],[[7],[3,'type']],[1,'card']]],[[2,'!'],[[6],[[7],[3,'item']],[3,'disabled']]]],[[2,'+'],[1,'color: '],[[7],[3,'color']]],[1,'']],z[1][2],[[2,'?:'],[[2,'&&'],[[2,'&&'],[[7],[3,'color']],[[2,'==='],[[7],[3,'index']],[[7],[3,'active']]]],[[2,'==='],[[7],[3,'type']],[1,'card']]],[[2,'+'],[1,';background-color:'],[[7],[3,'color']]],[1,'']],z[1][2],[[2,'?:'],[[7],[3,'color']],[[2,'+'],[1,';border-color: '],[[7],[3,'color']]],[1,'']],z[1][2],[[2,'?:'],[[7],[3,'scrollable']],[[2,'+'],[[2,'+'],[1,';flex-basis:'],[[2,'/'],[1,88],[[7],[3,'swipeThreshold']]]],[1,'%']],[1,'']]])
Z([[2,'!=='],[[6],[[7],[3,'item']],[3,'info']],[1,null]])
Z([3,'van-tab__title__info'])
Z([[6],[[7],[3,'item']],[3,'info']])
Z([3,'nav-right'])
Z([3,'onTouchEnd'])
Z(z[16])
Z([3,'onTouchMove'])
Z([3,'onTouchStart'])
Z([3,'van-tabs__content'])
})(__WXML_GLOBAL__.ops_cached.$gwx_8);return __WXML_GLOBAL__.ops_cached.$gwx_8
}
function gz$gwx_9(){
if( __WXML_GLOBAL__.ops_cached.$gwx_9)return __WXML_GLOBAL__.ops_cached.$gwx_9
__WXML_GLOBAL__.ops_cached.$gwx_9=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[7],[3,'showAuthorizeButton']])
Z([[7],[3,'showJuriesAccountForm']])
})(__WXML_GLOBAL__.ops_cached.$gwx_9);return __WXML_GLOBAL__.ops_cached.$gwx_9
}
function gz$gwx_10(){
if( __WXML_GLOBAL__.ops_cached.$gwx_10)return __WXML_GLOBAL__.ops_cached.$gwx_10
__WXML_GLOBAL__.ops_cached.$gwx_10=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[7],[3,'showAuthorizeButton']])
Z([[7],[3,'showJuriesAccountForm']])
})(__WXML_GLOBAL__.ops_cached.$gwx_10);return __WXML_GLOBAL__.ops_cached.$gwx_10
}
function gz$gwx_11(){
if( __WXML_GLOBAL__.ops_cached.$gwx_11)return __WXML_GLOBAL__.ops_cached.$gwx_11
__WXML_GLOBAL__.ops_cached.$gwx_11=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'maskStatus']])
})(__WXML_GLOBAL__.ops_cached.$gwx_11);return __WXML_GLOBAL__.ops_cached.$gwx_11
}
function gz$gwx_12(){
if( __WXML_GLOBAL__.ops_cached.$gwx_12)return __WXML_GLOBAL__.ops_cached.$gwx_12
__WXML_GLOBAL__.ops_cached.$gwx_12=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'competition'])
Z([[7],[3,'competitions']])
Z([3,'index'])
Z([3,'showActionSheet'])
Z([[7],[3,'competition']])
Z([a,[3,'/pages/competition/vote/vote?id\x3d'],[[6],[[7],[3,'competition']],[3,'_id']]])
Z([[10],[[7],[3,'competition']]])
Z([3,'competitionCard'])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[2,'>'],[[6],[[7],[3,'competitions']],[3,'length']],[1,0]])
})(__WXML_GLOBAL__.ops_cached.$gwx_12);return __WXML_GLOBAL__.ops_cached.$gwx_12
}
function gz$gwx_13(){
if( __WXML_GLOBAL__.ops_cached.$gwx_13)return __WXML_GLOBAL__.ops_cached.$gwx_13
__WXML_GLOBAL__.ops_cached.$gwx_13=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[2,'&&'],[[7],[3,'inputAward']],[[7],[3,'isWorker']]])
Z([3,'idxAward'])
Z([[7],[3,'awards']])
Z([3,'showActionSheet'])
Z([[7],[3,'item']])
Z([[7],[3,'idxAward']])
Z([[9],[[9],[[8],'barTitle',[[6],[[7],[3,'item']],[3,'title']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z([3,'leftNaviBar'])
Z([[2,'&&'],[[7],[3,'isWorker']],[[2,'>='],[[6],[[7],[3,'awards']],[3,'length']],[1,1]]])
Z([[2,'&&'],[[2,'!'],[[7],[3,'inputAward']]],[[7],[3,'isWorker']]])
Z([[2,'&&'],[[7],[3,'isWorker']],[[2,'>='],[[6],[[7],[3,'awards']],[3,'length']],[1,3]]])
Z(z[12])
Z([[7],[3,'isWorker']])
Z([[8],'instructionFirst',[1,'获奖名单可用于公布比赛结果或者直接分享给主持人报幕。使用步骤：1.比赛前添加比赛要颁发的奖项；2.在“查看实时成绩”页面中可根据成绩和排名为参赛者添加获得什么奖，数量不限；3.此页面将自动按奖项列出获奖名单；4.分享给主持人或者参赛者即可查看获奖名单。点击奖项可编辑或删除奖项及其获奖者，点击获奖者可单独删除获奖者。']])
Z([3,'instruction'])
Z(z[14])
})(__WXML_GLOBAL__.ops_cached.$gwx_13);return __WXML_GLOBAL__.ops_cached.$gwx_13
}
function gz$gwx_14(){
if( __WXML_GLOBAL__.ops_cached.$gwx_14)return __WXML_GLOBAL__.ops_cached.$gwx_14
__WXML_GLOBAL__.ops_cached.$gwx_14=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[2,'=='],[[6],[[7],[3,'competition']],[3,'status']],[1,'已关闭']])
Z([[6],[[7],[3,'competition']],[3,'notice']])
Z([3,'#FF5A5F'])
Z([3,'closeNotice'])
Z([3,'#FFF'])
Z([3,'closeable'])
Z([3,'false'])
Z(z[3])
Z([[7],[3,'listMenu']])
Z([3,'index'])
Z([[2,'!='],[[6],[[7],[3,'item']],[3,'title']],[1,'更多操作']])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'title']],[1,'更多操作']])
Z([[6],[[7],[3,'competition']],[3,'title']])
Z([[2,'&&'],[[6],[[7],[3,'competition']],[3,'title']],[[2,'=='],[[6],[[7],[3,'competition']],[3,'_id']],[1,'example']]])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
})(__WXML_GLOBAL__.ops_cached.$gwx_14);return __WXML_GLOBAL__.ops_cached.$gwx_14
}
function gz$gwx_15(){
if( __WXML_GLOBAL__.ops_cached.$gwx_15)return __WXML_GLOBAL__.ops_cached.$gwx_15
__WXML_GLOBAL__.ops_cached.$gwx_15=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'sharePosterUrl']])
})(__WXML_GLOBAL__.ops_cached.$gwx_15);return __WXML_GLOBAL__.ops_cached.$gwx_15
}
function gz$gwx_16(){
if( __WXML_GLOBAL__.ops_cached.$gwx_16)return __WXML_GLOBAL__.ops_cached.$gwx_16
__WXML_GLOBAL__.ops_cached.$gwx_16=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
})(__WXML_GLOBAL__.ops_cached.$gwx_16);return __WXML_GLOBAL__.ops_cached.$gwx_16
}
function gz$gwx_17(){
if( __WXML_GLOBAL__.ops_cached.$gwx_17)return __WXML_GLOBAL__.ops_cached.$gwx_17
__WXML_GLOBAL__.ops_cached.$gwx_17=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[7],[3,'inviteJuryWxacodePath']])
Z([3,'inviteJuryView'])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'refuseNewJury']]])
Z([[7],[3,'inviteJuriesGroupTitle']])
Z([[2,'&&'],[[2,'!'],[[7],[3,'myselfIsJury']]],[[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'refuseNewJury']]]])
Z([[2,'>'],[[6],[[6],[[7],[3,'competition']],[3,'juriesGroups']],[3,'length']],[1,0]])
Z([3,'idx'])
Z([3,'item'])
Z([[7],[3,'juries']])
Z([[2,'||'],[[2,'!='],[[7],[3,'competition_id']],[1,'example']],[[2,'=='],[[6],[[7],[3,'item']],[3,'_openid']],[[7],[3,'openid']]]])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'_openid']],[[7],[3,'openid']]])
Z([[8],'instructionFirst',[1,'评委打开微信扫邀请码，或者点击右上角私聊分享给评委或评委微信群（系统已设置邀请链接不能转发），评委进入后即可评分。赛易评支持1000位评委同时评分。编辑比赛信息或更改比赛设置时评分邀请码不会变化，打印评分邀请码和评分标准可方便评委评分过程随时扫码或查看。若设置评委分组，则不同组别评委的评分邀请码不同。删除评委时如果评委在本次比赛中提交过成绩，将同步删除。']])
Z([3,'instruction'])
})(__WXML_GLOBAL__.ops_cached.$gwx_17);return __WXML_GLOBAL__.ops_cached.$gwx_17
}
function gz$gwx_18(){
if( __WXML_GLOBAL__.ops_cached.$gwx_18)return __WXML_GLOBAL__.ops_cached.$gwx_18
__WXML_GLOBAL__.ops_cached.$gwx_18=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[2,'>'],[[6],[[7],[3,'juriesAccounts']],[3,'length']],[1,0]])
Z([[7],[3,'juriesAccounts']])
Z([3,'index'])
Z([3,'showActionSheet'])
Z([3,'juriesAccountView'])
Z([[6],[[7],[3,'item']],[3,'_id']])
Z([[7],[3,'index']])
Z([[6],[[7],[3,'item']],[3,'user_openid']])
Z(z[7])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[8],'instructionFirst',[1,'导入评委评分账号即默认评委进入后须输入姓名和密码验证通过后方可进入评分，密码可采用评委手机号码或身份证号码后6位，方便评委识记。首次登录将账号与微信绑定，后续可直接进入评分。\n设置评委账号和实名评分的区别：评委账号用于进入时鉴别身份（需先告知评委账号密码），验证正确才能进入评分页面。开启实名制后评委扫码进入后评分前须输入姓名方可开始评分，可查看分数对应的评委。若既设置账号也开启实名评分，则进入时需账号登录，且沿用账号的姓名评分前无需再输入，可查看分数对应的评委。']])
Z([3,'instruction'])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
Z([[7],[3,'isWorker']])
})(__WXML_GLOBAL__.ops_cached.$gwx_18);return __WXML_GLOBAL__.ops_cached.$gwx_18
}
function gz$gwx_19(){
if( __WXML_GLOBAL__.ops_cached.$gwx_19)return __WXML_GLOBAL__.ops_cached.$gwx_19
__WXML_GLOBAL__.ops_cached.$gwx_19=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'onChangeTabs'])
Z([[7],[3,'tabs']])
Z([3,'idx'])
Z([[7],[3,'item']])
Z([[2,'=='],[[7],[3,'active']],[1,0]])
Z([3,'pageContainer'])
Z([3,'idxJuriesGroup'])
Z([3,'juriesGroup'])
Z([[7],[3,'juriesGroups']])
Z([3,'showActionSheet'])
Z([[7],[3,'idxJuriesGroup']])
Z([[7],[3,'juriesGroup']])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[[2,'+'],[[2,'+'],[[2,'+'],[[2,'+'],[[6],[[7],[3,'juriesGroup']],[3,'title']],[1,'/权重']],[[2,'*'],[[6],[[7],[3,'juriesGroup']],[3,'weight']],[1,100]]],[1,'%/共']],[[6],[[6],[[7],[3,'juriesGroup']],[3,'juriesDetails']],[3,'length']]],[1,'位']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z([3,'leftNaviBar'])
Z([[7],[3,'inputGroup']])
Z([[2,'=='],[[6],[[7],[3,'juriesGroups']],[3,'length']],[1,0]])
Z([[2,'&&'],[[2,'!='],[[6],[[7],[3,'juriesGroups']],[3,'length']],[1,0]],[[2,'!'],[[7],[3,'inputGroup']]]])
Z([[2,'!'],[[7],[3,'inputGroup']]])
Z([[8],'instructionFirst',[1,'设置评委分组和权重后计算成绩时每组评委已提交的分数计算平均分后乘以权重计入最终成绩。同一权重的评委即为同一组，组名仅仅是用于区分组别(如专业评委、大众评委)。点击分组可编辑或删除，点击评委可删除。设置分组后邀请评委方式一：在邀请评委时按照分组的组别邀请评委扫评分码加入（推荐此方式）；方式二：直接邀请所有评委扫评分码加入，从“待分组的评委”中选择一些评委并为其选择相应组别，设置后即时生效。建议设置评分规则中开启实名制，评委加入后提醒评委在评分界面中输入姓名方便此处识别分组。邀请评委后需及时完善分组，每一位评委须被分到某一个组，否则该评委提交的成绩不纳入计算。']])
Z([3,'instruction'])
Z([[2,'=='],[[7],[3,'active']],[1,1]])
Z(z[5])
Z([[8],'loadmore',[[2,'?:'],[[2,'=='],[[6],[[7],[3,'juries']],[3,'length']],[1,0]],[1,'没有需分组的评委'],[1,'全部加载']]])
Z([3,'loadmore'])
Z([[2,'>'],[[6],[[7],[3,'juriesChecked']],[3,'length']],[1,0]])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
})(__WXML_GLOBAL__.ops_cached.$gwx_19);return __WXML_GLOBAL__.ops_cached.$gwx_19
}
function gz$gwx_20(){
if( __WXML_GLOBAL__.ops_cached.$gwx_20)return __WXML_GLOBAL__.ops_cached.$gwx_20
__WXML_GLOBAL__.ops_cached.$gwx_20=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[7],[3,'inviteWorkerWxacodePath']])
Z([3,'pageContainer'])
Z([[2,'>='],[[6],[[7],[3,'workers']],[3,'length']],[1,1]])
Z([[8],'instructionFirst',[1,'打开微信扫此邀请码，或者点击右上角私聊分享给微信好友，点击打开即可成为工作人员；除不能删除比赛，其他权限与创建者相同，具体权限可查看使用指南。长按可删除工作人员。']])
Z([3,'instruction'])
})(__WXML_GLOBAL__.ops_cached.$gwx_20);return __WXML_GLOBAL__.ops_cached.$gwx_20
}
function gz$gwx_21(){
if( __WXML_GLOBAL__.ops_cached.$gwx_21)return __WXML_GLOBAL__.ops_cached.$gwx_21
__WXML_GLOBAL__.ops_cached.$gwx_21=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'realName']])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'judgeItemBySingleColumn']])
Z([3,'pageContainer'])
Z([[7],[3,'programs']])
Z([3,'idx'])
Z([[2,'!'],[[6],[[7],[3,'item']],[3,'hideJudgedProgram']]])
Z([3,'programContainer'])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'anonymousProgramInfo']]])
Z([[6],[[7],[3,'item']],[3,'image']])
Z([3,'indexOrderAverageScoreView'])
Z([3,'score'])
Z([[6],[[7],[3,'item']],[3,'scores']])
Z([3,'index'])
Z([[2,'<='],[[6],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[3,'length']],[1,7]])
Z([[2,'=='],[[6],[[7],[3,'score']],[3,'_openid']],[[7],[3,'userOpenid']]])
Z([[2,'&&'],[[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'allowJuryEditScore']],[[6],[[7],[3,'item']],[3,'judged']]],[[6],[[7],[3,'item']],[3,'judging']]])
Z([[8],'loadmore',[[7],[3,'loadmore']]])
Z([3,'loadmore'])
Z([3,'onChangeTabs'])
Z([[7],[3,'tabs']])
Z(z[6])
Z([[7],[3,'item']])
Z(z[5])
Z(z[6])
Z([[2,'||'],[[2,'&&'],[[2,'&&'],[[2,'&&'],[[2,'=='],[[7],[3,'active']],[1,0]],[[2,'!'],[[6],[[7],[3,'item']],[3,'judged']]]],[[2,'!'],[[6],[[7],[3,'item']],[3,'skipJudge']]]],[[2,'||'],[[6],[[7],[3,'item']],[3,'judging']],[[2,'=='],[[6],[[6],[[7],[3,'item']],[3,'scores']],[3,'length']],[1,0]]]],[[2,'&&'],[[2,'=='],[[7],[3,'active']],[1,1]],[[2,'||'],[[2,'||'],[[6],[[7],[3,'item']],[3,'skipJudge']],[[6],[[7],[3,'item']],[3,'judged']]],[[2,'&&'],[[2,'!'],[[6],[[7],[3,'item']],[3,'judging']]],[[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'scores']],[3,'length']],[1,0]]]]]])
Z(z[8])
Z(z[9])
Z(z[10])
Z(z[11])
Z([[2,'?:'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'anonymousProgramInfo']],[1,'border-top: 1rpx dashed #ffffff;'],[1,'border-top: 1rpx dashed #767676;']])
Z(z[12])
Z(z[13])
Z(z[14])
Z(z[15])
Z(z[16])
Z(z[17])
Z([[2,'&&'],[[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2']],[[6],[[7],[3,'item']],[3,'judged']]],[[6],[[7],[3,'item']],[3,'judging']]])
})(__WXML_GLOBAL__.ops_cached.$gwx_21);return __WXML_GLOBAL__.ops_cached.$gwx_21
}
function gz$gwx_22(){
if( __WXML_GLOBAL__.ops_cached.$gwx_22)return __WXML_GLOBAL__.ops_cached.$gwx_22
__WXML_GLOBAL__.ops_cached.$gwx_22=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'pageContainer'])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'anonymousProgramInfo']]])
Z([[9],[[9],[[8],'barTitle',[1,'基本信息']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z([3,'leftNaviBar'])
Z([[6],[[7],[3,'program']],[3,'image']])
Z([[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[[2,'>'],[[6],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[3,'length']],[1,0]]])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[7],[3,'inputtingScoringItemsScoreTotal']],[[2,'+'],[[2,'+'],[1,'按项评分/计算输入总分'],[[7],[3,'inputtingScoringItemsScoreTotal']]],[1,'分']],[1,'按项评分']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[3])
Z([[9],[[9],[[8],'barTitle',[1,'输入得分']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[3])
Z([3,'submitScore'])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitComment']])
Z([[9],[[9],[[8],'barTitle',[1,'评语']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[3])
Z([[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringRubic']])
Z([[9],[[9],[[8],'barTitle',[1,'评分标准']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[3])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'hideJudgeNote']]])
Z([[8],'instructionFirst',[1,'1.输入分数提交后将弹窗再次确认。若主办方允许修改已提交分数，提交后将显示修改按钮。\n2.主办方可查看即时更新的成绩，请在当前参赛者即将结束或已结束时进行评分。\n3.赛易评评分服务的稳定性和可靠性已经过严格测试，仍建议在纸上同步记录参赛者成绩。']])
Z([3,'instruction'])
})(__WXML_GLOBAL__.ops_cached.$gwx_22);return __WXML_GLOBAL__.ops_cached.$gwx_22
}
function gz$gwx_23(){
if( __WXML_GLOBAL__.ops_cached.$gwx_23)return __WXML_GLOBAL__.ops_cached.$gwx_23
__WXML_GLOBAL__.ops_cached.$gwx_23=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'pageContainer'])
Z([[9],[[9],[[8],'barTitle',[1,'项目信息']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z([3,'leftNaviBar'])
Z([[6],[[7],[3,'program']],[3,'image']])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[[2,'>'],[[6],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[3,'length']],[1,0]]],[1,'评分项'],[1,'评委评分']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[7],[3,'competition']])
Z(z[0])
Z([[9],[[9],[[8],'barTitle',[1,'您的评分情况统计']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([3,'inputtedScoresTotal'])
Z([[2,'>='],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Inputted']],[3,'score5']],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Note']],[3,'score5']]])
Z([[2,'>='],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Inputted']],[3,'score7']],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Note']],[3,'score7']]])
Z([[2,'>='],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Inputted']],[3,'score10']],[[6],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitScoreV2Note']],[3,'score10']]])
Z([[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringRubic']])
Z([[9],[[9],[[8],'barTitle',[1,'评分标准']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'hideJudgeNote']]])
Z([[9],[[9],[[8],'barTitle',[1,'操作指南']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
})(__WXML_GLOBAL__.ops_cached.$gwx_23);return __WXML_GLOBAL__.ops_cached.$gwx_23
}
function gz$gwx_24(){
if( __WXML_GLOBAL__.ops_cached.$gwx_24)return __WXML_GLOBAL__.ops_cached.$gwx_24
__WXML_GLOBAL__.ops_cached.$gwx_24=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[2,'&&'],[[2,'&&'],[[2,'&&'],[[7],[3,'notice']],[[7],[3,'isWorker']]],[[2,'!='],[[7],[3,'platform']],[1,'windows']]],[[2,'!='],[[7],[3,'platform']],[1,'mac']]])
Z([3,'#FF5A5F'])
Z([3,'hideNoticeBar'])
Z([3,'#FFF'])
Z([3,'closeable'])
Z([3,'false'])
Z([[7],[3,'notice']])
Z([[7],[3,'programs']])
Z([3,'index'])
Z([3,'idx'])
Z([3,'programContainer'])
Z([[2,'?:'],[[2,'||'],[[2,'&&'],[[2,'=='],[[6],[[6],[[7],[3,'item']],[3,'unjudgedJuries']],[3,'length']],[1,0]],[[2,'!='],[[6],[[7],[3,'item']],[3,'order']],[1,1000]]],[[2,'!'],[[6],[[7],[3,'item']],[3,'judging']]]],[1,' border: 2rpx solid #ff5a5F;'],[1,' border: 2rpx solid #f4f4f4']])
Z([3,'programInfoView'])
Z([[6],[[7],[3,'item']],[3,'note']])
Z([[2,'&&'],[[7],[3,'isWorker']],[[2,'||'],[[2,'>'],[[6],[[7],[3,'item']],[3,'extraPoints']],[1,0]],[[2,'<'],[[6],[[7],[3,'item']],[3,'extraPoints']],[1,0]]]])
Z([[2,'&&'],[[2,'&&'],[[2,'&&'],[[2,'&&'],[[7],[3,'isWorker']],[[6],[[7],[3,'item']],[3,'judging']]],[[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'unjudgedJuries']],[3,'length']],[1,0]]],[[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'scores']],[3,'length']],[1,0]]],[[6],[[7],[3,'item']],[3,'arrScores']]])
Z([[2,'&&'],[[2,'&&'],[[7],[3,'isWorker']],[[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'unjudgedJuries']],[3,'length']],[1,0]]],[[2,'||'],[[6],[[7],[3,'item']],[3,'judging']],[[2,'=='],[[6],[[6],[[7],[3,'item']],[3,'scores']],[3,'length']],[1,0]]]])
Z([3,'unjudgedJuriesView'])
Z([a,[3,'margin-bottom:12rpx;'],[[2,'?:'],[[2,'||'],[[2,'=='],[[7],[3,'platform']],[1,'windows']],[[2,'=='],[[7],[3,'platform']],[1,'mac']]],[1,'padding-bottom:12rpx'],[1,'']]])
Z([3,'jury'])
Z([[6],[[7],[3,'item']],[3,'unjudgedJuries']])
Z(z[10])
Z([[2,'<='],[[7],[3,'index']],[1,6]])
Z([[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'unjudgedJuries']],[3,'length']],[1,7]])
Z([3,'indexOrderAverageScoreView'])
Z([[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'showVote']],[[2,'=='],[[7],[3,'c']],[[7],[3,'v']]]])
Z([[2,'&&'],[[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'showVote']]],[[2,'||'],[[2,'!'],[[6],[[7],[3,'competition']],[3,'juriesGroups']]],[[2,'=='],[[6],[[6],[[7],[3,'competition']],[3,'juriesGroups']],[3,'length']],[1,0]]]])
Z([[7],[3,'isWorker']])
Z([[7],[3,'calculateScoresByJuriesGroups']])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[2,'>='],[[6],[[7],[3,'programs']],[3,'length']],[1,1]])
Z([3,'button-fixed-bottom'])
Z([3,'z-index: 110;'])
Z([[2,'=='],[[7],[3,'platform']],[1,'windows']])
Z([[2,'=='],[[7],[3,'platform']],[1,'mac']])
Z([[2,'&&'],[[2,'!='],[[7],[3,'platform']],[1,'windows']],[[2,'!='],[[7],[3,'platform']],[1,'mac']]])
Z([[2,'&&'],[[7],[3,'loadmore']],[[2,'||'],[[2,'||'],[[7],[3,'isWorker']],[[2,'=='],[[6],[[7],[3,'competition']],[3,'_id']],[1,'example']]],[[2,'=='],[[7],[3,'openid']],[1,'oRnCI5JYWT9dmVycOnBjYaX1Yx7k']]]])
Z(z[29])
Z([[7],[3,'extraPointsMaskStatus']])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
})(__WXML_GLOBAL__.ops_cached.$gwx_24);return __WXML_GLOBAL__.ops_cached.$gwx_24
}
function gz$gwx_25(){
if( __WXML_GLOBAL__.ops_cached.$gwx_25)return __WXML_GLOBAL__.ops_cached.$gwx_25
__WXML_GLOBAL__.ops_cached.$gwx_25=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'pageContainer'])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[1,'序号：'],[[6],[[7],[3,'program']],[3,'index']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z([3,'leftNaviBar'])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[1,'名称：'],[[6],[[7],[3,'program']],[3,'title']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[6],[[7],[3,'program']],[3,'note']])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[1,'备注：'],[[6],[[7],[3,'program']],[3,'note']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'||'],[[2,'>'],[[6],[[7],[3,'program']],[3,'extraPoints']],[1,0]],[[2,'<'],[[6],[[7],[3,'program']],[3,'extraPoints']],[1,0]]])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[2,'>'],[[6],[[7],[3,'program']],[3,'extraPoints']],[1,0]],[[2,'+'],[[2,'+'],[1,'说明：已加'],[[6],[[7],[3,'program']],[3,'extraPoints']]],[1,'分']],[[2,'+'],[[2,'+'],[1,'说明：已扣减'],[[2,'*'],[[6],[[7],[3,'program']],[3,'extraPoints']],[[2,'-'],[1,1]]]],[1,'分']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[2,'&&'],[[2,'||'],[[2,'=='],[[6],[[6],[[7],[3,'program']],[3,'unjudgedJuries']],[3,'length']],[1,0]],[[2,'&&'],[[2,'!'],[[6],[[7],[3,'program']],[3,'judging']]],[[2,'!='],[[6],[[6],[[7],[3,'program']],[3,'scores']],[3,'length']],[1,0]]]],[[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'allowJuryEditScore']]]],[[2,'+'],[[2,'+'],[1,'最终总分：'],[[6],[[7],[3,'program']],[3,'totalScore']]],[1,'分']],[[2,'+'],[[2,'+'],[1,'实时总分：'],[[6],[[7],[3,'program']],[3,'totalScore']]],[1,'分']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[2,'&&'],[[2,'||'],[[2,'=='],[[6],[[6],[[7],[3,'program']],[3,'unjudgedJuries']],[3,'length']],[1,0]],[[2,'&&'],[[2,'!'],[[6],[[7],[3,'program']],[3,'judging']]],[[2,'!='],[[6],[[6],[[7],[3,'program']],[3,'scores']],[3,'length']],[1,0]]]],[[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'allowJuryEditScore']]]],[[2,'+'],[[2,'+'],[1,'最终成绩：'],[[6],[[7],[3,'program']],[3,'averageScore']]],[1,'分']],[[2,'?:'],[[7],[3,'calculateScoresByJuriesGroups']],[[2,'+'],[[2,'+'],[1,'实时成绩：'],[[6],[[7],[3,'program']],[3,'averageScore']]],[1,'分']],[[2,'+'],[[2,'+'],[1,'实时平均：'],[[6],[[7],[3,'program']],[3,'averageScore']]],[1,'分']]]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'!='],[[6],[[7],[3,'program']],[3,'order']],[1,1000]])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[1,'名次：'],[[6],[[7],[3,'program']],[3,'order']]]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'>='],[[6],[[6],[[7],[3,'program']],[3,'awards']],[3,'length']],[1,1]])
Z([[9],[[9],[[8],'barTitle',[1,'获得奖项']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'&&'],[[7],[3,'c']],[[2,'=='],[[7],[3,'c']],[[7],[3,'v']]]])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[[2,'+'],[1,'观众送花：'],[[6],[[7],[3,'program']],[3,'votesTotal']]],[1,'朵']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'>'],[[6],[[6],[[7],[3,'program']],[3,'unjudgedJuries']],[3,'length']],[1,0]])
Z([[9],[[9],[[8],'barTitle',[[2,'+'],[[2,'+'],[1,'尚未评分('],[[6],[[6],[[7],[3,'program']],[3,'unjudgedJuries']],[3,'length']]],[1,'位)']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'>='],[[6],[[6],[[7],[3,'program']],[3,'scores']],[3,'length']],[1,1]])
Z([[9],[[9],[[8],'barTitle',[[2,'?:'],[[2,'>'],[[6],[[6],[[7],[3,'program']],[3,'unjudgedJuries']],[3,'length']],[1,0]],[[2,'+'],[[2,'+'],[1,'已评分数('],[[6],[[6],[[7],[3,'program']],[3,'scores']],[3,'length']]],[1,'位)']],[1,'所有评分']]],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([3,'idx'])
Z([3,'item'])
Z([[6],[[7],[3,'program']],[3,'scores']])
Z([3,'showActionSheet'])
Z([3,'jury'])
Z([[7],[3,'idx']])
Z([[7],[3,'item']])
Z([[2,'>'],[[6],[[6],[[7],[3,'item']],[3,'scoresDetails']],[3,'length']],[1,1]])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'submitComment']])
Z([[9],[[9],[[8],'barTitle',[1,'评委评语']],[[8],'more',[1,'']]],[[8],'showArrow',[1,false]]])
Z(z[2])
Z([[2,'&&'],[[6],[[7],[3,'program']],[3,'comments']],[[2,'>='],[[6],[[6],[[7],[3,'program']],[3,'comments']],[3,'length']],[1,1]]])
Z([[8],'loadmore',[1,'评委暂未提交评语']])
Z([3,'loadmore'])
})(__WXML_GLOBAL__.ops_cached.$gwx_25);return __WXML_GLOBAL__.ops_cached.$gwx_25
}
function gz$gwx_26(){
if( __WXML_GLOBAL__.ops_cached.$gwx_26)return __WXML_GLOBAL__.ops_cached.$gwx_26
__WXML_GLOBAL__.ops_cached.$gwx_26=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'pageContainer'])
Z([[7],[3,'inputProgram']])
Z([[7],[3,'programs']])
Z([3,'idx'])
Z([3,'programContainer'])
Z([[6],[[7],[3,'item']],[3,'image']])
Z([[2,'&&'],[[6],[[6],[[7],[3,'item']],[3,'skipJuries']],[3,'length']],[[6],[[6],[[6],[[7],[3,'item']],[3,'skipJuries']],[1,0]],[3,'name']]])
Z([3,'judgeContainer'])
Z([[2,'?:'],[[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'allowProgramImage']],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'skipJuries']]],[1,'width:480rpx;'],[[2,'?:'],[[2,'||'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'allowProgramImage']],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'skipJuries']]],[1,'width:340rpx;'],[1,'width:200rpx;']]])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'allowProgramImage']])
Z([3,'addSkipJury'])
Z([[7],[3,'index']])
Z([[7],[3,'item']])
Z([[7],[3,'juries']])
Z([3,'name'])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'skipJuries']])
Z([[8],'loadmore',[[7],[3,'loadmore']]])
Z([3,'loadmore'])
Z([[8],'instructionFirst',[1,'最多支持1000位参赛者，较多时可通过导入添加。抽签功能建议在参赛者共同见证时使用，抽签后参赛者的序号将随机打乱。若需上传参赛者配图或设置不能给本人评分，可联系客服开启相关功能。']])
Z([3,'instruction'])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
Z([[2,'!'],[[7],[3,'inputProgram']]])
Z([3,'small-button displayFlexCenter'])
Z([[2,'?:'],[[7],[3,'isWorker']],[1,'height:64rpx;width:420rpx;'],[1,'height:64rpx;width:180rpx;']])
Z([[7],[3,'isWorker']])
Z(z[25])
})(__WXML_GLOBAL__.ops_cached.$gwx_26);return __WXML_GLOBAL__.ops_cached.$gwx_26
}
function gz$gwx_27(){
if( __WXML_GLOBAL__.ops_cached.$gwx_27)return __WXML_GLOBAL__.ops_cached.$gwx_27
__WXML_GLOBAL__.ops_cached.$gwx_27=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'competition']])
Z([3,'pageContainer'])
Z([[2,'>'],[[6],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'scoringItems']],[3,'length']],[1,0]])
Z([[2,'!'],[[7],[3,'inputScoringItem']]])
Z(z[2])
Z([[7],[3,'inputScoringItem']])
Z([[8],'loadmore',[1,'更改设置后请保存']])
Z([3,'loadmore'])
Z(z[1])
Z([[2,'||'],[[2,'!'],[[6],[[7],[3,'competition']],[3,'juriesGroups']]],[[2,'=='],[[6],[[6],[[7],[3,'competition']],[3,'juriesGroups']],[3,'length']],[1,0]]])
Z([[9],[[8],'instructionFirst',[1,'去掉最高最低设置为0时表示不去掉相应的最高最低分。设置去掉最高最低的个数之和必须小于评委总人数才能生效。一开始评委提交的分数个数少于去掉最高最低的个数之和，计算实时成绩暂时忽略去掉最高或最低，分数数量足够多时去掉最高最低的设置方能生效。']],[[8],'instructionSecond',[1,'评委只提交总分时无需设置评分项。若设置评分项，应在邀请评委前完成设置，评委评分时按评分项提交分数后自动按权重计算该评委提交的总分。建议评分项不超过5项，避免评委输入时过于繁琐。比赛中若更改评分项设置，已评的分数无法同步更新，需要删除参赛者分数后评委重新提交才能按照新的评分项计分。']]])
Z([3,'instruction'])
Z([[8],'instructionFirst',[1,'评委只提交总分时无需设置评分项。若设置评分项，应在邀请评委前完成设置，评委评分时按评分项提交分数后自动按权重计算该评委提交的总分。建议评分项不超过5项，避免评委输入时过于繁琐。比赛中若更改评分项设置，已评的分数无法同步更新，需要删除参赛者分数后评委重新提交才能按照新的评分项计分。']])
Z(z[11])
Z([[7],[3,'buttonText']])
Z([[7],[3,'contactServiceView']])
Z([3,'contactService'])
})(__WXML_GLOBAL__.ops_cached.$gwx_27);return __WXML_GLOBAL__.ops_cached.$gwx_27
}
function gz$gwx_28(){
if( __WXML_GLOBAL__.ops_cached.$gwx_28)return __WXML_GLOBAL__.ops_cached.$gwx_28
__WXML_GLOBAL__.ops_cached.$gwx_28=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[2,'&&'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'showVote']],[[6],[[7],[3,'competition']],[3,'title']]])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'showVoteSearch']]])
Z([3,'pageContainer'])
Z([[6],[[6],[[7],[3,'competition']],[3,'settings']],[3,'showVoteSearch']])
Z([[7],[3,'inputVal']])
Z([[7],[3,'programs']])
Z([3,'idx'])
Z([[6],[[7],[3,'item']],[3,'searched']])
Z([3,'programContainer'])
Z([[2,'?:'],[[2,'!='],[[6],[[7],[3,'item']],[3,'order']],[1,1000]],[1,' border: 2rpx solid #ff5a5F; box-shadow: 0rpx 0rpx 0rpx #ff5a5F;'],[1,' border: 2rpx solid #d5d5d5']])
Z([[2,'&&'],[[6],[[7],[3,'item']],[3,'image']],[[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'anonymousProgramInfo']]]])
Z([3,'otherInfoView'])
Z([3,'titleNoteView'])
Z([[2,'?:'],[[2,'!='],[[7],[3,'c']],[[7],[3,'v']]],[1,'width:600rpx;'],[1,'width:480rpx;']])
Z([[2,'!'],[[6],[[6],[[7],[3,'competition']],[3,'rule']],[3,'anonymousProgramInfo']]])
Z([[2,'||'],[[2,'>'],[[6],[[7],[3,'item']],[3,'averageScore']],[1,0]],[[2,'&&'],[[2,'!'],[[6],[[7],[3,'item']],[3,'judging']]],[[2,'!='],[[6],[[6],[[7],[3,'item']],[3,'scores']],[3,'length']],[1,0]]]])
Z([[2,'!='],[[6],[[7],[3,'item']],[3,'order']],[1,1000]])
Z([[2,'=='],[[7],[3,'c']],[[7],[3,'v']]])
Z([[8],'loadmore',[[7],[3,'loadmore']]])
Z([3,'loadmore'])
Z([[2,'&&'],[[2,'>='],[[6],[[7],[3,'programs']],[3,'length']],[1,2]],[[2,'!='],[[6],[[7],[3,'competition']],[3,'_id']],[1,'springFestivalGalaEvening']]])
Z([[2,'>='],[[6],[[7],[3,'programs']],[3,'length']],[1,3]])
})(__WXML_GLOBAL__.ops_cached.$gwx_28);return __WXML_GLOBAL__.ops_cached.$gwx_28
}
function gz$gwx_29(){
if( __WXML_GLOBAL__.ops_cached.$gwx_29)return __WXML_GLOBAL__.ops_cached.$gwx_29
__WXML_GLOBAL__.ops_cached.$gwx_29=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[2,'||'],[[2,'=='],[[7],[3,'userOpenid']],[1,'oRnCI5JYWT9dmVycOnBjYaX1Yx7k']],[[2,'=='],[[7],[3,'userOpenid']],[1,'oRnCI5GgJ8Kc3sGye-ungAdL7r4U']]])
Z([[7],[3,'inputVal']])
Z([[7],[3,'inputShowed']])
Z([3,'competition'])
Z([[7],[3,'competitions']])
Z([3,'index'])
Z([[2,'||'],[[2,'||'],[[2,'||'],[[7],[3,'inputShowed']],[[6],[[7],[3,'competition']],[3,'workerVisitTotal']]],[[6],[[7],[3,'competition']],[3,'juryVisitTotal']]],[[6],[[7],[3,'competition']],[3,'audienceVisitTotal']]])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[2,'>'],[[6],[[7],[3,'competitions']],[3,'length']],[1,0]])
Z([[2,'>='],[[6],[[7],[3,'competitions']],[3,'length']],[1,1]])
})(__WXML_GLOBAL__.ops_cached.$gwx_29);return __WXML_GLOBAL__.ops_cached.$gwx_29
}
function gz$gwx_30(){
if( __WXML_GLOBAL__.ops_cached.$gwx_30)return __WXML_GLOBAL__.ops_cached.$gwx_30
__WXML_GLOBAL__.ops_cached.$gwx_30=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[10],[[7],[3,'competition']]])
Z([3,'backgroundCard'])
Z([[7],[3,'competition']])
Z([[7],[3,'buttonText']])
})(__WXML_GLOBAL__.ops_cached.$gwx_30);return __WXML_GLOBAL__.ops_cached.$gwx_30
}
function gz$gwx_31(){
if( __WXML_GLOBAL__.ops_cached.$gwx_31)return __WXML_GLOBAL__.ops_cached.$gwx_31
__WXML_GLOBAL__.ops_cached.$gwx_31=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[7],[3,'dashboard']])
})(__WXML_GLOBAL__.ops_cached.$gwx_31);return __WXML_GLOBAL__.ops_cached.$gwx_31
}
function gz$gwx_32(){
if( __WXML_GLOBAL__.ops_cached.$gwx_32)return __WXML_GLOBAL__.ops_cached.$gwx_32
__WXML_GLOBAL__.ops_cached.$gwx_32=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'background-color:#f4f4f4; min-height:2000rpx;border:1rpx solid #f4f4f4;'])
Z([[2,'||'],[[2,'=='],[[7],[3,'userOpenid']],[1,'oRnCI5JYWT9dmVycOnBjYaX1Yx7k']],[[2,'=='],[[7],[3,'userOpenid']],[1,'oRnCI5GgJ8Kc3sGye-ungAdL7r4U']]])
Z([[7],[3,'inputVal']])
Z([[7],[3,'inputShowed']])
Z([3,'pageContainer'])
Z([3,'user'])
Z([[7],[3,'users']])
Z([3,'index'])
Z([3,'vipActionSheet'])
Z([3,'user-card-view navigatorHover'])
Z([[6],[[7],[3,'user']],[3,'_openid']])
Z([[2,'?:'],[[6],[[7],[3,'user']],[3,'vipExpiryTime']],[1,' border: 2rpx solid #ff5a5f;border-radius:10rpx;'],[1,' border: 2rpx solid #f4f4f4;border-radius:10rpx;']])
Z([[6],[[7],[3,'user']],[3,'authorized']])
Z([[6],[[7],[3,'user']],[3,'realName']])
Z([[6],[[7],[3,'user']],[3,'vipType']])
Z([[6],[[7],[3,'user']],[3,'vipExpiryTime']])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
})(__WXML_GLOBAL__.ops_cached.$gwx_32);return __WXML_GLOBAL__.ops_cached.$gwx_32
}
function gz$gwx_33(){
if( __WXML_GLOBAL__.ops_cached.$gwx_33)return __WXML_GLOBAL__.ops_cached.$gwx_33
__WXML_GLOBAL__.ops_cached.$gwx_33=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[2,'&&'],[[2,'&&'],[[7],[3,'isShowTip']],[[2,'!'],[[7],[3,'notice']]]],[[2,'!='],[[7],[3,'platform']],[1,'pc']]])
Z([[7],[3,'notice']])
Z([3,'#FF5A5F'])
Z([3,'closeNotice'])
Z([3,'#FFF'])
Z([3,'closeable'])
Z([3,'false'])
Z(z[1])
Z([[6],[[7],[3,'shortcut']],[3,'title']])
Z([[2,'>'],[[6],[[7],[3,'menu']],[3,'length']],[1,0]])
})(__WXML_GLOBAL__.ops_cached.$gwx_33);return __WXML_GLOBAL__.ops_cached.$gwx_33
}
function gz$gwx_34(){
if( __WXML_GLOBAL__.ops_cached.$gwx_34)return __WXML_GLOBAL__.ops_cached.$gwx_34
__WXML_GLOBAL__.ops_cached.$gwx_34=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'competition'])
Z([[7],[3,'competitions']])
Z([3,'index'])
Z([3,'showActionSheet'])
Z([[7],[3,'competition']])
Z([[10],[[7],[3,'competition']]])
Z([3,'competitionCard'])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[2,'>'],[[6],[[7],[3,'competitions']],[3,'length']],[1,0]])
})(__WXML_GLOBAL__.ops_cached.$gwx_34);return __WXML_GLOBAL__.ops_cached.$gwx_34
}
function gz$gwx_35(){
if( __WXML_GLOBAL__.ops_cached.$gwx_35)return __WXML_GLOBAL__.ops_cached.$gwx_35
__WXML_GLOBAL__.ops_cached.$gwx_35=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([[8],'instructionFirst',[1,'授权微信登录获得更好的使用体验，以下情况需要授权微信登录：1.创建新的比赛；2.加入成为比赛工作人员；3.担任比赛评委；4.更新昵称和头像等情况。']])
Z([3,'instruction'])
})(__WXML_GLOBAL__.ops_cached.$gwx_35);return __WXML_GLOBAL__.ops_cached.$gwx_35
}
function gz$gwx_36(){
if( __WXML_GLOBAL__.ops_cached.$gwx_36)return __WXML_GLOBAL__.ops_cached.$gwx_36
__WXML_GLOBAL__.ops_cached.$gwx_36=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'onChange'])
Z([[7],[3,'activeNames']])
Z([3,'102'])
Z([3,'支持的赛制类型'])
Z([3,'104'])
Z([3,'添加参赛者'])
Z([3,'105'])
Z([3,'设置评分规则'])
Z([3,'106'])
Z([3,'如何邀请评委'])
Z([3,'107'])
Z([3,'查看实时成绩'])
Z([3,'108'])
Z([3,'观众参与互动'])
Z([3,'111'])
Z([3,'奖项和获奖名单'])
Z([3,'112'])
Z([3,'设置评委不同权重'])
Z([3,'117'])
Z([3,'设置评委账号和密码'])
Z([3,'113'])
Z([3,'评委分数出现错误'])
Z([3,'114'])
Z([3,'导出成绩Excel表的格式'])
Z([3,'115'])
Z([3,'现场展示实时成绩'])
Z([3,'116'])
Z([3,'关闭、重新开放比赛'])
Z([3,'999'])
Z([3,'注意事项'])
Z([[2,'&&'],[[2,'&&'],[[7],[3,'c']],[[7],[3,'v']]],[[2,'=='],[[7],[3,'c']],[[7],[3,'v']]]])
})(__WXML_GLOBAL__.ops_cached.$gwx_36);return __WXML_GLOBAL__.ops_cached.$gwx_36
}
function gz$gwx_37(){
if( __WXML_GLOBAL__.ops_cached.$gwx_37)return __WXML_GLOBAL__.ops_cached.$gwx_37
__WXML_GLOBAL__.ops_cached.$gwx_37=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
})(__WXML_GLOBAL__.ops_cached.$gwx_37);return __WXML_GLOBAL__.ops_cached.$gwx_37
}
function gz$gwx_38(){
if( __WXML_GLOBAL__.ops_cached.$gwx_38)return __WXML_GLOBAL__.ops_cached.$gwx_38
__WXML_GLOBAL__.ops_cached.$gwx_38=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
})(__WXML_GLOBAL__.ops_cached.$gwx_38);return __WXML_GLOBAL__.ops_cached.$gwx_38
}
function gz$gwx_39(){
if( __WXML_GLOBAL__.ops_cached.$gwx_39)return __WXML_GLOBAL__.ops_cached.$gwx_39
__WXML_GLOBAL__.ops_cached.$gwx_39=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'backgroundCard'])
Z([[7],[3,'organizer']])
})(__WXML_GLOBAL__.ops_cached.$gwx_39);return __WXML_GLOBAL__.ops_cached.$gwx_39
}
function gz$gwx_40(){
if( __WXML_GLOBAL__.ops_cached.$gwx_40)return __WXML_GLOBAL__.ops_cached.$gwx_40
__WXML_GLOBAL__.ops_cached.$gwx_40=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'competitionCard'])
Z([[7],[3,'site']])
})(__WXML_GLOBAL__.ops_cached.$gwx_40);return __WXML_GLOBAL__.ops_cached.$gwx_40
}
function gz$gwx_41(){
if( __WXML_GLOBAL__.ops_cached.$gwx_41)return __WXML_GLOBAL__.ops_cached.$gwx_41
__WXML_GLOBAL__.ops_cached.$gwx_41=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'contactService'])
})(__WXML_GLOBAL__.ops_cached.$gwx_41);return __WXML_GLOBAL__.ops_cached.$gwx_41
}
function gz$gwx_42(){
if( __WXML_GLOBAL__.ops_cached.$gwx_42)return __WXML_GLOBAL__.ops_cached.$gwx_42
__WXML_GLOBAL__.ops_cached.$gwx_42=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'instruction'])
})(__WXML_GLOBAL__.ops_cached.$gwx_42);return __WXML_GLOBAL__.ops_cached.$gwx_42
}
function gz$gwx_43(){
if( __WXML_GLOBAL__.ops_cached.$gwx_43)return __WXML_GLOBAL__.ops_cached.$gwx_43
__WXML_GLOBAL__.ops_cached.$gwx_43=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'leftNaviBar'])
Z([3,'leftNaviBarView'])
Z([[7],[3,'more']])
Z([[7],[3,'showArrow']])
})(__WXML_GLOBAL__.ops_cached.$gwx_43);return __WXML_GLOBAL__.ops_cached.$gwx_43
}
function gz$gwx_44(){
if( __WXML_GLOBAL__.ops_cached.$gwx_44)return __WXML_GLOBAL__.ops_cached.$gwx_44
__WXML_GLOBAL__.ops_cached.$gwx_44=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'loadmore'])
Z([[7],[3,'loadmore']])
Z([[2,'=='],[[7],[3,'loadmore']],[1,'正在加载']])
})(__WXML_GLOBAL__.ops_cached.$gwx_44);return __WXML_GLOBAL__.ops_cached.$gwx_44
}
function gz$gwx_45(){
if( __WXML_GLOBAL__.ops_cached.$gwx_45)return __WXML_GLOBAL__.ops_cached.$gwx_45
__WXML_GLOBAL__.ops_cached.$gwx_45=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([3,'competition'])
Z([[7],[3,'competitions']])
Z([3,'index'])
Z([[10],[[7],[3,'competition']]])
Z([3,'competitionCard'])
Z([[9],[[8],'loadmore',[[7],[3,'loadmore']]],[[8],'backgroundColor',[1,'#f4f4f4']]])
Z([3,'loadmore'])
Z([[2,'&&'],[[2,'&&'],[[2,'&&'],[[7],[3,'c']],[[7],[3,'v']]],[[2,'=='],[[7],[3,'c']],[[7],[3,'v']]]],[[2,'<='],[[7],[3,'scrollTop']],[1,400]]])
Z([[2,'>'],[[6],[[7],[3,'competitions']],[3,'length']],[1,0]])
})(__WXML_GLOBAL__.ops_cached.$gwx_45);return __WXML_GLOBAL__.ops_cached.$gwx_45
}
__WXML_GLOBAL__.ops_set.$gwx=z;
__WXML_GLOBAL__.ops_init.$gwx=true;
var nv_require=function(){var nnm={"p_./components/vant/wxs/array.wxs":np_0,"p_./components/vant/wxs/bem.wxs":np_1,"p_./components/vant/wxs/memoize.wxs":np_2,"p_./components/vant/wxs/object.wxs":np_3,"p_./components/vant/wxs/utils.wxs":np_4,};var nom={};return function(n){if(n[0]==='p'&&n[1]==='_'&&f_[n.slice(2)])return f_[n.slice(2)];return function(){if(!nnm[n]) return undefined;try{if(!nom[n])nom[n]=nnm[n]();return nom[n];}catch(e){e.message=e.message.replace(/nv_/g,'');var tmp = e.stack.substring(0,e.stack.lastIndexOf(n));e.stack = tmp.substring(0,tmp.lastIndexOf('\n'));e.stack = e.stack.replace(/\snv_/g,' ');e.stack = $gstack(e.stack);e.stack += '\n    at ' + n.substring(2);console.error(e);}
}}}()
f_['./components/vant/cell/index.wxml']={};
f_['./components/vant/cell/index.wxml']['utils'] =f_['./components/vant/wxs/utils.wxs'] || nv_require("p_./components/vant/wxs/utils.wxs");
f_['./components/vant/cell/index.wxml']['utils']();

f_['./components/vant/collapse-item/index.wxml']={};
f_['./components/vant/collapse-item/index.wxml']['utils'] =f_['./components/vant/wxs/utils.wxs'] || nv_require("p_./components/vant/wxs/utils.wxs");
f_['./components/vant/collapse-item/index.wxml']['utils']();

f_['./components/vant/notice-bar/index.wxml']={};
f_['./components/vant/notice-bar/index.wxml']['utils'] =f_['./components/vant/wxs/utils.wxs'] || nv_require("p_./components/vant/wxs/utils.wxs");
f_['./components/vant/notice-bar/index.wxml']['utils']();

f_['./components/vant/tab/index.wxml']={};
f_['./components/vant/tab/index.wxml']['utils'] =f_['./components/vant/wxs/utils.wxs'] || nv_require("p_./components/vant/wxs/utils.wxs");
f_['./components/vant/tab/index.wxml']['utils']();

f_['./components/vant/tabs/index.wxml']={};
f_['./components/vant/tabs/index.wxml']['utils'] =f_['./components/vant/wxs/utils.wxs'] || nv_require("p_./components/vant/wxs/utils.wxs");
f_['./components/vant/tabs/index.wxml']['utils']();

f_['./components/vant/wxs/array.wxs'] = nv_require("p_./components/vant/wxs/array.wxs");
function np_0(){var nv_module={nv_exports:{}};function nv_isArray(nv_array){return(nv_array && nv_array.nv_constructor === 'Array')};nv_module.nv_exports.nv_isArray = nv_isArray;return nv_module.nv_exports;}

f_['./components/vant/wxs/bem.wxs'] = nv_require("p_./components/vant/wxs/bem.wxs");
function np_1(){var nv_module={nv_exports:{}};var nv_array = nv_require('p_./components/vant/wxs/array.wxs')();var nv_object = nv_require('p_./components/vant/wxs/object.wxs')();var nv_PREFIX = 'van-';function nv_join(nv_name,nv_mods){nv_name = nv_PREFIX + nv_name;nv_mods = nv_mods.nv_map((function (nv_mod){return(nv_name + '--' + nv_mod)}));nv_mods.nv_unshift(nv_name);return(nv_mods.nv_join(' '))};function nv_traversing(nv_mods,nv_conf){if (!nv_conf){return};if (typeof nv_conf === 'string' || typeof nv_conf === 'number'){nv_mods.nv_push(nv_conf)} else if (nv_array.nv_isArray(nv_conf)){nv_conf.nv_forEach((function (nv_item){nv_traversing(nv_mods,nv_item)}))} else if (typeof nv_conf === 'object'){nv_object.nv_keys(nv_conf).nv_forEach((function (nv_key){nv_conf[((nt_0=(nv_key),null==nt_0?undefined:'number'=== typeof nt_0?nt_0:"nv_"+nt_0))] && nv_mods.nv_push(nv_key)}))}};function nv_bem(nv_name,nv_conf){var nv_mods = [];nv_traversing(nv_mods,nv_conf);return(nv_join(nv_name,nv_mods))};nv_module.nv_exports.nv_bem = nv_bem;return nv_module.nv_exports;}

f_['./components/vant/wxs/memoize.wxs'] = nv_require("p_./components/vant/wxs/memoize.wxs");
function np_2(){var nv_module={nv_exports:{}};function nv_isPrimitive(nv_value){var nv_type = typeof nv_value;return((nv_type === 'boolean' || nv_type === 'number' || nv_type === 'string' || nv_type === 'undefined' || nv_value === null))};function nv_call(nv_fn,nv_args){if (nv_args.nv_length === 2){return(nv_fn(nv_args[(0)],nv_args[(1)]))};if (nv_args.nv_length === 1){return(nv_fn(nv_args[(0)]))};return(nv_fn())};function nv_serializer(nv_args){if (nv_args.nv_length === 1 && nv_isPrimitive(nv_args[(0)])){return(nv_args[(0)])};var nv_obj = ({});for(var nv_i = 0;nv_i < nv_args.nv_length;nv_i++){nv_obj[((nt_5=('key' + nv_i),null==nt_5?undefined:'number'=== typeof nt_5?nt_5:"nv_"+nt_5))] = nv_args[((nt_6=(nv_i),null==nt_6?undefined:'number'=== typeof nt_6?nt_6:"nv_"+nt_6))]};return(nv_JSON.nv_stringify(nv_obj))};function nv_memoize(nv_fn){arguments.nv_length=arguments.length;var nv_cache = ({});return((function (){arguments.nv_length=arguments.length;var nv_key = nv_serializer(arguments);if (nv_cache[((nt_7=(nv_key),null==nt_7?undefined:'number'=== typeof nt_7?nt_7:"nv_"+nt_7))] === undefined){nv_cache[((nt_8=(nv_key),null==nt_8?undefined:'number'=== typeof nt_8?nt_8:"nv_"+nt_8))] = nv_call(nv_fn,arguments)};return(nv_cache[((nt_9=(nv_key),null==nt_9?undefined:'number'=== typeof nt_9?nt_9:"nv_"+nt_9))])}))};nv_module.nv_exports.nv_memoize = nv_memoize;return nv_module.nv_exports;}

f_['./components/vant/wxs/object.wxs'] = nv_require("p_./components/vant/wxs/object.wxs");
function np_3(){var nv_module={nv_exports:{}};var nv_REGEXP = nv_getRegExp('{|}|\x22','g');function nv_keys(nv_obj){return(nv_JSON.nv_stringify(nv_obj).nv_replace(nv_REGEXP,'').nv_split(',').nv_map((function (nv_item){return(nv_item.nv_split(':')[(0)])})))};nv_module.nv_exports.nv_keys = nv_keys;return nv_module.nv_exports;}

f_['./components/vant/wxs/utils.wxs'] = nv_require("p_./components/vant/wxs/utils.wxs");
function np_4(){var nv_module={nv_exports:{}};var nv_bem = nv_require('p_./components/vant/wxs/bem.wxs')().nv_bem;var nv_memoize = nv_require('p_./components/vant/wxs/memoize.wxs')().nv_memoize;function nv_isSrc(nv_url){return(nv_url.nv_indexOf('http') === 0 || nv_url.nv_indexOf('data:image') === 0 || nv_url.nv_indexOf('//') === 0)};nv_module.nv_exports = ({nv_bem:nv_memoize(nv_bem),nv_isSrc:nv_isSrc,nv_memoize:nv_memoize,});return nv_module.nv_exports;}

var x=['./components/vant/cell/index.wxml','./components/vant/collapse-item/index.wxml','./components/vant/collapse/index.wxml','./components/vant/icon/index.wxml','./components/vant/info/index.wxml','./components/vant/notice-bar/index.wxml','./components/vant/tab/index.wxml','./components/vant/tabs/index.wxml','./pages/addRole/jury/jury.wxml','/pages/templates/backgroundCard/backgroundCard.wxml','./pages/addRole/juryByGroup/juryByGroup.wxml','./pages/addRole/worker/worker.wxml','./pages/audience/audience.wxml','/pages/templates/competitionCard/competitionCard.wxml','/pages/templates/loadmore/loadmore.wxml','./pages/competition/awards/awards.wxml','/pages/templates/instruction/instruction.wxml','/pages/templates/leftNaviBar/leftNaviBar.wxml','./pages/competition/competition.wxml','/pages/templates/contactService/contactService.wxml','./pages/competition/drawPoster/drawPoster.wxml','./pages/competition/edit/edit.wxml','./pages/competition/inviteJury/inviteJury.wxml','./pages/competition/inviteJury/juriesAccounts/juriesAccounts.wxml','./pages/competition/inviteJury/juriesGroups/juriesGroups.wxml','./pages/competition/inviteWorker/inviteWorker.wxml','./pages/competition/judge/judge.wxml','./pages/competition/judge/submitScore/submitScore.wxml','./pages/competition/judge/submitScoreV2/submitScoreV2.wxml','./pages/competition/newestScores/newestScores.wxml','./pages/competition/newestScores/programDetails/programDetails.wxml','./pages/competition/programs/programs.wxml','./pages/competition/rules/rules.wxml','./pages/competition/vote/vote.wxml','./pages/dashboard/active/active.wxml','./pages/dashboard/active/compSettings/compSettings.wxml','./pages/dashboard/dashboard.wxml','./pages/dashboard/user/user.wxml','./pages/index/index.wxml','./pages/jury/jury.wxml','./pages/more/authorize/authorize.wxml','./pages/more/guide/guide.wxml','./pages/more/intro/intro.wxml','./pages/more/more.wxml','./pages/templates/backgroundCard/backgroundCard.wxml','./pages/templates/competitionCard/competitionCard.wxml','./pages/templates/contactService/contactService.wxml','./pages/templates/instruction/instruction.wxml','./pages/templates/leftNaviBar/leftNaviBar.wxml','./pages/templates/loadmore/loadmore.wxml','./pages/worker/worker.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_1()
var oB=_mz(z,'view',['bind:tap',0,'class',1,'hoverClass',1,'hoverStayTime',2,'style',3],[],e,s,gg)
var xC=_v()
_(oB,xC)
if(_oz(z,5,e,s,gg)){xC.wxVkey=1
var fE=_mz(z,'van-icon',['class',6,'customClass',1,'name',2],[],e,s,gg)
_(xC,fE)
}
else{xC.wxVkey=2
var cF=_n('slot')
_rz(z,cF,'name',9,e,s,gg)
_(xC,cF)
}
var hG=_mz(z,'view',['class',10,'style',1],[],e,s,gg)
var oH=_v()
_(hG,oH)
if(_oz(z,12,e,s,gg)){oH.wxVkey=1
}
else{oH.wxVkey=2
var oJ=_n('slot')
_rz(z,oJ,'name',13,e,s,gg)
_(oH,oJ)
}
var cI=_v()
_(hG,cI)
if(_oz(z,14,e,s,gg)){cI.wxVkey=1
var lK=_n('view')
_rz(z,lK,'class',15,e,s,gg)
var aL=_v()
_(lK,aL)
if(_oz(z,16,e,s,gg)){aL.wxVkey=1
var tM=_n('slot')
_rz(z,tM,'name',17,e,s,gg)
_(aL,tM)
}
else if(_oz(z,18,e,s,gg)){aL.wxVkey=2
}
aL.wxXCkey=1
_(cI,lK)
}
oH.wxXCkey=1
cI.wxXCkey=1
_(oB,hG)
var eN=_n('view')
_rz(z,eN,'class',19,e,s,gg)
var bO=_v()
_(eN,bO)
if(_oz(z,20,e,s,gg)){bO.wxVkey=1
}
else{bO.wxVkey=2
var oP=_n('slot')
_(bO,oP)
}
bO.wxXCkey=1
_(oB,eN)
var oD=_v()
_(oB,oD)
if(_oz(z,21,e,s,gg)){oD.wxVkey=1
var xQ=_mz(z,'van-icon',['class',22,'customClass',1,'name',2],[],e,s,gg)
_(oD,xQ)
}
else{oD.wxVkey=2
var oR=_n('slot')
_rz(z,oR,'name',25,e,s,gg)
_(oD,oR)
}
var fS=_n('slot')
_rz(z,fS,'name',26,e,s,gg)
_(oB,fS)
xC.wxXCkey=1
xC.wxXCkey=3
oD.wxXCkey=1
oD.wxXCkey=3
_(r,oB)
return r
}
e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]}
d_[x[1]]={}
var m1=function(e,s,r,gg){
var z=gz$gwx_2()
var hU=_n('view')
_rz(z,hU,'class',0,e,s,gg)
var oV=_mz(z,'van-cell',['bind:click',1,'border',1,'class',2,'clickable',3,'customClass',4,'hoverClass',5,'icon',6,'isLink',7,'label',8,'rightIconClass',9,'title',10,'titleClass',11,'value',12],[],e,s,gg)
var cW=_mz(z,'slot',['name',14,'slot',1],[],e,s,gg)
_(oV,cW)
var oX=_mz(z,'slot',['name',16,'slot',1],[],e,s,gg)
_(oV,oX)
var lY=_n('slot')
_rz(z,lY,'name',18,e,s,gg)
_(oV,lY)
var aZ=_mz(z,'slot',['name',19,'slot',1],[],e,s,gg)
_(oV,aZ)
_(hU,oV)
var t1=_mz(z,'view',['bind:transitionend',21,'class',1,'style',2],[],e,s,gg)
var e2=_n('slot')
_(t1,e2)
_(hU,t1)
_(r,hU)
return r
}
e_[x[1]]={f:m1,j:[],i:[],ti:[],ic:[]}
d_[x[2]]={}
var m2=function(e,s,r,gg){
var z=gz$gwx_3()
var o4=_n('slot')
_(r,o4)
return r
}
e_[x[2]]={f:m2,j:[],i:[],ti:[],ic:[]}
d_[x[3]]={}
var m3=function(e,s,r,gg){
var z=gz$gwx_4()
var o6=_mz(z,'view',['bind:tap',0,'class',1,'style',1],[],e,s,gg)
var f7=_v()
_(o6,f7)
if(_oz(z,3,e,s,gg)){f7.wxVkey=1
var h9=_mz(z,'van-info',['customClass',4,'dot',1,'info',2],[],e,s,gg)
_(f7,h9)
}
var c8=_v()
_(o6,c8)
if(_oz(z,7,e,s,gg)){c8.wxVkey=1
}
f7.wxXCkey=1
f7.wxXCkey=3
c8.wxXCkey=1
_(r,o6)
return r
}
e_[x[3]]={f:m3,j:[],i:[],ti:[],ic:[]}
d_[x[4]]={}
var m4=function(e,s,r,gg){
var z=gz$gwx_5()
var cAB=_v()
_(r,cAB)
if(_oz(z,0,e,s,gg)){cAB.wxVkey=1
}
cAB.wxXCkey=1
return r
}
e_[x[4]]={f:m4,j:[],i:[],ti:[],ic:[]}
d_[x[5]]={}
var m5=function(e,s,r,gg){
var z=gz$gwx_6()
var lCB=_v()
_(r,lCB)
if(_oz(z,0,e,s,gg)){lCB.wxVkey=1
var aDB=_mz(z,'view',['bind:tap',1,'class',1,'style',2],[],e,s,gg)
var tEB=_v()
_(aDB,tEB)
if(_oz(z,4,e,s,gg)){tEB.wxVkey=1
var bGB=_mz(z,'van-icon',['class',5,'name',1,'size',2],[],e,s,gg)
_(tEB,bGB)
}
else{tEB.wxVkey=2
var oHB=_n('slot')
_rz(z,oHB,'name',8,e,s,gg)
_(tEB,oHB)
}
var eFB=_v()
_(aDB,eFB)
if(_oz(z,9,e,s,gg)){eFB.wxVkey=1
var xIB=_mz(z,'van-icon',['bind:tap',10,'class',1,'name',2],[],e,s,gg)
_(eFB,xIB)
}
else if(_oz(z,13,e,s,gg)){eFB.wxVkey=2
var oJB=_mz(z,'van-icon',['class',14,'name',1],[],e,s,gg)
_(eFB,oJB)
}
else{eFB.wxVkey=3
var fKB=_n('slot')
_rz(z,fKB,'name',16,e,s,gg)
_(eFB,fKB)
}
tEB.wxXCkey=1
tEB.wxXCkey=3
eFB.wxXCkey=1
eFB.wxXCkey=3
eFB.wxXCkey=3
_(lCB,aDB)
}
lCB.wxXCkey=1
lCB.wxXCkey=3
return r
}
e_[x[5]]={f:m5,j:[],i:[],ti:[],ic:[]}
d_[x[6]]={}
var m6=function(e,s,r,gg){
var z=gz$gwx_7()
var hMB=_v()
_(r,hMB)
if(_oz(z,0,e,s,gg)){hMB.wxVkey=1
var oNB=_n('slot')
_(hMB,oNB)
}
hMB.wxXCkey=1
return r
}
e_[x[6]]={f:m6,j:[],i:[],ti:[],ic:[]}
d_[x[7]]={}
var m7=function(e,s,r,gg){
var z=gz$gwx_8()
var oPB=_n('view')
_rz(z,oPB,'class',0,e,s,gg)
var lQB=_mz(z,'view',['class',1,'style',1],[],e,s,gg)
var aRB=_n('slot')
_rz(z,aRB,'name',3,e,s,gg)
_(lQB,aRB)
var tSB=_n('view')
_rz(z,tSB,'class',4,e,s,gg)
var eTB=_v()
_(tSB,eTB)
if(_oz(z,5,e,s,gg)){eTB.wxVkey=1
}
var bUB=_v()
_(tSB,bUB)
var oVB=function(oXB,xWB,fYB,gg){
var h1B=_mz(z,'view',['bind:tap',8,'class',1,'data-index',2,'style',3],[],oXB,xWB,gg)
var o2B=_v()
_(h1B,o2B)
if(_oz(z,12,oXB,xWB,gg)){o2B.wxVkey=1
var c3B=_mz(z,'van-info',['customClass',13,'info',1],[],oXB,xWB,gg)
_(o2B,c3B)
}
o2B.wxXCkey=1
o2B.wxXCkey=3
_(fYB,h1B)
return fYB
}
bUB.wxXCkey=4
_2z(z,6,oVB,e,s,gg,bUB,'item','index','index')
eTB.wxXCkey=1
_(lQB,tSB)
var o4B=_n('slot')
_rz(z,o4B,'name',15,e,s,gg)
_(lQB,o4B)
_(oPB,lQB)
var l5B=_mz(z,'view',['bind:touchcancel',16,'bind:touchend',1,'bind:touchmove',2,'bind:touchstart',3,'class',4],[],e,s,gg)
var a6B=_n('slot')
_(l5B,a6B)
_(oPB,l5B)
_(r,oPB)
return r
}
e_[x[7]]={f:m7,j:[],i:[],ti:[],ic:[]}
d_[x[8]]={}
var m8=function(e,s,r,gg){
var z=gz$gwx_9()
var e8B=e_[x[8]].i
_ai(e8B,x[9],e_,x[8],1,1)
var xAC=_v()
_(r,xAC)
var oBC=_oz(z,1,e,s,gg)
var fCC=_gd(x[8],oBC,e_,d_)
if(fCC){
var cDC=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
xAC.wxXCkey=3
fCC(cDC,cDC,xAC,gg)
gg.f=cur_globalf
}
else _w(oBC,x[8],2,14)
var b9B=_v()
_(r,b9B)
if(_oz(z,2,e,s,gg)){b9B.wxVkey=1
}
var o0B=_v()
_(r,o0B)
if(_oz(z,3,e,s,gg)){o0B.wxVkey=1
}
b9B.wxXCkey=1
o0B.wxXCkey=1
e8B.pop()
return r
}
e_[x[8]]={f:m8,j:[],i:[],ti:[x[9]],ic:[]}
d_[x[10]]={}
var m9=function(e,s,r,gg){
var z=gz$gwx_10()
var oFC=e_[x[10]].i
_ai(oFC,x[9],e_,x[10],1,1)
var lIC=_v()
_(r,lIC)
var aJC=_oz(z,1,e,s,gg)
var tKC=_gd(x[10],aJC,e_,d_)
if(tKC){
var eLC=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
lIC.wxXCkey=3
tKC(eLC,eLC,lIC,gg)
gg.f=cur_globalf
}
else _w(aJC,x[10],2,14)
var cGC=_v()
_(r,cGC)
if(_oz(z,2,e,s,gg)){cGC.wxVkey=1
}
var oHC=_v()
_(r,oHC)
if(_oz(z,3,e,s,gg)){oHC.wxVkey=1
}
cGC.wxXCkey=1
oHC.wxXCkey=1
oFC.pop()
return r
}
e_[x[10]]={f:m9,j:[],i:[],ti:[x[9]],ic:[]}
d_[x[11]]={}
var m10=function(e,s,r,gg){
var z=gz$gwx_11()
var oNC=_v()
_(r,oNC)
if(_oz(z,0,e,s,gg)){oNC.wxVkey=1
}
oNC.wxXCkey=1
return r
}
e_[x[11]]={f:m10,j:[],i:[],ti:[],ic:[]}
d_[x[12]]={}
var m11=function(e,s,r,gg){
var z=gz$gwx_12()
var oPC=e_[x[12]].i
_ai(oPC,x[13],e_,x[12],1,1)
_ai(oPC,x[14],e_,x[12],2,2)
var cRC=_v()
_(r,cRC)
var hSC=function(cUC,oTC,oVC,gg){
var aXC=_mz(z,'navigator',['catchlongtap',3,'data-competition',1,'url',2],[],cUC,oTC,gg)
var tYC=_v()
_(aXC,tYC)
var eZC=_oz(z,7,cUC,oTC,gg)
var b1C=_gd(x[12],eZC,e_,d_)
if(b1C){
var o2C=_1z(z,6,cUC,oTC,gg) || {}
var cur_globalf=gg.f
tYC.wxXCkey=3
b1C(o2C,o2C,tYC,gg)
gg.f=cur_globalf
}
else _w(eZC,x[12],3,254)
_(oVC,aXC)
return oVC
}
cRC.wxXCkey=2
_2z(z,1,hSC,e,s,gg,cRC,'competition','index','index')
var x3C=_v()
_(r,x3C)
var o4C=_oz(z,9,e,s,gg)
var f5C=_gd(x[12],o4C,e_,d_)
if(f5C){
var c6C=_1z(z,8,e,s,gg) || {}
var cur_globalf=gg.f
x3C.wxXCkey=3
f5C(c6C,c6C,x3C,gg)
gg.f=cur_globalf
}
else _w(o4C,x[12],5,14)
var fQC=_v()
_(r,fQC)
if(_oz(z,10,e,s,gg)){fQC.wxVkey=1
}
fQC.wxXCkey=1
oPC.pop()
oPC.pop()
return r
}
e_[x[12]]={f:m11,j:[],i:[],ti:[x[13],x[14]],ic:[]}
d_[x[15]]={}
var m12=function(e,s,r,gg){
var z=gz$gwx_13()
var o8C=e_[x[15]].i
_ai(o8C,x[9],e_,x[15],1,1)
_ai(o8C,x[16],e_,x[15],2,2)
_ai(o8C,x[17],e_,x[15],3,2)
var oFD=_v()
_(r,oFD)
var xGD=_oz(z,1,e,s,gg)
var oHD=_gd(x[15],xGD,e_,d_)
if(oHD){
var fID=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
oFD.wxXCkey=3
oHD(fID,fID,oFD,gg)
gg.f=cur_globalf
}
else _w(xGD,x[15],4,14)
var c9C=_v()
_(r,c9C)
if(_oz(z,2,e,s,gg)){c9C.wxVkey=1
}
var cJD=_v()
_(r,cJD)
var hKD=function(cMD,oLD,oND,gg){
var aPD=_mz(z,'view',['catchtap',5,'data-award',1,'data-index',2],[],cMD,oLD,gg)
var tQD=_v()
_(aPD,tQD)
var eRD=_oz(z,9,cMD,oLD,gg)
var bSD=_gd(x[15],eRD,e_,d_)
if(bSD){
var oTD=_1z(z,8,cMD,oLD,gg) || {}
var cur_globalf=gg.f
tQD.wxXCkey=3
bSD(oTD,oTD,tQD,gg)
gg.f=cur_globalf
}
else _w(eRD,x[15],8,177)
_(oND,aPD)
return oND
}
cJD.wxXCkey=2
_2z(z,4,hKD,e,s,gg,cJD,'item','idxAward','')
var o0C=_v()
_(r,o0C)
if(_oz(z,10,e,s,gg)){o0C.wxVkey=1
}
var lAD=_v()
_(r,lAD)
if(_oz(z,11,e,s,gg)){lAD.wxVkey=1
}
var aBD=_v()
_(r,aBD)
if(_oz(z,12,e,s,gg)){aBD.wxVkey=1
}
var tCD=_v()
_(r,tCD)
if(_oz(z,13,e,s,gg)){tCD.wxVkey=1
}
var eDD=_v()
_(r,eDD)
if(_oz(z,14,e,s,gg)){eDD.wxVkey=1
var xUD=_v()
_(eDD,xUD)
var oVD=_oz(z,16,e,s,gg)
var fWD=_gd(x[15],oVD,e_,d_)
if(fWD){
var cXD=_1z(z,15,e,s,gg) || {}
var cur_globalf=gg.f
xUD.wxXCkey=3
fWD(cXD,cXD,xUD,gg)
gg.f=cur_globalf
}
else _w(oVD,x[15],20,64)
}
var bED=_v()
_(r,bED)
if(_oz(z,17,e,s,gg)){bED.wxVkey=1
}
c9C.wxXCkey=1
o0C.wxXCkey=1
lAD.wxXCkey=1
aBD.wxXCkey=1
tCD.wxXCkey=1
eDD.wxXCkey=1
bED.wxXCkey=1
o8C.pop()
o8C.pop()
o8C.pop()
return r
}
e_[x[15]]={f:m12,j:[],i:[],ti:[x[9],x[16],x[17]],ic:[]}
d_[x[18]]={}
var m13=function(e,s,r,gg){
var z=gz$gwx_14()
var oZD=e_[x[18]].i
_ai(oZD,x[9],e_,x[18],1,1)
var e6D=_v()
_(r,e6D)
var b7D=_oz(z,1,e,s,gg)
var o8D=_gd(x[18],b7D,e_,d_)
if(o8D){
var x9D=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
e6D.wxXCkey=3
o8D(x9D,x9D,e6D,gg)
gg.f=cur_globalf
}
else _w(b7D,x[18],2,14)
var c1D=_v()
_(r,c1D)
if(_oz(z,2,e,s,gg)){c1D.wxVkey=1
}
var o2D=_v()
_(r,o2D)
if(_oz(z,3,e,s,gg)){o2D.wxVkey=1
var o0D=_mz(z,'van-notice-bar',['backgroundColor',4,'bind:close',1,'color',2,'mode',3,'scrollable',4,'text',5],[],e,s,gg)
_(o2D,o0D)
}
var fAE=_v()
_(r,fAE)
var cBE=function(oDE,hCE,cEE,gg){
var lGE=_v()
_(cEE,lGE)
if(_oz(z,12,oDE,hCE,gg)){lGE.wxVkey=1
}
var aHE=_v()
_(cEE,aHE)
if(_oz(z,13,oDE,hCE,gg)){aHE.wxVkey=1
}
lGE.wxXCkey=1
aHE.wxXCkey=1
return cEE
}
fAE.wxXCkey=2
_2z(z,10,cBE,e,s,gg,fAE,'item','index','index')
var l3D=_v()
_(r,l3D)
if(_oz(z,14,e,s,gg)){l3D.wxVkey=1
}
var a4D=_v()
_(r,a4D)
if(_oz(z,15,e,s,gg)){a4D.wxVkey=1
}
_ai(oZD,x[19],e_,x[18],16,2)
var t5D=_v()
_(r,t5D)
if(_oz(z,16,e,s,gg)){t5D.wxVkey=1
var tIE=_v()
_(t5D,tIE)
var eJE=_oz(z,17,e,s,gg)
var bKE=_gd(x[18],eJE,e_,d_)
if(bKE){
var oLE={}
var cur_globalf=gg.f
tIE.wxXCkey=3
bKE(oLE,oLE,tIE,gg)
gg.f=cur_globalf
}
else _w(eJE,x[18],16,113)
}
c1D.wxXCkey=1
o2D.wxXCkey=1
o2D.wxXCkey=3
l3D.wxXCkey=1
a4D.wxXCkey=1
t5D.wxXCkey=1
oZD.pop()
oZD.pop()
return r
}
e_[x[18]]={f:m13,j:[],i:[],ti:[x[9],x[19]],ic:[]}
d_[x[20]]={}
var m14=function(e,s,r,gg){
var z=gz$gwx_15()
var oNE=_v()
_(r,oNE)
if(_oz(z,0,e,s,gg)){oNE.wxVkey=1
}
oNE.wxXCkey=1
return r
}
e_[x[20]]={f:m14,j:[],i:[],ti:[],ic:[]}
d_[x[21]]={}
var m15=function(e,s,r,gg){
var z=gz$gwx_16()
return r
}
e_[x[21]]={f:m15,j:[],i:[],ti:[],ic:[]}
d_[x[22]]={}
var m16=function(e,s,r,gg){
var z=gz$gwx_17()
var hQE=e_[x[22]].i
_ai(hQE,x[16],e_,x[22],1,1)
_ai(hQE,x[9],e_,x[22],2,2)
var cSE=_v()
_(r,cSE)
var oTE=_oz(z,1,e,s,gg)
var lUE=_gd(x[22],oTE,e_,d_)
if(lUE){
var aVE=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
cSE.wxXCkey=3
lUE(aVE,aVE,cSE,gg)
gg.f=cur_globalf
}
else _w(oTE,x[22],3,14)
var oRE=_v()
_(r,oRE)
if(_oz(z,2,e,s,gg)){oRE.wxVkey=1
var tWE=_n('view')
_rz(z,tWE,'class',3,e,s,gg)
var eXE=_v()
_(tWE,eXE)
if(_oz(z,4,e,s,gg)){eXE.wxVkey=1
var x1E=_v()
_(eXE,x1E)
if(_oz(z,5,e,s,gg)){x1E.wxVkey=1
}
x1E.wxXCkey=1
}
var bYE=_v()
_(tWE,bYE)
if(_oz(z,6,e,s,gg)){bYE.wxVkey=1
}
var oZE=_v()
_(tWE,oZE)
if(_oz(z,7,e,s,gg)){oZE.wxVkey=1
}
var o2E=_v()
_(tWE,o2E)
var f3E=function(h5E,c4E,o6E,gg){
var o8E=_v()
_(o6E,o8E)
if(_oz(z,11,h5E,c4E,gg)){o8E.wxVkey=1
var l9E=_v()
_(o8E,l9E)
if(_oz(z,12,h5E,c4E,gg)){l9E.wxVkey=1
}
l9E.wxXCkey=1
}
o8E.wxXCkey=1
return o6E
}
o2E.wxXCkey=2
_2z(z,10,f3E,e,s,gg,o2E,'item','idx','')
var a0E=_v()
_(tWE,a0E)
var tAF=_oz(z,14,e,s,gg)
var eBF=_gd(x[22],tAF,e_,d_)
if(eBF){
var bCF=_1z(z,13,e,s,gg) || {}
var cur_globalf=gg.f
a0E.wxXCkey=3
eBF(bCF,bCF,a0E,gg)
gg.f=cur_globalf
}
else _w(tAF,x[22],6,3130)
eXE.wxXCkey=1
bYE.wxXCkey=1
oZE.wxXCkey=1
_(oRE,tWE)
}
oRE.wxXCkey=1
hQE.pop()
hQE.pop()
return r
}
e_[x[22]]={f:m16,j:[],i:[],ti:[x[16],x[9]],ic:[]}
d_[x[23]]={}
var m17=function(e,s,r,gg){
var z=gz$gwx_18()
var xEF=e_[x[23]].i
var oFF=_v()
_(r,oFF)
if(_oz(z,0,e,s,gg)){oFF.wxVkey=1
}
var hIF=_v()
_(r,hIF)
var oJF=function(oLF,cKF,lMF,gg){
var tOF=_mz(z,'view',['catchtap',3,'class',1,'data-id',2,'data-idx',3,'data-user_openid',4],[],oLF,cKF,gg)
var ePF=_v()
_(tOF,ePF)
if(_oz(z,8,oLF,cKF,gg)){ePF.wxVkey=1
}
ePF.wxXCkey=1
_(lMF,tOF)
return lMF
}
hIF.wxXCkey=2
_2z(z,1,oJF,e,s,gg,hIF,'item','index','index')
_ai(xEF,x[14],e_,x[23],5,2)
var bQF=_v()
_(r,bQF)
var oRF=_oz(z,10,e,s,gg)
var xSF=_gd(x[23],oRF,e_,d_)
if(xSF){
var oTF=_1z(z,9,e,s,gg) || {}
var cur_globalf=gg.f
bQF.wxXCkey=3
xSF(oTF,oTF,bQF,gg)
gg.f=cur_globalf
}
else _w(oRF,x[23],6,14)
_ai(xEF,x[16],e_,x[23],7,2)
var fUF=_v()
_(r,fUF)
var cVF=_oz(z,12,e,s,gg)
var hWF=_gd(x[23],cVF,e_,d_)
if(hWF){
var oXF=_1z(z,11,e,s,gg) || {}
var cur_globalf=gg.f
fUF.wxXCkey=3
hWF(oXF,oXF,fUF,gg)
gg.f=cur_globalf
}
else _w(cVF,x[23],8,43)
_ai(xEF,x[19],e_,x[23],10,2)
var fGF=_v()
_(r,fGF)
if(_oz(z,13,e,s,gg)){fGF.wxVkey=1
var cYF=_v()
_(fGF,cYF)
var oZF=_oz(z,14,e,s,gg)
var l1F=_gd(x[23],oZF,e_,d_)
if(l1F){
var a2F={}
var cur_globalf=gg.f
cYF.wxXCkey=3
l1F(a2F,a2F,cYF,gg)
gg.f=cur_globalf
}
else _w(oZF,x[23],11,45)
}
var cHF=_v()
_(r,cHF)
if(_oz(z,15,e,s,gg)){cHF.wxVkey=1
}
oFF.wxXCkey=1
fGF.wxXCkey=1
cHF.wxXCkey=1
xEF.pop()
xEF.pop()
xEF.pop()
return r
}
e_[x[23]]={f:m17,j:[],i:[],ti:[x[14],x[16],x[19]],ic:[]}
d_[x[24]]={}
var m18=function(e,s,r,gg){
var z=gz$gwx_19()
var e4F=e_[x[24]].i
_ai(e4F,x[16],e_,x[24],1,1)
_ai(e4F,x[17],e_,x[24],2,2)
var o8F=_mz(z,'van-tabs',['animated',-1,'bind:change',0],[],e,s,gg)
var f9F=_v()
_(o8F,f9F)
var c0F=function(oBG,hAG,cCG,gg){
var lEG=_n('van-tab')
_rz(z,lEG,'title',3,oBG,hAG,gg)
_(cCG,lEG)
return cCG
}
f9F.wxXCkey=4
_2z(z,1,c0F,e,s,gg,f9F,'item','index','idx')
_(r,o8F)
var b5F=_v()
_(r,b5F)
if(_oz(z,4,e,s,gg)){b5F.wxVkey=1
var aFG=_n('view')
_rz(z,aFG,'class',5,e,s,gg)
var xKG=_v()
_(aFG,xKG)
var oLG=function(cNG,fMG,hOG,gg){
var cQG=_mz(z,'view',['catchtap',9,'data-idxJuriesGroup',1,'data-juriesGroup',2],[],cNG,fMG,gg)
var oRG=_v()
_(cQG,oRG)
var lSG=_oz(z,13,cNG,fMG,gg)
var aTG=_gd(x[24],lSG,e_,d_)
if(aTG){
var tUG=_1z(z,12,cNG,fMG,gg) || {}
var cur_globalf=gg.f
oRG.wxXCkey=3
aTG(tUG,tUG,oRG,gg)
gg.f=cur_globalf
}
else _w(lSG,x[24],5,276)
_(hOG,cQG)
return hOG
}
xKG.wxXCkey=2
_2z(z,8,oLG,e,s,gg,xKG,'juriesGroup','idxJuriesGroup','')
var tGG=_v()
_(aFG,tGG)
if(_oz(z,14,e,s,gg)){tGG.wxVkey=1
}
var eHG=_v()
_(aFG,eHG)
if(_oz(z,15,e,s,gg)){eHG.wxVkey=1
}
var bIG=_v()
_(aFG,bIG)
if(_oz(z,16,e,s,gg)){bIG.wxVkey=1
}
var oJG=_v()
_(aFG,oJG)
if(_oz(z,17,e,s,gg)){oJG.wxVkey=1
}
var eVG=_v()
_(aFG,eVG)
var bWG=_oz(z,19,e,s,gg)
var oXG=_gd(x[24],bWG,e_,d_)
if(oXG){
var xYG=_1z(z,18,e,s,gg) || {}
var cur_globalf=gg.f
eVG.wxXCkey=3
oXG(xYG,xYG,eVG,gg)
gg.f=cur_globalf
}
else _w(bWG,x[24],5,3088)
tGG.wxXCkey=1
eHG.wxXCkey=1
bIG.wxXCkey=1
oJG.wxXCkey=1
_(b5F,aFG)
}
var o6F=_v()
_(r,o6F)
if(_oz(z,20,e,s,gg)){o6F.wxVkey=1
var f1G=_n('view')
_rz(z,f1G,'class',21,e,s,gg)
var c2G=e_[x[24]].i
_ai(c2G,x[14],e_,x[24],7,400)
var h3G=_v()
_(f1G,h3G)
var o4G=_oz(z,23,e,s,gg)
var c5G=_gd(x[24],o4G,e_,d_)
if(c5G){
var o6G=_1z(z,22,e,s,gg) || {}
var cur_globalf=gg.f
h3G.wxXCkey=3
c5G(o6G,o6G,h3G,gg)
gg.f=cur_globalf
}
else _w(o4G,x[24],7,468)
c2G.pop()
_(o6F,f1G)
var oZG=_v()
_(o6F,oZG)
if(_oz(z,24,e,s,gg)){oZG.wxVkey=1
}
oZG.wxXCkey=1
}
_ai(e4F,x[19],e_,x[24],8,2)
var x7F=_v()
_(r,x7F)
if(_oz(z,25,e,s,gg)){x7F.wxVkey=1
var l7G=_v()
_(x7F,l7G)
var a8G=_oz(z,26,e,s,gg)
var t9G=_gd(x[24],a8G,e_,d_)
if(t9G){
var e0G={}
var cur_globalf=gg.f
l7G.wxXCkey=3
t9G(e0G,e0G,l7G,gg)
gg.f=cur_globalf
}
else _w(a8G,x[24],9,45)
}
b5F.wxXCkey=1
o6F.wxXCkey=1
x7F.wxXCkey=1
e4F.pop()
e4F.pop()
e4F.pop()
return r
}
e_[x[24]]={f:m18,j:[],i:[],ti:[x[16],x[17],x[19]],ic:[]}
d_[x[25]]={}
var m19=function(e,s,r,gg){
var z=gz$gwx_20()
var oBH=e_[x[25]].i
_ai(oBH,x[16],e_,x[25],1,1)
_ai(oBH,x[9],e_,x[25],2,2)
var oDH=_v()
_(r,oDH)
var fEH=_oz(z,1,e,s,gg)
var cFH=_gd(x[25],fEH,e_,d_)
if(cFH){
var hGH=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
oDH.wxXCkey=3
cFH(hGH,hGH,oDH,gg)
gg.f=cur_globalf
}
else _w(fEH,x[25],3,14)
var xCH=_v()
_(r,xCH)
if(_oz(z,2,e,s,gg)){xCH.wxVkey=1
var oHH=_n('view')
_rz(z,oHH,'class',3,e,s,gg)
var cIH=_v()
_(oHH,cIH)
if(_oz(z,4,e,s,gg)){cIH.wxVkey=1
}
var oJH=_v()
_(oHH,oJH)
var lKH=_oz(z,6,e,s,gg)
var aLH=_gd(x[25],lKH,e_,d_)
if(aLH){
var tMH=_1z(z,5,e,s,gg) || {}
var cur_globalf=gg.f
oJH.wxXCkey=3
aLH(tMH,tMH,oJH,gg)
gg.f=cur_globalf
}
else _w(lKH,x[25],5,882)
cIH.wxXCkey=1
_(xCH,oHH)
}
xCH.wxXCkey=1
oBH.pop()
oBH.pop()
return r
}
e_[x[25]]={f:m19,j:[],i:[],ti:[x[16],x[9]],ic:[]}
d_[x[26]]={}
var m20=function(e,s,r,gg){
var z=gz$gwx_21()
var bOH=e_[x[26]].i
_ai(bOH,x[16],e_,x[26],1,1)
_ai(bOH,x[9],e_,x[26],2,2)
var oRH=_v()
_(r,oRH)
var fSH=_oz(z,1,e,s,gg)
var cTH=_gd(x[26],fSH,e_,d_)
if(cTH){
var hUH=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
oRH.wxXCkey=3
cTH(hUH,hUH,oRH,gg)
gg.f=cur_globalf
}
else _w(fSH,x[26],4,14)
var oPH=_v()
_(r,oPH)
if(_oz(z,2,e,s,gg)){oPH.wxVkey=1
}
var xQH=_v()
_(r,xQH)
if(_oz(z,3,e,s,gg)){xQH.wxVkey=1
var oVH=_n('view')
_rz(z,oVH,'class',4,e,s,gg)
var cWH=e_[x[26]].i
var oXH=_v()
_(oVH,oXH)
var lYH=function(t1H,aZH,e2H,gg){
var o4H=_v()
_(e2H,o4H)
if(_oz(z,7,t1H,aZH,gg)){o4H.wxVkey=1
var x5H=_n('view')
_rz(z,x5H,'class',8,t1H,aZH,gg)
var o6H=_v()
_(x5H,o6H)
if(_oz(z,9,t1H,aZH,gg)){o6H.wxVkey=1
var f7H=_v()
_(o6H,f7H)
if(_oz(z,10,t1H,aZH,gg)){f7H.wxVkey=1
}
f7H.wxXCkey=1
}
var c8H=_n('view')
_rz(z,c8H,'class',11,t1H,aZH,gg)
var o0H=_v()
_(c8H,o0H)
var cAI=function(lCI,oBI,aDI,gg){
var eFI=_v()
_(aDI,eFI)
if(_oz(z,15,lCI,oBI,gg)){eFI.wxVkey=1
var bGI=_v()
_(eFI,bGI)
if(_oz(z,16,lCI,oBI,gg)){bGI.wxVkey=1
}
bGI.wxXCkey=1
}
eFI.wxXCkey=1
return aDI
}
o0H.wxXCkey=2
_2z(z,13,cAI,t1H,aZH,gg,o0H,'score','index','index')
var h9H=_v()
_(c8H,h9H)
if(_oz(z,17,t1H,aZH,gg)){h9H.wxVkey=1
}
h9H.wxXCkey=1
_(x5H,c8H)
o6H.wxXCkey=1
_(o4H,x5H)
}
o4H.wxXCkey=1
return e2H
}
oXH.wxXCkey=2
_2z(z,5,lYH,e,s,gg,oXH,'item','index','idx')
_ai(cWH,x[14],e_,x[26],9,1957)
var oHI=_v()
_(oVH,oHI)
var xII=_oz(z,19,e,s,gg)
var oJI=_gd(x[26],xII,e_,d_)
if(oJI){
var fKI=_1z(z,18,e,s,gg) || {}
var cur_globalf=gg.f
oHI.wxXCkey=3
oJI(fKI,fKI,oHI,gg)
gg.f=cur_globalf
}
else _w(xII,x[26],9,2025)
cWH.pop()
_(xQH,oVH)
}
else{xQH.wxVkey=2
var cLI=_mz(z,'van-tabs',['animated',-1,'bind:change',20],[],e,s,gg)
var hMI=_v()
_(cLI,hMI)
var oNI=function(oPI,cOI,lQI,gg){
var tSI=_n('van-tab')
_rz(z,tSI,'title',23,oPI,cOI,gg)
_(lQI,tSI)
return lQI
}
hMI.wxXCkey=4
_2z(z,21,oNI,e,s,gg,hMI,'item','index','idx')
_(xQH,cLI)
var eTI=_v()
_(xQH,eTI)
var bUI=function(xWI,oVI,oXI,gg){
var cZI=_v()
_(oXI,cZI)
if(_oz(z,26,xWI,oVI,gg)){cZI.wxVkey=1
var h1I=_n('view')
_rz(z,h1I,'class',27,xWI,oVI,gg)
var o2I=_v()
_(h1I,o2I)
if(_oz(z,28,xWI,oVI,gg)){o2I.wxVkey=1
var c3I=_v()
_(o2I,c3I)
if(_oz(z,29,xWI,oVI,gg)){c3I.wxVkey=1
}
c3I.wxXCkey=1
}
var o4I=_mz(z,'view',['class',30,'style',1],[],xWI,oVI,gg)
var t7I=_v()
_(o4I,t7I)
var e8I=function(o0I,b9I,xAJ,gg){
var fCJ=_v()
_(xAJ,fCJ)
if(_oz(z,35,o0I,b9I,gg)){fCJ.wxVkey=1
var cDJ=_v()
_(fCJ,cDJ)
if(_oz(z,36,o0I,b9I,gg)){cDJ.wxVkey=1
}
cDJ.wxXCkey=1
}
fCJ.wxXCkey=1
return xAJ
}
t7I.wxXCkey=2
_2z(z,33,e8I,xWI,oVI,gg,t7I,'score','index','index')
var l5I=_v()
_(o4I,l5I)
if(_oz(z,37,xWI,oVI,gg)){l5I.wxVkey=1
}
var a6I=_v()
_(o4I,a6I)
if(_oz(z,38,xWI,oVI,gg)){a6I.wxVkey=1
}
l5I.wxXCkey=1
a6I.wxXCkey=1
_(h1I,o4I)
o2I.wxXCkey=1
_(cZI,h1I)
}
cZI.wxXCkey=1
return oXI
}
eTI.wxXCkey=2
_2z(z,24,bUI,e,s,gg,eTI,'item','index','idx')
}
oPH.wxXCkey=1
xQH.wxXCkey=1
xQH.wxXCkey=3
bOH.pop()
bOH.pop()
return r
}
e_[x[26]]={f:m20,j:[],i:[],ti:[x[16],x[9]],ic:[]}
d_[x[27]]={}
var m21=function(e,s,r,gg){
var z=gz$gwx_22()
var oFJ=e_[x[27]].i
_ai(oFJ,x[17],e_,x[27],1,1)
var lIJ=_n('view')
_rz(z,lIJ,'class',0,e,s,gg)
var aJJ=_v()
_(lIJ,aJJ)
if(_oz(z,1,e,s,gg)){aJJ.wxVkey=1
var bMJ=_v()
_(aJJ,bMJ)
var oNJ=_oz(z,3,e,s,gg)
var xOJ=_gd(x[27],oNJ,e_,d_)
if(xOJ){
var oPJ=_1z(z,2,e,s,gg) || {}
var cur_globalf=gg.f
bMJ.wxXCkey=3
xOJ(oPJ,oPJ,bMJ,gg)
gg.f=cur_globalf
}
else _w(oNJ,x[27],2,102)
var eLJ=_v()
_(aJJ,eLJ)
if(_oz(z,4,e,s,gg)){eLJ.wxVkey=1
}
eLJ.wxXCkey=1
}
var tKJ=_v()
_(lIJ,tKJ)
if(_oz(z,5,e,s,gg)){tKJ.wxVkey=1
var fQJ=_v()
_(tKJ,fQJ)
var cRJ=_oz(z,7,e,s,gg)
var hSJ=_gd(x[27],cRJ,e_,d_)
if(hSJ){
var oTJ=_1z(z,6,e,s,gg) || {}
var cur_globalf=gg.f
fQJ.wxXCkey=3
hSJ(oTJ,oTJ,fQJ,gg)
gg.f=cur_globalf
}
else _w(cRJ,x[27],2,720)
}
else{tKJ.wxVkey=2
var cUJ=_v()
_(tKJ,cUJ)
var oVJ=_oz(z,9,e,s,gg)
var lWJ=_gd(x[27],oVJ,e_,d_)
if(lWJ){
var aXJ=_1z(z,8,e,s,gg) || {}
var cur_globalf=gg.f
cUJ.wxXCkey=3
lWJ(aXJ,aXJ,cUJ,gg)
gg.f=cur_globalf
}
else _w(oVJ,x[27],2,933)
}
aJJ.wxXCkey=1
tKJ.wxXCkey=1
_(r,lIJ)
var tYJ=_n('form')
_rz(z,tYJ,'bindsubmit',10,e,s,gg)
var eZJ=_v()
_(tYJ,eZJ)
if(_oz(z,11,e,s,gg)){eZJ.wxVkey=1
var b1J=_v()
_(eZJ,b1J)
var o2J=_oz(z,13,e,s,gg)
var x3J=_gd(x[27],o2J,e_,d_)
if(x3J){
var o4J=_1z(z,12,e,s,gg) || {}
var cur_globalf=gg.f
b1J.wxXCkey=3
x3J(o4J,o4J,b1J,gg)
gg.f=cur_globalf
}
else _w(o2J,x[27],4,1873)
}
eZJ.wxXCkey=1
_(r,tYJ)
_ai(oFJ,x[16],e_,x[27],7,2)
var cGJ=_v()
_(r,cGJ)
if(_oz(z,14,e,s,gg)){cGJ.wxVkey=1
var f5J=_v()
_(cGJ,f5J)
var c6J=_oz(z,16,e,s,gg)
var h7J=_gd(x[27],c6J,e_,d_)
if(h7J){
var o8J=_1z(z,15,e,s,gg) || {}
var cur_globalf=gg.f
f5J.wxXCkey=3
h7J(o8J,o8J,f5J,gg)
gg.f=cur_globalf
}
else _w(c6J,x[27],8,64)
}
var oHJ=_v()
_(r,oHJ)
if(_oz(z,17,e,s,gg)){oHJ.wxVkey=1
var c9J=_v()
_(oHJ,c9J)
var o0J=_oz(z,19,e,s,gg)
var lAK=_gd(x[27],o0J,e_,d_)
if(lAK){
var aBK=_1z(z,18,e,s,gg) || {}
var cur_globalf=gg.f
c9J.wxXCkey=3
lAK(aBK,aBK,c9J,gg)
gg.f=cur_globalf
}
else _w(o0J,x[27],11,70)
}
cGJ.wxXCkey=1
oHJ.wxXCkey=1
oFJ.pop()
oFJ.pop()
return r
}
e_[x[27]]={f:m21,j:[],i:[],ti:[x[17],x[16]],ic:[]}
d_[x[28]]={}
var m22=function(e,s,r,gg){
var z=gz$gwx_23()
var eDK=e_[x[28]].i
_ai(eDK,x[17],e_,x[28],2,2)
var oFK=_n('view')
_rz(z,oFK,'class',0,e,s,gg)
var oHK=_v()
_(oFK,oHK)
var fIK=_oz(z,2,e,s,gg)
var cJK=_gd(x[28],fIK,e_,d_)
if(cJK){
var hKK=_1z(z,1,e,s,gg) || {}
var cur_globalf=gg.f
oHK.wxXCkey=3
cJK(hKK,hKK,oHK,gg)
gg.f=cur_globalf
}
else _w(fIK,x[28],3,43)
var xGK=_v()
_(oFK,xGK)
if(_oz(z,3,e,s,gg)){xGK.wxVkey=1
}
var oLK=_v()
_(oFK,oLK)
var cMK=_oz(z,5,e,s,gg)
var oNK=_gd(x[28],cMK,e_,d_)
if(oNK){
var lOK=_1z(z,4,e,s,gg) || {}
var cur_globalf=gg.f
oLK.wxXCkey=3
oNK(lOK,lOK,oLK,gg)
gg.f=cur_globalf
}
else _w(cMK,x[28],3,567)
xGK.wxXCkey=1
_(r,oFK)
var bEK=_v()
_(r,bEK)
if(_oz(z,6,e,s,gg)){bEK.wxVkey=1
var aPK=_n('view')
_rz(z,aPK,'class',7,e,s,gg)
var bSK=_v()
_(aPK,bSK)
var oTK=_oz(z,9,e,s,gg)
var xUK=_gd(x[28],oTK,e_,d_)
if(xUK){
var oVK=_1z(z,8,e,s,gg) || {}
var cur_globalf=gg.f
bSK.wxXCkey=3
xUK(oVK,oVK,bSK,gg)
gg.f=cur_globalf
}
else _w(oTK,x[28],9,67)
var fWK=_n('view')
_rz(z,fWK,'class',10,e,s,gg)
var cXK=_v()
_(fWK,cXK)
if(_oz(z,11,e,s,gg)){cXK.wxVkey=1
}
var hYK=_v()
_(fWK,hYK)
if(_oz(z,12,e,s,gg)){hYK.wxVkey=1
}
var oZK=_v()
_(fWK,oZK)
if(_oz(z,13,e,s,gg)){oZK.wxVkey=1
}
cXK.wxXCkey=1
hYK.wxXCkey=1
oZK.wxXCkey=1
_(aPK,fWK)
var tQK=_v()
_(aPK,tQK)
if(_oz(z,14,e,s,gg)){tQK.wxVkey=1
var c1K=_v()
_(tQK,c1K)
var o2K=_oz(z,16,e,s,gg)
var l3K=_gd(x[28],o2K,e_,d_)
if(l3K){
var a4K=_1z(z,15,e,s,gg) || {}
var cur_globalf=gg.f
c1K.wxXCkey=3
l3K(a4K,a4K,c1K,gg)
gg.f=cur_globalf
}
else _w(o2K,x[28],13,442)
}
var eRK=_v()
_(aPK,eRK)
if(_oz(z,17,e,s,gg)){eRK.wxVkey=1
var t5K=_v()
_(eRK,t5K)
var e6K=_oz(z,19,e,s,gg)
var b7K=_gd(x[28],e6K,e_,d_)
if(b7K){
var o8K=_1z(z,18,e,s,gg) || {}
var cur_globalf=gg.f
t5K.wxXCkey=3
b7K(o8K,o8K,t5K,gg)
gg.f=cur_globalf
}
else _w(e6K,x[28],13,693)
}
tQK.wxXCkey=1
eRK.wxXCkey=1
_(bEK,aPK)
}
bEK.wxXCkey=1
eDK.pop()
return r
}
e_[x[28]]={f:m22,j:[],i:[],ti:[x[17]],ic:[]}
d_[x[29]]={}
var m23=function(e,s,r,gg){
var z=gz$gwx_24()
var o0K=e_[x[29]].i
_ai(o0K,x[9],e_,x[29],1,1)
var aHL=_v()
_(r,aHL)
var tIL=_oz(z,1,e,s,gg)
var eJL=_gd(x[29],tIL,e_,d_)
if(eJL){
var bKL=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
aHL.wxXCkey=3
eJL(bKL,bKL,aHL,gg)
gg.f=cur_globalf
}
else _w(tIL,x[29],2,14)
var fAL=_v()
_(r,fAL)
if(_oz(z,2,e,s,gg)){fAL.wxVkey=1
var oLL=_mz(z,'van-notice-bar',['backgroundColor',3,'bind:close',1,'color',2,'mode',3,'scrollable',4,'text',5],[],e,s,gg)
_(fAL,oLL)
}
var xML=_v()
_(r,xML)
var oNL=function(cPL,fOL,hQL,gg){
var oTL=_mz(z,'view',['class',12,'style',1],[],cPL,fOL,gg)
var lUL=_n('view')
_rz(z,lUL,'class',14,cPL,fOL,gg)
var aVL=_v()
_(lUL,aVL)
if(_oz(z,15,cPL,fOL,gg)){aVL.wxVkey=1
}
var tWL=_v()
_(lUL,tWL)
if(_oz(z,16,cPL,fOL,gg)){tWL.wxVkey=1
}
var eXL=_v()
_(lUL,eXL)
if(_oz(z,17,cPL,fOL,gg)){eXL.wxVkey=1
}
var bYL=_v()
_(lUL,bYL)
if(_oz(z,18,cPL,fOL,gg)){bYL.wxVkey=1
var oZL=_mz(z,'view',['class',19,'style',1],[],cPL,fOL,gg)
var o2L=_v()
_(oZL,o2L)
var f3L=function(h5L,c4L,o6L,gg){
var o8L=_v()
_(o6L,o8L)
if(_oz(z,24,h5L,c4L,gg)){o8L.wxVkey=1
}
o8L.wxXCkey=1
return o6L
}
o2L.wxXCkey=2
_2z(z,22,f3L,cPL,fOL,gg,o2L,'jury','index','index')
var x1L=_v()
_(oZL,x1L)
if(_oz(z,25,cPL,fOL,gg)){x1L.wxVkey=1
}
x1L.wxXCkey=1
_(bYL,oZL)
}
aVL.wxXCkey=1
tWL.wxXCkey=1
eXL.wxXCkey=1
bYL.wxXCkey=1
_(oTL,lUL)
var l9L=_n('view')
_rz(z,l9L,'class',26,cPL,fOL,gg)
var a0L=_v()
_(l9L,a0L)
if(_oz(z,27,cPL,fOL,gg)){a0L.wxVkey=1
}
var tAM=_v()
_(l9L,tAM)
if(_oz(z,28,cPL,fOL,gg)){tAM.wxVkey=1
}
a0L.wxXCkey=1
tAM.wxXCkey=1
_(oTL,l9L)
_(hQL,oTL)
var cSL=_v()
_(hQL,cSL)
if(_oz(z,29,cPL,fOL,gg)){cSL.wxVkey=1
}
cSL.wxXCkey=1
return hQL
}
xML.wxXCkey=2
_2z(z,9,oNL,e,s,gg,xML,'item','index','index')
var cBL=_v()
_(r,cBL)
if(_oz(z,30,e,s,gg)){cBL.wxVkey=1
}
_ai(o0K,x[14],e_,x[29],10,2)
var eBM=_v()
_(r,eBM)
var bCM=_oz(z,32,e,s,gg)
var oDM=_gd(x[29],bCM,e_,d_)
if(oDM){
var xEM=_1z(z,31,e,s,gg) || {}
var cur_globalf=gg.f
eBM.wxXCkey=3
oDM(xEM,xEM,eBM,gg)
gg.f=cur_globalf
}
else _w(bCM,x[29],11,14)
var hCL=_v()
_(r,hCL)
if(_oz(z,33,e,s,gg)){hCL.wxVkey=1
var oFM=_mz(z,'view',['class',34,'style',1],[],e,s,gg)
var fGM=_v()
_(oFM,fGM)
if(_oz(z,36,e,s,gg)){fGM.wxVkey=1
}
var cHM=_v()
_(oFM,cHM)
if(_oz(z,37,e,s,gg)){cHM.wxVkey=1
}
var hIM=_v()
_(oFM,hIM)
if(_oz(z,38,e,s,gg)){hIM.wxVkey=1
}
fGM.wxXCkey=1
cHM.wxXCkey=1
hIM.wxXCkey=1
_(hCL,oFM)
}
var oDL=_v()
_(r,oDL)
if(_oz(z,39,e,s,gg)){oDL.wxVkey=1
}
var cEL=_v()
_(r,cEL)
if(_oz(z,40,e,s,gg)){cEL.wxVkey=1
}
var oFL=_v()
_(r,oFL)
if(_oz(z,41,e,s,gg)){oFL.wxVkey=1
}
_ai(o0K,x[19],e_,x[29],21,2)
var lGL=_v()
_(r,lGL)
if(_oz(z,42,e,s,gg)){lGL.wxVkey=1
var oJM=_v()
_(lGL,oJM)
var cKM=_oz(z,43,e,s,gg)
var oLM=_gd(x[29],cKM,e_,d_)
if(oLM){
var lMM={}
var cur_globalf=gg.f
oJM.wxXCkey=3
oLM(lMM,lMM,oJM,gg)
gg.f=cur_globalf
}
else _w(cKM,x[29],22,45)
}
fAL.wxXCkey=1
fAL.wxXCkey=3
cBL.wxXCkey=1
hCL.wxXCkey=1
oDL.wxXCkey=1
cEL.wxXCkey=1
oFL.wxXCkey=1
lGL.wxXCkey=1
o0K.pop()
o0K.pop()
o0K.pop()
return r
}
e_[x[29]]={f:m23,j:[],i:[],ti:[x[9],x[14],x[19]],ic:[]}
d_[x[30]]={}
var m24=function(e,s,r,gg){
var z=gz$gwx_25()
var tOM=e_[x[30]].i
_ai(tOM,x[17],e_,x[30],1,1)
var ePM=_n('view')
_rz(z,ePM,'class',0,e,s,gg)
var cYM=_v()
_(ePM,cYM)
var oZM=_oz(z,2,e,s,gg)
var l1M=_gd(x[30],oZM,e_,d_)
if(l1M){
var a2M=_1z(z,1,e,s,gg) || {}
var cur_globalf=gg.f
cYM.wxXCkey=3
l1M(a2M,a2M,cYM,gg)
gg.f=cur_globalf
}
else _w(oZM,x[30],3,14)
var t3M=_v()
_(ePM,t3M)
var e4M=_oz(z,4,e,s,gg)
var b5M=_gd(x[30],e4M,e_,d_)
if(b5M){
var o6M=_1z(z,3,e,s,gg) || {}
var cur_globalf=gg.f
t3M.wxXCkey=3
b5M(o6M,o6M,t3M,gg)
gg.f=cur_globalf
}
else _w(e4M,x[30],4,14)
var bQM=_v()
_(ePM,bQM)
if(_oz(z,5,e,s,gg)){bQM.wxVkey=1
var x7M=_v()
_(bQM,x7M)
var o8M=_oz(z,7,e,s,gg)
var f9M=_gd(x[30],o8M,e_,d_)
if(f9M){
var c0M=_1z(z,6,e,s,gg) || {}
var cur_globalf=gg.f
x7M.wxXCkey=3
f9M(c0M,c0M,x7M,gg)
gg.f=cur_globalf
}
else _w(o8M,x[30],5,39)
}
var oRM=_v()
_(ePM,oRM)
if(_oz(z,8,e,s,gg)){oRM.wxVkey=1
var hAN=_v()
_(oRM,hAN)
var oBN=_oz(z,10,e,s,gg)
var cCN=_gd(x[30],oBN,e_,d_)
if(cCN){
var oDN=_1z(z,9,e,s,gg) || {}
var cur_globalf=gg.f
hAN.wxXCkey=3
cCN(oDN,oDN,hAN,gg)
gg.f=cur_globalf
}
else _w(oBN,x[30],6,77)
}
var lEN=_v()
_(ePM,lEN)
var aFN=_oz(z,12,e,s,gg)
var tGN=_gd(x[30],aFN,e_,d_)
if(tGN){
var eHN=_1z(z,11,e,s,gg) || {}
var cur_globalf=gg.f
lEN.wxXCkey=3
tGN(eHN,eHN,lEN,gg)
gg.f=cur_globalf
}
else _w(aFN,x[30],7,14)
var bIN=_v()
_(ePM,bIN)
var oJN=_oz(z,14,e,s,gg)
var xKN=_gd(x[30],oJN,e_,d_)
if(xKN){
var oLN=_1z(z,13,e,s,gg) || {}
var cur_globalf=gg.f
bIN.wxXCkey=3
xKN(oLN,oLN,bIN,gg)
gg.f=cur_globalf
}
else _w(oJN,x[30],8,14)
var xSM=_v()
_(ePM,xSM)
if(_oz(z,15,e,s,gg)){xSM.wxVkey=1
var fMN=_v()
_(xSM,fMN)
var cNN=_oz(z,17,e,s,gg)
var hON=_gd(x[30],cNN,e_,d_)
if(hON){
var oPN=_1z(z,16,e,s,gg) || {}
var cur_globalf=gg.f
fMN.wxXCkey=3
hON(oPN,oPN,fMN,gg)
gg.f=cur_globalf
}
else _w(cNN,x[30],9,46)
}
var oTM=_v()
_(ePM,oTM)
if(_oz(z,18,e,s,gg)){oTM.wxVkey=1
var cQN=_v()
_(oTM,cQN)
var oRN=_oz(z,20,e,s,gg)
var lSN=_gd(x[30],oRN,e_,d_)
if(lSN){
var aTN=_1z(z,19,e,s,gg) || {}
var cur_globalf=gg.f
cQN.wxXCkey=3
lSN(aTN,aTN,cQN,gg)
gg.f=cur_globalf
}
else _w(oRN,x[30],10,61)
}
var fUM=_v()
_(ePM,fUM)
if(_oz(z,21,e,s,gg)){fUM.wxVkey=1
var tUN=_v()
_(fUM,tUN)
var eVN=_oz(z,23,e,s,gg)
var bWN=_gd(x[30],eVN,e_,d_)
if(bWN){
var oXN=_1z(z,22,e,s,gg) || {}
var cur_globalf=gg.f
tUN.wxXCkey=3
bWN(oXN,oXN,tUN,gg)
gg.f=cur_globalf
}
else _w(eVN,x[30],12,46)
}
var cVM=_v()
_(ePM,cVM)
if(_oz(z,24,e,s,gg)){cVM.wxVkey=1
var xYN=_v()
_(cVM,xYN)
var oZN=_oz(z,26,e,s,gg)
var f1N=_gd(x[30],oZN,e_,d_)
if(f1N){
var c2N=_1z(z,25,e,s,gg) || {}
var cur_globalf=gg.f
xYN.wxXCkey=3
f1N(c2N,c2N,xYN,gg)
gg.f=cur_globalf
}
else _w(oZN,x[30],14,68)
}
var hWM=_v()
_(ePM,hWM)
if(_oz(z,27,e,s,gg)){hWM.wxVkey=1
var h3N=_v()
_(hWM,h3N)
var o4N=_oz(z,29,e,s,gg)
var c5N=_gd(x[30],o4N,e_,d_)
if(c5N){
var o6N=_1z(z,28,e,s,gg) || {}
var cur_globalf=gg.f
h3N.wxXCkey=3
c5N(o6N,o6N,h3N,gg)
gg.f=cur_globalf
}
else _w(o4N,x[30],16,61)
var l7N=_v()
_(hWM,l7N)
var a8N=function(e0N,t9N,bAO,gg){
var xCO=_mz(z,'view',['catchtap',33,'class',1,'data-index',2,'data-score',3],[],e0N,t9N,gg)
var oDO=_v()
_(xCO,oDO)
if(_oz(z,37,e0N,t9N,gg)){oDO.wxVkey=1
}
oDO.wxXCkey=1
_(bAO,xCO)
return bAO
}
l7N.wxXCkey=2
_2z(z,32,a8N,e,s,gg,l7N,'item','idx','')
}
var oXM=_v()
_(ePM,oXM)
if(_oz(z,38,e,s,gg)){oXM.wxVkey=1
var cFO=_v()
_(oXM,cFO)
var hGO=_oz(z,40,e,s,gg)
var oHO=_gd(x[30],hGO,e_,d_)
if(oHO){
var cIO=_1z(z,39,e,s,gg) || {}
var cur_globalf=gg.f
cFO.wxXCkey=3
oHO(cIO,cIO,cFO,gg)
gg.f=cur_globalf
}
else _w(hGO,x[30],18,69)
var fEO=_v()
_(oXM,fEO)
if(_oz(z,41,e,s,gg)){fEO.wxVkey=1
}
else{fEO.wxVkey=2
var oJO=e_[x[30]].i
_ai(oJO,x[14],e_,x[30],18,404)
var lKO=_v()
_(fEO,lKO)
var aLO=_oz(z,43,e,s,gg)
var tMO=_gd(x[30],aLO,e_,d_)
if(tMO){
var eNO=_1z(z,42,e,s,gg) || {}
var cur_globalf=gg.f
lKO.wxXCkey=3
tMO(eNO,eNO,lKO,gg)
gg.f=cur_globalf
}
else _w(aLO,x[30],18,472)
oJO.pop()
}
fEO.wxXCkey=1
}
bQM.wxXCkey=1
oRM.wxXCkey=1
xSM.wxXCkey=1
oTM.wxXCkey=1
fUM.wxXCkey=1
cVM.wxXCkey=1
hWM.wxXCkey=1
oXM.wxXCkey=1
_(r,ePM)
tOM.pop()
return r
}
e_[x[30]]={f:m24,j:[],i:[],ti:[x[17]],ic:[]}
d_[x[31]]={}
var m25=function(e,s,r,gg){
var z=gz$gwx_26()
var oPO=e_[x[31]].i
var fSO=_n('view')
_rz(z,fSO,'class',0,e,s,gg)
var cTO=_v()
_(fSO,cTO)
if(_oz(z,1,e,s,gg)){cTO.wxVkey=1
}
var hUO=_v()
_(fSO,hUO)
var oVO=function(oXO,cWO,lYO,gg){
var t1O=_n('view')
_rz(z,t1O,'class',4,oXO,cWO,gg)
var e2O=_v()
_(t1O,e2O)
if(_oz(z,5,oXO,cWO,gg)){e2O.wxVkey=1
}
var b3O=_v()
_(t1O,b3O)
if(_oz(z,6,oXO,cWO,gg)){b3O.wxVkey=1
}
var o4O=_mz(z,'view',['class',7,'style',1],[],oXO,cWO,gg)
var x5O=_v()
_(o4O,x5O)
if(_oz(z,9,oXO,cWO,gg)){x5O.wxVkey=1
}
var o6O=_mz(z,'picker',['bindchange',10,'data-idxprogram',1,'data-program',2,'range',3,'rangeKey',4],[],oXO,cWO,gg)
var f7O=_v()
_(o6O,f7O)
if(_oz(z,15,oXO,cWO,gg)){f7O.wxVkey=1
}
f7O.wxXCkey=1
_(o4O,o6O)
x5O.wxXCkey=1
_(t1O,o4O)
e2O.wxXCkey=1
b3O.wxXCkey=1
_(lYO,t1O)
return lYO
}
hUO.wxXCkey=2
_2z(z,2,oVO,e,s,gg,hUO,'item','index','idx')
cTO.wxXCkey=1
_(r,fSO)
_ai(oPO,x[14],e_,x[31],4,2)
var c8O=_v()
_(r,c8O)
var h9O=_oz(z,17,e,s,gg)
var o0O=_gd(x[31],h9O,e_,d_)
if(o0O){
var cAP=_1z(z,16,e,s,gg) || {}
var cur_globalf=gg.f
c8O.wxXCkey=3
o0O(cAP,cAP,c8O,gg)
gg.f=cur_globalf
}
else _w(h9O,x[31],5,14)
_ai(oPO,x[16],e_,x[31],6,2)
var oBP=_v()
_(r,oBP)
var lCP=_oz(z,19,e,s,gg)
var aDP=_gd(x[31],lCP,e_,d_)
if(aDP){
var tEP=_1z(z,18,e,s,gg) || {}
var cur_globalf=gg.f
oBP.wxXCkey=3
aDP(tEP,tEP,oBP,gg)
gg.f=cur_globalf
}
else _w(lCP,x[31],7,43)
_ai(oPO,x[19],e_,x[31],9,2)
var xQO=_v()
_(r,xQO)
if(_oz(z,20,e,s,gg)){xQO.wxVkey=1
var eFP=_v()
_(xQO,eFP)
var bGP=_oz(z,21,e,s,gg)
var oHP=_gd(x[31],bGP,e_,d_)
if(oHP){
var xIP={}
var cur_globalf=gg.f
eFP.wxXCkey=3
oHP(xIP,xIP,eFP,gg)
gg.f=cur_globalf
}
else _w(bGP,x[31],10,45)
}
var oRO=_v()
_(r,oRO)
if(_oz(z,22,e,s,gg)){oRO.wxVkey=1
var oJP=_mz(z,'view',['class',23,'style',1],[],e,s,gg)
var fKP=_v()
_(oJP,fKP)
if(_oz(z,25,e,s,gg)){fKP.wxVkey=1
}
var cLP=_v()
_(oJP,cLP)
if(_oz(z,26,e,s,gg)){cLP.wxVkey=1
}
fKP.wxXCkey=1
cLP.wxXCkey=1
_(oRO,oJP)
}
xQO.wxXCkey=1
oRO.wxXCkey=1
oPO.pop()
oPO.pop()
oPO.pop()
return r
}
e_[x[31]]={f:m25,j:[],i:[],ti:[x[14],x[16],x[19]],ic:[]}
d_[x[32]]={}
var m26=function(e,s,r,gg){
var z=gz$gwx_27()
var oNP=e_[x[32]].i
var cOP=_v()
_(r,cOP)
if(_oz(z,0,e,s,gg)){cOP.wxVkey=1
var lQP=e_[x[32]].i
var tSP=_n('view')
_rz(z,tSP,'class',1,e,s,gg)
var eTP=_v()
_(tSP,eTP)
if(_oz(z,2,e,s,gg)){eTP.wxVkey=1
}
var bUP=_v()
_(tSP,bUP)
if(_oz(z,3,e,s,gg)){bUP.wxVkey=1
}
var oVP=_v()
_(tSP,oVP)
if(_oz(z,4,e,s,gg)){oVP.wxVkey=1
}
var xWP=_v()
_(tSP,xWP)
if(_oz(z,5,e,s,gg)){xWP.wxVkey=1
}
eTP.wxXCkey=1
bUP.wxXCkey=1
oVP.wxXCkey=1
xWP.wxXCkey=1
_(cOP,tSP)
_ai(lQP,x[14],e_,x[32],1,6410)
var oXP=_v()
_(cOP,oXP)
var fYP=_oz(z,7,e,s,gg)
var cZP=_gd(x[32],fYP,e_,d_)
if(cZP){
var h1P=_1z(z,6,e,s,gg) || {}
var cur_globalf=gg.f
oXP.wxXCkey=3
cZP(h1P,h1P,oXP,gg)
gg.f=cur_globalf
}
else _w(fYP,x[32],1,6478)
_ai(lQP,x[16],e_,x[32],1,6549)
var o2P=_n('view')
_rz(z,o2P,'class',8,e,s,gg)
var c3P=_v()
_(o2P,c3P)
if(_oz(z,9,e,s,gg)){c3P.wxVkey=1
var o4P=_v()
_(c3P,o4P)
var l5P=_oz(z,11,e,s,gg)
var a6P=_gd(x[32],l5P,e_,d_)
if(a6P){
var t7P=_1z(z,10,e,s,gg) || {}
var cur_globalf=gg.f
o4P.wxXCkey=3
a6P(t7P,t7P,o4P,gg)
gg.f=cur_globalf
}
else _w(l5P,x[32],1,6808)
}
else{c3P.wxVkey=2
var e8P=_v()
_(c3P,e8P)
var b9P=_oz(z,13,e,s,gg)
var o0P=_gd(x[32],b9P,e_,d_)
if(o0P){
var xAQ=_1z(z,12,e,s,gg) || {}
var cur_globalf=gg.f
e8P.wxXCkey=3
o0P(xAQ,xAQ,e8P,gg)
gg.f=cur_globalf
}
else _w(b9P,x[32],1,7696)
}
c3P.wxXCkey=1
_(cOP,o2P)
var aRP=_v()
_(cOP,aRP)
if(_oz(z,14,e,s,gg)){aRP.wxVkey=1
}
aRP.wxXCkey=1
lQP.pop()
lQP.pop()
}
_ai(oNP,x[19],e_,x[32],3,2)
var oPP=_v()
_(r,oPP)
if(_oz(z,15,e,s,gg)){oPP.wxVkey=1
var oBQ=_v()
_(oPP,oBQ)
var fCQ=_oz(z,16,e,s,gg)
var cDQ=_gd(x[32],fCQ,e_,d_)
if(cDQ){
var hEQ={}
var cur_globalf=gg.f
oBQ.wxXCkey=3
cDQ(hEQ,hEQ,oBQ,gg)
gg.f=cur_globalf
}
else _w(fCQ,x[32],4,45)
}
cOP.wxXCkey=1
oPP.wxXCkey=1
oNP.pop()
return r
}
e_[x[32]]={f:m26,j:[],i:[],ti:[x[19]],ic:[]}
d_[x[33]]={}
var m27=function(e,s,r,gg){
var z=gz$gwx_28()
var cGQ=e_[x[33]].i
_ai(cGQ,x[16],e_,x[33],1,1)
_ai(cGQ,x[9],e_,x[33],2,2)
var eLQ=_v()
_(r,eLQ)
var bMQ=_oz(z,1,e,s,gg)
var oNQ=_gd(x[33],bMQ,e_,d_)
if(oNQ){
var xOQ=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
eLQ.wxXCkey=3
oNQ(xOQ,xOQ,eLQ,gg)
gg.f=cur_globalf
}
else _w(bMQ,x[33],3,14)
var oHQ=_v()
_(r,oHQ)
if(_oz(z,2,e,s,gg)){oHQ.wxVkey=1
}
var lIQ=_v()
_(r,lIQ)
if(_oz(z,3,e,s,gg)){lIQ.wxVkey=1
}
var oPQ=_n('view')
_rz(z,oPQ,'class',4,e,s,gg)
var fQQ=_v()
_(oPQ,fQQ)
if(_oz(z,5,e,s,gg)){fQQ.wxVkey=1
var cRQ=_v()
_(fQQ,cRQ)
if(_oz(z,6,e,s,gg)){cRQ.wxVkey=1
}
cRQ.wxXCkey=1
}
var hSQ=_v()
_(oPQ,hSQ)
var oTQ=function(oVQ,cUQ,lWQ,gg){
var tYQ=_v()
_(lWQ,tYQ)
if(_oz(z,9,oVQ,cUQ,gg)){tYQ.wxVkey=1
var eZQ=_mz(z,'view',['class',10,'style',1],[],oVQ,cUQ,gg)
var b1Q=_v()
_(eZQ,b1Q)
if(_oz(z,12,oVQ,cUQ,gg)){b1Q.wxVkey=1
}
var o2Q=_n('view')
_rz(z,o2Q,'class',13,oVQ,cUQ,gg)
var o4Q=_mz(z,'view',['class',14,'style',1],[],oVQ,cUQ,gg)
var f5Q=_v()
_(o4Q,f5Q)
if(_oz(z,16,oVQ,cUQ,gg)){f5Q.wxVkey=1
}
var c6Q=_v()
_(o4Q,c6Q)
if(_oz(z,17,oVQ,cUQ,gg)){c6Q.wxVkey=1
var h7Q=_v()
_(c6Q,h7Q)
if(_oz(z,18,oVQ,cUQ,gg)){h7Q.wxVkey=1
}
h7Q.wxXCkey=1
}
f5Q.wxXCkey=1
c6Q.wxXCkey=1
_(o2Q,o4Q)
var x3Q=_v()
_(o2Q,x3Q)
if(_oz(z,19,oVQ,cUQ,gg)){x3Q.wxVkey=1
}
x3Q.wxXCkey=1
_(eZQ,o2Q)
b1Q.wxXCkey=1
_(tYQ,eZQ)
}
tYQ.wxXCkey=1
return lWQ
}
hSQ.wxXCkey=2
_2z(z,7,oTQ,e,s,gg,hSQ,'item','index','idx')
fQQ.wxXCkey=1
_(r,oPQ)
_ai(cGQ,x[14],e_,x[33],9,2)
var o8Q=_v()
_(r,o8Q)
var c9Q=_oz(z,21,e,s,gg)
var o0Q=_gd(x[33],c9Q,e_,d_)
if(o0Q){
var lAR=_1z(z,20,e,s,gg) || {}
var cur_globalf=gg.f
o8Q.wxXCkey=3
o0Q(lAR,lAR,o8Q,gg)
gg.f=cur_globalf
}
else _w(c9Q,x[33],10,14)
var aJQ=_v()
_(r,aJQ)
if(_oz(z,22,e,s,gg)){aJQ.wxVkey=1
}
var tKQ=_v()
_(r,tKQ)
if(_oz(z,23,e,s,gg)){tKQ.wxVkey=1
}
oHQ.wxXCkey=1
lIQ.wxXCkey=1
aJQ.wxXCkey=1
tKQ.wxXCkey=1
cGQ.pop()
cGQ.pop()
cGQ.pop()
return r
}
e_[x[33]]={f:m27,j:[],i:[],ti:[x[16],x[9],x[14]],ic:[]}
d_[x[34]]={}
var m28=function(e,s,r,gg){
var z=gz$gwx_29()
var tCR=e_[x[34]].i
_ai(tCR,x[13],e_,x[34],1,1)
_ai(tCR,x[14],e_,x[34],2,2)
var eDR=_v()
_(r,eDR)
if(_oz(z,0,e,s,gg)){eDR.wxVkey=1
var oFR=_v()
_(eDR,oFR)
if(_oz(z,1,e,s,gg)){oFR.wxVkey=1
}
var xGR=_v()
_(eDR,xGR)
if(_oz(z,2,e,s,gg)){xGR.wxVkey=1
}
oFR.wxXCkey=1
xGR.wxXCkey=1
}
var oHR=_n('view')
var cJR=_v()
_(oHR,cJR)
var hKR=function(cMR,oLR,oNR,gg){
var aPR=_v()
_(oNR,aPR)
if(_oz(z,6,cMR,oLR,gg)){aPR.wxVkey=1
}
aPR.wxXCkey=1
return oNR
}
cJR.wxXCkey=2
_2z(z,4,hKR,e,s,gg,cJR,'competition','index','index')
var tQR=_v()
_(oHR,tQR)
var eRR=_oz(z,8,e,s,gg)
var bSR=_gd(x[34],eRR,e_,d_)
if(bSR){
var oTR=_1z(z,7,e,s,gg) || {}
var cur_globalf=gg.f
tQR.wxXCkey=3
bSR(oTR,oTR,tQR,gg)
gg.f=cur_globalf
}
else _w(eRR,x[34],5,2156)
var fIR=_v()
_(oHR,fIR)
if(_oz(z,9,e,s,gg)){fIR.wxVkey=1
}
fIR.wxXCkey=1
_(r,oHR)
var bER=_v()
_(r,bER)
if(_oz(z,10,e,s,gg)){bER.wxVkey=1
}
eDR.wxXCkey=1
bER.wxXCkey=1
tCR.pop()
tCR.pop()
return r
}
e_[x[34]]={f:m28,j:[],i:[],ti:[x[13],x[14]],ic:[]}
d_[x[35]]={}
var m29=function(e,s,r,gg){
var z=gz$gwx_30()
var oVR=e_[x[35]].i
_ai(oVR,x[9],e_,x[35],1,1)
var cXR=_v()
_(r,cXR)
var hYR=_oz(z,1,e,s,gg)
var oZR=_gd(x[35],hYR,e_,d_)
if(oZR){
var c1R=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
cXR.wxXCkey=3
oZR(c1R,c1R,cXR,gg)
gg.f=cur_globalf
}
else _w(hYR,x[35],2,14)
var fWR=_v()
_(r,fWR)
if(_oz(z,2,e,s,gg)){fWR.wxVkey=1
var o2R=_v()
_(fWR,o2R)
if(_oz(z,3,e,s,gg)){o2R.wxVkey=1
}
o2R.wxXCkey=1
}
fWR.wxXCkey=1
oVR.pop()
return r
}
e_[x[35]]={f:m29,j:[],i:[],ti:[x[9]],ic:[]}
d_[x[36]]={}
var m30=function(e,s,r,gg){
var z=gz$gwx_31()
var a4R=_v()
_(r,a4R)
if(_oz(z,0,e,s,gg)){a4R.wxVkey=1
}
a4R.wxXCkey=1
return r
}
e_[x[36]]={f:m30,j:[],i:[],ti:[],ic:[]}
d_[x[37]]={}
var m31=function(e,s,r,gg){
var z=gz$gwx_32()
var e6R=e_[x[37]].i
_ai(e6R,x[13],e_,x[37],1,1)
_ai(e6R,x[14],e_,x[37],2,2)
var b7R=_n('view')
_rz(z,b7R,'style',0,e,s,gg)
var o8R=_v()
_(b7R,o8R)
if(_oz(z,1,e,s,gg)){o8R.wxVkey=1
var x9R=_v()
_(o8R,x9R)
if(_oz(z,2,e,s,gg)){x9R.wxVkey=1
}
var o0R=_v()
_(o8R,o0R)
if(_oz(z,3,e,s,gg)){o0R.wxVkey=1
}
x9R.wxXCkey=1
o0R.wxXCkey=1
}
var fAS=_n('view')
_rz(z,fAS,'class',4,e,s,gg)
var cBS=_v()
_(fAS,cBS)
var hCS=function(cES,oDS,oFS,gg){
var aHS=_mz(z,'view',['catchlongpress',8,'class',1,'data-openid',2,'style',3],[],cES,oDS,gg)
var tIS=_v()
_(aHS,tIS)
if(_oz(z,12,cES,oDS,gg)){tIS.wxVkey=1
var eJS=_n('view')
var bKS=_v()
_(eJS,bKS)
if(_oz(z,13,cES,oDS,gg)){bKS.wxVkey=1
}
var oLS=_v()
_(eJS,oLS)
if(_oz(z,14,cES,oDS,gg)){oLS.wxVkey=1
}
var xMS=_v()
_(eJS,xMS)
if(_oz(z,15,cES,oDS,gg)){xMS.wxVkey=1
}
bKS.wxXCkey=1
oLS.wxXCkey=1
xMS.wxXCkey=1
_(tIS,eJS)
}
else{tIS.wxVkey=2
}
tIS.wxXCkey=1
_(oFS,aHS)
return oFS
}
cBS.wxXCkey=2
_2z(z,6,hCS,e,s,gg,cBS,'user','index','index')
var oNS=_v()
_(fAS,oNS)
var fOS=_oz(z,17,e,s,gg)
var cPS=_gd(x[37],fOS,e_,d_)
if(cPS){
var hQS=_1z(z,16,e,s,gg) || {}
var cur_globalf=gg.f
oNS.wxXCkey=3
cPS(hQS,hQS,oNS,gg)
gg.f=cur_globalf
}
else _w(fOS,x[37],5,600)
_(b7R,fAS)
o8R.wxXCkey=1
_(r,b7R)
e6R.pop()
e6R.pop()
return r
}
e_[x[37]]={f:m31,j:[],i:[],ti:[x[13],x[14]],ic:[]}
d_[x[38]]={}
var m32=function(e,s,r,gg){
var z=gz$gwx_33()
var cSS=_v()
_(r,cSS)
if(_oz(z,0,e,s,gg)){cSS.wxVkey=1
}
var oTS=_v()
_(r,oTS)
if(_oz(z,1,e,s,gg)){oTS.wxVkey=1
var tWS=_mz(z,'van-notice-bar',['backgroundColor',2,'catchtap',1,'color',2,'mode',3,'scrollable',4,'text',5],[],e,s,gg)
_(oTS,tWS)
}
var lUS=_v()
_(r,lUS)
if(_oz(z,8,e,s,gg)){lUS.wxVkey=1
}
var aVS=_v()
_(r,aVS)
if(_oz(z,9,e,s,gg)){aVS.wxVkey=1
}
cSS.wxXCkey=1
oTS.wxXCkey=1
oTS.wxXCkey=3
lUS.wxXCkey=1
aVS.wxXCkey=1
return r
}
e_[x[38]]={f:m32,j:[],i:[],ti:[],ic:[]}
d_[x[39]]={}
var m33=function(e,s,r,gg){
var z=gz$gwx_34()
var bYS=e_[x[39]].i
_ai(bYS,x[13],e_,x[39],1,1)
_ai(bYS,x[14],e_,x[39],2,2)
var x1S=_v()
_(r,x1S)
var o2S=function(c4S,f3S,h5S,gg){
var c7S=_mz(z,'view',['catchlongpress',3,'data-competition',1],[],c4S,f3S,gg)
var o8S=_v()
_(c7S,o8S)
var l9S=_oz(z,6,c4S,f3S,gg)
var a0S=_gd(x[39],l9S,e_,d_)
if(a0S){
var tAT=_1z(z,5,c4S,f3S,gg) || {}
var cur_globalf=gg.f
o8S.wxXCkey=3
a0S(tAT,tAT,o8S,gg)
gg.f=cur_globalf
}
else _w(l9S,x[39],3,266)
_(h5S,c7S)
return h5S
}
x1S.wxXCkey=2
_2z(z,1,o2S,e,s,gg,x1S,'competition','index','index')
var eBT=_v()
_(r,eBT)
var bCT=_oz(z,8,e,s,gg)
var oDT=_gd(x[39],bCT,e_,d_)
if(oDT){
var xET=_1z(z,7,e,s,gg) || {}
var cur_globalf=gg.f
eBT.wxXCkey=3
oDT(xET,xET,eBT,gg)
gg.f=cur_globalf
}
else _w(bCT,x[39],3,373)
var oZS=_v()
_(r,oZS)
if(_oz(z,9,e,s,gg)){oZS.wxVkey=1
}
oZS.wxXCkey=1
bYS.pop()
bYS.pop()
return r
}
e_[x[39]]={f:m33,j:[],i:[],ti:[x[13],x[14]],ic:[]}
d_[x[40]]={}
var m34=function(e,s,r,gg){
var z=gz$gwx_35()
var fGT=e_[x[40]].i
_ai(fGT,x[16],e_,x[40],1,1)
var cHT=_v()
_(r,cHT)
var hIT=_oz(z,1,e,s,gg)
var oJT=_gd(x[40],hIT,e_,d_)
if(oJT){
var cKT=_1z(z,0,e,s,gg) || {}
var cur_globalf=gg.f
cHT.wxXCkey=3
oJT(cKT,cKT,cHT,gg)
gg.f=cur_globalf
}
else _w(hIT,x[40],5,14)
fGT.pop()
return r
}
e_[x[40]]={f:m34,j:[],i:[],ti:[x[16]],ic:[]}
d_[x[41]]={}
var m35=function(e,s,r,gg){
var z=gz$gwx_36()
var lMT=e_[x[41]].i
_ai(lMT,x[16],e_,x[41],1,1)
var aNT=_mz(z,'van-collapse',['accordion',-1,'bind:change',0,'value',1],[],e,s,gg)
var ePT=_mz(z,'van-collapse-item',['name',2,'title',1],[],e,s,gg)
_(aNT,ePT)
var bQT=_mz(z,'van-collapse-item',['name',4,'title',1],[],e,s,gg)
_(aNT,bQT)
var oRT=_mz(z,'van-collapse-item',['name',6,'title',1],[],e,s,gg)
_(aNT,oRT)
var xST=_mz(z,'van-collapse-item',['name',8,'title',1],[],e,s,gg)
_(aNT,xST)
var oTT=_mz(z,'van-collapse-item',['name',10,'title',1],[],e,s,gg)
_(aNT,oTT)
var fUT=_mz(z,'van-collapse-item',['name',12,'title',1],[],e,s,gg)
_(aNT,fUT)
var cVT=_mz(z,'van-collapse-item',['name',14,'title',1],[],e,s,gg)
_(aNT,cVT)
var hWT=_mz(z,'van-collapse-item',['name',16,'title',1],[],e,s,gg)
_(aNT,hWT)
var oXT=_mz(z,'van-collapse-item',['name',18,'title',1],[],e,s,gg)
_(aNT,oXT)
var cYT=_mz(z,'van-collapse-item',['name',20,'title',1],[],e,s,gg)
_(aNT,cYT)
var oZT=_mz(z,'van-collapse-item',['name',22,'title',1],[],e,s,gg)
_(aNT,oZT)
var l1T=_mz(z,'van-collapse-item',['name',24,'title',1],[],e,s,gg)
_(aNT,l1T)
var a2T=_mz(z,'van-collapse-item',['name',26,'title',1],[],e,s,gg)
_(aNT,a2T)
var t3T=_mz(z,'van-collapse-item',['name',28,'title',1],[],e,s,gg)
_(aNT,t3T)
var tOT=_v()
_(aNT,tOT)
if(_oz(z,30,e,s,gg)){tOT.wxVkey=1
}
tOT.wxXCkey=1
_(r,aNT)
lMT.pop()
return r
}
e_[x[41]]={f:m35,j:[],i:[],ti:[x[16]],ic:[]}
d_[x[42]]={}
var m36=function(e,s,r,gg){
var z=gz$gwx_37()
return r
}
e_[x[42]]={f:m36,j:[],i:[],ti:[],ic:[]}
d_[x[43]]={}
var m37=function(e,s,r,gg){
var z=gz$gwx_38()
return r
}
e_[x[43]]={f:m37,j:[],i:[],ti:[],ic:[]}
d_[x[44]]={}
d_[x[44]]["backgroundCard"]=function(e,s,r,gg){
var z=gz$gwx_39()
var b=x[44]+':backgroundCard'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/backgroundCard/backgroundCard.wxml"],"",1)
if(p_[b]){_wl(b,x[44]);return}
p_[b]=true
try{
var oB=_v()
_(r,oB)
if(_oz(z,1,e,s,gg)){oB.wxVkey=1
}
oB.wxXCkey=1
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m38=function(e,s,r,gg){
var z=gz$gwx_39()
return r
}
e_[x[44]]={f:m38,j:[],i:[],ti:[],ic:[]}
d_[x[45]]={}
d_[x[45]]["competitionCard"]=function(e,s,r,gg){
var z=gz$gwx_40()
var b=x[45]+':competitionCard'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/competitionCard/competitionCard.wxml"],"",1)
if(p_[b]){_wl(b,x[45]);return}
p_[b]=true
try{
var oB=_v()
_(r,oB)
if(_oz(z,1,e,s,gg)){oB.wxVkey=1
}
oB.wxXCkey=1
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m39=function(e,s,r,gg){
var z=gz$gwx_40()
return r
}
e_[x[45]]={f:m39,j:[],i:[],ti:[],ic:[]}
d_[x[46]]={}
d_[x[46]]["contactService"]=function(e,s,r,gg){
var z=gz$gwx_41()
var b=x[46]+':contactService'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/contactService/contactService.wxml"],"",1)
if(p_[b]){_wl(b,x[46]);return}
p_[b]=true
try{
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m40=function(e,s,r,gg){
var z=gz$gwx_41()
return r
}
e_[x[46]]={f:m40,j:[],i:[],ti:[],ic:[]}
d_[x[47]]={}
d_[x[47]]["instruction"]=function(e,s,r,gg){
var z=gz$gwx_42()
var b=x[47]+':instruction'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/instruction/instruction.wxml"],"",1)
if(p_[b]){_wl(b,x[47]);return}
p_[b]=true
try{
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m41=function(e,s,r,gg){
var z=gz$gwx_42()
return r
}
e_[x[47]]={f:m41,j:[],i:[],ti:[],ic:[]}
d_[x[48]]={}
d_[x[48]]["leftNaviBar"]=function(e,s,r,gg){
var z=gz$gwx_43()
var b=x[48]+':leftNaviBar'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/leftNaviBar/leftNaviBar.wxml"],"",1)
if(p_[b]){_wl(b,x[48]);return}
p_[b]=true
try{
var oB=_n('view')
_rz(z,oB,'class',1,e,s,gg)
var xC=_v()
_(oB,xC)
if(_oz(z,2,e,s,gg)){xC.wxVkey=1
}
var oD=_v()
_(oB,oD)
if(_oz(z,3,e,s,gg)){oD.wxVkey=1
}
xC.wxXCkey=1
oD.wxXCkey=1
_(r,oB)
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m42=function(e,s,r,gg){
var z=gz$gwx_43()
return r
}
e_[x[48]]={f:m42,j:[],i:[],ti:[],ic:[]}
d_[x[49]]={}
d_[x[49]]["loadmore"]=function(e,s,r,gg){
var z=gz$gwx_44()
var b=x[49]+':loadmore'
r.wxVkey=b
gg.f=$gdc(f_["./pages/templates/loadmore/loadmore.wxml"],"",1)
if(p_[b]){_wl(b,x[49]);return}
p_[b]=true
try{
var oB=_v()
_(r,oB)
if(_oz(z,1,e,s,gg)){oB.wxVkey=1
var xC=_v()
_(oB,xC)
if(_oz(z,2,e,s,gg)){xC.wxVkey=1
}
xC.wxXCkey=1
}
oB.wxXCkey=1
}catch(err){
p_[b]=false
throw err
}
p_[b]=false
return r
}
var m43=function(e,s,r,gg){
var z=gz$gwx_44()
return r
}
e_[x[49]]={f:m43,j:[],i:[],ti:[],ic:[]}
d_[x[50]]={}
var m44=function(e,s,r,gg){
var z=gz$gwx_45()
var cCU=e_[x[50]].i
_ai(cCU,x[13],e_,x[50],1,1)
_ai(cCU,x[14],e_,x[50],2,2)
var aFU=_v()
_(r,aFU)
var tGU=function(bIU,eHU,oJU,gg){
var oLU=_v()
_(oJU,oLU)
var fMU=_oz(z,4,bIU,eHU,gg)
var cNU=_gd(x[50],fMU,e_,d_)
if(cNU){
var hOU=_1z(z,3,bIU,eHU,gg) || {}
var cur_globalf=gg.f
oLU.wxXCkey=3
cNU(hOU,hOU,oLU,gg)
gg.f=cur_globalf
}
else _w(fMU,x[50],3,187)
return oJU
}
aFU.wxXCkey=2
_2z(z,1,tGU,e,s,gg,aFU,'competition','index','index')
var oPU=_v()
_(r,oPU)
var cQU=_oz(z,6,e,s,gg)
var oRU=_gd(x[50],cQU,e_,d_)
if(oRU){
var lSU=_1z(z,5,e,s,gg) || {}
var cur_globalf=gg.f
oPU.wxXCkey=3
oRU(lSU,lSU,oPU,gg)
gg.f=cur_globalf
}
else _w(cQU,x[50],3,286)
var oDU=_v()
_(r,oDU)
if(_oz(z,7,e,s,gg)){oDU.wxVkey=1
}
var lEU=_v()
_(r,lEU)
if(_oz(z,8,e,s,gg)){lEU.wxVkey=1
}
oDU.wxXCkey=1
lEU.wxXCkey=1
cCU.pop()
cCU.pop()
return r
}
e_[x[50]]={f:m44,j:[],i:[],ti:[x[13],x[14]],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
return root;
}
}
}
	__wxAppCode__['components/vant/cell/index.json'] = {"component":true,"usingComponents":{"van-icon":"../icon/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/cell/index.wxml'] = [$gwx, './components/vant/cell/index.wxml'];else __wxAppCode__['components/vant/cell/index.wxml'] = $gwx( './components/vant/cell/index.wxml' );
		__wxAppCode__['components/vant/collapse-item/index.json'] = {"component":true,"usingComponents":{"van-cell":"../cell/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/collapse-item/index.wxml'] = [$gwx, './components/vant/collapse-item/index.wxml'];else __wxAppCode__['components/vant/collapse-item/index.wxml'] = $gwx( './components/vant/collapse-item/index.wxml' );
		__wxAppCode__['components/vant/collapse/index.json'] = {"component":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/collapse/index.wxml'] = [$gwx, './components/vant/collapse/index.wxml'];else __wxAppCode__['components/vant/collapse/index.wxml'] = $gwx( './components/vant/collapse/index.wxml' );
		__wxAppCode__['components/vant/icon/index.json'] = {"component":true,"usingComponents":{"van-info":"../info/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/icon/index.wxml'] = [$gwx, './components/vant/icon/index.wxml'];else __wxAppCode__['components/vant/icon/index.wxml'] = $gwx( './components/vant/icon/index.wxml' );
		__wxAppCode__['components/vant/info/index.json'] = {"component":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/info/index.wxml'] = [$gwx, './components/vant/info/index.wxml'];else __wxAppCode__['components/vant/info/index.wxml'] = $gwx( './components/vant/info/index.wxml' );
		__wxAppCode__['components/vant/notice-bar/index.json'] = {"component":true,"usingComponents":{"van-icon":"../icon/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/notice-bar/index.wxml'] = [$gwx, './components/vant/notice-bar/index.wxml'];else __wxAppCode__['components/vant/notice-bar/index.wxml'] = $gwx( './components/vant/notice-bar/index.wxml' );
		__wxAppCode__['components/vant/tab/index.json'] = {"component":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/tab/index.wxml'] = [$gwx, './components/vant/tab/index.wxml'];else __wxAppCode__['components/vant/tab/index.wxml'] = $gwx( './components/vant/tab/index.wxml' );
		__wxAppCode__['components/vant/tabs/index.json'] = {"component":true,"usingComponents":{"van-info":"../info/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['components/vant/tabs/index.wxml'] = [$gwx, './components/vant/tabs/index.wxml'];else __wxAppCode__['components/vant/tabs/index.wxml'] = $gwx( './components/vant/tabs/index.wxml' );
		__wxAppCode__['pages/addRole/jury/jury.json'] = {"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/addRole/jury/jury.wxml'] = [$gwx, './pages/addRole/jury/jury.wxml'];else __wxAppCode__['pages/addRole/jury/jury.wxml'] = $gwx( './pages/addRole/jury/jury.wxml' );
		__wxAppCode__['pages/addRole/juryByGroup/juryByGroup.json'] = {"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/addRole/juryByGroup/juryByGroup.wxml'] = [$gwx, './pages/addRole/juryByGroup/juryByGroup.wxml'];else __wxAppCode__['pages/addRole/juryByGroup/juryByGroup.wxml'] = $gwx( './pages/addRole/juryByGroup/juryByGroup.wxml' );
		__wxAppCode__['pages/addRole/worker/worker.json'] = {"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/addRole/worker/worker.wxml'] = [$gwx, './pages/addRole/worker/worker.wxml'];else __wxAppCode__['pages/addRole/worker/worker.wxml'] = $gwx( './pages/addRole/worker/worker.wxml' );
		__wxAppCode__['pages/audience/audience.json'] = {"navigationBarTitleText":"比赛精选","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/audience/audience.wxml'] = [$gwx, './pages/audience/audience.wxml'];else __wxAppCode__['pages/audience/audience.wxml'] = $gwx( './pages/audience/audience.wxml' );
		__wxAppCode__['pages/competition/awards/awards.json'] = {"navigationBarTitleText":"获奖名单","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/awards/awards.wxml'] = [$gwx, './pages/competition/awards/awards.wxml'];else __wxAppCode__['pages/competition/awards/awards.wxml'] = $gwx( './pages/competition/awards/awards.wxml' );
		__wxAppCode__['pages/competition/competition.json'] = {"backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{"van-notice-bar":"/components/vant/notice-bar/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/competition.wxml'] = [$gwx, './pages/competition/competition.wxml'];else __wxAppCode__['pages/competition/competition.wxml'] = $gwx( './pages/competition/competition.wxml' );
		__wxAppCode__['pages/competition/drawPoster/drawPoster.json'] = {"navigationBarTitleText":"获取邀请码","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/drawPoster/drawPoster.wxml'] = [$gwx, './pages/competition/drawPoster/drawPoster.wxml'];else __wxAppCode__['pages/competition/drawPoster/drawPoster.wxml'] = $gwx( './pages/competition/drawPoster/drawPoster.wxml' );
		__wxAppCode__['pages/competition/edit/edit.json'] = {"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/edit/edit.wxml'] = [$gwx, './pages/competition/edit/edit.wxml'];else __wxAppCode__['pages/competition/edit/edit.wxml'] = $gwx( './pages/competition/edit/edit.wxml' );
		__wxAppCode__['pages/competition/inviteJury/inviteJury.json'] = {"usingComponents":{},"navigationBarTitleText":"评委评分邀请码"};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/inviteJury/inviteJury.wxml'] = [$gwx, './pages/competition/inviteJury/inviteJury.wxml'];else __wxAppCode__['pages/competition/inviteJury/inviteJury.wxml'] = $gwx( './pages/competition/inviteJury/inviteJury.wxml' );
		__wxAppCode__['pages/competition/inviteJury/juriesAccounts/juriesAccounts.json'] = {"navigationBarTitleText":"评委账号","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/inviteJury/juriesAccounts/juriesAccounts.wxml'] = [$gwx, './pages/competition/inviteJury/juriesAccounts/juriesAccounts.wxml'];else __wxAppCode__['pages/competition/inviteJury/juriesAccounts/juriesAccounts.wxml'] = $gwx( './pages/competition/inviteJury/juriesAccounts/juriesAccounts.wxml' );
		__wxAppCode__['pages/competition/inviteJury/juriesGroups/juriesGroups.json'] = {"usingComponents":{"van-tab":"/components/vant/tab/index","van-tabs":"/components/vant/tabs/index"},"navigationBarTitleText":"设置评委分组和权重","backgroundTextStyle":"dark","enablePullDownRefresh":true};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/inviteJury/juriesGroups/juriesGroups.wxml'] = [$gwx, './pages/competition/inviteJury/juriesGroups/juriesGroups.wxml'];else __wxAppCode__['pages/competition/inviteJury/juriesGroups/juriesGroups.wxml'] = $gwx( './pages/competition/inviteJury/juriesGroups/juriesGroups.wxml' );
		__wxAppCode__['pages/competition/inviteWorker/inviteWorker.json'] = {"navigationBarTitleText":"邀请工作人员","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/inviteWorker/inviteWorker.wxml'] = [$gwx, './pages/competition/inviteWorker/inviteWorker.wxml'];else __wxAppCode__['pages/competition/inviteWorker/inviteWorker.wxml'] = $gwx( './pages/competition/inviteWorker/inviteWorker.wxml' );
		__wxAppCode__['pages/competition/judge/judge.json'] = {"navigationBarTitleText":"评委评分","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{"van-notice-bar":"/components/vant/notice-bar/index","van-tab":"/components/vant/tab/index","van-tabs":"/components/vant/tabs/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/judge/judge.wxml'] = [$gwx, './pages/competition/judge/judge.wxml'];else __wxAppCode__['pages/competition/judge/judge.wxml'] = $gwx( './pages/competition/judge/judge.wxml' );
		__wxAppCode__['pages/competition/judge/submitScore/submitScore.json'] = {"navigationBarTitleText":"当前评分","backgroundTextStyle":"dark","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/judge/submitScore/submitScore.wxml'] = [$gwx, './pages/competition/judge/submitScore/submitScore.wxml'];else __wxAppCode__['pages/competition/judge/submitScore/submitScore.wxml'] = $gwx( './pages/competition/judge/submitScore/submitScore.wxml' );
		__wxAppCode__['pages/competition/judge/submitScoreV2/submitScoreV2.json'] = {"navigationBarTitleText":"当前评分","backgroundTextStyle":"dark","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/judge/submitScoreV2/submitScoreV2.wxml'] = [$gwx, './pages/competition/judge/submitScoreV2/submitScoreV2.wxml'];else __wxAppCode__['pages/competition/judge/submitScoreV2/submitScoreV2.wxml'] = $gwx( './pages/competition/judge/submitScoreV2/submitScoreV2.wxml' );
		__wxAppCode__['pages/competition/newestScores/newestScores.json'] = {"navigationBarTitleText":"实时成绩","backgroundTextStyle":"dark","enablePullDownRefresh":true,"backgroundColor":"#ffffff","usingComponents":{"van-notice-bar":"/components/vant/notice-bar/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/newestScores/newestScores.wxml'] = [$gwx, './pages/competition/newestScores/newestScores.wxml'];else __wxAppCode__['pages/competition/newestScores/newestScores.wxml'] = $gwx( './pages/competition/newestScores/newestScores.wxml' );
		__wxAppCode__['pages/competition/newestScores/programDetails/programDetails.json'] = {"navigationBarTitleText":"评分详情","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/newestScores/programDetails/programDetails.wxml'] = [$gwx, './pages/competition/newestScores/programDetails/programDetails.wxml'];else __wxAppCode__['pages/competition/newestScores/programDetails/programDetails.wxml'] = $gwx( './pages/competition/newestScores/programDetails/programDetails.wxml' );
		__wxAppCode__['pages/competition/programs/programs.json'] = {"navigationBarTitleText":"添加参赛者","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/programs/programs.wxml'] = [$gwx, './pages/competition/programs/programs.wxml'];else __wxAppCode__['pages/competition/programs/programs.wxml'] = $gwx( './pages/competition/programs/programs.wxml' );
		__wxAppCode__['pages/competition/rules/rules.json'] = {"navigationBarTitleText":"设置评分规则","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/rules/rules.wxml'] = [$gwx, './pages/competition/rules/rules.wxml'];else __wxAppCode__['pages/competition/rules/rules.wxml'] = $gwx( './pages/competition/rules/rules.wxml' );
		__wxAppCode__['pages/competition/vote/vote.json'] = {"backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/competition/vote/vote.wxml'] = [$gwx, './pages/competition/vote/vote.wxml'];else __wxAppCode__['pages/competition/vote/vote.wxml'] = $gwx( './pages/competition/vote/vote.wxml' );
		__wxAppCode__['pages/dashboard/active/active.json'] = {"navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/dashboard/active/active.wxml'] = [$gwx, './pages/dashboard/active/active.wxml'];else __wxAppCode__['pages/dashboard/active/active.wxml'] = $gwx( './pages/dashboard/active/active.wxml' );
		__wxAppCode__['pages/dashboard/active/compSettings/compSettings.json'] = {"navigationBarTitleText":"compSettings","backgroundTextStyle":"dark","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/dashboard/active/compSettings/compSettings.wxml'] = [$gwx, './pages/dashboard/active/compSettings/compSettings.wxml'];else __wxAppCode__['pages/dashboard/active/compSettings/compSettings.wxml'] = $gwx( './pages/dashboard/active/compSettings/compSettings.wxml' );
		__wxAppCode__['pages/dashboard/dashboard.json'] = {"navigationBarTitleText":"Dashboard","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/dashboard/dashboard.wxml'] = [$gwx, './pages/dashboard/dashboard.wxml'];else __wxAppCode__['pages/dashboard/dashboard.wxml'] = $gwx( './pages/dashboard/dashboard.wxml' );
		__wxAppCode__['pages/dashboard/user/user.json'] = {"navigationBarTitleText":"查询用户","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":false,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/dashboard/user/user.wxml'] = [$gwx, './pages/dashboard/user/user.wxml'];else __wxAppCode__['pages/dashboard/user/user.wxml'] = $gwx( './pages/dashboard/user/user.wxml' );
		__wxAppCode__['pages/index/index.json'] = {"navigationBarTitleText":"","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{"van-notice-bar":"/components/vant/notice-bar/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/index/index.wxml'] = [$gwx, './pages/index/index.wxml'];else __wxAppCode__['pages/index/index.wxml'] = $gwx( './pages/index/index.wxml' );
		__wxAppCode__['pages/jury/jury.json'] = {"navigationBarTitleText":"担任评委","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true,"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/jury/jury.wxml'] = [$gwx, './pages/jury/jury.wxml'];else __wxAppCode__['pages/jury/jury.wxml'] = $gwx( './pages/jury/jury.wxml' );
		__wxAppCode__['pages/more/authorize/authorize.json'] = {"navigationBarTitleText":"授权微信登录","usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/more/authorize/authorize.wxml'] = [$gwx, './pages/more/authorize/authorize.wxml'];else __wxAppCode__['pages/more/authorize/authorize.wxml'] = $gwx( './pages/more/authorize/authorize.wxml' );
		__wxAppCode__['pages/more/guide/guide.json'] = {"navigationBarTitleText":"使用指南","usingComponents":{"van-tab":"/components/vant/tab/index","van-tabs":"/components/vant/tabs/index","van-collapse":"/components/vant/collapse/index","van-collapse-item":"/components/vant/collapse-item/index"}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/more/guide/guide.wxml'] = [$gwx, './pages/more/guide/guide.wxml'];else __wxAppCode__['pages/more/guide/guide.wxml'] = $gwx( './pages/more/guide/guide.wxml' );
		__wxAppCode__['pages/more/intro/intro.json'] = {"usingComponents":{},"navigationBarTitleText":"赛易评"};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/more/intro/intro.wxml'] = [$gwx, './pages/more/intro/intro.wxml'];else __wxAppCode__['pages/more/intro/intro.wxml'] = $gwx( './pages/more/intro/intro.wxml' );
		__wxAppCode__['pages/more/more.json'] = {"usingComponents":{}};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/more/more.wxml'] = [$gwx, './pages/more/more.wxml'];else __wxAppCode__['pages/more/more.wxml'] = $gwx( './pages/more/more.wxml' );
		__wxAppCode__['pages/worker/worker.json'] = {"usingComponents":{},"navigationBarTitleText":"我组织的","navigationBarBackgroundColor":"#f4f4f4","backgroundColor":"#f4f4f4","backgroundTextStyle":"dark","enablePullDownRefresh":true};
		if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/worker/worker.wxml'] = [$gwx, './pages/worker/worker.wxml'];else __wxAppCode__['pages/worker/worker.wxml'] = $gwx( './pages/worker/worker.wxml' );
	
	define("067BC4B0658710DF601DACB7F160FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.observeProps=function(e){if(!e)return;Object.keys(e).forEach((function(t){var r=e[t];null!==r&&"type"in r||(r={type:r});var s=r.observer;r.observer=function(){s&&("string"==typeof s&&(s=this[s]),s.apply(this,arguments)),this.set()},e[t]=r}))}; 
 			}); 
		define("06B191E2658710DF60D7F9E5E39FEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RED=exports.GREEN=exports.BLUE=void 0;exports.RED="#f44";exports.BLUE="#1989fa";exports.GREEN="#07c160"; 
 			}); 
		define("1CD7E003658710DF7AB1880434AFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VantComponent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={};r(t,o,{data:"data",props:"properties",mixins:"behaviors",methods:"methods",beforeCreate:"created",created:"attached",mounted:"ready",relations:"relations",destroyed:"detached",classes:"externalClasses"});var i=t.relation;i&&(o.relations=Object.assign(o.relations||{},e({},"../".concat(i.name,"/index"),i)));o.externalClasses=o.externalClasses||[],o.externalClasses.push("custom-class"),o.behaviors=o.behaviors||[],o.behaviors.push(s.basic),t.field&&o.behaviors.push("wx://form-field");o.options={multipleSlots:!0,addGlobalClass:!0},(0,a.observe)(t,o),Component(o)};var e=require("@babel/runtime/helpers/defineProperty.js"),s=require("7A591140658710DF1C3F7947A4CFEAA0.js"),a=require("4C62EA63658710DF2A0482646F40FAA0.js");function r(e,s,a){Object.keys(a).forEach((function(r){e[r]&&(s[a[r]]=e[r])}))} 
 			}); 
		define("25D86777658710DF43BE0F70E920FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transition=void 0;var e=require("A1171D36658710DFC771753133BFEAA0.js"),t=function(e){return{enter:"van-".concat(e,"-enter van-").concat(e,"-enter-active enter-class enter-active-class"),"enter-to":"van-".concat(e,"-enter-to van-").concat(e,"-enter-active enter-to-class enter-active-class"),leave:"van-".concat(e,"-leave van-").concat(e,"-leave-active leave-class leave-active-class"),"leave-to":"van-".concat(e,"-leave-to van-").concat(e,"-leave-active leave-to-class leave-active-class")}},n=function(){return new Promise((function(e){return setTimeout(e,1e3/30)}))};exports.transition=function(a){return Behavior({properties:{customStyle:String,show:{type:Boolean,value:a,observer:"observeShow"},duration:{type:[Number,Object],value:300,observer:"observeDuration"},name:{type:String,value:"fade",observer:"updateClasses"}},data:{type:"",inited:!1,display:!1,classNames:t("fade")},attached:function(){this.data.show&&this.enter()},methods:{observeShow:function(e){e?this.enter():this.leave()},updateClasses:function(e){this.set({classNames:t(e)})},enter:function(){var t=this,a=this.data,s=a.classNames,c=a.duration,i=(0,e.isObj)(c)?c.leave:c;this.status="enter",Promise.resolve().then(n).then((function(){t.checkStatus("enter"),t.set({inited:!0,display:!0,classes:s.enter,currentDuration:i})})).then(n).then((function(){t.checkStatus("enter"),t.set({classes:s["enter-to"]})})).catch((function(){}))},leave:function(){var t=this,a=this.data,s=a.classNames,c=a.duration,i=(0,e.isObj)(c)?c.leave:c;this.status="leave",Promise.resolve().then(n).then((function(){t.checkStatus("leave"),t.set({classes:s.leave,currentDuration:i})})).then((function(){return setTimeout((function(){return t.onTransitionEnd()}),i)})).then(n).then((function(){t.checkStatus("leave"),t.set({classes:s["leave-to"]})})).catch((function(){}))},checkStatus:function(e){if(e!==this.status)throw new Error("incongruent status: ".concat(e))},onTransitionEnd:function(){this.data.show||(this.set({display:!1}),this.$emit("transitionEnd"))}}})}; 
 			}); 
		define("33068471658710DF5560EC766CEFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.link=void 0;var e=Behavior({properties:{url:String,linkType:{type:String,value:"navigateTo"}},methods:{jumpLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",t=this.data[e];t&&wx[this.data.linkType]({url:t})}}});exports.link=e; 
 			}); 
		define("49539051658710DF2F35F8564970FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("@babel/runtime/helpers/slicedToArray.js");module.exports={formatTime:function(e,t){var n=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();return"full"==e?t.getFullYear()+"年"+(t.getMonth()+1)+"月"+t.getDate()+"日"+n+":"+r:t.getMonth()+1+"月"+t.getDate()+"日"+n+":"+r},base64src:function(t){var n="tmp_base64src_"+(new Date).getTime();return new Promise((function(r,o){var a=/data:image\/(\w+);base64,(.*)/.exec(t)||[],c=e(a,3),i=c[1],s=c[2];i||o(new Error("ERROR_BASE64SRC_PARSE"));var l="".concat(wx.env.USER_DATA_PATH,"/").concat(n,".").concat(i),u=wx.base64ToArrayBuffer(s);wx.getFileSystemManager().writeFile({filePath:l,data:u,encoding:"binary",success:function(){r(l)},fail:function(){o(new Error("ERROR_BASE64SRC_WRITE"))}})}))},calculateScores:function(e,t,n,r){if(1==e.length)return{averageScore:e[0],totalScore:e[0]};e.sort((function(e,t){return e-t})),e.length>r&&e.splice(e.length-r,r),e.length>n&&e.splice(0,n);for(var o=0,a=0,c=0;c<e.length;c++)o+=e[c];return e.length>0&&(a=o/e.length),{averageScore:a,totalScore:o}},competitionNoExistShowModal:function(e){-1==e&&(wx.hideLoading(),wx.stopPullDownRefresh(),wx.hideShareMenu(),wx.showModal({showCancel:!1,content:"主办方已删除比赛",confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}}))}}; 
 			}); 
		define("4C62EA63658710DF2A0482646F40FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.observe=function(o,t){var s=o.watch,i=o.computed;if(t.behaviors.push(e.behavior),s){var p=t.properties||{};Object.keys(s).forEach((function(e){if(e in p){var r=p[e];null!==r&&"type"in r||(r={type:r}),r.observer=s[e],p[e]=r}})),t.properties=p}i&&(t.methods=t.methods||{},t.methods.$options=function(){return o},t.properties&&(0,r.observeProps)(t.properties))};var e=require("D8C25177658710DFBEA439700C30FAA0.js"),r=require("067BC4B0658710DF601DACB7F160FAA0.js"); 
 			}); 
		define("57D39FB1658710DF31B5F7B62E10FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.touch=void 0;var t=Behavior({methods:{touchStart:function(t){var s=t.touches[0];this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0,this.startX=s.clientX,this.startY=s.clientY},touchMove:function(t){var s=t.touches[0];this.deltaX=s.clientX-this.startX,this.deltaY=s.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.offsetX>this.offsetY?"horizontal":this.offsetX<this.offsetY?"vertical":""}}});exports.touch=t; 
 			}); 
		define("7A591140658710DF1C3F7947A4CFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.basic=void 0;var e=Behavior({methods:{$emit:function(){this.triggerEvent.apply(this,arguments)},getRect:function(e,t){var r=this;return new Promise((function(i){wx.createSelectorQuery().in(r)[t?"selectAll":"select"](e).boundingClientRect((function(e){t&&Array.isArray(e)&&e.length&&i(e),!t&&e&&i(e)})).exec()}))}}});exports.basic=e; 
 			}); 
		define("85473DD7658710DFE32155D03C00FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeArea=void 0;var e=null;function t(){return new Promise((function(t,s){null!=e?t(e):wx.getSystemInfo({success:function(s){var o=s.model,a=s.screenHeight,n=s.statusBarHeight,r=/iphone x/i.test(o),i=/iPhone11/i.test(o)&&812===a;t(e={isIPhoneX:r||i,statusBarHeight:n})},fail:s})}))}exports.safeArea=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=e.safeAreaInsetBottom,o=void 0===s||s,a=e.safeAreaInsetTop,n=void 0!==a&&a;return Behavior({properties:{safeAreaInsetTop:{type:Boolean,value:n},safeAreaInsetBottom:{type:Boolean,value:o}},created:function(){var e=this;t().then((function(t){var s=t.isIPhoneX,o=t.statusBarHeight;e.set({isIPhoneX:s,statusBarHeight:o})}))}})}; 
 			}); 
		define("@babel/runtime/helpers/arrayLikeToArray.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=new Array(a);e<a;e++)n[e]=r[e];return n}module.exports=_arrayLikeToArray; 
 			}); 
		define("@babel/runtime/helpers/arrayWithHoles.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _arrayWithHoles(r){if(Array.isArray(r))return r}module.exports=_arrayWithHoles; 
 			}); 
		define("@babel/runtime/helpers/defineProperty.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _defineProperty(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}module.exports=_defineProperty; 
 			}); 
		define("@babel/runtime/helpers/iterableToArrayLimit.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _iterableToArrayLimit(r,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r)){var e=[],i=!0,o=!1,l=void 0;try{for(var n,a=r[Symbol.iterator]();!(i=(n=a.next()).done)&&(e.push(n.value),!t||e.length!==t);i=!0);}catch(r){o=!0,l=r}finally{try{i||null==a.return||a.return()}finally{if(o)throw l}}return e}}module.exports=_iterableToArrayLimit; 
 			}); 
		define("@babel/runtime/helpers/nonIterableRest.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=_nonIterableRest; 
 			}); 
		define("@babel/runtime/helpers/slicedToArray.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
var arrayWithHoles=require("./arrayWithHoles"),iterableToArrayLimit=require("./iterableToArrayLimit"),unsupportedIterableToArray=require("./unsupportedIterableToArray"),nonIterableRest=require("./nonIterableRest");function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}module.exports=_slicedToArray; 
 			}); 
		define("@babel/runtime/helpers/typeof.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
function _typeof(o){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?module.exports=_typeof=function(o){return typeof o}:module.exports=_typeof=function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}module.exports=_typeof; 
 			}); 
		define("@babel/runtime/helpers/unsupportedIterableToArray.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
var arrayLikeToArray=require("./arrayLikeToArray");function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,e):void 0}}module.exports=_unsupportedIterableToArray; 
 			}); 
		define("A1171D36658710DFC771753133BFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isDef=function(e){return null!=e},exports.isNumber=function(e){return/^\d+$/.test(e)},exports.isObj=function(t){var r=e(t);return null!==t&&("object"===r||"function"===r)},exports.range=function(e,t,r){return Math.min(Math.max(e,t),r)};var e=require("@babel/runtime/helpers/typeof.js"); 
 			}); 
		define("C078BC16658710DFA61ED41139DFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formType=void 0;var e=Behavior({properties:{fromType:String},methods:{bindSubmit:function(e){this.$emit("submit",e.detail)},bindReset:function(e){this.$emit("reset",e.detail)}}});exports.formType=e; 
 			}); 
		define("D5B7BC81658710DFB3D1D4865000FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.openType=void 0;var e=Behavior({properties:{openType:String},methods:{bindGetUserInfo:function(e){this.$emit("getuserinfo",e.detail)},bindContact:function(e){this.$emit("contact",e.detail)},bindGetPhoneNumber:function(e){this.$emit("getphonenumber",e.detail)},bindError:function(e){this.$emit("error",e.detail)},bindLaunchApp:function(e){this.$emit("launchapp",e.detail)},bindOpenSetting:function(e){this.$emit("opensetting",e.detail)}}});exports.openType=e; 
 			}); 
		define("D8C25177658710DFBEA439700C30FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";function t(t,e){return new Promise((function(o){t.setData(e,o)}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.behavior=void 0;var e=Behavior({created:function(){var t=this;if(this.$options){var e={},o=this.$options().computed,i=Object.keys(o);this.calcComputed=function(){var n={};return i.forEach((function(i){var r=o[i].call(t);e[i]!==r&&(e[i]=n[i]=r)})),n}}},attached:function(){this.set()},methods:{set:function(e,o){var i=this,n=[];return e&&n.push(t(this,e)),this.calcComputed&&n.push(t(this,this.calcComputed())),Promise.all(n).then((function(t){return o&&"function"==typeof o&&o.call(i),t}))}}});exports.behavior=e; 
 			}); 
		define("EFA16407658710DF89C70C001070FAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("49539051658710DF2F35F8564970FAA0.js"),t=getApp(),o=wx.cloud.database();o.command;Page({data:{competition:{},maskStatus:!1,juriesGroupTitle:""},onLoad:function(t){var i=this;wx.hideShareMenu(),wx.showLoading({title:"正在加载",mask:!0}),o.collection("juriesGroups").doc(t.scene).get().then((function(t){i.data.juriesGroupTitle=t.data.juriesGroupTitle,o.collection("competitions").doc(t.data.competition_id).field({juries:!0,status:!0,juriesUnfocus:!0,settings:!0,juriesGroups:!0,rule:!0}).get().then((function(e){var t=e.data;i.data.competition=t,wx.getStorageSync("getUserProfile")||t.settings&&t.settings.unAuthorizeJury?i.addRole(t,wx.getStorageSync("openid")):(wx.hideLoading(),i.setData({maskStatus:!0}))})).catch((function(t){e.competitionNoExistShowModal(t.errCode)}))})).catch((function(e){console.error(e),-1==e.errCode&&(wx.hideLoading(),wx.stopPullDownRefresh(),wx.hideShareMenu(),wx.showModal({showCancel:!1,content:"该邀请码已失效，请联系工作人员",confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}}))}))},getUserProfile:function(){var e=this;e.hideMaskStatus(),wx.getUserProfile({desc:"用于展示头像和昵称",lang:"zh_CN",success:function(o){var i=o.userInfo;wx.setStorageSync("getUserProfile",!0),wx.showLoading({title:"授权登录",mask:!0}),wx.cloud.callFunction({name:"updateUserInfo",data:{userInfo:i}}).then((function(o){t.globalData.authorized=!0,t.globalData.userInfo={nickName:i.nickName,avatarUrl:i.avatarUrl},e.addRole(e.data.competition,o.result.openid)}))}})},hideMaskStatus:function(e){this.setData({maskStatus:!1})},addRole:function(e,t){wx.showLoading({title:"正在加载",mask:!0}),"已删除"==e.status||"已关闭"==e.status?(wx.hideLoading(),wx.showModal({content:"主办方"+e.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}})):e.juries.indexOf(t)>=0&&-1==e.juriesUnfocus.indexOf(t)?setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+e._id})}),1500):wx.cloud.callFunction({name:"role",data:{competition:{_id:e._id},juriesGroups:e.juriesGroups,juriesGroupTitle:this.data.juriesGroupTitle,operation:"addJuryByGroup",role:"jury"}}).then((function(t){"addRole_crawler"==t.result.errMsg?(wx.showToast({title:"检测到用户身份异常",icon:"none",duration:1500}),setTimeout((function(){wx.reLaunch({url:"/pages/index/index"})}),1500)):(wx.hideLoading(),wx.showToast({title:"已成为评委",icon:"success",duration:2500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+e._id})}),1500))}))}}); 
 			}); 
		define("F671A3C0658710DF9017CBC7AFCFEAA0.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.button=void 0;var e=Behavior({externalClasses:["hover-class"],properties:{id:String,lang:{type:String,value:"en"},businessId:Number,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,ariaLabel:String}});exports.button=e; 
 			}); 
		define("app.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";App({globalData:{c:"1.4.0",userInfo:{},authorized:!1,openid:"",platform:""},onLaunch:function(e){var a=this,o=e.query.years?parseFloat(e.query.years):0;wx.cloud?wx.cloud.init({traceUser:!0,env:"release-bu5dc"}):wx.showToast({title:"请先将微信升级至最新版本",icon:"none",duration:1500});var t=this;wx.getSystemInfo({success:function(e){t.globalData.platform=e.platform}});var n=wx.cloud.database(),c=(n.command,n.command.aggregate,wx.getUpdateManager());c.onCheckForUpdate((function(e){})),c.onUpdateReady((function(){wx.showModal({title:"发现新版本",content:"赛易评小程序已发布最新版本，请完成更新后使用",confirmColor:"#FF5A5F",confirmText:"确定更新",showCancel:!1,success:function(e){e.confirm&&c.applyUpdate()}})})),wx.getStorageSync("getUserProfile")?(this.globalData.authorized=!0,wx.getStorageSync("openid")?(this.globalData.openid=wx.getStorageSync("openid"),this.updateVip(wx.getStorageSync("openid"),o)):wx.cloud.callFunction({name:"getOpenid",data:{page:"app"}}).then((function(e){a.globalData.openid=e.result,a.updateVip(e.result,o),wx.setStorageSync("openid",e.result)})).catch((function(a){t.errCodeShowModal(a.errCode,e)}))):wx.cloud.callFunction({name:"getOpenid",data:{page:"app"}}).then((function(t){a.globalData.openid=t.result,a.updateVip(t.result,o),wx.setStorageSync("openid",t.result),n.collection("users").where({_openid:a.globalData.openid}).count().then((function(o){if(0==o.total){wx.cloud.callFunction({name:"focusExample",data:{operation:"focusExample"}}).then((function(e){}));var t={scene:e.scene,authorized:!1,realName:"",createTime:n.serverDate(),updateTime:n.serverDate()};n.collection("users").add({data:t}).then((function(e){})).catch((function(e){console.log(e)}))}else 1==o.total&&n.collection("users").where({_openid:wx.getStorageSync("openid")}).field({nickName:!0,avatarUrl:!0}).get().then((function(e){a.globalData.userInfo={nickName:e.data[0].nickName,avatarUrl:e.data[0].avatarUrl}})).catch((function(e){console.log(e)}))}))})).catch((function(a){t.errCodeShowModal(a.errCode,e)})),n.collection("behaviors").add({data:{createTime:n.serverDate(),type:"login",scene:e.scene,page:"app",c:this.globalData.c}}).then((function(e){})).catch(console.error),e.query.marketing&&n.collection("behaviors").add({data:{createTime:n.serverDate(),type:"marketing",scene:e.scene,from:"officialaccount"}}).then((function(e){})).catch(console.error)},errCodeShowModal:function(e,a){var o=this;e&&wx.showModal({content:"网络出了点问题",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"点此重试",success:function(e){e.confirm&&o.onLaunch(a)},fail:function(e){console.log(e)}})},updateVip:function(e,a){a=parseFloat(a),e&&a>0&&wx.cloud.callFunction({name:"updateVipV2",data:{creator_openid:e,years:a,operation:"updateUser"}}).then((function(e){console.log(e)}))}}); 
 			}); 	require("app.js");
 		__wxRoute = 'components/vant/cell/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/cell/index.js';	define("components/vant/cell/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../33068471658710DF5560EC766CEFEAA0.js");(0,require("../../../1CD7E003658710DF7AB1880434AFEAA0.js").VantComponent)({classes:["title-class","label-class","value-class","right-icon-class","hover-class"],mixins:[e.link],props:{title:null,value:null,icon:String,size:String,label:String,center:Boolean,isLink:Boolean,required:Boolean,clickable:Boolean,titleWidth:String,customStyle:String,arrowDirection:String,useLabelSlot:Boolean,border:{type:Boolean,value:!0}},methods:{onClick:function(e){this.$emit("click",e.detail),this.jumpLink()}}}); 
 			}); 	require("components/vant/cell/index.js");
 		__wxRoute = 'components/vant/collapse-item/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/collapse-item/index.js';	define("components/vant/collapse-item/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../1CD7E003658710DF7AB1880434AFEAA0.js"),n=function(){return new Promise((function(t){return setTimeout(t,20)}))};(0,t.VantComponent)({classes:["title-class","content-class"],relation:{name:"collapse",type:"ancestor",linked:function(t){this.parent=t}},props:{name:null,title:null,value:null,icon:String,label:String,disabled:Boolean,clickable:Boolean,border:{type:Boolean,value:!0},isLink:{type:Boolean,value:!0}},data:{contentHeight:0,expanded:!1,transition:!1},mounted:function(){var t=this;this.updateExpanded().then(n).then((function(){var n={transition:!0};t.data.expanded&&(n.contentHeight="auto"),t.setData(n)}))},methods:{updateExpanded:function(){if(!this.parent)return Promise.resolve();var t=this.parent.data,n=t.value,e=t.accordion,a=this.parent.children,i=void 0===a?[]:a,o=this.data.name,s=i.indexOf(this),r=null==o?s:o,c=e?n===r:(n||[]).some((function(t){return t===r})),d=[];return c!==this.data.expanded&&d.push(this.updateStyle(c)),d.push(this.set({index:s,expanded:c})),Promise.all(d)},updateStyle:function(t){var e=this;return this.getRect(".van-collapse-item__content").then((function(t){return t.height})).then((function(a){return t?e.set({contentHeight:a?"".concat(a,"rpx"):"auto"}):e.set({contentHeight:"".concat(a,"rpx")}).then(n).then((function(){return e.set({contentHeight:0})}))}))},onClick:function(){if(!this.data.disabled){var t=this.data,n=t.name,e=t.expanded,a=this.parent.children.indexOf(this),i=null==n?a:n;this.parent.switch(i,!e)}},onTransitionEnd:function(){this.data.expanded&&this.setData({contentHeight:"auto"})}}}); 
 			}); 	require("components/vant/collapse-item/index.js");
 		__wxRoute = 'components/vant/collapse/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/collapse/index.js';	define("components/vant/collapse/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";(0,require("../../../1CD7E003658710DF7AB1880434AFEAA0.js").VantComponent)({relation:{name:"collapse-item",type:"descendant",linked:function(e){this.children.push(e)},unlinked:function(e){this.children=this.children.filter((function(n){return n!==e}))}},props:{value:{type:null,observer:"updateExpanded"},accordion:{type:Boolean,observer:"updateExpanded"},border:{type:Boolean,value:!0}},beforeCreate:function(){this.children=[]},methods:{updateExpanded:function(){this.children.forEach((function(e){e.updateExpanded()}))},switch:function(e,n){var t=this.data,i=t.accordion,o=t.value;e=i?n?e:"":n?(o||[]).concat(e):(o||[]).filter((function(n){return n!==e})),this.$emit("change",e),this.$emit("input",e)}}}); 
 			}); 	require("components/vant/collapse/index.js");
 		__wxRoute = 'components/vant/icon/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/icon/index.js';	define("components/vant/icon/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../1CD7E003658710DF7AB1880434AFEAA0.js"),i=require("../../../A1171D36658710DFC771753133BFEAA0.js");(0,t.VantComponent)({props:{dot:Boolean,info:null,size:{type:null,observer:"setSizeWithUnit"},color:String,customStyle:String,classPrefix:{type:String,value:"van-icon"},name:{type:String,observer:function(t){this.setData({isImageName:-1!==t.indexOf("/")})}}},data:{sizeWithUnit:null},methods:{onClick:function(){this.$emit("click")},setSizeWithUnit:function(t){this.setData({sizeWithUnit:(0,i.addUnit)(t)})}}}); 
 			}); 	require("components/vant/icon/index.js");
 		__wxRoute = 'components/vant/info/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/info/index.js';	define("components/vant/info/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";(0,require("../../../1CD7E003658710DF7AB1880434AFEAA0.js").VantComponent)({props:{info:null,customStyle:String}}); 
 			}); 	require("components/vant/info/index.js");
 		__wxRoute = 'components/vant/notice-bar/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/notice-bar/index.js';	define("components/vant/notice-bar/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../@babel/runtime/helpers/slicedToArray");(0,require("../../../1CD7E003658710DF7AB1880434AFEAA0.js").VantComponent)({props:{text:{type:String,value:""},mode:{type:String,value:""},url:{type:String,value:""},openType:{type:String,value:"navigate"},delay:{type:Number,value:2},speed:{type:Number,value:30},scrollable:{type:Boolean,value:!0},leftIcon:{type:String,value:""},color:{type:String,value:"#ed6a0c"},backgroundColor:{type:String,value:"#fffbe8"},wrapable:Boolean},data:{show:!0},watch:{text:function(){this.setData({},this.init)}},created:function(){this.resetAnimation=wx.createAnimation({duration:0,timingFunction:"linear"})},destroyed:function(){this.timer&&clearTimeout(this.timer)},methods:{init:function(){var e=this;Promise.all([this.getRect(".van-notice-bar__content"),this.getRect(".van-notice-bar__wrap")]).then((function(i){var n=t(i,2),a=n[0],o=n[1];if(null!=a&&null!=o&&a.width&&o.width){var r=e.data,l=r.speed,s=r.scrollable,c=r.delay;if(s&&o.width<a.width){var u=a.width/l*1e3;e.wrapWidth=o.width,e.contentWidth=a.width,e.duration=u,e.animation=wx.createAnimation({duration:u,timingFunction:"linear",delay:c}),e.scroll()}}}))},scroll:function(){var t=this;this.timer&&clearTimeout(this.timer),this.timer=null,this.setData({animationData:this.resetAnimation.translateX(this.wrapWidth).step().export()}),setTimeout((function(){t.setData({animationData:t.animation.translateX(-t.contentWidth).step().export()})}),20),this.timer=setTimeout((function(){t.scroll()}),this.duration)},onClickIcon:function(t){this.timer&&clearTimeout(this.timer),this.timer=null,this.setData({show:!1}),this.$emit("close",t)},onClick:function(t){this.$emit("click",t)}}}); 
 			}); 	require("components/vant/notice-bar/index.js");
 		__wxRoute = 'components/vant/tab/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/tab/index.js';	define("components/vant/tab/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";(0,require("../../../1CD7E003658710DF7AB1880434AFEAA0.js").VantComponent)({relation:{name:"tabs",type:"ancestor"},props:{dot:Boolean,info:null,title:String,disabled:Boolean,titleStyle:String},data:{width:null,inited:!1,active:!1,animated:!1},watch:{title:"update",disabled:"update",dot:"update",info:"update",titleStyle:"update"},methods:{update:function(){var t=this.getRelationNodes("../tabs/index")[0];t&&t.updateTabs()}}}); 
 			}); 	require("components/vant/tab/index.js");
 		__wxRoute = 'components/vant/tabs/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'components/vant/tabs/index.js';	define("components/vant/tabs/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../@babel/runtime/helpers/slicedToArray"),e=require("../../../1CD7E003658710DF7AB1880434AFEAA0.js"),i=require("../../../57D39FB1658710DF31B5F7B62E10FAA0.js");(0,e.VantComponent)({mixins:[i.touch],classes:["nav-class","tab-class","tab-active-class","line-class"],relation:{name:"tab",type:"descendant",linked:function(t){this.child.push(t),this.updateTabs(this.data.tabs.concat(t.data))},unlinked:function(t){var e=this.child.indexOf(t),i=this.data.tabs;i.splice(e,1),this.child.splice(e,1),this.updateTabs(i)}},props:{color:String,sticky:Boolean,animated:Boolean,swipeable:Boolean,lineWidth:{type:Number,value:-1},lineHeight:{type:Number,value:-1},active:{type:Number,value:0},type:{type:String,value:"line"},border:{type:Boolean,value:!0},duration:{type:Number,value:.3},zIndex:{type:Number,value:1},swipeThreshold:{type:Number,value:4},offsetTop:{type:Number,value:0}},data:{tabs:[],lineStyle:"",scrollLeft:0,scrollable:!1,trackStyle:"",wrapStyle:"",position:""},watch:{swipeThreshold:function(){this.set({scrollable:this.child.length>this.data.swipeThreshold})},color:"setLine",lineWidth:"setLine",lineHeight:"setLine",active:"setActiveTab",animated:"setTrack",offsetTop:"setWrapStyle"},beforeCreate:function(){this.child=[]},mounted:function(){var t=this;this.setLine(!0),this.setTrack(),this.scrollIntoView(),this.getRect(".van-tabs__wrap").then((function(e){t.navHeight=e.height,t.observerContentScroll()}))},destroyed:function(){this.createIntersectionObserver().disconnect()},methods:{updateTabs:function(t){t=t||this.data.tabs,this.set({tabs:t,scrollable:t.length>this.data.swipeThreshold}),this.setActiveTab()},trigger:function(t,e){this.$emit(t,{index:e,title:this.data.tabs[e].title})},onTap:function(t){var e=t.currentTarget.dataset.index;this.data.tabs[e].disabled?this.trigger("disabled",e):(this.trigger("click",e),this.setActive(e))},setActive:function(t){t!==this.data.active&&(this.trigger("change",t),this.set({active:t}),this.setActiveTab())},setLine:function(t){var e=this;if("line"===this.data.type){var i=this.data,a=i.color,n=i.active,s=i.duration,o=i.lineWidth,c=i.lineHeight;this.getRect(".van-tab",!0).then((function(i){var r=i[n],h=-1!==o?o:r.width/2,l=-1!==c?"height: ".concat(c,"px;"):"",d=i.slice(0,n).reduce((function(t,e){return t+e.width}),0);d+=(r.width-h)/2;var u=t?"":"transition-duration: ".concat(s,"s; -webkit-transition-duration: ").concat(s,"s;");e.set({lineStyle:"\n            ".concat(l,"\n            width: ").concat(h,"px;\n            background-color: ").concat(a,";\n            -webkit-transform: translateX(").concat(d,"px);\n            transform: translateX(").concat(d,"px);\n            ").concat(u,"\n          ")})}))}},setTrack:function(){var t=this,e=this.data,i=e.animated,a=e.active,n=e.duration;if(!i)return"";this.getRect(".van-tabs__content").then((function(e){var s=e.width;t.set({trackStyle:"\n            width: ".concat(s*t.child.length,"px;\n            left: ").concat(-1*a*s,"px;\n            transition: left ").concat(n,"s;\n            display: -webkit-box;\n            display: flex;\n          ")});var o={width:s,animated:i};t.child.forEach((function(t){t.set(o)}))}))},setActiveTab:function(){var t=this;this.child.forEach((function(e,i){var a={active:i===t.data.active};a.active&&(a.inited=!0),a.active!==e.data.active&&e.set(a)})),this.set({},(function(){t.setLine(),t.setTrack(),t.scrollIntoView()}))},scrollIntoView:function(){var e=this,i=this.data,a=i.active;i.scrollable&&Promise.all([this.getRect(".van-tab",!0),this.getRect(".van-tabs__nav")]).then((function(i){var n=t(i,2),s=n[0],o=n[1],c=s[a],r=s.slice(0,a).reduce((function(t,e){return t+e.width}),0);e.set({scrollLeft:r-(o.width-c.width)/2})}))},onTouchStart:function(t){this.data.swipeable&&this.touchStart(t)},onTouchMove:function(t){this.data.swipeable&&this.touchMove(t)},onTouchEnd:function(){if(this.data.swipeable){var t=this.data,e=t.active,i=t.tabs,a=this.direction,n=this.deltaX,s=this.offsetX;"horizontal"===a&&s>=50&&(n>0&&0!==e?this.setActive(e-1):n<0&&e!==i.length-1&&this.setActive(e+1))}},setWrapStyle:function(){var t,e=this.data,i=e.offsetTop;switch(e.position){case"top":t="\n            top: ".concat(i,"px;\n            position: fixed;\n          ");break;case"bottom":t="\n            top: auto;\n            bottom: 0;\n          ";break;default:t=""}t!==this.data.wrapStyle&&this.set({wrapStyle:t})},observerContentScroll:function(){var t=this;if(this.data.sticky){var e=this.data.offsetTop,i=wx.getSystemInfoSync().windowHeight;this.createIntersectionObserver().disconnect(),this.createIntersectionObserver().relativeToViewport({top:-(this.navHeight+e)}).observe(".van-tabs",(function(i){var a=i.boundingClientRect.top;if(!(a>e)){var n=i.intersectionRatio>0?"top":"bottom";t.$emit("scroll",{scrollTop:a+e,isFixed:"top"===n}),t.setPosition(n)}})),this.createIntersectionObserver().relativeToViewport({bottom:-(i-1-e)}).observe(".van-tabs",(function(i){var a=i.boundingClientRect,n=a.top;if(!(a.bottom<t.navHeight)){var s=i.intersectionRatio>0?"top":"";t.$emit("scroll",{scrollTop:n+e,isFixed:"top"===s}),t.setPosition(s)}}))}},setPosition:function(t){var e=this;t!==this.data.position&&this.set({position:t}).then((function(){e.setWrapStyle()}))}}}); 
 			}); 	require("components/vant/tabs/index.js");
 		__wxRoute = 'pages/index/index';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/index/index.js';	define("pages/index/index.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=getApp(),e=wx.cloud.database(),a=e.command;e.command.aggregate;Page({data:{minHeight:1600,notice:"",isShowTip:!1,shortcut:"",menu:[{title:"组织比赛",url:"/pages/worker/worker",desc:"邀请评委&实时成绩",imageSrc:"/images/index/worker.svg"},{title:"我的评分",url:"/pages/jury/jury",desc:"微信扫邀请码后评分",imageSrc:"/images/index/jury.svg"},{title:"更多",url:"/pages/more/more",desc:"使用指南&联系客服",imageSrc:"/images/index/more.svg"}]},onLoad:function(a){var i=this,o=new Date;this.setData({c:t.globalData.c,platform:"windows"==t.globalData.platform||"mac"==t.globalData.platform?"pc":"",currentYear:o.getFullYear()}),e.collection("_config").where({_id:"config"}).field({notice:!0,hideAudienceColumn:!0}).get().then((function(t){t.data[0].notice!=wx.getStorageSync("notice")&&(i.setData({notice:t.data[0].notice}),t.data[0].notice||wx.removeStorageSync("notice")),t.data[0].hideAudienceColumn||(i.data.menu.splice(2,0,{title:"比赛精选",url:"/pages/audience/audience",desc:"查看成绩&加油打Call",imageSrc:"/images/index/audience.svg"}),i.setData({menu:i.data.menu}))})).catch((function(t){console.error(t)})),wx.getStorageSync("isShowTip")||this.setData({isShowTip:!0}),this.getShortcut()},onShow:function(){if(this.data.shortcut.startTime){var t=this.data.shortcut,e=new Date,a=new Date(t.startTime.getTime()+54e5);((t.statusNote=t.startTime<=e)||(t.statusNote=a<e))&&this.getShortcut()}},hideMaskStatus:function(t){this.setData({maskStatus:!1})},closeNotice:function(t){var e=this;wx.getSystemInfo({success:function(a){var i=a.screenWidth/375;t.detail.x/i>=340&&wx.setStorageSync("notice",e.data.notice)}})},hideTip:function(){this.setData({isShowTip:!1}),wx.setStorageSync("isShowTip",!0)},getShortcut:function(){var i=this,o={title:"",status:"",statusNote:"",url:"",startTime:""};wx.cloud.callFunction({name:"getOpenid",data:{page:"app"}}).then((function(n){t.globalData.openid=n.result,e.collection("competitions").where({status:a.and(a.neq("已删除"),a.neq("已关闭")),startTime:a.and(a.gt(e.serverDate({offset:-288e5})),a.lt(e.serverDate({offset:864e5})))}).where(a.or([{juries:t.globalData.openid},{workers:t.globalData.openid},{audiences:t.globalData.openid}])).orderBy("startTime","desc").limit(1).field({title:!0,startTime:!0,juries:!0,workers:!0,status:!0}).get().then((function(e){if(wx.hideLoading(),wx.stopPullDownRefresh(),e.data.length>=1&&"example"!=e.data[0]._id){var a=e.data[0];o.title=a.title,o.startTime=a.startTime,o.status=a.status,a.workers&&a.workers.length>=1&&a.workers.indexOf(t.globalData.openid)>=0?o.url="/pages/competition/competition?id="+a._id:a.juries&&a.juries.length>=1&&a.juries.indexOf(t.globalData.openid)>=0?o.url="/pages/competition/judge/judge?id="+a._id:o.url="/pages/competition/vote/vote?id="+a._id,i.setData({shortcut:o})}else i.setData({shortcut:{title:"",status:"",statusNote:"",url:"",startTime:""}})})).catch((function(t){console.error(t)}))}))},navigateToDashboard:function(e){"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=t.globalData.openid&&"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"!=t.globalData.openid||wx.navigateTo({url:"/pages/dashboard/dashboard"})},navigateToActive:function(e){"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=t.globalData.openid&&"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"!=t.globalData.openid||wx.navigateTo({url:"/pages/dashboard/active/active"})},onPullDownRefresh:function(){this.getShortcut()},Addrecord:function(){"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=t.globalData.openid&&e.collection("behaviors").add({data:{createTime:e.serverDate(),type:"shortcut",page:"index"}})},onShareAppMessage:function(){return{title:"我发现了一款高效好用的比赛评分小程序",path:"/pages/index/index",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/index/index.js");
 		__wxRoute = 'pages/dashboard/dashboard';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/dashboard/dashboard.js';	define("pages/dashboard/dashboard.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=getApp(),t=wx.cloud.database();Page({data:{config_rechargeable:"",config_hideAudienceColumn:""},onLoad:function(e){var a=this;this.setData({dashboard:wx.getStorageSync("dashboard")}),t.collection("_config").doc("config").field({rechargeable:!0,hideAudienceColumn:!0}).get().then((function(e){a.data.config_rechargeable=e.data.rechargeable,a.data.config_hideAudienceColumn=e.data.hideAudienceColumn})).catch((function(e){console.error(e)})),wx.showLoading({title:"正在刷新",mask:!0}),this.getActive()},getActive:function(){var e=this;wx.cloud.callFunction({name:"getActive"}).then((function(t){wx.hideLoading(),wx.stopPullDownRefresh();var a=new Date,i={competitionsTotal:0,newCompetitionsTotal:0,vipTotal:0,proTotal:0,usersVisitTotal:0,workerVisitTotal:0,juryVisitTotal:0,audienceVisitTotal:0},o=t.result.competitions;i.usersVisitTotal=t.result.usersVisitTotal;for(var n=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),c=[],s=0;s<o.length;s++)i.competitionsTotal++,new Date(o[s].createTime).getTime()>=new Date(n).getTime()&&i.newCompetitionsTotal++,o[s].proExpiryTime&&"example"!=o[s]._id&&i.proTotal++,o[s].vipExpiryTime&&-1==c.indexOf(o[s].creator)&&"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=o[s].creator&&c.push(o[s].creator),i.workerVisitTotal=i.workerVisitTotal+o[s].workerVisitTotal,i.juryVisitTotal=i.juryVisitTotal+o[s].juryVisitTotal,i.audienceVisitTotal=i.audienceVisitTotal+o[s].audienceVisitTotal;i.vipTotal=c.length,wx.hideLoading(),wx.stopPullDownRefresh(),e.setData({dashboard:i}),wx.setStorageSync("dashboard",i)}))},showActionSheet:function(t){if("oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==e.globalData.openid||"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"==e.globalData.openid){var a=this,i=a.data.config_rechargeable,o=a.data.config_hideAudienceColumn,n=[];n.push("hideAColumn_"+o),n.push("rech_"+i),wx.showActionSheet({itemList:n,success:function(e){switch(wx.showLoading({title:"正在提交",mask:!0}),e.tapIndex){case 0:wx.cloud.callFunction({name:"updateConfig",data:{config:{hideAudienceColumn:!o}}}).then((function(e){wx.hideLoading(),wx.showToast({title:"rech_"+!o,icon:"success",duration:1500}),a.data.config_hideAudienceColumn=!o}));break;case 1:wx.cloud.callFunction({name:"updateConfig",data:{config:{rechargeable:!i}}}).then((function(e){wx.hideLoading(),wx.showToast({title:"rech_"+!i,icon:"success",duration:1500}),a.data.config_rechargeable=!i}))}},fail:function(e){}})}},onPullDownRefresh:function(){this.getActive()},onShareAppMessage:function(){return{title:"Dashboard",path:"/pages/dashboard/dashboard",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/dashboard/dashboard.js");
 		__wxRoute = 'pages/dashboard/active/active';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/dashboard/active/active.js';	define("pages/dashboard/active/active.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp();wx.cloud.database();Page({data:{competitions:"",loadmore:"",filtrating:!1,inputShowed:!1,inputVal:"",keyword:""},onLoad:function(t){this.setData({userOpenid:e.globalData.openid}),t.nickName&&t.openid?this.getCreatorCompetitions(t.nickName,t.openid):this.getActive()},getActive:function(){var e=this;wx.showLoading({title:"正在加载",mask:!0}),wx.cloud.callFunction({name:"getActive"}).then((function(i){console.log(i),wx.hideLoading(),wx.stopPullDownRefresh();for(var o=new Date,a=i.result.competitions,n=0;n<a.length;n++)a[n].startTimeStr=t.formatTime("full",new Date(a[n].startTime)),a[n].vipExpiryTime&&(a[n].vipExpiryTime=new Date(a[n].vipExpiryTime)<o?"":t.formatTime("full",new Date(a[n].vipExpiryTime))),a[n].proExpiryTime&&(a[n].rechargeable=new Date(a[n].proExpiryTime)>o,a[n].proExpiryTime=t.formatTime("full",new Date(a[n].proExpiryTime)));a.length>=1?wx.setNavigationBarTitle({title:"今日赛事概况("+a.length+")"}):wx.setNavigationBarTitle({title:"今日赛事概况"}),e.setData({competitions:a,loadmore:0==a.length?"今日没有比赛":"全部加载"})}))},changeOrderBy:function(t){var e=this.data.competitions;wx.pageScrollTo({scrollTop:0,duration:300});var i=this;wx.showActionSheet({alertText:"切换排序",itemList:["比赛开始时间","主办访问数","评委访问数","比赛状态"],success:function(t){switch(wx.showLoading({title:"切换排序",mask:!0}),t.tapIndex){case 0:e.sort((function(t,e){return new Date(e.startTime).getTime()-new Date(t.startTime).getTime()}));break;case 1:e.sort((function(t,e){return e.workerVisitTotal-t.workerVisitTotal}));break;case 2:e.sort((function(t,e){return e.juryVisitTotal-t.juryVisitTotal}));break;case 3:e.sort((function(t,e){return t.status.localeCompare(e.status)}))}},complete:function(t){wx.hideLoading(),i.setData({competitions:e})}})},searchCreator:function(t){this.getCreatorCompetitions(t.currentTarget.dataset.nickname,t.currentTarget.dataset.openid)},getCreatorCompetitions:function(e,i){var o=this;wx.showLoading({title:"正在加载",mask:!0}),this.setData({inputVal:e,inputShowed:!0}),wx.cloud.callFunction({name:"getActive",data:{creatorOpenid:i}}).then((function(e){wx.hideLoading(),wx.pageScrollTo({scrollTop:0,duration:300});for(var i=new Date,a=e.result.competitions,n=0;n<a.length;n++)a[n].startTime=t.formatTime("full",new Date(a[n].startTime)),a[n].vipExpiryTime&&(a[n].vipExpiryTime=new Date(a[n].vipExpiryTime)<i?"":t.formatTime("full",new Date(a[n].vipExpiryTime))),a[n].proExpiryTime&&(a[n].rechargeable=new Date(a[n].proExpiryTime)>i);a.length>=1&&wx.setNavigationBarTitle({title:"筛选("+a.length+")"}),o.setData({competitions:a,loadmore:"全部加载"})}))},showInput:function(){this.setData({inputShowed:!0})},hideInput:function(){wx.pageScrollTo({scrollTop:0,duration:300}),this.setData({competitions:[],loadmore:"",keyword:"",inputVal:"",inputShowed:!1}),this.getActive()},clearInput:function(){this.setData({inputVal:""})},inputTyping:function(t){this.setData({inputVal:t.detail.value})},inputFinish:function(e){var i=this;""==e.detail.value.replace(/\s*/g,"").length?wx.showToast({title:"请输入关键词",icon:"none",duration:1e3}):(this.data.keyword=e.detail.value.replace(/\s*/g,""),wx.showLoading({title:"正在加载",mask:!0}),wx.cloud.callFunction({name:"getActive",data:{keyword:this.data.keyword}}).then((function(e){wx.hideLoading(),wx.pageScrollTo({scrollTop:0,duration:300});for(var o=new Date,a=e.result.competitions,n=0;n<a.length;n++)a[n].startTime=t.formatTime("full",new Date(a[n].startTime)),a[n].vipExpiryTime&&(a[n].vipExpiryTime=new Date(a[n].vipExpiryTime)<o?"":t.formatTime("full",new Date(a[n].vipExpiryTime)));a.length>=1&&wx.setNavigationBarTitle({title:"搜索("+a.length+")"}),i.setData({competitions:a,loadmore:"全部加载"})})))},refresh:function(){wx.pageScrollTo({scrollTop:0,duration:300}),this.getActive()},onPullDownRefresh:function(){this.setData({userOpenid:e.globalData.openid}),this.data.inputShowed?wx.stopPullDownRefresh():this.getActive()},copyID:function(t){var e=t.currentTarget.dataset.id;wx.setClipboardData({data:"_id:"+e,success:function(t){wx.getClipboardData({success:function(t){}})}})},showActionSheet:function(t){var e=t.currentTarget.dataset.competition._id,i=this;wx.showActionSheet({itemList:["标记为正常","标记为开放","标记为不开放","标记为宝职","重置评委邀请码字段"],success:function(t){switch(t.tapIndex){case 0:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:e,status:"正常"},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"标记为正常状态",icon:"success",duration:1500}),i.getActive()}));break;case 1:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:e,note:""},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"标记为开放状态",icon:"success",duration:1500}),i.getActive()}));break;case 2:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:e,note:"不开放"},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"标记为不开放",icon:"success",duration:1500}),i.getActive()}));break;case 3:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:e,note:"宝职"},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"标记为宝职比赛",icon:"success",duration:1500}),i.getActive()}));break;case 4:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:e,inviteJuryWxacode:""},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"重置评委邀请码字段",icon:"success",duration:1500})}))}},fail:function(t){}})},vipActionSheet:function(t){var e=t.currentTarget.dataset.competition._id,i=t.currentTarget.dataset.competition.creator,o=this;wx.showActionSheet({itemList:["Pro","unPro","Settings","VP-1","VP-100"],success:function(t){switch(t.tapIndex){case 0:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{competition_id:e,operation:"updateCompetition"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"Pro",icon:"success",duration:1500}),o.getActive()}));break;case 1:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{competition_id:e,operation:"updateCompetitionUnPro"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"Pro",icon:"success",duration:1500}),o.getActive()}));break;case 2:wx.navigateTo({url:"/pages/dashboard/active/compSettings/compSettings?id="+e});break;case 3:wx.showModal({content:"vip",confirmColor:"#FF5A5F",confirmText:"确认",cancelColor:"#484848",cancelText:"取消",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{creator_openid:i,operation:"updateUser",years:1}}).then((function(t){wx.hideLoading(),wx.showToast({title:"VP-1",icon:"success",duration:1500}),o.getActive()})))},fail:function(t){}});break;case 4:wx.showModal({content:"vip",confirmColor:"#FF5A5F",confirmText:"确认",cancelColor:"#484848",cancelText:"取消",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{creator_openid:i,operation:"updateUser",years:100}}).then((function(t){wx.hideLoading(),wx.showToast({title:"VP-100",icon:"success",duration:1500}),o.getActive()})))},fail:function(t){}})}},fail:function(t){}})},onShareAppMessage:function(){return{title:"今日赛事概况",path:"/pages/dashboard/active/active",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/dashboard/active/active.js");
 		__wxRoute = 'pages/dashboard/active/compSettings/compSettings';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/dashboard/active/compSettings/compSettings.js';	define("pages/dashboard/active/compSettings/compSettings.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../../49539051658710DF2F35F8564970FAA0.js"),i=wx.cloud.database();Page({data:{competition:"",buttonText:""},onLoad:function(t){this.data.id=t.id,wx.showLoading({title:"正在加载",mask:!0}),this.getCompetition(t.id),wx.hideShareMenu()},getCompetition:function(e){var o=this;i.collection("competitions").doc(e).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,poster:!0,rule:!0,settings:!0,posterSize:!0}).get().then((function(i){wx.hideLoading();var e=i.data;e.startTime=t.formatTime("short",e.startTime),o.setData({competition:e})})).catch((function(i){t.competitionNoExistShowModal(i.errCode)}))},switchChangeAllowProgramImage:function(t){this.data.competition.settings.allowProgramImage=t.detail.value,this.setData({buttonText:"保存设置"})},switchChangeSkipJuries:function(t){this.data.competition.settings.skipJuries=t.detail.value,this.setData({buttonText:"保存设置"})},switchChangeShowVote:function(t){this.data.competition.settings.showVote=t.detail.value,this.setData({buttonText:"保存设置"})},switchChangeShowVoteSearch:function(t){this.data.competition.settings.showVoteSearch=t.detail.value,this.setData({buttonText:"保存设置"})},switchChangeSubmitComment:function(t){this.data.competition.settings.submitComment=t.detail.value,this.setData({buttonText:"保存设置"})},switchChangeJudgeItemBySingleColumn:function(t){this.data.competition.settings.judgeItemBySingleColumn=t.detail.value,this.setData({buttonText:"保存设置"})},updateRule:function(){var t=this,i={_id:this.data.competition._id,settings:this.data.competition.settings};wx.showLoading({title:"更新设置",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{competition_id:i._id,competition_settings:i.settings,operation:"updateCompetitionSettings"}}).then((function(i){wx.hideLoading(),wx.showToast({title:"compSettings",icon:"success",duration:1500}),t.setData({buttonText:""})}))}}); 
 			}); 	require("pages/dashboard/active/compSettings/compSettings.js");
 		__wxRoute = 'pages/dashboard/user/user';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/dashboard/user/user.js';	define("pages/dashboard/user/user.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../49539051658710DF2F35F8564970FAA0.js"),t=getApp(),a=wx.cloud.database(),o=a.command;Page({data:{users:[],filtrating:!1,inputShowed:!1,inputVal:"",keyword:""},onLoad:function(e){this.setData({userOpenid:t.globalData.openid})},showInput:function(){this.setData({inputShowed:!0})},hideInput:function(){wx.pageScrollTo({scrollTop:0,duration:300}),this.setData({users:[],loadmore:"",keyword:"",inputVal:"",inputShowed:!1})},clearInput:function(){this.setData({inputVal:"",users:[],loadmore:""})},inputTyping:function(e){this.setData({inputVal:e.detail.value,users:[]})},inputFinish:function(e){if(""==e.detail.value.replace(/\s*/g,"").length)wx.showToast({title:"请输入关键词",icon:"none",duration:1e3});else{var t=e.detail.value.replace(/\s*/g,"");this.data.keyword=t,this.searchUsers(t),wx.pageScrollTo({scrollTop:0,duration:300})}},searchUsers:function(i){var n=this;wx.showLoading({title:"正在搜索",mask:!0});var s=this.data.users.length;a.collection("users").where(o.or([{nickName:a.RegExp({regexp:i,options:"i"})},{realName:a.RegExp({regexp:i,options:"i"})}])).orderBy("createTime","desc").field({_openid:!0,nickName:!0,realName:!0,avatarUrl:!0,vipExpiryTime:!0,vipType:!0,createTime:!0,authorized:!0}).skip(s).get().then((function(a){console.log("searchUsers",a);var o=a.data;if("oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==t.globalData.openid&&"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"==t.globalData.openid||0!=o.length){wx.hideLoading();for(var i=new Date,r=0;r<o.length;r++)o[r].createTime=e.formatTime("full",new Date(o[r].createTime)),o[r].vipExpiryTime&&(o[r].vipExpiryTime=new Date(o[r].vipExpiryTime)<i?"":e.formatTime("full",new Date(o[r].vipExpiryTime)));n.setData({users:0==s?o:n.data.users.concat(o),loadmore:20==o.length?"上拉加载更多":"全部加载"})}else wx.showToast({title:"搜索结果为空",icon:"none",duration:1e3}),n.setData({loadmore:"搜索结果为空",users:[]})})).catch((function(e){wx.hideLoading(),console.log(e)}))},vipActionSheet:function(e){var t=e.currentTarget.dataset.openid,a=this;wx.showActionSheet({itemList:["VP-1","VP-100"],success:function(e){switch(e.tapIndex){case 0:wx.showModal({content:"VP",confirmColor:"#FF5A5F",confirmText:"确认",cancelColor:"#484848",cancelText:"取消",success:function(e){e.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{creator_openid:t,years:1,operation:"updateUser"}}).then((function(e){wx.hideLoading(),wx.showToast({title:"VP-1",icon:"success",duration:1500}),a.searchUsers(a.data.keyword)})))},fail:function(e){}});break;case 1:wx.showModal({content:"VP",confirmColor:"#FF5A5F",confirmText:"确认",cancelColor:"#484848",cancelText:"取消",success:function(e){e.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"updateVipV2",data:{creator_openid:t,years:100,operation:"updateUser"}}).then((function(e){wx.hideLoading(),wx.showToast({title:"VP-100",icon:"success",duration:1500}),a.searchUsers(a.data.keyword)})))},fail:function(e){}})}},fail:function(e){}})},onReachBottom:function(){"上拉加载更多"==this.data.loadmore&&(this.setData({loadmore:"正在加载"}),this.searchUsers(this.data.keyword))}}); 
 			}); 	require("pages/dashboard/user/user.js");
 		__wxRoute = 'pages/worker/worker';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/worker/worker.js';	define("pages/worker/worker.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../49539051658710DF2F35F8564970FAA0.js"),o=getApp(),e=wx.cloud.database(),a=e.command;e.command.aggregate;Page({data:{scrollTop:0,competitions:"",loadmore:""},onLoad:function(t){var a=this;wx.showLoading({title:"正在加载",mask:!0}),e.collection("_config").where({_id:"config"}).field({v:!0,button:!0}).get().then((function(t){a.setData({c:o.globalData.c,v:t.data[0].v,button:t.data[0].button})})).catch((function(t){console.error(t)}))},onShow:function(){this.data.competitions=[],this.getCompetitions()},getCompetitions:function(i){var n=this,s=this.data.competitions.length;e.collection("competitions").where(a.or([a.and({_id:"example",usersUnfocus:a.neq(o.globalData.openid),status:a.neq("已删除")}),a.and({status:a.neq("已删除"),workers:o.globalData.openid})])).orderBy("startTime","desc").skip(s).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,status:!0,rechargeable:!0,posterSize:!0}).get().then((function(o){var e=o.data;if(0==s&&0==e.length)n.setData({loadmore:"未创建比赛活动"});else{for(var a=0;a<e.length;a++)e[a].startTime=t.formatTime("full",e[a].startTime);n.setData({competitions:0==s?e:n.data.competitions.concat(e),loadmore:20==e.length?"上拉加载更多":"全部加载"})}wx.hideLoading(),wx.stopPullDownRefresh()})).catch((function(t){console.error(t)}))},onPullDownRefresh:function(){this.data.competitions=[],this.getCompetitions()},onReachBottom:function(){"上拉加载更多"==this.data.loadmore&&(this.setData({loadmore:"正在加载"}),this.getCompetitions())},newCompetition:function(){o.globalData.authorized?wx.navigateTo({url:"/pages/competition/edit/edit"}):wx.showModal({content:"授权微信登录后方可创建新的比赛",cancelColor:"#484848",cancelText:"以后再说",confirmColor:"#FF5A5F",confirmText:"去登录",success:function(t){t.confirm?wx.navigateTo({url:"/pages/more/authorize/authorize?page=worker"}):t.cancel}})},onPageScroll:function(t){}}); 
 			}); 	require("pages/worker/worker.js");
 		__wxRoute = 'pages/jury/jury';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/jury/jury.js';	define("pages/jury/jury.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../49539051658710DF2F35F8564970FAA0.js"),o=getApp(),e=wx.cloud.database(),i=e.command;e.command.aggregate;Page({data:{competitions:"",loadmore:""},onLoad:function(t){wx.showLoading({title:"正在加载",mask:!0}),this.getCompetitions()},getCompetitions:function(n){var a=this,s=this.data.competitions.length;e.collection("competitions").where(i.or([i.and({_id:"example",focus:o.globalData.openid,status:i.and(i.neq("已删除"),i.neq("已关闭"))}),i.and({status:i.and(i.neq("已删除"),i.neq("已关闭")),juries:o.globalData.openid,juriesUnfocus:i.neq(o.globalData.openid)})])).orderBy("startTime","desc").skip(s).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,status:!0,juriesUnfocus:!0,posterSize:!0}).get().then((function(o){wx.hideLoading(),wx.stopPullDownRefresh();var e=o.data;if(0==s&&0==e.length)a.setData({loadmore:"未担任比赛评委"});else{for(var i=0;i<e.length;i++)e[i].startTime=t.formatTime("full",e[i].startTime);a.setData({competitions:0==s?e:a.data.competitions.concat(e),loadmore:20==e.length?"上拉加载更多":"全部加载"})}})).catch((function(t){console.error(t)}))},onPullDownRefresh:function(){this.data.competitions=[],this.getCompetitions()},onReachBottom:function(){"上拉加载更多"==this.data.loadmore&&(this.setData({loadmore:"正在加载"}),this.getCompetitions())},showActionSheet:function(t){var e=t.currentTarget.dataset.competition,i=this;wx.showActionSheet({itemList:["不再关注该比赛"],itemColor:"#767676",success:function(t){switch(t.tapIndex){case 0:wx.showModal({content:"确认不再显示该比赛吗？建议比赛评分结束后才取消关注。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"role",data:{competition:{_id:e._id},operation:"juryUnfocus",openidDeleted:o.globalData.openid}}).then((function(t){i.data.competitions=[],i.getCompetitions(),wx.hideLoading(),wx.showToast({title:"取消关注",icon:"success",duration:1e3})})))},fail:function(t){console.log(t)}})}}})}}); 
 			}); 	require("pages/jury/jury.js");
 		__wxRoute = 'pages/audience/audience';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/audience/audience.js';	define("pages/audience/audience.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),o=wx.cloud.database(),a=o.command;o.command.aggregate;Page({data:{competitions:"",loadmore:"",tags:[],selectedTag:"比赛精选"},onLoad:function(t){var a=this;wx.showLoading({title:"正在加载",mask:!0}),o.collection("_config").where({_id:"config"}).field({v:!0}).get().then((function(t){a.data.c=e.globalData.c,a.data.v=t.data[0].v,a.getCompetitions(),e.globalData.c,t.data[0].v})).catch((function(t){console.error(t)}))},getCompetitions:function(i){var n=this,s=this.data.competitions.length;this.data.c!=this.data.v?o.collection("competitions").where({note:"宝职"}).where({status:a.and(a.neq("已删除"),a.neq("已关闭"))}).orderBy("startTime","desc").skip(s).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,audiences:!0,posterSize:!0}).get().then((function(e){wx.hideLoading(),wx.stopPullDownRefresh();for(var o=e.data,a=0;a<o.length;a++)o[a].startTime=t.formatTime("full",o[a].startTime);n.setData({competitions:0==s?o:n.data.competitions.concat(o),loadmore:20==o.length?"上拉加载更多":"全部加载"})})).catch((function(t){console.error(t)})):o.collection("competitions").where(a.or([a.and({_id:"example",focus:e.globalData.openid}),a.and({_id:a.neq("example"),note:a.neq("不开放")}),{audiences:e.globalData.openid}])).where({status:a.and(a.neq("已删除"),a.neq("已关闭"))}).orderBy("startTime","desc").skip(s).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,audiences:!0,status:!0,posterSize:!0}).get().then((function(e){wx.hideLoading(),wx.stopPullDownRefresh();for(var o=e.data,a=0;a<o.length;a++)o[a].startTime=t.formatTime("full",o[a].startTime);n.setData({competitions:0==s?o:n.data.competitions.concat(o),loadmore:20==o.length?"上拉加载更多":"全部加载"})})).catch((function(t){console.error(t)}))},showActionSheet:function(t){var o=t.currentTarget.dataset.competition._id;if("oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==e.globalData.openid||"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"==e.globalData.openid){var a=this;wx.showActionSheet({itemList:["标记为不开放"],success:function(t){switch(t.tapIndex){case 0:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:{_id:o,note:"不开放"},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"标记为不开放",icon:"success",duration:1500}),a.getActive()}))}},fail:function(t){}})}},onPullDownRefresh:function(){this.data.competitions=[],this.getCompetitions()},onReachBottom:function(){"上拉加载更多"==this.data.loadmore&&(this.setData({loadmore:"正在加载"}),this.getCompetitions())},onShareAppMessage:function(){return{title:"我发现了一款高效好用的比赛评分小程序",path:"/pages/index/index",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/audience/audience.js");
 		__wxRoute = 'pages/competition/competition';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/competition.js';	define("pages/competition/competition.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../49539051658710DF2F35F8564970FAA0.js"),o=getApp(),i=wx.cloud.database(),e=i.command,n=i.command.aggregate;Page({data:{competition:"",contactServiceView:!1,config_rechargeable:!1,user_vip:!1,copyCompetitionTotal:0},onLoad:function(t){var n=this;this.data.id=t.id,"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=o.globalData.openid&&i.collection("behaviors").add({data:{createTime:i.serverDate(),competition_id:t.id,type:"visit",role:"worker",page:"competition"}}),wx.showLoading({title:"正在加载",mask:!0}),i.collection("_config").doc("config").field({rechargeable:!0}).get().then((function(t){n.data.config_rechargeable=t.data.rechargeable})).catch((function(t){console.error(t)})),i.collection("users").where({_openid:o.globalData.openid,vipExpiryTime:e.gt(i.serverDate())}).count().then((function(t){1==t.total&&(n.data.user_vip=!0)})).catch((function(t){console.log(t)}))},onShow:function(){this.getCompetition()},getCompetition:function(){var o=this,e=[{url:"edit/edit?id=",title:"编辑比赛信息",iconSrc:"/images/icons/intro.png",note:"更新信息或背景图片等"},{url:"programs/programs?id=",title:"添加参赛者",iconSrc:"/images/icons/intro.png",note:"按上场顺序添加"},{url:"rules/rules?id=",title:"设置评分规则",iconSrc:"/images/icons/intro.png",note:"评委分组/评分项"},{url:"inviteJury/inviteJury?id=",title:"邀请评委评分",iconSrc:"/images/icons/intro.png",note:"评委扫码即可评分"},{url:"newestScores/newestScores?id=",title:"查看实时成绩",iconSrc:"/images/icons/intro.png",note:"评委提交分数后自动统计成绩"},{url:"awards/awards?id=",title:"获奖名单",iconSrc:"/images/icons/intro.png",note:"设置奖项生成获奖名单"},{url:"vote/vote?id=",title:"观众互动",iconSrc:"/images/icons/intro.png",note:"分享最终成绩/加油打Call"},{title:"更多操作",iconSrc:"/images/icons/intro.png",note:"导出成绩/切换比赛状态等"}];i.collection("competitions").doc(this.data.id).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,juries:!0,poster:!0,creator:!0,status:!0,tags:!0,notice:!0,rechargeable:!0,rule:!0,juriesGroups:!0,proExpiryTime:!0,programsTotal:!0,posterSize:!0}).get().then((function(a){wx.hideLoading(),wx.stopPullDownRefresh();var c=a.data,s=new Date;c.proExpiryTime&&(c.rechargeable=new Date(c.proExpiryTime)>s),c.startTime=t.formatTime("short",c.startTime),i.collection("programs").where({competition_id:o.data.id}).count().then((function(t){c.programsTotal=t.total,i.collection("users").aggregate().addFields({matched:n.in(["$_openid",c.juries])}).match({matched:!0}).group({_id:null,juries:n.addToSet({_openid:"$_openid"})}).end().then((function(t){for(var i=t.list.length>=1?t.list[0].juries.length:0,n=0;n<e.length;n++)"添加参赛者"==e[n].title&&(e[n].note=c.programsTotal>0?c.programsTotal:"按上场顺序添加"),"邀请评委评分"==e[n].title&&"example"!=o.data.id&&(e[n].note=i>0?i+"位":"评委扫评分邀请码即可评分");var a=0;if(c.juriesGroups&&c.juriesGroups.length>=1)for(var s=0;s<c.juriesGroups.length;s++)a+=c.juriesGroups[s].juriesDetails.length;!c.notice&&a>0&&a<i&&(c.notice="提醒：评委分组中有评委尚未分组，未分组评委的分数无法纳入成绩计算，请及时将评委分到对应的组别!"),o.setData({competition:c,listMenu:e})}))}))}))},closeNotice:function(t){var o=this;this.data.competition.notice&&wx.cloud.callFunction({name:"competition",data:{competition:{_id:this.data.competition._id,notice:""},operation:"update"}}).then((function(t){o.data.competition.notice="",o.setData({competition:o.data.competition})}))},navToGuide:function(){wx.navigateTo({url:"/pages/more/guide/guide"})},showActionSheet:function(){var t=this;wx.showActionSheet({itemList:["复制比赛","添加工作人员","已关闭"==t.data.competition.status?"重新开放比赛(评委观众可见)":"关闭比赛(仅主办可见/评委观众不可见)","删除比赛"],success:function(i){if("example"==t.data.competition._id)wx.showToast({title:"比赛示例不能使用此功能",icon:"none",duration:3e3});else{var e={_id:t.data.competition._id,status:2==i.tapIndex?"已关闭"==t.data.competition.status?"正常":"已关闭":3==i.tapIndex?"已删除":"正常"};switch(i.tapIndex){case 0:t.copyCompetition();break;case 1:wx.navigateTo({url:"/pages/competition/inviteWorker/inviteWorker?id="+t.data.competition._id});break;case 2:wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:e,operation:"update"}}).then((function(o){wx.hideLoading(),wx.showToast({title:"已关闭"==e.status?"已关闭比赛":"正常状态",icon:"success",duration:1500}),t.data.competition.status="已关闭"==e.status?"已关闭":"正常",t.setData({competition:t.data.competition}),wx.cloud.callFunction({name:"behavior",data:{competition_id:e._id,behavior:"31切换状态"}}).then((function(t){}))}));break;case 3:t.data.competition.creator==o.globalData.openid?wx.showModal({title:"温馨提示",content:"比赛活动删除后不可恢复，确认删除吗？",confirmColor:"#FF5A5F",confirmText:"确定删除",cancelColor:"#484848",cancelText:"取消",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:e,operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"已删除",icon:"success",duration:1500,complete:function(t){setTimeout((function(){wx.navigateBack({delta:1})}),1500)}}),wx.cloud.callFunction({name:"behavior",data:{competition_id:e._id,behavior:"35删除比赛"}}).then((function(t){console.log("35删除比赛",t)}))})))},fail:function(t){}}):wx.showModal({content:"仅创建者有权限删除比赛，可选择退出比赛，退出后不再显示。",confirmColor:"#FF5A5F",confirmText:"退出比赛",cancelColor:"#484848",cancelText:"取消",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"role",data:{competition:e,operation:"deleteRole",role:"worker",openidDeleted:o.globalData.openid}}).then((function(t){wx.showToast({title:"退出比赛",icon:"success",duration:1500,complete:function(t){setTimeout((function(){wx.navigateBack({delta:1})}),1500)}})})))},fail:function(t){}})}}},fail:function(t){}})},copyCompetition:function(t){var o=this;wx.showActionSheet({title:"选择复制的内容",itemList:["复制比赛信息+默认评分规则","复制比赛信息+所有评分规则","复制比赛信息+所有评分规则+参赛者"],success:function(t){if("example"==o.data.competition._id)wx.showToast({title:"比赛示例不能使用此功能",icon:"none",duration:3e3});else{var i=t.tapIndex;0==i&&o.data.competition.rechargeable||o.data.user_vip||o.data.config_rechargeable?(wx.showLoading({title:"正在复制",mask:!0}),o.data.copyCompetitionTotal++,wx.cloud.callFunction({name:"copyCompetition",data:{competition_id:o.data.competition._id,type:0==i?"modelV1":1==i?"modelV2":"modelV3",copyCompetitionTotal:o.data.copyCompetitionTotal}}).then((function(t){wx.hideLoading();var o=t.result.competition_id;wx.showModal({title:"已复制比赛",content:"是否查看新比赛？",confirmColor:"#FF5A5F",confirmText:"查看",cancelColor:"#767676",cancelText:"暂不",success:function(t){t.confirm&&wx.navigateTo({url:"/pages/competition/competition?id="+o})},fail:function(t){console.log(t)}})}))):o.setData({contactServiceView:!0})}},fail:function(t){}})},unfocusCompetitionExample:function(t){wx.showModal({title:"",content:"比赛示例方便用户体验赛易评的功能，建议熟悉功能后再移除示例。",confirmColor:"#FF5A5F",confirmText:"移除示例",cancelColor:"#484848",cancelText:"保留示例",success:function(t){t.confirm&&(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"focusExample",data:{operation:"unfocusExample"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"不再显示示例",icon:"success",duration:1500}),setTimeout((function(){wx.navigateBack({delta:1})}),1500)})))},fail:function(t){console.log(t)}})},hideContactService:function(t){this.setData({contactServiceView:!1})},contactService:function(t){i.collection("behaviors").add({data:{createTime:i.serverDate(),competition_id:this.data.competition._id,competition_title:this.data.competition.title,type:"contactService",page:"competition"}}).then((function(t){})).catch(console.error),this.setData({contactServiceView:!1})},onPullDownRefresh:function(){this.getCompetition()},onShareAppMessage:function(){return{title:"查看成绩一起加油打Call",path:"/pages/competition/vote/vote?id="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/competition.js");
 		__wxRoute = 'pages/competition/edit/edit';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/edit/edit.js';	define("pages/competition/edit/edit.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=getApp(),e=wx.cloud.database();e.command,e.command.aggregate;Page({data:{competition:"",tempPoster:{},tags:"",selectedTags:[]},onLoad:function(i){var o=this;e.collection("_config").where({_id:"config"}).field({tags:!0,v:!0}).get().then((function(a){var s=a.data[0].tags,n=t.globalData.c,c=a.data[0].v;if(n!=c&&(s=["校园","晚会","音乐","演讲","才艺","评测","其他"]),i.id)wx.setNavigationBarTitle({title:"编辑比赛信息"}),wx.showLoading({title:"正在加载",mask:!0}),e.collection("competitions").where({_id:i.id}).get().then((function(t){var e=t.data[0];o.setData({c:n,v:c,competition:e,tempPoster:{path:e.poster,digest:"competitionUsedPoster"},selectedTags:e.tags?e.tags:[],tags:s,date:e.startTime.getFullYear()+"年"+(e.startTime.getMonth()+1)+"月"+e.startTime.getDate()+"日",time:e.startTime.getHours()+":"+e.startTime.getMinutes(),region:e.region}),wx.hideLoading(),wx.stopPullDownRefresh()}));else{n!=c&&wx.showLoading({title:"正在加载",mask:!0});var d=new Date;o.setData({tempPoster:{path:"cloud://release-bu5dc.7265-release-bu5dc-1301069672/posters/defaultPoster.png",digest:"defaultPoster"},tags:s,c:n,v:c,date:d.getFullYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日",time:d.getHours()+":00",region:["广东省","深圳市","南山区"]})}})).catch((function(t){console.error(t)})),wx.hideShareMenu()},choosePoster:function(){var t=this;wx.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(e){var i=String(e.tempFilePaths[0]);wx.getFileInfo({filePath:i,success:function(e){var o=e,a={path:i,digest:o.digest};if(t.setData({tempPoster:a}),o.size>512e3){var s=parseInt(512e5/o.size+1);wx.compressImage({src:i,quality:s,success:function(e){var i=e.tempFilePath;wx.getFileInfo({filePath:i,success:function(e){a.path=i,a.digest=e.digest,t.setData({tempPoster:a}),t.imgSecCheck(i)}})}})}else t.imgSecCheck(i)}})}})},imgSecCheck:function(t){var e=this,i=wx.getFileSystemManager().readFileSync(t);wx.cloud.callFunction({name:"imgSecCheck",data:{buffer:i}}).then((function(t){var i=t.result.errCode;87014==i&&(wx.showToast({title:"海报检测到违规内容，请重新选择海报",icon:"none",duration:5e3}),e.setData({tempPoster:{path:"cloud://release-bu5dc.7265-release-bu5dc-1301069672/posters/defaultPoster.png",digest:"defaultPoster",width:750,height:375}}))})).catch((function(t){console.log(t)}))},bindDateChange:function(t){var e=t.detail.value.split("-");this.setData({date:e[0]+"年"+e[1]+"月"+e[2]+"日"})},bindTimeChange:function(t){this.setData({time:t.detail.value})},bindRegionChange:function(t){this.setData({region:t.detail.value})},selectTag:function(t){var e=t.currentTarget.dataset.tag;this.data.selectedTags.length>=5?wx.showToast({title:"至多5个标签",icon:"none",duration:1500}):this.data.selectedTags.indexOf(e)>=0?wx.showToast({title:"此标签已添加过",icon:"none",duration:1500}):(this.data.selectedTags.push(e),this.setData({selectedTags:this.data.selectedTags}))},deleteTag:function(t){var e=t.currentTarget.dataset.tag;this.data.selectedTags.splice(this.data.selectedTags.indexOf(e),1),this.setData({selectedTags:this.data.selectedTags})},submitCompetition:function(t){var e=this;console.log("submitCompetition:",t.detail.value),wx.showLoading({title:"正在提交",mask:!0});var i=t.detail.value.date,o=[i.substring(0,i.indexOf("年")),i.substring(i.indexOf("年")+1,i.indexOf("月")),i.substring(i.indexOf("月")+1,i.indexOf("日"))],a=t.detail.value.time.split(":"),s=this.data.tempPoster,n=this.data.selectedTags,c={organizer:t.detail.value.organizer,site:t.detail.value.site.slice(0,12),sponsor:t.detail.value.sponsor,title:t.detail.value.title,region:t.detail.value.region,tags:n,date:o,time:a};!!(n.length>0&&c.title&&c.sponsor&&c.site)?wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(c)}}).then((function(t){87014==t.result.errCode?(wx.hideLoading(),wx.showModal({content:"系统检测所提交的文本含有违规用词，请修改后再提交",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){},fail:function(t){console.log(t)}})):e.data.competition.createTime?(c._id=e.data.competition._id,"example"==c._id?wx.showToast({title:"比赛示例没有编辑权限",icon:"none",duration:2500}):"competitionUsedPoster"!=s.digest&&"defaultPoster"!=s.digest?wx.cloud.uploadFile({cloudPath:"posters/"+s.digest+".jpg",filePath:s.path}).then((function(t){var i=e.data.competition.poster;c.poster=t.fileID,wx.cloud.callFunction({name:"competition",data:{competition:c,operation:"update"}}).then((function(t){wx.hideLoading(),e.deleOldPoster(i),wx.showToast({title:"更新比赛信息",icon:"success",duration:1500,complete:function(t){setTimeout((function(){wx.navigateBack({delta:1})}),1500)}})}))})):(c.poster=e.data.competition.poster,wx.cloud.callFunction({name:"competition",data:{competition:c,operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"更新比赛信息",icon:"success",duration:1500,complete:function(t){setTimeout((function(){wx.navigateBack({delta:1})}),1500)}}),wx.cloud.callFunction({name:"behavior",data:{competition_id:c._id,behavior:"13更新信息"}}).then((function(t){}))})))):"defaultPoster"!=s.digest?(wx.showLoading({title:"正在上传海报",mask:!0}),wx.cloud.uploadFile({cloudPath:"posters/"+s.digest+".jpg",filePath:s.path}).then((function(t){c.poster=t.fileID,wx.showLoading({title:"正在上传信息",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:c,operation:"add"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"创建比赛",icon:"success",duration:1500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/competition?id="+t.result.competition_id})}),1500)}))}))):(c.poster="cloud://release-bu5dc.7265-release-bu5dc-1301069672/posters/defaultPoster.png",wx.showLoading({title:"正在上传信息",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:c,operation:"add"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"创建比赛",icon:"success",duration:1500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/competition?id="+t.result.competition_id})}),1500)})))})):(wx.hideLoading(),c.title?c.site?c.sponsor?0==n.length&&wx.showToast({title:"请添加标签",icon:"none",duration:1500}):wx.showToast({title:"请输入主办方",icon:"none",duration:1500}):wx.showToast({title:"请输入比赛地点",icon:"none",duration:1500}):wx.showToast({title:"请输入比赛名称",icon:"none",duration:1500}))},deleOldPoster:function(t){t&&"cloud://release-bu5dc.7265-release-bu5dc-1301069672/posters/defaultPoster.png"!=t&&wx.cloud.deleteFile({fileList:[t]}).then((function(t){}))}}); 
 			}); 	require("pages/competition/edit/edit.js");
 		__wxRoute = 'pages/competition/programs/programs';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/programs/programs.js';	define("pages/competition/programs/programs.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),a=wx.cloud.database(),o=a.command,i=a.command.aggregate;Page({data:{competition:"",programs:[],program:{},inputProgram:!1,loadmore:"",contactServiceView:!1,config_rechargeable:!1,user_vip:!1},onLoad:function(t){var i=this;wx.showLoading({title:"正在加载",mask:!0}),this.getCompetition(t.id),a.collection("_config").doc("config").field({rechargeable:!0}).get().then((function(t){i.data.config_rechargeable=t.data.rechargeable})).catch((function(t){console.error(t)})),a.collection("users").where({_openid:e.globalData.openid,vipExpiryTime:o.gt(a.serverDate())}).count().then((function(t){1==t.total&&(i.data.user_vip=!0)})).catch((function(t){console.log(t)}))},getCompetition:function(o){var i=this;a.collection("competitions").doc(o).field({title:!0,workers:!0,juries:!0,rechargeable:!0,status:!0,proExpiryTime:!0,settings:!0}).get().then((function(t){var a=t.data,o=new Date;a.proExpiryTime&&(a.rechargeable=new Date(a.proExpiryTime)>o),i.data.competition=a;var n="oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==e.globalData.openid||i.data.competition.workers.indexOf(e.globalData.openid)>=0;i.setData({competition:a,isWorker:n}),i.getPrograms()})).catch((function(e){t.competitionNoExistShowModal(e.errCode)}))},getPrograms:function(){var t=this;a.collection("programs").aggregate().match({competition_id:this.data.competition._id}).group({_id:null,programs:i.addToSet({_id:"$_id",competition_id:"$competition_id",index:"$index",note:"$note",title:"$title",image:"$image",skipJuries:"$skipJuries"})}).end().then((function(e){for(var a=e.list.length>=1?e.list[0].programs:[],o=0;o<a.length;o++)a[o].skipJuries||(a[o].skipJuries=[]);a.sort((function(t,e){return t.index-e.index})),wx.hideLoading(),wx.stopPullDownRefresh(),0==a.length?t.setData({loadmore:"暂未添加参赛者"}):(t.setData({programs:a,loadmore:"全部加载"}),t.getJuries(a,t.data.competition.juries))})).catch((function(t){console.error(t)}))},getJuries:function(t,e){var o=this;a.collection("users").aggregate().addFields({matched:i.in(["$_openid",e])}).match({matched:!0}).group({_id:null,juries:i.addToSet({_openid:"$_openid",avatarUrl:"$avatarUrl",authorized:"$authorized",nickName:"$nickName",realName:"$realName"})}).end().then((function(e){for(var a=e.list.length>=1?e.list[0].juries:[],i=[],n=0;n<a.length;n++)i.push(a[n]._openid),a[n].authorized||a[n].avatarUrl?a[n].name=a[n].realName?a[n].realName:a[n].nickName?a[n].nickName:"无昵称或未授权微信登录":(a[n].name="无昵称或未授权微信登录",a[n].avatarUrl="/images/user-unlogin.png");for(var r=0;r<t.length;r++)for(var s=0;s<t[r].skipJuries.length;s++)i.indexOf(t[r].skipJuries[s])>=0&&(t[r].skipJuries[s]=a[i.indexOf(t[r].skipJuries[s])]);o.setData({juries:a,programs:t})}))},addSkipJury:function(t){var i=this,n=this.data.juries,r=this.data.programs,s=this.data.competition,c=t.currentTarget.dataset.program,d=t.currentTarget.dataset.idxprogram,l=t.detail.value;if(n.length)if((this.data.competition.rechargeable||this.data.config_rechargeable||this.data.user_vip)&&"example"!=this.data.competition._id)if(s.workers.indexOf(e.globalData.openid)>=0){var u=-1;c.skipJuries&&c.skipJuries.length>0&&(u=c.skipJuries.findIndex((function(t){return n[l]._openid==t._openid}))),u>=0?wx.showToast({title:"重复设置评委",icon:"none",duration:1500}):(wx.showLoading({title:"正在提交",mask:!0}),a.collection("programs").doc(c._id).update({data:{skipJuries:o.push(n[l]._openid)}}).then((function(t){r[d].skipJuries.push(n[l]),i.setData({programs:r}),wx.showToast({title:"设置评委回避",icon:"success",duration:1500})})))}else wx.showToast({title:"仅工作人员有权限",icon:"none",duration:1500});else"example"==this.data.competition._id?wx.showToast({title:"比赛示例不能使用该功能",icon:"none",duration:1e3}):this.setData({contactServiceView:!0})},deleteSkipJury:function(t){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能使用此操作",icon:"none",duration:1e3});else{var i=this,n=i.data.competition,r=i.data.programs,s=t.currentTarget.dataset.program,c=t.currentTarget.dataset.idxprogram,d=t.currentTarget.dataset.skipjuryopenid;n.workers.indexOf(e.globalData.openid)>=0&&wx.showActionSheet({itemList:["删除该回避评委"],itemColor:"#767676",success:function(t){switch(t.tapIndex){case 0:wx.showLoading({title:"正在提交",mask:!0}),a.collection("programs").doc(s._id).update({data:{skipJuries:o.pull(d)}}).then((function(t){var e=s.skipJuries.findIndex((function(t){return d==t._openid}));e>-1&&r[c].skipJuries.splice(e,1),i.setData({programs:r}),wx.showToast({title:"删除该评委",icon:"success",duration:1500})})).catch(console.error)}}})}},formSubmit:function(t){var e=this;if(wx.showLoading({title:"正在提交",mask:!0}),"example"==this.data.competition._id)wx.hideLoading(),wx.showToast({title:"比赛示例不支持添加参赛者",icon:"none",duration:3e3});else{var a={index:parseInt(t.detail.value.index),title:t.detail.value.title,note:t.detail.value.note};this.data.program._id?(a._id=this.data.program._id,a.competition_id=this.data.competition._id,a.image=this.data.program.image?this.data.program.image:""):(a.competition_id=this.data.competition._id,a.votesTotal=0,a.averageScore=0,a.scores=[],a.awards=[]),a.title&&a.index>=0&&a.index<=1e3?wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(a)}}).then((function(t){87014==t.result.errCode?(wx.hideLoading(),wx.showModal({content:"系统检测所提交的文本含有违规用词，请修改后再提交",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){},fail:function(t){console.log(t)}})):a._id?wx.cloud.callFunction({name:"program",data:{program:a,operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"编辑参赛者",icon:"success",duration:2e3});var o=e.data.programs.findIndex((function(t){return a._id==t._id}));e.data.programs[o]=a,e.setData({programs:e.data.programs,program:{},inputProgram:!1})})):wx.cloud.callFunction({name:"program",data:{program:a,operation:"add"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"已添加",icon:"success",duration:2e3}),a._id=t.result._id,e.data.programs.push(a),e.setData({programs:e.data.programs,program:{},inputProgram:e.data.competition.rechargeable||e.data.programs.length<10||e.data.config_rechargeable||e.data.user_vip}),"暂未添加参赛者参赛者"==e.data.loadmore&&e.setData({loadmore:"全部加载"}),"已结束"==e.data.competition.status&&wx.cloud.callFunction({name:"competition",data:{competition:{_id:e.data.competition._id,status:"正常"},operation:"update"}}).then((function(t){}))}))})):(wx.hideLoading(),!a.index||a.index<0?wx.showToast({title:"序号为大于等于0的整数",icon:"none",duration:2e3}):a.index>1e3?wx.showToast({title:"序号为小于1000的整数",icon:"none",duration:2e3}):a.title||wx.showToast({title:"请添加参赛者名称",icon:"none",duration:2e3}))}},inputProgram:function(){(this.data.competition.rechargeable||this.data.programs.length<10||this.data.config_rechargeable||this.data.user_vip)&&"example"!=this.data.competition._id?this.setData({inputProgram:!this.data.inputProgram,program:{}}):"example"==this.data.competition._id?wx.showToast({title:"比赛示例不能添加参赛者",icon:"none",duration:2e3}):this.setData({contactServiceView:!0})},clearProgram:function(){this.setData({program:{}})},editProgram:function(t){if(this.data.competition.workers.indexOf(e.globalData.openid)>=0)if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能编辑",icon:"none",duration:2e3});else{var a=t.currentTarget.dataset.program;this.setData({inputProgram:!0,program:a})}else wx.showToast({title:"仅工作人员有权限编辑参赛者",icon:"none",duration:1500})},chooseImage:function(t){if("example"!=this.data.competition._id){var e=t.currentTarget.dataset.program,a=t.currentTarget.dataset.index,o=this;wx.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(t){var i=String(t.tempFilePaths[0]);wx.getFileInfo({filePath:i,success:function(t){console.log("getFileInfo:",t);var n=t;if(wx.showLoading({title:"上传图片",mask:!0}),n.size>512e3){var r=parseInt(512e5/n.size+1);wx.compressImage({src:i,quality:r,success:function(t){var i=t.tempFilePath;wx.getFileInfo({filePath:i,success:function(t){console.log("getFileInfo:",t),o.uploadImage(e,a,i,n.digest)}})}})}else o.uploadImage(e,a,i,n.digest)}})}})}else"example"==this.data.competition._id?wx.showToast({title:"比赛示例的参赛者不能上传图片",icon:"none",duration:2e3}):this.setData({contactServiceView:!0})},uploadImage:function(t,e,a,o){var i=this;wx.cloud.uploadFile({cloudPath:"programImages/"+t.competition_id+"/"+o+".jpg",filePath:a}).then((function(n){t.image="cloud://release-bu5dc.7265-release-bu5dc-1301069672/programImages/"+t.competition_id+"/"+o+".jpg",wx.cloud.callFunction({name:"program",data:{program:t,operation:"update"}}).then((function(n){wx.hideLoading(),wx.showToast({title:"上传成功",icon:"success",duration:1500}),i.data.programs[e].image="cloud://release-bu5dc.7265-release-bu5dc-1301069672/programImages/"+t.competition_id+"/"+o+".jpg",i.setData({programs:i.data.programs}),i.imgSecCheck(t,e,a)}))}))},imgSecCheck:function(t,e,a){var o=this,i=wx.getFileSystemManager().readFileSync(a);wx.cloud.callFunction({name:"imgSecCheck",data:{buffer:i}}).then((function(a){var i=a.result.errCode;87014==i&&(wx.showToast({title:"图片检测到违规内容，请重新选择图片",icon:"none",duration:300}),wx.cloud.deleteFile({fileList:[t.image]}).then((function(a){t.image="",wx.cloud.callFunction({name:"program",data:{program:t,operation:"update"}}).then((function(t){o.data.programs[e].image="",o.setData({programs:o.data.programs})}))}))),0==i&&console.log("海报检测通过")})).catch((function(t){console.log(t)}))},deleteImage:function(t){var a=t.currentTarget.dataset.program,o=t.currentTarget.dataset.index;if(this.data.competition.workers.indexOf(e.globalData.openid)>=0){var i=this;wx.showModal({content:"确认删除图片吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"删除图片",mask:!0}),wx.cloud.deleteFile({fileList:[a.image]}).then((function(t){a.image="",wx.cloud.callFunction({name:"program",data:{program:a,operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"已删除",icon:"success",duration:1500}),i.data.programs[o].image="",i.setData({programs:i.data.programs})}))})))},fail:function(t){console.log(t)}})}else wx.showToast({title:"仅工作人员有权限删除照片",icon:"none",duration:2500})},deleteProgram:function(t){if(this.data.competition.workers.indexOf(e.globalData.openid)>=0)if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能删除",icon:"none",duration:2e3});else{var a=t.currentTarget.dataset.program,o=t.currentTarget.dataset.index,i=this;wx.showModal({content:"确认删除该参赛者吗？如果评委已提交过分数，将同步删除。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"program",data:{program:a,operation:"delete"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"已删除",icon:"success",duration:2e3}),i.data.programs.splice(o,1),i.setData({programs:i.data.programs})})))},fail:function(t){console.log(t)}})}else wx.showToast({title:"仅工作人员有权限删除参赛者",icon:"none",duration:2500})},shuffle:function(){var t=this.data.programs,e=this;0==t.length?wx.showToast({title:"请先添加参赛者",icon:"none",duration:1500}):wx.showModal({content:"建议在参赛者的共同见证下抽签，抽签后参赛者的序号将随机打乱",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"开始抽签",success:function(o){if(o.confirm){for(var i=0;i<t.length;i++)t[i].index=0;e.setData({programs:t}),wx.showLoading({title:"随机抽签中",mask:!0}),function(t){for(var e,a,o=t.length;o>0;)e=Math.floor(Math.random()*o),a=t[o-1],t[o-1]=t[e],t[e]=a,o--}(t);for(var n=0;n<t.length;n++)t[n].index=n+1;t.sort((function(t,e){return t.index-e.index})),wx.cloud.callFunction({name:"program",data:{programs:t,operation:"updateAllPrograms"}}).then((function(o){wx.hideLoading(),wx.showToast({title:"抽签完毕",icon:"success",duration:1500}),e.setData({programs:t}),a.collection("behaviors").add({data:{createTime:a.serverDate(),type:"shuffle",page:"programs"}}).then((function(t){})).catch(console.error)}))}},fail:function(t){console.log(t)}})},onPullDownRefresh:function(){this.data.programs=[],this.getCompetition(this.data.competition._id)},hideContactService:function(t){this.setData({contactServiceView:!1})},contactService:function(t){a.collection("behaviors").add({data:{createTime:a.serverDate(),competition_id:this.data.competition._id,competition_title:this.data.competition.title,type:"contactService",page:"programs"}}).then((function(t){})).catch(console.error),this.setData({contactServiceView:!1})},importPrograms:function(t){var e=this;wx.showModal({title:"选择Excel表文件导入添加",content:"Excel表无需标题行，第1列为整数序号，第2列为参赛者名称，第3列为备注可不填。先把Excel表发送到手机微信的“文件传输助手”方可选择导入，电脑端不能使用导入功能。导入数量较多时需要几秒后下拉刷新一下才显示全部。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"选择文件",success:function(t){t.confirm&&((e.data.competition.rechargeable||e.data.config_rechargeable||e.data.user_vip)&&"example"!=e.data.competition._id?wx.chooseMessageFile({count:1,type:"file",success:function(t){var a=t.tempFiles[0].name.split(".");if("xlsx"==a[1]||"xls"==a[1]){var o=t.tempFiles[0].path;wx.showLoading({title:"上传Excel表",mask:!0}),wx.cloud.uploadFile({cloudPath:"programExcels/"+e.data.competition._id+".xlsx",filePath:o}).then((function(t){wx.showLoading({title:"导入添加",mask:!0});var a=t.fileID;wx.cloud.callFunction({name:"importPrograms",data:{fileID:a,competition_id:e.data.competition._id}}).then((function(t){87014==t.result.errCode?(wx.hideLoading(),wx.showModal({content:"系统检测所提交的文本含有违规用词，请修改后再提交",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){},fail:function(t){console.log(t)}})):(wx.showToast({title:"完成添加",icon:"success",duration:1500}),wx.showModal({showCancel:!1,title:"导入完成",content:"如暂未显示所有参赛者请稍后下拉刷新",confirmColor:"#FF5A5F",confirmText:"好的",success:function(t){e.data.programs=[],e.getPrograms()},fail:function(t){console.log(t)}})),wx.cloud.deleteFile({fileList:[a]}).then((function(t){}))}))})).catch((function(t){}))}else wx.showToast({title:"不是Excel文件",icon:"none",duration:1500})}}):"example"==e.data.competition._id?wx.showToast({title:"比赛示例不能添加参赛者",icon:"none",duration:2e3}):e.setData({contactServiceView:!0}))},fail:function(t){console.log(t)}})},onShareAppMessage:function(){return{title:"邀请你填写参赛信息@"+this.data.competition.title,path:"/pages/competition/programs/programs?add=true&id="+this.data.competition._id,imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/competition/programs/programs.js");
 		__wxRoute = 'pages/competition/judge/judge';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/judge/judge.js';	define("pages/competition/judge/judge.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../49539051658710DF2F35F8564970FAA0.js"),t=getApp(),o=wx.cloud.database(),a=(o.command,o.command.aggregate);Page({data:{tabs:["待评分","已评分"],active:0,navigateToPage:"",userInfo:"",competition:"",programs:[],loadmore:"",hideJudgedPrograms:!1,submitedScore:!1,orderBy:"index"},onLoad:function(e){var a=this;wx.hideShareMenu(),this.data.id=e.id,"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=t.globalData.openid&&o.collection("behaviors").add({data:{createTime:o.serverDate(),competition_id:e.id,type:"visit",role:"jury",page:"judge"}}),wx.showLoading({title:"正在加载",mask:!0}),o.collection("users").where({_openid:t.globalData.openid}).field({_id:!0,realName:!0,authorized:!0}).get().then((function(o){a.setData({userInfo:o.data[0],userOpenid:t.globalData.openid}),t.globalData.authorized=o.data[0].authorized,a.getCompetition(e)})).catch((function(e){console.log(e)}))},onShow:function(e){if("submitScore"==this.data.navigateToPage&&(this.getPrograms(),this.setData({submitedScore:this.data.submitedScore}),this.data.navigateToPage="",this.data.competition.rule.scoringItems))for(var t=0;t<this.data.competition.rule.scoringItems.length;t++)this.data.competition.rule.scoringItems[t].oldScore=""},onChangeTabs:function(e){this.setData({active:e.detail.index,programs:this.data.programs})},editRealName:function(e){var t=this.data.userInfo;t.realName="",this.setData({userInfo:t})},bindinputRealName:function(e){this.data.inputRealName=e.detail.value},inputRealName:function(e){var t=this;wx.showLoading({title:"正在提交",mask:!0});var a=this.data.inputRealName,i=this.data.userInfo;a?wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(a)}}).then((function(e){87014==e.result.errCode?(wx.hideLoading(),wx.showModal({content:"系统检测所提交的文本含有违规用词，请修改后再提交",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){},fail:function(e){console.log(e)}})):o.collection("users").doc(i._id).update({data:{realName:a}}).then((function(e){wx.showToast({title:"已提交",icon:"success",duration:1500}),i.realName=a,t.setData({userInfo:i})})).catch((function(e){console.log(e)}))})):a||wx.showToast({title:"请输入姓名后提交",icon:"none",duration:2e3})},getCompetition:function(t){var a=this;o.collection("competitions").doc(this.data.id).field({title:!0,poster:!0,rule:!0,startTime:!0,juries:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,status:!0,workers:!0,rechargeable:!0,settings:!0,posterSize:!0}).get().then((function(t){var o=t.data;"已删除"==o.status||"已关闭"==o.status?(wx.hideLoading(),wx.showModal({content:"主办方"+o.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}})):(o.startTime=e.formatTime("short",o.startTime),a.setData({competition:o}),a.getPrograms())})).catch((function(t){e.competitionNoExistShowModal(t.errCode)}))},getPrograms:function(){var e=this;o.collection("programs").aggregate().match({competition_id:this.data.id}).group({_id:null,programs:a.addToSet({_id:"$_id",competition_id:"$competition_id",index:"$index",note:"$note",scores:"$scores",title:"$title",judging:"$judging",image:"$image",averageScore:"$averageScore",comments:"$comments",skipJuries:"$skipJuries"})}).end().then((function(o){var a=o.list.length>=1?o.list[0].programs:[];a.sort((function(e,t){return e.index-t.index})),wx.hideLoading(),wx.stopPullDownRefresh();for(var i=0;i<a.length;i++){if(a[i].judged=!1,a[i].judgedScore=0,a[i].scores&&a[i].scores.length>=1)for(var r=0;r<a[i].scores.length;r++)a[i].scores[r]._openid==t.globalData.openid&&(a[i].judged=!0,a[i].hideJudgedProgram=e.data.hideJudgedPrograms,a[i].judgedScore=a[i].scores[r].score,e.data.submitedScore=!0);if(a[i].comments&&a[i].comments.length>=1)for(var s=0;s<a[i].comments.length;s++)a[i].comments[s]._openid==t.globalData.openid&&(a[i].comment=a[i].comments[s].comment);e.data.hideJudgedPrograms&&!a[i].judging&&(a[i].hideJudgedProgram=!0),a[i].skipJuries&&a[i].skipJuries.indexOf(t.globalData.openid)>=0?a[i].skipJudge=!0:a[i].skipJudge=!1}0==a.length?e.setData({loadmore:"主办方暂未添加参赛者"}):e.setData({programs:a,loadmore:"全部加载",hideJudgedPrograms:e.data.hideJudgedPrograms})})).catch((function(e){console.error(e)}))},navSubmitScorePage:function(e){var o=this.data.competition,a=this.data.userInfo;if(t.globalData.authorized||o.settings&&o.settings.unAuthorizeJury)if(!o.rule.realName||o.rule.realName&&a.realName){var i=e.currentTarget.dataset.program;o.settings&&o.settings.submitScoreV2?wx.navigateTo({url:"/pages/competition/judge/submitScoreV2/submitScoreV2",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{program:i,competition:o})}}):wx.navigateTo({url:"/pages/competition/judge/submitScore/submitScore",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{program:i,competition:o})}})}else wx.showModal({content:"主办方已开启实名制评分，请先输入姓名再开始评分",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"好的",success:function(e){}});else wx.showModal({content:"授权微信登录后方可进行评分",cancelColor:"#484848",cancelText:"以后再说",confirmColor:"#FF5A5F",confirmText:"去登录",success:function(e){e.confirm&&wx.navigateTo({url:"/pages/more/authorize/authorize?page=judge"})}})},editScore:function(e){for(var o=this.data.programs,a=this.data.competition,i=e.currentTarget.dataset.program,r=e.currentTarget.dataset.idx,s=0;s<o[r].scores.length;s++)if(o[r].scores[s]._openid==t.globalData.openid){for(var n=0;n<a.rule.scoringItems.length;n++)a.rule.scoringItems[n].oldScore=o[r].scores[s].scoresDetails[n];break}a.settings&&a.settings.submitScoreV2?wx.navigateTo({url:"/pages/competition/judge/submitScoreV2/submitScoreV2",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{program:i,competition:a})}}):wx.navigateTo({url:"/pages/competition/judge/submitScore/submitScore",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{program:i,competition:a})}})},deleteScore:function(e){var o=this.data.competition,a=e.currentTarget.dataset.program,i=this;o.settings&&o.settings.submitScoreV2&&wx.showModal({title:"删除该选手的已评分数吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"program",data:{program:{_id:a._id,competition_id:o._id},juryOpenid:t.globalData.openid,operation:"deleteScore"}}).then((function(e){wx.hideLoading(),wx.showToast({title:"删除分数",icon:"success",duration:1e3}),i.getPrograms()})))}})},refresh:function(){wx.showLoading({title:"正在刷新",mask:!0}),this.data.programs=[];this.getCompetition({})},onPullDownRefresh:function(){this.data.programs=[];this.getCompetition({})},showAllPrograms:function(){wx.showLoading({title:"正在刷新",mask:!0}),this.data.hideJudgedPrograms=!1,this.data.programs=[],this.getPrograms()},hideJudgedPrograms:function(){wx.showLoading({title:"正在刷新",mask:!0}),this.data.hideJudgedPrograms=!0,this.data.programs=[],this.getPrograms()},changeOrderBy:function(e){wx.showLoading({title:"切换排序",mask:!0});var t=this.data.programs;switch(this.data.orderBy){case"index":this.data.orderBy="judgedScore";for(var o=!1,a=0;a<t.length;a++){t[a].judged&&(o=!0);break}o?(t.sort((function(e,t){return t.judgedScore-e.judgedScore})),wx.hideLoading(),wx.showToast({title:"已切换",icon:"success",duration:750}),this.setData({programs:t,orderBy:this.data.orderBy})):(this.data.orderBy="index",wx.showToast({title:"您尚未提交分数",icon:"none",duration:1500}));break;case"judgedScore":this.data.orderBy="index",t.sort((function(e,t){return e.index-t.index})),wx.hideLoading(),wx.showToast({title:"已切换",icon:"success",duration:750}),this.setData({programs:t,orderBy:this.data.orderBy})}},previewImage:function(e){console.log(e);var t=e.currentTarget.dataset.image;wx.previewImage({current:t,urls:[t]})}}); 
 			}); 	require("pages/competition/judge/judge.js");
 		__wxRoute = 'pages/competition/judge/submitScore/submitScore';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/judge/submitScore/submitScore.js';	define("pages/competition/judge/submitScore/submitScore.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=getApp(),e=wx.cloud.database(),o=e.command;e.command.aggregate;Page({data:{program:{},competition:{},submittingScore:!1,inputtingScore:"",inputtingScoringItemsScoreTotal:0},onLoad:function(t){var e=this;e.getOpenerEventChannel().on("acceptDataFromOpenerPage",(function(t){if(t.competition.rule.scoringItems&&t.competition.rule.scoringItems.length>0)for(var o=0;o<t.competition.rule.scoringItems.length;o++)t.competition.rule.scoringItems[o].inputtingScore=t.competition.rule.scoringItems[o].oldScore>=0?t.competition.rule.scoringItems[o].oldScore:"";e.setData({program:t.program,competition:t.competition})}));var o=getCurrentPages();o[o.length-2].data.navigateToPage="submitScore",wx.hideShareMenu()},inputtingScore:function(t){var e=t.target.dataset.type,o=t.detail.value,n=0;n="slider"==e?parseFloat(o.toFixed(1)):o>=0?o:0,this.setData({inputtingScore:n})},inputtingScoringItemsScore:function(t){var e=t.target.dataset.index,o=t.target.dataset.type,n=t.detail.value;this.data.competition.rule.scoringItems[e].inputtingScore="slider"==o?parseFloat(n.toFixed(1)):n>=0?n:0;for(var i=this.data.competition.rule.scoringItems,a=0,c=0;c<i.length;c++)i[c].inputtingScore>0&&(a+=i[c].inputtingScore*i[c].weight);this.setData({inputtingScoringItemsScoreTotal:a,competition:this.data.competition})},submitScore:function(n){var i=this;if(i.data.submittingScore)wx.showToast({title:"正在提交成绩",icon:"none",duration:750});else{i.data.submittingScore=!0,wx.showLoading({title:"校验成绩",mask:!0});var a="";n.detail.value.comment&&(a={comment:n.detail.value.comment,_openid:t.globalData.openid});var c=i.data.competition,r=i.data.program,s=getCurrentPages(),l=s[s.length-2],d=0,u=[],g=!0;if(c.rule.scoringItems&&c.rule.scoringItems.length>0){for(var m=n.detail.value,p=0;p<c.rule.scoringItems.length;p++){var h=parseFloat(m["input"+p]);if(d+=h*c.rule.scoringItems[p].weight,u.push(parseFloat(h.toFixed(5))),!m["input"+p]){wx.showToast({title:"请输入第"+(p+1)+"项得分",icon:"none",duration:2e3}),g=!1;break}if(m["input"+p]<0){wx.showToast({title:"第"+(p+1)+"项得分不能小于0",icon:"none",duration:2e3}),g=!1;break}if(m["input"+p]>c.rule.scoringItems[p].fullScore){wx.showToast({title:"第"+(p+1)+"项超出该项最高分",icon:"none",duration:2e3}),g=!1;break}}d<c.rule.lowestScore&&(wx.showToast({title:"小于最低分("+c.rule.lowestScore+"分)",icon:"none",duration:2e3}),g=!1)}else d=parseFloat(n.detail.value.score),isNaN(d)||null==d?(wx.showToast({title:"请先输入得分再提交",icon:"none",duration:2e3}),g=!1):d<c.rule.lowestScore?(wx.showToast({title:"小于最低分("+c.rule.lowestScore+"分)",icon:"none",duration:2e3}),g=!1):d>c.rule.fullScore&&(wx.showToast({title:"超过最高分("+c.rule.fullScore+"分)",icon:"none",duration:2e3}),g=!1);var w={};g?(d=parseFloat(d.toFixed(5)),w=c.rule.scoringItems&&c.rule.scoringItems.length>0?{score:d,scoresDetails:u,_openid:t.globalData.openid}:{score:d,_openid:t.globalData.openid},e.collection("competitions").doc(c._id).field({title:!0,poster:!0,rule:!0,startTime:!0,juries:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,status:!0,workers:!0,rechargeable:!0}).get().then((function(n){"已关闭"==(c=n.data).status||"已删除"==c.status?(wx.showToast({title:"主办方"+c.status+"比赛",icon:"none",duration:1500}),i.data.submittingScore=!1):e.collection("programs").doc(r._id).get().then((function(n){if(n.data.judging&&-1==JSON.stringify(n.data.scores).indexOf(t.globalData.openid)){wx.hideLoading();var s="得分"+d+"分";wx.showModal({title:s,content:c.rule.allowJuryEditScore?"确认提交分数吗？":"分数提交后无法修改，确认提交吗？",confirmColor:"#FF5A5F",confirmText:"确认提交",cancelColor:"#484848",cancelText:"取消",success:function(n){n.confirm?e.collection("competitions").where({_id:i.data.id,juries:t.globalData.openid}).count().then((function(t){0==t.total?wx.showModal({content:"系统检测到你不是该比赛的评委，请联系工作人员重新邀请成为评委。",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}}):(wx.showLoading({title:"正在提交",mask:!0}),e.collection("programs").doc(r._id).update({data:{scores:o.addToSet(w)}}).then((function(t){wx.hideLoading(),wx.showToast({title:"提交成绩",icon:"success",duration:1500}),i.data.submittingScore=!1,a.comment&&wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(a.comment)}}).then((function(t){87014==t.result.errCode||e.collection("programs").doc(r._id).update({data:{comments:o.addToSet(a)}}).then((function(t){console.log("comment_addToSet",t)}))})),l.data.submitedScore=!0,wx.cloud.callFunction({name:"behavior",data:{competition_id:i.data.program.competition_id,behavior:"27评委评分"}}).then((function(t){})),setTimeout((function(){wx.navigateBack({delta:1})}),1e3)})))})).catch((function(t){console.error(t)})):n.cancel&&(i.data.submittingScore=!1)},fail:function(t){console.log(t)}})}else if(n.data.judging)if(JSON.stringify(n.data.scores).indexOf(t.globalData.openid)>=0)if(c.rule.allowJuryEditScore){wx.hideLoading();var u="得分"+d+"分";wx.showModal({title:u,content:"确认提交分数吗？",confirmColor:"#FF5A5F",confirmText:"确认提交",cancelColor:"#484848",cancelText:"取消",success:function(n){n.confirm?e.collection("competitions").where({_id:i.data.id,juries:t.globalData.openid}).count().then((function(n){0==n.total?wx.showModal({content:"系统检测到你不是该比赛的评委，请联系工作人员重新邀请成为评委。",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}}):(wx.showLoading({title:"正在提交",mask:!0}),e.collection("programs").doc(r._id).update({data:{scores:o.pull({_openid:o.eq(t.globalData.openid)}),comments:o.pull({_openid:o.eq(t.globalData.openid)})}}).then((function(t){e.collection("programs").doc(r._id).update({data:{scores:o.addToSet(w)}}).then((function(t){wx.hideLoading(),wx.showToast({title:"提交成绩",icon:"success",duration:1500}),i.data.submittingScore=!1,a.comment&&wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(a.comment)}}).then((function(t){87014==t.result.errCode||e.collection("programs").doc(r._id).update({data:{comments:o.addToSet(a)}}).then((function(t){console.log("comment_addToSet",t)}))}));for(var n=0;n<c.rule.scoringItems.length;n++)c.rule.scoringItems[n].inputtingScore="";l.data.submitedScore=!0,wx.cloud.callFunction({name:"behavior",data:{competition_id:i.data.program.competition_id,behavior:"27评委评分"}}).then((function(t){})),setTimeout((function(){wx.navigateBack({delta:1})}),1e3)}))})))})).catch((function(t){console.error(t)})):n.cancel&&(i.data.submittingScore=!1)},fail:function(t){console.log(t)}})}else wx.showToast({title:"已提交过成绩",icon:"none",duration:1500}),i.data.submittingScore=!1;else wx.showToast({title:"刷新后重试",icon:"none",duration:1500}),i.data.submittingScore=!1;else wx.showToast({title:"主办方已暂停该参赛者的评分",icon:"none",duration:2e3}),i.data.submittingScore=!1}))}))):i.data.submittingScore=!1}},previewImage:function(t){console.log(t);var e=t.currentTarget.dataset.image;wx.previewImage({current:e,urls:[e]})}}); 
 			}); 	require("pages/competition/judge/submitScore/submitScore.js");
 		__wxRoute = 'pages/competition/judge/submitScoreV2/submitScoreV2';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/judge/submitScoreV2/submitScoreV2.js';	define("pages/competition/judge/submitScoreV2/submitScoreV2.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=getApp(),e=wx.cloud.database(),o=e.command;e.command.aggregate;Page({data:{program:{},competition:{},submittingScore:!1,inputtedScore:0},onLoad:function(t){wx.showLoading({title:"正在加载",mask:!0});var e=this;e.getOpenerEventChannel().on("acceptDataFromOpenerPage",(function(t){var o=t.competition;wx.cloud.callFunction({name:"getInputtedScoreTotal",data:{competition_id:o._id}}).then((function(n){wx.hideLoading(),o.settings.submitScoreV2Inputted=n.result.submitScoreV2Inputted,e.setData({program:t.program,competition:o})}))}));var o=getCurrentPages();o[o.length-2].data.navigateToPage="submitScore",wx.hideShareMenu()},submitScore:function(n){var a=this;if(a.data.submittingScore)wx.showToast({title:"正在提交成绩",icon:"none",duration:750});else{a.data.submittingScore=!0,wx.showLoading({title:"校验成绩",mask:!0});var i="";n.detail.value.comment&&(i={comment:n.detail.value.comment,_openid:t.globalData.openid});var c=a.data.competition,r=a.data.program,l=getCurrentPages(),s=l[l.length-2],d=0,u=[],m=!0;if(c.rule.scoringItems&&c.rule.scoringItems.length>0){for(var g=n.detail.value,w=0;w<c.rule.scoringItems.length;w++){var h=parseFloat(g["input"+w]);if(d+=h*c.rule.scoringItems[w].weight,u.push(parseFloat(h.toFixed(5))),!g["input"+w]){wx.showToast({title:"请输入第"+(w+1)+"项得分",icon:"none",duration:2e3}),m=!1;break}if(g["input"+w]<0){wx.showToast({title:"第"+(w+1)+"项得分不能小于0",icon:"none",duration:2e3}),m=!1;break}if(g["input"+w]>c.rule.scoringItems[w].fullScore){wx.showToast({title:"第"+(w+1)+"项超出该项最高分",icon:"none",duration:2e3}),m=!1;break}}d<c.rule.lowestScore&&(wx.showToast({title:"小于最低分("+c.rule.lowestScore+"分)",icon:"none",duration:2e3}),m=!1)}else d=parseFloat(n.detail.value.score),isNaN(d)||null==d?(wx.showToast({title:"请先输入得分再提交",icon:"none",duration:2e3}),m=!1):d<c.rule.lowestScore?(wx.showToast({title:"小于最低分("+c.rule.lowestScore+"分)",icon:"none",duration:2e3}),m=!1):d>c.rule.fullScore&&(wx.showToast({title:"超过最高分("+c.rule.fullScore+"分)",icon:"none",duration:2e3}),m=!1);var p={};m?(d=parseFloat(d.toFixed(5)),p=c.rule.scoringItems&&c.rule.scoringItems.length>0?{score:d,scoresDetails:u,_openid:t.globalData.openid}:{score:d,_openid:t.globalData.openid},e.collection("competitions").doc(c._id).field({title:!0,poster:!0,rule:!0,startTime:!0,juries:!0,site:!0,sponsor:!0,organizer:!0,tags:!0,status:!0,workers:!0,rechargeable:!0}).get().then((function(n){"已关闭"==(c=n.data).status||"已删除"==c.status?(wx.showToast({title:"主办方"+c.status+"比赛",icon:"none",duration:1500}),a.data.submittingScore=!1):e.collection("programs").doc(r._id).get().then((function(n){if(n.data.judging&&-1==JSON.stringify(n.data.scores).indexOf(t.globalData.openid)){wx.hideLoading();var l=d<.5*c.rule.fullScore?"得分"+d+"分(可能偏低)":"得分"+d+"分";wx.showModal({title:l,content:c.rule.allowJuryEditScore?"确认提交分数吗？":"分数提交后无法修改，确认提交吗？",confirmColor:"#FF5A5F",confirmText:"确认提交",cancelColor:"#484848",cancelText:"取消",success:function(n){n.confirm?e.collection("competitions").where({_id:a.data.id,juries:t.globalData.openid}).count().then((function(t){0==t.total?wx.showModal({content:"系统检测到你不是该比赛的评委，请联系工作人员重新邀请成为评委。",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}}):(wx.showLoading({title:"正在提交",mask:!0}),e.collection("programs").doc(r._id).update({data:{scores:o.addToSet(p)}}).then((function(t){wx.hideLoading(),wx.showToast({title:"提交成绩",icon:"success",duration:1500}),a.data.submittingScore=!1,i.comment&&wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(i.comment)}}).then((function(t){87014==t.result.errCode||e.collection("programs").doc(r._id).update({data:{comments:o.addToSet(i)}}).then((function(t){console.log("comment_addToSet",t)}))})),s.data.submitedScore=!0,wx.cloud.callFunction({name:"behavior",data:{competition_id:a.data.program.competition_id,behavior:"27评委评分"}}).then((function(t){})),setTimeout((function(){wx.navigateBack({delta:1})}),1e3)})))})).catch((function(t){console.error(t)})):n.cancel&&(a.data.submittingScore=!1)},fail:function(t){console.log(t)}})}else if(n.data.judging)if(JSON.stringify(n.data.scores).indexOf(t.globalData.openid)>=0)if(c.rule.allowJuryEditScore){wx.hideLoading();var u=d<.5*c.rule.fullScore?"得分"+d+"分(请确认分数!!!)":"得分"+d+"分";wx.showModal({title:u,content:"确认提交分数吗？",confirmColor:"#FF5A5F",confirmText:"确认提交",cancelColor:"#484848",cancelText:"取消",success:function(n){n.confirm?e.collection("competitions").where({_id:a.data.id,juries:t.globalData.openid}).count().then((function(n){0==n.total?wx.showModal({content:"系统检测到你不是该比赛的评委，请联系工作人员重新邀请成为评委。",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}}):(wx.showLoading({title:"正在提交",mask:!0}),e.collection("programs").doc(r._id).update({data:{scores:o.pull({_openid:o.eq(t.globalData.openid)}),comments:o.pull({_openid:o.eq(t.globalData.openid)})}}).then((function(t){e.collection("programs").doc(r._id).update({data:{scores:o.addToSet(p)}}).then((function(t){wx.hideLoading(),wx.showToast({title:"提交成绩",icon:"success",duration:1500}),a.data.submittingScore=!1,i.comment&&wx.cloud.callFunction({name:"textSecCheck",data:{text:JSON.stringify(i.comment)}}).then((function(t){87014==t.result.errCode||e.collection("programs").doc(r._id).update({data:{comments:o.addToSet(i)}}).then((function(t){console.log("comment_addToSet",t)}))}));for(var n=0;n<c.rule.scoringItems.length;n++)c.rule.scoringItems[n].oldScore="";s.data.submitedScore=!0,wx.cloud.callFunction({name:"behavior",data:{competition_id:a.data.program.competition_id,behavior:"27评委评分"}}).then((function(t){})),setTimeout((function(){wx.navigateBack({delta:1})}),1e3)}))})))})).catch((function(t){console.error(t)})):n.cancel&&(a.data.submittingScore=!1)},fail:function(t){console.log(t)}})}else wx.showToast({title:"已提交过成绩",icon:"none",duration:1500}),a.data.submittingScore=!1;else wx.showToast({title:"刷新后重试",icon:"none",duration:1500}),a.data.submittingScore=!1;else wx.showToast({title:"主办方已暂停该参赛者的评分",icon:"none",duration:2e3}),a.data.submittingScore=!1}))}))):a.data.submittingScore=!1}},previewImage:function(t){console.log(t);var e=t.currentTarget.dataset.image;wx.previewImage({current:e,urls:[e]})},radioChange:function(t){this.setData({inputtedScore:parseInt(t.detail.value)})}}); 
 			}); 	require("pages/competition/judge/submitScoreV2/submitScoreV2.js");
 		__wxRoute = 'pages/competition/rules/rules';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/rules/rules.js';	define("pages/competition/rules/rules.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),i=wx.cloud.database(),o=i.command,a=i.command.aggregate;Page({data:{competition:"",inputScoringItem:!1,buttonText:"",contactServiceView:!1,config_rechargeable:!1,user_vip:!1,idxEditedScoringItem:-1,updatedJuriesGroups:!1},onLoad:function(t){var a=this;this.data.id=t.id,wx.showLoading({title:"正在加载",mask:!0}),this.getCompetition(t.id),wx.hideShareMenu(),i.collection("_config").doc("config").field({rechargeable:!0}).get().then((function(t){a.data.config_rechargeable=t.data.rechargeable})).catch((function(t){console.error(t)})),i.collection("users").where({_openid:e.globalData.openid,vipExpiryTime:o.gt(i.serverDate())}).count().then((function(t){1==t.total&&(a.data.user_vip=!0)})).catch((function(t){console.log(t)}));this.setData({weightExamples:[{title:"评分项计算示例一",scoringItems:[{title:"评分项1",fullScore:30,weight:1},{title:"评分项2",fullScore:70,weight:1}],note:"每位参赛者满分100分，某评委提交时分别输入25和60，则该评委提交的分数为25*1+60*1=85分"},{title:"评分项计算示例二",scoringItems:[{title:"评分项1",fullScore:100,weight:.3},{title:"评分项2",fullScore:100,weight:.7}],note:"每位参赛者满分100分，某评委提交时分别输入80和90，则该评委提交的分数为80*0.3+90*0.7=87分"},{title:"评分项计算示例三",scoringItems:[{title:"第1轮或初赛节目",fullScore:100,weight:.4},{title:"第2轮或决赛节目",fullScore:100,weight:.6}],note:"比赛分为两轮或者初赛和决赛，每位参赛者满分100分，某评委提交时分别输入80和90，则该评委提交的分数为80*0.4+90*0.6=86分"}]})},onShow:function(){this.data.updatedJuriesGroups&&(this.setData({competition:this.data.competition}),this.data.updatedJuriesGroups=!1)},getCompetition:function(e){var o=this;i.collection("competitions").doc(e).field({title:!0,rule:!0,workers:!0,rechargeable:!0,juriesGroups:!0,proExpiryTime:!0}).get().then((function(t){wx.hideLoading(),wx.stopPullDownRefresh();var e=t.data,i=new Date;e.proExpiryTime&&(e.rechargeable=new Date(e.proExpiryTime)>i),e.rule.scoringItems||(e.rule.scoringItems=[]),o.setData({competition:e})})).catch((function(e){t.competitionNoExistShowModal(e.errCode)}))},formSubmit:function(t){},formReset:function(){},inputFullScore:function(t){this.data.competition.rule.scoringItems&&this.data.competition.rule.scoringItems.length>0?wx.showToast({title:"满分值根据评分项系统自动计算",icon:"none",duration:3e3}):(this.data.competition.rule.fullScore=t.detail.value,this.setData({buttonText:"保存设置"}))},inputLowestScore:function(t){var e=t.detail.value;e>=0?(this.data.competition.rule.lowestScore=e,this.setData({buttonText:"保存设置",competition:this.data.competition})):isNaN(e)||wx.showToast({title:"最低分须大于等于0",icon:"none",duration:2e3})},inputDecimalPlaces:function(t){var e=parseInt(t.detail.value);e>=0&&e<=5?(this.data.competition.rule.decimalPlaces=e,this.setData({buttonText:"保存设置"})):isNaN(e)||wx.showToast({title:"小数点位数范围0-5位",icon:"none",duration:3e3})},inputTopScoresExcludedTotal:function(t){var e=parseInt(t.detail.value);e>=0?(this.data.competition.rule.topScoresExcludedTotal=e,this.setData({buttonText:"保存设置"})):isNaN(e)||wx.showToast({title:"个数至少为0(为0时不去掉最高分)",icon:"none",duration:3e3})},inputLowestScoresExcludedTotal:function(t){var e=parseInt(t.detail.value);e>=0?(this.data.competition.rule.lowestScoresExcludedTotal=e,this.setData({buttonText:"保存设置"})):isNaN(e)||wx.showToast({title:"个数至少为0(为0时不去掉最低分)",icon:"none",duration:3e3})},switchChangeRealName:function(t){var e=this;i.collection("programs").aggregate().match({competition_id:this.data.competition._id}).group({_id:"$competition_id",scoresTotal:a.sum(a.size("$scores"))}).project({_id:1,scoresTotal:1}).end().then((function(i){(i.list.length>=1?i.list[0].scoresTotal:0)>0&&!e.data.competition.rule.realName?(e.data.competition.rule.realName=!1,e.setData({competition:e.data.competition}),wx.showModal({title:"系统提示",content:"匿名评过分后不能开启实名制，须先删除所有参赛者的分数，操作：查看实时成绩-更多操作-删除所有已评分数",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"知道了",success:function(t){}})):e.data.competition.rechargeable||e.data.config_rechargeable||e.data.user_vip?(e.data.competition.rule.realName=t.detail.value,e.setData({buttonText:"保存设置"})):e.setData({contactServiceView:!0,competition:e.data.competition})}))},switchChangeAnonymousProgramInfo:function(t){this.data.competition.rechargeable||this.data.config_rechargeable||this.data.user_vip?(this.data.competition.rule.anonymousProgramInfo=t.detail.value,this.setData({buttonText:"保存设置"})):this.setData({contactServiceView:!0,competition:this.data.competition})},switchChangeAllowJuryEditScore:function(t){this.data.competition.rule.allowJuryEditScore=t.detail.value,this.setData({buttonText:"保存设置"})},inputScoringRubic:function(t){this.data.competition.rule.scoringRubic=t.detail.value,this.setData({buttonText:"保存设置"})},inputScoringItem:function(t){this.data.competition.rechargeable||this.data.competition.rule.scoringItems.length<2||this.data.config_rechargeable||this.data.user_vip?this.setData({inputScoringItem:!this.data.inputScoringItem}):this.setData({contactServiceView:!0})},hideInputScoringItem:function(t){this.setData({scoringItem:{},inputScoringItem:!1,idxEditedScoringItem:-1})},clearScoringItem:function(t){this.setData({scoringItem:{}})},inputScoringItemFormSubmit:function(t){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例不支持添加评分项",icon:"none",duration:3e3});else{var e={title:t.detail.value.title,fullScore:parseFloat(t.detail.value.fullScore),weight:parseFloat(t.detail.value.weight)};if(e.title&&e.fullScore>0&&e.weight>=0&&e.weight<=1){this.data.idxEditedScoringItem>=0?this.data.competition.rule.scoringItems[this.data.idxEditedScoringItem]=e:this.data.competition.rule.scoringItems.push(e);for(var i=this.data.competition.rule.scoringItems,o=0,a=0;a<i.length;a++)o+=i[a].fullScore*i[a].weight;this.data.competition.rule.fullScore=o,this.setData({competition:this.data.competition,scoringItem:{},inputScoringItem:!1,idxEditedScoringItem:-1,buttonText:"保存设置"}),wx.showToast({title:"记得保存设置哦",icon:"none",duration:1500})}else e.title?e.fullScore?e.weight?e.fullScore<0?wx.showToast({title:"评分项满分值应该大于0",icon:"none",duration:2500}):(e.weight<0||e.weight>1)&&wx.showToast({title:"评分项权重为0-1的数",icon:"none",duration:2500}):wx.showToast({title:"输入评分项权重",icon:"none",duration:2e3}):wx.showToast({title:"输入评分项满分值",icon:"none",duration:2e3}):wx.showToast({title:"输入评分项名称",icon:"none",duration:2e3})}},deleteScoringItem:function(t){if(this.data.competition.workers.indexOf(e.globalData.openid)>=0)if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能编辑或删除",icon:"none",duration:2e3});else{var i=t.currentTarget.dataset.index,o=this;wx.showActionSheet({itemList:["编辑","删除"],itemColor:"#767676",success:function(t){switch(t.tapIndex){case 0:wx.showModal({content:"比赛开始后更改评分项的满分值或权重，评委已提交分数无法同步更新，需在查看实时成绩中删除分数后评委重新提交。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"知道了",success:function(t){t.confirm&&o.setData({scoringItem:o.data.competition.rule.scoringItems[i],inputScoringItem:!0,idxEditedScoringItem:i})}});break;case 1:o.data.competition.rule.scoringItems.splice(i,1);var e=o.data.competition.rule.scoringItems,a=0;if(e.length>0)for(var n=0;n<e.length;n++)a+=e[n].fullScore*e[n].weight;else a=100;o.data.competition.rule.fullScore=a,o.setData({competition:o.data.competition,buttonText:"保存设置"}),wx.showToast({title:"记得保存设置哦",icon:"none",duration:1500})}}})}else wx.showToast({title:"仅工作人员有权限编辑",icon:"none",duration:2500})},updateRule:function(){var t=this;if("example"==this.data.competition._id)wx.showToast({title:"比赛示例不支持设置评分规则",icon:"none",duration:2e3});else{var e={_id:this.data.competition._id,rule:{scoringRubic:this.data.competition.rule.scoringRubic,fullScore:this.data.competition.rule.fullScore,realName:this.data.competition.rule.realName,lowestScore:this.data.competition.rule.lowestScore>0?this.data.competition.rule.lowestScore:0,decimalPlaces:this.data.competition.rule.decimalPlaces,scoringItems:this.data.competition.rule.scoringItems,lowestScoresExcludedTotal:this.data.competition.rule.lowestScoresExcludedTotal,topScoresExcludedTotal:this.data.competition.rule.topScoresExcludedTotal,showScoringItemsForJury:this.data.competition.rule.showScoringItemsForJury,allowJuryEditScore:this.data.competition.rule.allowJuryEditScore,anonymousProgramInfo:this.data.competition.rule.anonymousProgramInfo}};e.rule.fullScore>0&&e.rule.fullScore>e.rule.lowestScore&&e.rule.decimalPlaces>=0&&e.rule.decimalPlaces<=5&&e.rule.lowestScoresExcludedTotal>=0&&e.rule.topScoresExcludedTotal>=0?(wx.showLoading({title:"更新评分规则",mask:!0}),wx.cloud.callFunction({name:"competition",data:{competition:e,operation:"update"}}).then((function(i){wx.hideLoading(),wx.showToast({title:"更新成功",icon:"success",duration:2500}),t.setData({buttonText:""}),wx.cloud.callFunction({name:"behavior",data:{competition_id:e._id,behavior:"17设置规则"}}).then((function(t){}))}))):!e.rule.fullScore||e.rule.fullScore<0?wx.showToast({title:"满分值须大于0",icon:"none",duration:2e3}):e.rule.fullScore<=e.rule.lowestScore?wx.showToast({title:"满分值须大于最低分",icon:"none",duration:2e3}):e.rule.decimalPlaces<0||e.rule.decimalPlaces>5?wx.showToast({title:"小数点位数范围0-5位",icon:"none",duration:2e3}):e.rule.lowestScoresExcludedTotal<0?wx.showToast({title:"去掉最低分个数至少为0(为0时不去掉最低分)",icon:"none",duration:2e3}):e.rule.topScoresExcludedTotal<0&&wx.showToast({title:"去掉最高分个数至少为0(为0时不去掉最高分)",icon:"none",duration:2e3})}},navToJuriesGroups:function(){wx.navigateTo({url:"/pages/competition/inviteJury/juriesGroups/juriesGroups?id="+this.data.competition._id})},onPullDownRefresh:function(){this.getCompetition(this.data.competition._id)},hideContactService:function(t){this.setData({contactServiceView:!1})},contactService:function(t){i.collection("behaviors").add({data:{createTime:i.serverDate(),competition_id:this.data.competition._id,competition_title:this.data.competition.title,type:"contactService",page:"rules"}}).then((function(t){})).catch(console.error),this.setData({contactServiceView:!1})}}); 
 			}); 	require("pages/competition/rules/rules.js");
 		__wxRoute = 'pages/competition/inviteJury/inviteJury';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/inviteJury/inviteJury.js';	define("pages/competition/inviteJury/inviteJury.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),o=wx.cloud.database(),i=(o.command,o.command.aggregate);Page({data:{competition:"",inviteJuryWxacodePath:"",juries:"",watcherCompetition:"",updatedJuriesGroups:!1},onLoad:function(i){var a=this;this.data.competition_id=i.id;var n=this;wx.showLoading({title:"加载评分码"}),o.collection("competitions").doc(i.id).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,status:!0,rechargeable:!0,rule:!0,juries:!0,workers:!0,juriesGroups:!0,inviteJuryWxacode:!0,posterSize:!0}).get().then((function(o){var c=o.data;c.startTime=t.formatTime("short",c.startTime),a.setData({competition:c,competition_id:c._id}),"已关闭"==c.status?(wx.hideLoading(),wx.hideShareMenu(),wx.showModal({content:"比赛为关闭状态时不能邀请评委，或返回上一页“更多操作-重新开放比赛”后再邀请",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"返回",success:function(t){wx.navigateBack({delta:1})},fail:function(t){console.log(t)}})):(c.inviteJuryWxacode?(n.setData({inviteJuryWxacodePath:c.inviteJuryWxacode,openid:e.globalData.openid}),setTimeout((function(){wx.hideLoading()}),500)):wx.cloud.callFunction({name:"getWxacodeV2",data:{id:i.id,role:"jury"}}).then((function(o){wx.showLoading({title:"即将完成加载"});var a=wx.arrayBufferToBase64(o.result.wxacode.buffer);t.base64src("data:image/jpeg;base64,"+a).then((function(t){n.data.inviteJuryWxacodePath=t,n.setData({inviteJuryWxacodePath:t,openid:e.globalData.openid}),wx.hideLoading(),wx.cloud.uploadFile({cloudPath:"inviteJuryWxacodes/"+i.id+".jpg",filePath:t}).then((function(t){wx.cloud.callFunction({name:"competition",data:{competition:{_id:i.id,inviteJuryWxacode:"cloud://release-bu5dc.7265-release-bu5dc-1301069672/inviteJuryWxacodes/"+i.id+".jpg"},operation:"update"}}).then((function(t){}))}))})).catch((function(t){console.log(t)}))})).catch(console.error),n.getJuries(c.juries))})).catch((function(e){t.competitionNoExistShowModal(e.errCode)})),wx.updateShareMenu({isPrivateMessage:!0})},onShow:function(){this.watcherCompetition(),this.data.updatedJuriesGroups&&(this.setData({competition:this.data.competition}),this.data.updatedJuriesGroups=!1)},watcherCompetition:function(){var t=this;wx.getSystemInfo({success:function(e){var i=e.platform;"windows"!=i&&(t.data.watcherCompetition=o.collection("competitions").doc(t.data.competition_id).watch({onChange:function(e){1==e.docs.length&&"init"!=e.type&&e.docChanges[0].updatedFields.juries&&t.getJuries(e.docs[0].juries)},onError:function(e){setTimeout((function(){t.watcherCompetition()}),1e3),o.collection("_errorsWatcher").add({data:{competition_id:t.data.competition._id,desc:"watcherError",page:"inviteJury",createtime:o.serverDate(),platform:i}}).then((function(t){})).catch(console.error)}}))}})},onHide:function(){this.data.watcherCompetition&&this.data.watcherCompetition.close()},onUnload:function(){this.data.watcherCompetition&&this.data.watcherCompetition.close()},getJuries:function(t){var a=this;o.collection("users").aggregate().addFields({matched:i.in(["$_openid",t])}).match({matched:!0}).group({_id:null,juries:i.addToSet({_openid:"$_openid",avatarUrl:"$avatarUrl",authorized:"$authorized",nickName:"$nickName",realName:"$realName"})}).end().then((function(t){for(var o=t.list.length>=1?t.list[0].juries:[],i=!1,n=0;n<o.length;n++)o[n].authorized||o[n].avatarUrl?o[n].name=o[n].realName?o[n].realName:o[n].nickName?o[n].nickName:"无昵称或未授权微信登录":(o[n].name="无昵称或未授权微信登录",o[n].avatarUrl="/images/user-unlogin.png"),o[n]._openid==e.globalData.openid&&(i=!0);o.sort((function(t,e){return t.name.localeCompare(e.name)})),a.setData({juries:o,myselfIsJury:i})}))},addMyselfAsJury:function(){var t=this;wx.showModal({content:"确认将自己添加为评委吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在添加",mask:!0}),wx.cloud.callFunction({name:"role",data:{competition:{_id:t.data.competition._id},operation:"addRole",role:"jury"}}).then((function(e){wx.hideLoading(),wx.showToast({title:"已添加为评委",icon:"success",duration:2500}),t.setData({myselfIsJury:!0})})))},fail:function(t){console.log(t)}})},switchChangeRefuseNewJury:function(t){var e=this,o=t.detail.value;this.data.competition.rule.refuseNewJury=o,wx.cloud.callFunction({name:"competition",data:{competition:{_id:this.data.competition._id,rule:this.data.competition.rule},operation:"update"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"已更新",icon:"success",duration:1500}),e.setData({competition:e.data.competition})}))},deletejury:function(t){var o=t.currentTarget.dataset.jury,i=this;"example"==i.data.competition._id?wx.showToast({title:"比赛示例不能删除评委",icon:"none",duration:1500}):(this.data.competition.workers.indexOf(e.globalData.openid)>=0||"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==e.globalData.openid)&&wx.showModal({content:"确认删除该评委吗?若该评委在本次比赛中提交过参赛者得分，将同步删除",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"role",data:{competition:{_id:i.data.competition._id,juriesGroups:i.data.competition.juriesGroups},operation:"deleteRole",role:"jury",openidDeleted:o._openid}}).then((function(t){wx.hideLoading(),wx.showToast({title:"删除评委",icon:"success",duration:2e3}),o._openid==e.globalData.openid&&i.setData({myselfIsJury:!1})})))},fail:function(t){console.log(t)}})},previewWXACode:function(){var t=this.data.inviteJuryWxacodePath;wx.previewImage({current:t,urls:[t]})},Addrecord:function(){"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=e.globalData.openid&&o.collection("behaviors").add({data:{createTime:o.serverDate(),type:"navigatoJudge",page:"inviteJury"}})},navToJuriesGroups:function(){wx.navigateTo({url:"/pages/competition/inviteJury/juriesGroups/juriesGroups?id="+this.data.competition._id})},navToJuriesAccounts:function(){wx.navigateTo({url:"/pages/competition/inviteJury/juriesAccounts/juriesAccounts?id="+this.data.competition._id})},savePoster:function(){t.base64src("data:image/jpeg;base64,"+this.data.inviteJuryWxacodePath).then((function(t){var e=t;wx.getSetting({success:function(t){t.authSetting["scope.writePhotosAlbum"]?wx.saveImageToPhotosAlbum({filePath:e,success:function(t){wx.showToast({title:"保存到手机相册",icon:"success",mask:!0})}}):wx.authorize({scope:"scope.writePhotosAlbum",success:function(){wx.saveImageToPhotosAlbum({filePath:e,success:function(t){wx.showToast({title:"保存到手机相册",icon:"success",mask:!0})}})}})}})})).catch((function(t){console.log(t)}))},inviteJuryByGroup:function(t){var e=t.detail.value,i=this.data.competition.juriesGroups,a=this;wx.showModal({content:"分组评委邀请码生成后不能更改分组名称。若更改需重新生成邀请码，否则评委加入后将无法自动分配对应的组别。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){t.confirm&&(wx.showLoading({title:"生成邀请码",mask:!0}),o.collection("juriesGroups").where({competition_id:a.data.competition._id,juriesGroupTitle:i[e].title}).get().then((function(t){t.data&&t.data.length>=1?a.getWxacodeJuryByGroup(t.data[0]._id,i[e].title):o.collection("juriesGroups").add({data:{competition_id:a.data.competition._id,createtime:o.serverDate(),juriesGroupTitle:i[e].title}}).then((function(t){a.getWxacodeJuryByGroup(t._id,i[e].title)})).catch(console.error)})).catch(console.error))},fail:function(t){console.log(t)}})},getWxacodeJuryByGroup:function(e,i){var a=this;wx.cloud.callFunction({name:"getWxacodeV2",data:{id:e,role:"juryByGroup"}}).then((function(e){var o=wx.arrayBufferToBase64(e.result.wxacode.buffer);t.base64src("data:image/jpeg;base64,"+o).then((function(t){a.setData({inviteJuryWxacodePath:t,inviteJuriesGroupTitle:i}),wx.hideLoading(),wx.showToast({title:"更新邀请码",icon:"success",mask:!0})})).catch((function(t){console.log(t)}))})).catch(console.error),o.collection("behaviors").add({data:{createTime:o.serverDate(),type:"inviteJuryByGroup",page:"inviteJury"}}).then((function(t){})).catch(console.error)},onShareAppMessage:function(){return{title:"邀请您担任比赛评委@"+this.data.competition.title,path:"/pages/addRole/jury/jury?scene="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/inviteJury/inviteJury.js");
 		__wxRoute = 'pages/competition/inviteJury/juriesGroups/juriesGroups';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/inviteJury/juriesGroups/juriesGroups.js';	define("pages/competition/inviteJury/juriesGroups/juriesGroups.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";require("../../../../49539051658710DF2F35F8564970FAA0.js");var e=getApp(),t=wx.cloud.database(),i=t.command,a=t.command.aggregate;Page({data:{tabs:["评委分组和权重","待分组的评委"],active:0,competition:"",inputGroup:!1,juriesGroups:[],juriesGroup:{},idxJuriesGroup:-1,isWorker:!1,contactServiceView:!1,config_rechargeable:!1,user_vip:!1},onLoad:function(a){var o=this;this.data.id=a.id,this.getCompetition(),wx.showLoading({title:"正在加载",mask:!0}),t.collection("_config").doc("config").field({rechargeable:!0}).get().then((function(e){o.data.config_rechargeable=e.data.rechargeable})).catch((function(e){console.error(e)})),t.collection("users").where({_openid:e.globalData.openid,vipExpiryTime:i.gt(t.serverDate())}).count().then((function(e){1==e.total&&(o.data.user_vip=!0)})).catch((function(e){console.log(e)})),wx.hideShareMenu()},onChangeTabs:function(e){this.setData({active:e.detail.index}),wx.pageScrollTo({scrollTop:0,duration:300})},getCompetition:function(e){var i=this;t.collection("competitions").doc(this.data.id).field({juriesGroups:!0,workers:!0,juries:!0,rule:!0,rechargeable:!0,title:!0,proExpiryTime:!0}).get().then((function(e){var o=e.data,r=new Date;o.proExpiryTime&&(o.rechargeable=new Date(o.proExpiryTime)>r),i.data.competition=o;var s=o.juriesGroups?o.juriesGroups:[];t.collection("users").aggregate().addFields({matched:a.in(["$_openid",o.juries])}).match({matched:!0}).group({_id:null,juries:a.addToSet({_openid:"$_openid",avatarUrl:"$avatarUrl",authorized:"$authorized",nickName:"$nickName",realName:"$realName"})}).end().then((function(e){for(var t=e.list.length>=1&&"example"!=i.data.id?e.list[0].juries:[],a=0;a<t.length;a++){t[a].name=t[a].realName?t[a].realName:t[a].nickName?t[a].nickName:"无昵称或未授权微信登录";for(var o=0;o<s.length;o++){if(s[o]&&JSON.stringify(s[o].juriesDetails).indexOf(t[a]._openid)>=0){for(var r=0;r<s[o].juriesDetails.length;r++){if(s[o].juriesDetails[r]._openid&&s[o].juriesDetails[r]._openid==t[a]._openid){s[o].juriesDetails[r].name=t[a].name,s[o].juriesDetails[r].avatarUrl=t[a].avatarUrl;break}s[o].juriesDetails[r]||(s[o].juriesDetails.splice(r,1),r--)}t.splice(a,1),a--;break}s[o]||(s.splice(o,1),o--)}}t.sort((function(e,t){return e.name.localeCompare(t.name)}));for(var u=0;u<s.length;u++)s[u].juriesDetails.sort((function(e,t){return e.name.localeCompare(t.name)}));wx.hideLoading(),wx.stopPullDownRefresh(),i.data.juries=t,i.setData({juries:t,juriesGroups:s,tabs:["评委分组和权重",0==t.length?"待分组的评委":"待分组的评委("+t.length+")"]})}))})).catch((function(e){}))},inputGroup:function(){(this.data.competition.rechargeable||this.data.config_rechargeable||this.data.user_vip||0==this.data.juriesGroups.length)&&"example"!=this.data.competition._id?(wx.pageScrollTo({scrollTop:0,duration:300}),this.setData({inputGroup:!this.data.inputGroup,juriesGroup:{}})):"example"==this.data.competition._id?wx.showToast({title:"比赛示例不能添加分组",icon:"none",duration:2e3}):this.setData({contactServiceView:!0})},hidrInputGroup:function(){this.setData({juriesGroup:{},inputGroup:!1,idxJuriesGroup:-1})},clearGroup:function(){this.setData({juriesGroup:{}})},formSubmit:function(e){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例不支持添加分组",icon:"none",duration:3e3});else{var t={title:e.detail.value.title,weight:parseFloat(e.detail.value.weight),juriesDetails:[],topScoresExcludedTotal:parseInt(e.detail.value.topScoresExcludedTotal),lowestScoresExcludedTotal:parseInt(e.detail.value.lowestScoresExcludedTotal)};t.title&&t.weight>=0&&t.weight<=1&&t.topScoresExcludedTotal>=0&&t.lowestScoresExcludedTotal>=0?(this.data.idxJuriesGroup>=0?(this.data.juriesGroups[this.data.idxJuriesGroup].title=t.title,this.data.juriesGroups[this.data.idxJuriesGroup].weight=t.weight,this.data.juriesGroups[this.data.idxJuriesGroup].topScoresExcludedTotal=t.topScoresExcludedTotal,this.data.juriesGroups[this.data.idxJuriesGroup].lowestScoresExcludedTotal=t.lowestScoresExcludedTotal):this.data.juriesGroups.push(t),this.setData({juriesGroups:this.data.juriesGroups,inputGroup:!1,idxJuriesGroup:-1}),this.updateJuriesGroups(this.data.juriesGroups)):!t.weight||t.weight<0||t.weight>1?wx.showToast({title:"权重为0-1的小数",icon:"none",duration:2e3}):t.title?t.topScoresExcludedTotal<0?wx.showToast({title:"去掉最高分个数至少为0",icon:"none",duration:2e3}):t.lowestScoresExcludedTotal<0&&wx.showToast({title:"去掉最低分个数至少为0",icon:"none",duration:2e3}):wx.showToast({title:"请输入分组名称",icon:"none",duration:2e3})}},checkboxChange:function(e){var t=e.detail.value;this.data.juriesChecked=t,this.setData({juriesChecked:t})},selectJuriesGroup:function(e){for(var t=e.detail.value,i=this.data.juries,a=this.data.juriesChecked,o=this.data.juriesGroups,r=function(e){var r=i.findIndex((function(t){return t._openid==a[e]}));r>=0&&o[t].juriesDetails.push({_openid:i[r]._openid,name:i[r].name,avatarUrl:i[r].avatarUrl})},s=0;s<a.length;s++)r(s);for(var u=0;u<i.length;u++)a.indexOf(i[u]._openid)>=0&&(i.splice(u,1),u--);this.setData({juriesGroups:o,juries:i,tabs:["评委分组和权重",0==i.length?"待分组的评委":"待分组的评委("+i.length+")"],juriesChecked:[]}),this.updateJuriesGroups(o)},selectAllJuries:function(e){for(var t=[],i=this.data.juries,a=0;a<i.length;a++)t.push(i[a]._openid),i[a].selected=!0;this.setData({juriesChecked:t,juries:i})},updateJuriesGroups:function(e){var t=this,i=this.data.competition,a=getCurrentPages(),o=a[a.length-2];o.data.competition.juriesGroups=e,o.data.updatedJuriesGroups=!0,i.juriesGroups=e,wx.cloud.callFunction({name:"competition",data:{operation:"update",competition:{_id:i._id,juriesGroups:i.juriesGroups,rule:i.rule}}}).then((function(e){t.setData({inputGroup:!1}),wx.cloud.callFunction({name:"behavior",data:{competition_id:i._id,behavior:"18评委分组"}}).then((function(e){}))}))},showActionSheet:function(i){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的分组不能编辑或删除",icon:"none",duration:2e3});else if(this.data.competition.workers.indexOf(e.globalData.openid)>=0){var a=i.currentTarget.dataset.juriesgroup,o=i.currentTarget.dataset.idxjuriesgroup,r=this;wx.showActionSheet({itemList:["编辑分组名称和权重","删除分组和评委"],itemColor:"#767676",success:function(e){switch(e.tapIndex){case 0:wx.pageScrollTo({scrollTop:1e4,duration:300}),r.setData({inputGroup:!0,juriesGroup:a,idxJuriesGroup:o});break;case 1:wx.showModal({title:"确认删除分组和评委吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(r.data.juries=r.data.juries.concat(r.data.juriesGroups[o].juriesDetails),t.collection("juriesGroups").where({competition_id:r.data.competition._id,juriesGroupTitle:a.title}).get().then((function(e){console.log(e),1==e.data.length&&t.collection("juriesGroups").doc(e.data[0]._id).remove().then((function(e){console.log("juriesGroups:",e)}))})).catch((function(e){console.log(e)})),r.data.juriesGroups.splice(o,1),r.setData({juriesGroups:r.data.juriesGroups,juries:r.data.juries,tabs:["评委分组和权重",0==r.data.juries.length?"待分组的评委":"待分组的评委("+r.data.juries.length+")"]}),r.updateJuriesGroups(r.data.juriesGroups))},fail:function(e){console.log(e)}})}}})}},showActionSheetDeleteJury:function(t){if("example"==this.data.competition._id)console.log(t),wx.showToast({title:"比赛示例不能删除获奖者",icon:"none",duration:2e3});else if(this.data.competition.workers.indexOf(e.globalData.openid)>=0){var i=t.currentTarget.dataset.idxjury,a=t.currentTarget.dataset.idxjuriesgroup,o=this;wx.showActionSheet({itemList:["将评委从该组移除"],itemColor:"#767676",success:function(e){switch(e.tapIndex){case 0:wx.showModal({title:"确认移除该评委吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(o.data.juries.push(o.data.juriesGroups[a].juriesDetails[i]),o.data.juriesGroups[a].juriesDetails.splice(i,1),o.setData({juriesGroups:o.data.juriesGroups,buttonText:"保存设置",juries:o.data.juries,tabs:["评委分组和权重",0==o.data.juries.length?"待分组的评委":"待分组的评委("+o.data.juries.length+")"]}),o.updateJuriesGroups(o.data.juriesGroups))},fail:function(e){console.log(e)}})}}})}},hideContactService:function(e){this.setData({contactServiceView:!1})},contactService:function(e){t.collection("behaviors").add({data:{createTime:t.serverDate(),competition_id:this.data.competition._id,competition_title:this.data.competition.title,type:"contactService",page:"juriesGroups"}}).then((function(e){})).catch(console.error),this.setData({contactServiceView:!1})},onPullDownRefresh:function(){this.getCompetition()}}); 
 			}); 	require("pages/competition/inviteJury/juriesGroups/juriesGroups.js");
 		__wxRoute = 'pages/competition/inviteJury/juriesAccounts/juriesAccounts';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/inviteJury/juriesAccounts/juriesAccounts.js';	define("pages/competition/inviteJury/juriesAccounts/juriesAccounts.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../../49539051658710DF2F35F8564970FAA0.js"),t=getApp(),o=wx.cloud.database(),i=o.command,n=o.command.aggregate;Page({data:{competition_id:"",competition:{},juriesAccounts:[],loadmore:"",contactServiceView:!1,config_rechargeable:!1,user_vip:!1},onLoad:function(e){var n=this;this.data.competition_id=e.id,this.getCompetition(e.id),o.collection("_config").doc("config").field({rechargeable:!0}).get().then((function(e){n.data.config_rechargeable=e.data.rechargeable})).catch((function(e){console.error(e)})),o.collection("users").where({_openid:t.globalData.openid,vipExpiryTime:i.gt(o.serverDate())}).count().then((function(e){1==e.total&&(n.data.user_vip=!0)})).catch((function(e){console.log(e)}))},getCompetition:function(i){var n=this;o.collection("competitions").doc(i).field({title:!0,workers:!0,juries:!0,rechargeable:!0,status:!0,proExpiryTime:!0,settings:!0,juriesGroups:!0}).get().then((function(e){var o=e.data,i=new Date;o.proExpiryTime&&(o.rechargeable=new Date(o.proExpiryTime)>i),n.data.competition=o;var c="oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==t.globalData.openid||n.data.competition.workers.indexOf(t.globalData.openid)>=0;n.setData({competition:o,isWorker:c}),n.getJuriesAccounts()})).catch((function(t){e.competitionNoExistShowModal(t.errCode)}))},getJuriesAccounts:function(){var e=this;o.collection("juriesAccounts").aggregate().match({competition_id:this.data.competition._id}).group({_id:null,juriesAccounts:n.addToSet({_id:"$_id",name:"$name",password:"$password",user_openid:"$user_openid"})}).end().then((function(t){console.log(t);var o=t.list.length>=1?t.list[0].juriesAccounts:[];o.sort((function(e,t){return e.name-t.name})),wx.hideLoading(),wx.stopPullDownRefresh(),0==o.length?e.setData({loadmore:"暂未导入评委账号"}):e.setData({juriesAccounts:o,loadmore:"全部加载"})})).catch((function(e){console.error(e)}))},importJuriesAccounts:function(e){var t=this;wx.showModal({title:"选择Excel表文件导入添加",content:"Excel表无需第1行标题，第1列为评委姓名，第2列为密码。先把Excel表发送到手机微信的“文件传输助手”方可选择导入，电脑端不能使用导入功能。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"选择文件",success:function(e){e.confirm&&((t.data.competition.rechargeable||t.data.config_rechargeable||t.data.user_vip)&&"example"!=t.data.competition._id?wx.chooseMessageFile({count:1,type:"file",success:function(e){var o=e.tempFiles[0].name.split(".");if("xlsx"==o[1]||"xls"==o[1]){var i=e.tempFiles[0].path;wx.showLoading({title:"上传Excel表",mask:!0}),wx.cloud.uploadFile({cloudPath:"juriesAccountsExcels/"+t.data.competition._id+".xlsx",filePath:i}).then((function(e){wx.showLoading({title:"导入添加",mask:!0});var o=e.fileID;wx.cloud.callFunction({name:"importJuriesAccounts",data:{fileID:o,competition_id:t.data.competition._id}}).then((function(e){wx.showToast({title:"完成添加",icon:"success",duration:1500}),t.data.juriesAccounts=[],t.getJuriesAccounts(),wx.cloud.deleteFile({fileList:[o]}).then((function(e){}))}))})).catch((function(e){}))}else wx.showToast({title:"不是Excel文件",icon:"none",duration:1500})}}):"example"==t.data.competition._id?wx.showToast({title:"比赛示例不能添加评委账号",icon:"none",duration:1500}):t.setData({contactServiceView:!0}))},fail:function(e){console.log(e)}})},showActionSheet:function(e){console.log(e);var t=e.currentTarget.dataset.idx,i=e.currentTarget.dataset.id,n=e.currentTarget.dataset.user_openid?e.currentTarget.dataset.user_openid:"",c=this;wx.showActionSheet({itemList:["解除微信绑定(同步删除评委)","删除该账号"],success:function(e){if("example"==c.data.competition._id)wx.showToast({title:"比赛示例不能使用此功能",icon:"none",duration:3e3});else switch(e.tapIndex){case 0:o.collection("juriesAccounts").doc(i).update({data:{user_openid:""}}).then((function(e){console.log("解除微信绑定",e),wx.showToast({title:"解除微信绑定",icon:"success",duration:1500}),c.data.juriesAccounts[t].user_openid="",c.setData({juriesAccounts:c.data.juriesAccounts}),wx.cloud.callFunction({name:"role",data:{competition:{_id:c.data.competition._id,juriesGroups:c.data.competition.juriesGroups},operation:"deleteRole",role:"jury",openidDeleted:n}}).then((function(e){console.log("移除评委",e)}))})).catch((function(e){console.error(e)}));break;case 1:o.collection("juriesAccounts").doc(i).remove().then((function(e){console.log("删除该账号",e),wx.showToast({title:"删除账号",icon:"success",duration:1500}),c.data.juriesAccounts.splice(t,1),c.setData({juriesAccounts:c.data.juriesAccounts})})).catch((function(e){console.error(e)})),n&&wx.cloud.callFunction({name:"role",data:{competition:{_id:c.data.competition._id,juriesGroups:c.data.competition.juriesGroups},operation:"deleteRole",role:"jury",openidDeleted:n}}).then((function(e){console.log("移除评委",e)}))}},fail:function(e){}})},onPullDownRefresh:function(){this.data.juriesAccounts=[],this.getJuriesAccounts()}}); 
 			}); 	require("pages/competition/inviteJury/juriesAccounts/juriesAccounts.js");
 		__wxRoute = 'pages/competition/inviteWorker/inviteWorker';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/inviteWorker/inviteWorker.js';	define("pages/competition/inviteWorker/inviteWorker.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),o=wx.cloud.database(),a=(o.command,o.command.aggregate);Page({data:{competition:"",inviteWorkerWxacodePath:"",workers:"",watcherCompetition:""},onLoad:function(e){var o=this;this.data.id=e.id,wx.showLoading({title:"加载邀请码"}),wx.cloud.callFunction({name:"getWxacodeV2",data:{id:e.id,role:"worker"}}).then((function(e){wx.showLoading({title:"即将完成加载"});var a=wx.arrayBufferToBase64(e.result.wxacode.buffer);t.base64src("data:image/jpeg;base64,"+a).then((function(t){o.setData({inviteWorkerWxacodePath:t}),wx.hideLoading()})).catch((function(t){console.log(t)}))})).catch(console.error),wx.updateShareMenu({isPrivateMessage:!0})},onShow:function(){this.getCompetition()},getCompetition:function(){var e=this;o.collection("competitions").doc(this.data.id).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,poster:!0,status:!0,workers:!0,creator:!0,posterSize:!0}).get().then((function(o){var a=o.data;a.startTime=t.formatTime("short",a.startTime),e.setData({competition:a}),e.getWorkers(a.workers),e.watcherCompetition()})).catch((function(e){t.competitionNoExistShowModal(e.errCode)}))},watcherCompetition:function(){var t=this;wx.getSystemInfo({success:function(e){var a=e.platform;"windows"!=a&&(t.data.watcherCompetition=o.collection("competitions").doc(t.data.id).watch({onChange:function(e){1==e.docs.length&&"init"!=e.type&&e.docChanges[0].updatedFields.workers&&t.getWorkers(e.docs[0].workers)},onError:function(e){setTimeout((function(){t.watcherCompetition()}),1e3),o.collection("_errorsWatcher").add({data:{competition_id:t.data.id,desc:"watcherError",page:"inviteWorker",platform:a,createtime:o.serverDate()}}).then((function(t){})).catch(console.error)}}))}})},getWorkers:function(t){var e=this;o.collection("users").aggregate().addFields({matched:a.in(["$_openid",t])}).match({matched:!0}).group({_id:null,workers:a.addToSet({_openid:"$_openid",avatarUrl:"$avatarUrl",authorized:"$authorized",nickName:"$nickName",realName:"$realName"})}).end().then((function(o){t=o.list.length>=1?o.list[0].workers:[];for(var a=0;a<t.length;a++)t[a].authorized||(t[a].nickName="无昵称或未授权微信登录",t[a].avatarUrl="/images/user-unlogin.png");e.setData({workers:t})}))},onHide:function(){this.data.watcherCompetition&&this.data.watcherCompetition.close()},onUnload:function(){this.data.watcherCompetition&&this.data.watcherCompetition.close()},showActionSheet:function(t){if(this.data.competition.workers.indexOf(e.globalData.openid)>=0){var o=t.currentTarget.dataset.worker,a=t.currentTarget.dataset.index,i=this;wx.showActionSheet({itemList:["移除该工作人员"],itemColor:"#767676",success:function(t){switch(t.tapIndex){case 0:i.data.competition.creator==o._openid?wx.showToast({title:"无法删除创建者本人，或考虑删除比赛",icon:"none",duration:2500}):wx.showModal({title:"确认移除该工作人员吗",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"role",data:{competition:i.data.competition,operation:"deleteRole",role:"worker",openidDeleted:o._openid}}).then((function(t){wx.hideLoading(),wx.showToast({title:"移除工作人员",icon:"success",duration:2e3}),i.data.workers.splice(a,1),i.setData({workers:i.data.workers}),o._openid==e.globalData.openid&&wx.navigateBack({delta:2})})))},fail:function(t){console.log(t)}})}}})}},onShareAppMessage:function(){return{title:"邀请成为工作人员@"+this.data.competition.title,path:"/pages/addRole/worker/worker?scene="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/inviteWorker/inviteWorker.js");
 		__wxRoute = 'pages/competition/newestScores/newestScores';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/newestScores/newestScores.js';	define("pages/competition/newestScores/newestScores.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../49539051658710DF2F35F8564970FAA0.js"),t=getApp(),o=wx.cloud.database(),a=o.command,i=o.command.aggregate;Page({data:{id:"",programs:[],competition:{},averageScores:[],juries:[],loadmore:"",isWorker:!1,editedAward:!1,orderBy:"index",notice:"",watcherCompetition:"",watcherInterval:1e3,calculateScoresByJuriesGroups:!1,platform:"",idProgramSettingExtraPoints:"",programExtraPoints:0,extraPointsMaskStatus:!1,contactServiceView:!1,config_rechargeable:!1,user_vip:!1},onLoad:function(e){var i=this;this.data.id=e.id||e.scene,wx.showLoading({title:"计算实时成绩"}),o.collection("_config").where({_id:"config"}).field({v:!0,rechargeable:!0}).get().then((function(e){i.data.config_rechargeable=e.data.rechargeable,i.setData({c:t.globalData.c,v:e.data[0].v,platform:t.globalData.platform,openid:t.globalData.openid})})).catch((function(e){console.error(e)})),o.collection("users").where({_openid:t.globalData.openid,vipExpiryTime:a.gt(o.serverDate())}).count().then((function(e){1==e.total&&(i.data.user_vip=!0)})).catch((function(e){console.log(e)}))},onShow:function(){this.getCompetition()},getCompetition:function(){var a=this;o.collection("competitions").doc(this.data.id).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,juries:!0,poster:!0,status:!0,rechargeable:!0,rule:!0,workers:!0,juriesGroups:!0,settings:!0,posterSize:!0}).get().then((function(o){var i=o.data;i.startTime=e.formatTime("short",i.startTime);var r="oRnCI5JYWT9dmVycOnBjYaX1Yx7k"==t.globalData.openid||"oRnCI5GgJ8Kc3sGye-ungAdL7r4U"==t.globalData.openid||"example"==i._id||i.workers.indexOf(t.globalData.openid)>=0;a.data.isWorker=r,a.data.competition=i,a.setData({v:i.settings&&!i.settings.showVote?"0.0.0":a.data.v,competition:i,isWorker:r}),"windows"!=t.globalData.platform&&"mac"!=t.globalData.platform||wx.setNavigationBarTitle({title:i.title}),r||"已删除"!=i.status&&"已关闭"!=i.status?0==i.programsTotal?(wx.hideLoading(),wx.stopPullDownRefresh(),that.setData({loadmore:"暂未添加参赛者"})):(a.getAwards(),a.watcherCompetition()):(wx.hideLoading(),wx.showModal({content:"主办方"+i.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}}))})).catch((function(t){e.competitionNoExistShowModal(t.errCode)}))},watcherCompetition:function(){var e=this;wx.getSystemInfo({success:function(t){var a=t.platform;"windows"!=a&&(e.data.watcherCompetition=o.collection("competitions").doc(e.data.id).watch({onChange:function(t){1==t.docs.length&&"init"!=t.type&&(t.docChanges[0].updatedFields.behaviors||t.docChanges[0].updatedFields.juriesGroups||t.docChanges[0].updatedFields.rules)&&e.getJuries(t.docs[0].juries)},onError:function(t){setTimeout((function(){e.watcherCompetition()}),e.data.watcherInterval),o.collection("_errorsWatcher").add({data:{competition_id:e.data.id,desc:"watcherCompetitionError",page:"newestScores",platform:a,interval:e.data.watcherInterval,createtime:o.serverDate()}}).then((function(e){})).catch(console.error),e.data.watcherInterval=e.data.watcherInterval+1e3}}))}})},getAwards:function(){var e=this;o.collection("awards").aggregate().match({competition_id:this.data.id}).group({_id:null,awards:i.addToSet({_id:"$_id",index:"$index",title:"$title",competition_id:"$competition_id",prizeWinners:"$prizeWinners"})}).end().then((function(t){var o=t.list.length>=1?t.list[0].awards:[];o.sort((function(e,t){return e.index-t.index})),e.data.awards=o,e.getJuries(e.data.competition.juries),e.setData({awards:o})})).catch(console.error)},getJuries:function(e){var t=this;o.collection("users").aggregate().addFields({matched:i.in(["$_openid",e])}).match({matched:!0}).group({_id:null,juries:i.addToSet({_openid:"$_openid",avatarUrl:"$avatarUrl",authorized:"$authorized",nickName:"$nickName",realName:"$realName"})}).end().then((function(e){t.data.juries=e.list.length>=1?e.list[0].juries:[],t.getPrograms()}))},getPrograms:function(){var t=this;o.collection("programs").aggregate().match({competition_id:t.data.id}).group({_id:null,programs:i.addToSet({_id:"$_id",averageScore:"$averageScore",awards:"$awards",competition_id:"$competition_id",index:"$index",note:"$note",scores:"$scores",title:"$title",votesTotal:"$votesTotal",judging:"$judging",extraPoints:"$extraPoints",comments:"$comments"})}).end().then((function(a){for(var i=a.list.length>=1?a.list[0].programs:[],r=t.data.competition,n=t.data.juries,s=t.data.awards,c=t.data.editedAward,d=!0,l=!1,u=[],h="",g=0;g<i.length;g++){if(r.juriesGroups&&r.juriesGroups.length>=1)for(var p=0;p<r.juriesGroups.length;p++)r.juriesGroups[p].scores=[];for(var m=0;m<i[g].scores.length;m++){var w=m,f=i[g].scores[m]._openid;if(-1==JSON.stringify(n).indexOf(i[g].scores[m]._openid))i[g].scores.splice(m,1),m--,t.addError({competition_id:i[g].competition_id,program_id:i[g]._id,program_index:i[g].index,score_index:w,score_openid:f,desc:"非评委提交分数"});else for(var x=m+1;x<i[g].scores.length;x++)i[g].scores[m]._openid==i[g].scores[x]._openid&&(i[g].scores.splice(x,1),x--,t.addError({competition_id:i[g].competition_id,program_id:i[g]._id,program_index:i[g].index,score_index:w,score_openid:f,desc:"评委重复提交分数"}))}var v=0,_=0,S={averageScore:0,totalScore:0};if(i[g].scores.length>0){for(var T=[],P=0;P<i[g].scores.length;P++)if(T.push(i[g].scores[P].score),r.juriesGroups&&r.juriesGroups.length>=1)for(var j=0;j<r.juriesGroups.length;j++)JSON.stringify(r.juriesGroups[j].juriesDetails).indexOf(i[g].scores[P]._openid)>=0&&r.juriesGroups[j].scores.push(i[g].scores[P].score);if(i[g].scores.sort((function(e,t){return t.score-e.score})),T.sort((function(e,t){return t-e})),i[g].arrScores=T.join("/"),r.juriesGroups&&r.juriesGroups.length>=1){for(var F=0;F<r.juriesGroups.length;F++)S=e.calculateScores(r.juriesGroups[F].scores,r.rule.decimalPlaces,r.juriesGroups[F].lowestScoresExcludedTotal,r.juriesGroups[F].topScoresExcludedTotal),v+=parseFloat(S.averageScore)*r.juriesGroups[F].weight,_+=parseFloat(S.totalScore)*r.juriesGroups[F].weight;l=!0}else S=e.calculateScores(T,r.rule.decimalPlaces,r.rule.lowestScoresExcludedTotal,r.rule.topScoresExcludedTotal),v=parseFloat(S.averageScore),_=parseFloat(S.totalScore)}else i[g].arrScores=[];v+=i[g].extraPoints,_+=i[g].extraPoints,v=parseFloat(v.toFixed(r.rule.decimalPlaces)),_=parseFloat(_.toFixed(r.rule.decimalPlaces)),u.push(v),i[g].scores.length==n.length&&i[g].averageScore!=v&&o.collection("programs").doc(i[g]._id).update({data:{averageScore:v}}).then((function(e){})),i[g].averageScore=v,i[g].totalScore=_,i[g].unjudgedJuries=[];for(var C=function(e){var o=n.findIndex((function(t){return t._openid==n[e]._openid}));if(n[o].avatarUrl=n[o].authorized||n[o].avatarUrl?n[o].avatarUrl:"/images/user-unlogin.png",n[o].nickName=n[o].authorized||n[o].nickName?n[o].nickName:"该评委未授权微信登录",n[o].realName=n[o].authorized||n[o].realName?n[o].realName:"",-1==JSON.stringify(i[g].scores).indexOf(n[e]._openid))o>=0&&(n[o].authorized||"example"!=t.data.id)&&i[g].unjudgedJuries.push({avatarUrl:n[o].avatarUrl,nickName:n[o].nickName,realName:n[o].realName});else for(var a=0;a<i[g].scores.length;a++)i[g].scores[a]._openid==n[e]._openid&&(i[g].scores[a].avatarUrl=n[o].avatarUrl,i[g].scores[a].nickName=n[o].nickName,i[g].scores[a].realName=n[o].realName)},D=n.length-1;D>=0;D--)C(D);0!=n.length&&i[g].scores.length==n.length&&"已结束"!=r.status&&"已删除"!=r.status&&"已关闭"!=r.status||(d=!1)}u.sort((function(e,t){return t-e}));for(var b=function(e){if(i[e].averageScore>0){var t=u.indexOf(i[e].averageScore)+1;i[e].order=t}else i[e].order=1e3;if(i[e].awards)for(var o=function(t){var o=s.findIndex((function(o){return i[e].awards[t].award_id==o._id}));o>=0&&(i[e].awards[t].title=c?s[o].title+(c?" X":""):s[o].title)},a=0;a<i[e].awards.length;a++)o(a);else i[e].awards=[]},k=0;k<i.length;k++)b(k);if(i.sort((function(e,t){return e.index-t.index})),n.length<100&&wx.getStorageSync("hideNoticeBarId").competition_id!=t.data.id)for(var y=0;y<i.length;y++)""==h&&i[y].judging&&0!=i[y].index&&"已关闭"!=r.status&&i[y].unjudgedJuries.length>0&&2*i[y].unjudgedJuries.length<=n.length&&i[y].scores.length>0&&"example"!=t.data.id&&(h="#系统提示#序号为"+i[y].index+"的参赛者还有"+i[y].unjudgedJuries.length+"位评委未评分，请工作人员提醒评委及时提交分数！");"order"!=t.data.orderBy&&"votes"!=t.data.orderBy||i.sort((function(e,t){return e.order-t.order})),"votes"==t.data.orderBy&&i.sort((function(e,t){return t.votesTotal-e.votesTotal}));var G=0==t.data.programs.length?i:t.data.programs;if(wx.hideLoading(),wx.stopPullDownRefresh(),n.length<=200)for(var A=0;A<i.length;A++)if(!t.data.removeProgramScores&&(G[A].scores.length!=i[A].scores.length||G[A].averageScore!=i[A].averageScore||G.length!=i.length)){wx.showToast({title:"序号"+i[A].index+"最新成绩",icon:"none",duration:1e3});break}t.setData({programs:i,loadmore:0==i.length?"暂未添加参赛者":"全部加载",averageScores:u,orderBy:t.data.orderBy,notice:h,calculateScoresByJuriesGroups:l}),wx.setStorageSync("newestScores",{competition:r,programs:i,loadmore:0==i.length?"暂未添加参赛者":"全部加载",averageScores:u,orderBy:t.data.orderBy,calculateScoresByJuriesGroups:l}),t.data.removeProgramScores=!1,d&&0!=t.data.programs&&wx.cloud.callFunction({name:"competition",data:{competition:{_id:r._id,status:"已结束"},operation:"update"}}).then((function(e){}))})).catch(console.error)},addError:function(e){"example"!=e.competition_id&&o.collection("_errorsScore").where(e).count().then((function(t){0==t.total?(e.createtime=o.serverDate(),o.collection("_errorsScore").add({data:e}).then((function(e){console.log("addError",e)})).catch(console.error)):console.log("errorData已经存在")})).catch(console.error)},onHide:function(){this.data.watcherAwards&&this.data.watcherAwards.close(),this.data.watcherCompetition&&this.data.watcherCompetition.close()},onUnload:function(){this.data.watcherAwards&&this.data.watcherAwards.close(),this.data.watcherCompetition&&this.data.watcherCompetition.close()},addAward:function(e){var i=this.data.awards,r=this.data.programs,n=e.currentTarget.dataset.program,s=e.detail.value,c=r.findIndex((function(e){return n._id==e._id}));"example"==this.data.competition._id?wx.showToast({title:"比赛示例不支持添加奖项",icon:"none",duration:1e3}):this.data.competition.workers.indexOf(t.globalData.openid)>=0?r[c].awards.findIndex((function(e){return i[s]._id==e.award_id}))>=0?wx.showToast({title:"重复添加奖项",icon:"none",duration:2e3}):(this.data.editedAward=!0,wx.showLoading({title:"正在提交",mask:!0}),o.collection("programs").doc(n._id).update({data:{awards:a.push({award_id:i[s]._id,title:i[s].title})}}).then((function(e){wx.showToast({title:"已添加奖项",icon:"success",duration:2e3}),wx.cloud.callFunction({name:"behavior",data:{competition_id:n.competition_id,behavior:"29设置获奖"}}).then((function(e){console.log("29设置获奖",e)}))}))):wx.showToast({title:"仅工作人员有权限",icon:"none",duration:1500})},deleteProgramAward:function(e){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能使用此操作",icon:"none",duration:1e3});else if(this.data.competition.workers.indexOf(t.globalData.openid)>=0){var i=e.currentTarget.dataset.program,r=e.currentTarget.dataset.idxaward,n=this;wx.showActionSheet({itemList:["删除奖项"],itemColor:"#767676",success:function(e){switch(e.tapIndex){case 0:wx.showLoading({title:"正在提交",mask:!0}),o.collection("programs").doc(i._id).update({data:{awards:a.pull({award_id:a.eq(i.awards[r].award_id)})}}).then((function(e){n.getPrograms(),wx.showToast({title:"已删除奖项",icon:"success",duration:1500}),console.log("deleteProgramAward",e)})).catch(console.error)}}})}},viewProgramDetails:function(e){var t=this.data.competition,o=this.data.calculateScoresByJuriesGroups,a=this.data.juries;wx.navigateTo({url:"/pages/competition/newestScores/programDetails/programDetails",success:function(i){i.eventChannel.emit("acceptDataFromOpenerPage",{competition:t,calculateScoresByJuriesGroups:o,program:e.currentTarget.dataset.program,juries:a})}})},editJudgingStatus:function(e){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能使用此操作",icon:"none",duration:1e3});else{var a=this.data.competition,i=e.currentTarget.dataset.program;if(a.workers.indexOf(t.globalData.openid)>=0){var r=this;wx.showModal({title:"序号"+i.index+":"+i.title,content:i.judging?"暂停评委提交成绩吗？":"允许评委继续提交成绩吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在处理",mask:!0}),o.collection("programs").doc(i._id).update({data:{judging:!i.judging}}).then((function(e){r.getPrograms(),wx.hideLoading(),i.judging?wx.showToast({title:"暂停提交",icon:"success",duration:1500}):wx.showModal({showCancel:!1,title:"重要提醒",content:"已允许评委继续提交该参赛者分数，请提醒评委下拉刷新后提交分数。",confirmColor:"#FF5A5F",confirmText:"我知道了"})})).catch(console.error))},fail:function(e){console.log(e)}})}else wx.showToast({title:"仅工作人员有权限",icon:"none",duration:1500})}},showActionSheet:function(e){if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能使用此操作",icon:"none",duration:1e3});else{var a=this.data.competition,i=e.currentTarget.dataset.program;if(a.workers.indexOf(t.globalData.openid)>=0){var r=this;wx.showActionSheet({itemList:["设置加分或扣分","删除该参赛者所有已评分数","删除某位评委已评分数","删除该参赛者"],itemColor:"#767676",success:function(e){switch(e.tapIndex){case 0:r.data.idProgramSettingExtraPoints=i._id,r.setData({extraPointsMaskStatus:!0,programExtraPoints:i.extraPoints});break;case 1:wx.showModal({title:"序号"+i.index+":"+i.title,content:"确认清除该参赛者所有已评分数吗？比赛中清除分数后需要所有评委重新对该参赛者评分。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在清除",mask:!0}),o.collection("programs").doc(i._id).update({data:{scores:[],judging:!0,averageScore:0}}).then((function(e){r.data.removeProgramScores=!0,r.getPrograms(),wx.hideLoading(),wx.showModal({showCancel:!1,title:"重要提醒",content:"该参赛者分数已清除，请提醒评委在评分页面中下拉刷新后重新提交分数。",confirmColor:"#FF5A5F",confirmText:"我知道了"})})).catch(console.error))},fail:function(e){console.log(e)}});break;case 2:wx.showModal({title:"删除某位评委已评分数",content:"进入“评分详情”后点击需要删除的分数，确认后即可删除，删除后需要提醒该评委在评分页面中下拉刷新后重新提交分数。",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"去删除",success:function(e){if(e.confirm){var t=r.data.calculateScoresByJuriesGroups;wx.navigateTo({url:"/pages/competition/newestScores/programDetails/programDetails",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{competition:a,calculateScoresByJuriesGroups:t,program:i,juries:r.data.juries})}})}},fail:function(e){console.log(e)}});break;case 3:wx.showModal({title:"确认删除该参赛者吗？如果评委已提交过分数，将同步删除。",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"program",data:{program:i,operation:"delete"}}).then((function(e){wx.hideLoading(),wx.showToast({title:"删除参赛者",icon:"success",duration:2e3}),r.data.programs=[],r.getPrograms()})))},fail:function(e){console.log(e)}})}}})}else wx.showToast({title:"仅工作人员有权限",icon:"none",duration:1500})}},submitExtraPoints:function(e){var t=this;wx.showLoading({title:"正在提交",mask:!0});var a=parseFloat(e.detail.value.extraPoints);a>=0||a<0?o.collection("programs").doc(this.data.idProgramSettingExtraPoints).update({data:{extraPoints:a}}).then((function(e){wx.hideLoading(),wx.showToast({title:"已设置",icon:"success",duration:1500}),t.hideExtraPointsMaskStatus(),wx.cloud.callFunction({name:"behavior",data:{competition_id:t.data.competition._id,behavior:"16编辑节目"}}).then((function(e){}))})):wx.showToast({title:"请输入后再提交",icon:"none",duration:1500})},hideExtraPointsMaskStatus:function(){this.data.idProgramSettingExtraPoints="",this.setData({extraPointsMaskStatus:!1,programExtraPoints:0})},hideNoticeBar:function(){wx.setStorageSync("hideNoticeBarId",{competition_id:this.data.competition._id})},onPullDownRefresh:function(){this.data.programs=[],this.getCompetition()},changeOrderBy:function(e){switch(wx.showLoading({title:"切换排序",mask:!0}),this.data.orderBy){case"index":for(var t=this.data.programs,o=!1,a=0;a<t.length;a++)if(t[a].averageScore>0){o=!0;break}o?(this.data.orderBy="order",this.data.programs=[],this.getPrograms()):wx.showToast({title:"评委暂未提交分数",icon:"none",duration:1500});break;case"order":this.data.c==this.data.v?this.data.orderBy="votes":this.data.orderBy="index",this.data.programs=[],this.getPrograms();break;case"votes":this.data.orderBy="index",this.data.programs=[],this.getPrograms()}},drawPoster:function(){var e=this.data.competition;wx.navigateTo({url:"/pages/competition/drawPoster/drawPoster",success:function(t){t.eventChannel.emit("acceptDataFromOpenerPage",{competition:e,role:"newestScores"})}})},refreshScores:function(){wx.showLoading({title:"获取最新成绩"}),this.data.programs=[],this.getCompetition()},getScoresSheet:function(){wx.cloud.callFunction({name:"behavior",data:{competition_id:this.data.competition._id,behavior:"33导出成绩"}}).then((function(e){})),0==this.data.competition.programsTotal?wx.showToast({title:"未添加参赛者",icon:"none",duration:2e3}):this.data.competition.rechargeable||this.data.config_rechargeable||this.data.user_vip||"example"==this.data.competition._id?(wx.showLoading({title:"正在导出成绩"}),wx.cloud.callFunction({name:"getScoresSheet",data:{id:this.data.competition._id}}).then((function(e){wx.hideLoading();var t=e.result.scoresSheetUrl;wx.showModal({showCancel:!1,content:"成绩表已生成，点击复制链接后粘贴到电脑或手机浏览器下载",confirmColor:"#FF5A5F",confirmText:"复制链接",success:function(e){wx.setClipboardData({data:t,success:function(e){wx.getClipboardData({success:function(e){}})}})},fail:function(e){console.log(e)}})}))):this.setData({contactServiceView:!0})},hideContactService:function(e){this.setData({contactServiceView:!1})},contactService:function(e){o.collection("behaviors").add({data:{createTime:o.serverDate(),competition_id:this.data.competition._id,competition_title:this.data.competition.title,type:"newestScores",page:"competition"}}).then((function(e){})).catch(console.error),this.setData({contactServiceView:!1})},onShareAppMessage:function(){return{title:"查看比赛实时成绩",path:"/pages/competition/newestScores/newestScores?id="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/newestScores/newestScores.js");
 		__wxRoute = 'pages/competition/newestScores/programDetails/programDetails';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/newestScores/programDetails/programDetails.js';	define("pages/competition/newestScores/programDetails/programDetails.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=getApp(),r=wx.cloud.database();r.command,r.command.aggregate;Page({data:{competition:"",program:"",juries:""},onLoad:function(a){var o=this;o.getOpenerEventChannel().on("acceptDataFromOpenerPage",(function(a){for(var t=0;t<a.program.unjudgedJuries.length;t++)a.program.unjudgedJuries[t].name=a.program.unjudgedJuries[t].realName?a.program.unjudgedJuries[t].realName:a.program.unjudgedJuries[t].nickName?a.program.unjudgedJuries[t].nickName:"该用户无昵称";a.program.unjudgedJuries.sort((function(e,r){return e.name.localeCompare(r.name)}));for(var n=0;n<a.program.scores.length;n++)a.program.scores[n].name=a.program.scores[n].realName?a.program.scores[n].realName:a.program.scores[n].nickName?a.program.scores[n].nickName:"无昵称或未授权微信登录";if(a.program.scores.sort((function(e,r){return e.name.localeCompare(r.name)})),a.program.scores.sort((function(e,r){return r.score-e.score})),a.competition.settings.submitComment&&a.program.comments)for(var i=function(e){var r=a.juries.findIndex((function(r){return r._openid==a.program.comments[e]._openid}));r>=0&&(a.program.comments[e].name=a.juries[r].realName?a.juries[r].realName:a.juries[r].nickName?a.juries[r].nickName:"无昵称或未授权微信登录",a.program.comments[e].avatarUrl=a.juries[r].avatarUrl)},s=0;s<a.program.comments.length;s++)i(s);o.data.juries=a.juries,o.setData({competition:a.competition,program:a.program,calculateScoresByJuriesGroups:a.calculateScoresByJuriesGroups}),r.collection("_config").where({_id:"config"}).field({v:!0,adProgramDetails:!0}).get().then((function(r){o.setData({c:e.globalData.c,v:a.competition.settings&&!a.competition.settings.showVote?"0.0.0":r.data[0].v})})).catch((function(e){console.error(e)}))})),wx.hideShareMenu()},showActionSheet:function(r){if(this.data.competition.workers.indexOf(e.globalData.openid)>=0)if("example"==this.data.competition._id)wx.showToast({title:"比赛示例的参赛者不能编辑或删除",icon:"none",duration:2e3});else{var a=r.currentTarget.dataset.score,o=r.currentTarget.dataset.index,t=this;wx.showActionSheet({itemList:["删除该评委的分数"],itemColor:"#767676",success:function(e){switch(e.tapIndex){case 0:wx.showModal({title:"确认删除该评委的分数吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(e){e.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"program",data:{program:{_id:t.data.program._id,competition_id:t.data.program.competition_id},juryOpenid:a._openid,operation:"deleteScore"}}).then((function(e){if(wx.hideLoading(),wx.showToast({title:"删除分数",icon:"success",duration:1e3}),t.data.program.scores.splice(o,1),t.data.program.unjudgedJuries.push({avatarUrl:a.avatarUrl,name:a.name}),t.data.program.comments&&t.data.program.comments.length>0){var r=t.data.program.comments.findIndex((function(e){return e._openid==a._openid}));r>=0&&t.data.program.comments.splice(r,1)}t.setData({program:t.data.program})})))},fail:function(e){console.log(e)}})}}})}else wx.showToast({title:"仅工作人员有权限",icon:"none",duration:2500})}}); 
 			}); 	require("pages/competition/newestScores/programDetails/programDetails.js");
 		__wxRoute = 'pages/competition/awards/awards';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/awards/awards.js';	define("pages/competition/awards/awards.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),a=getApp(),e=wx.cloud.database(),i=(e.command,e.command.aggregate);Page({data:{competition:"",inputAward:!1,awards:[],award:{},isWorker:!1},onLoad:function(i){var o=this;this.data.id=i.id||i.scene,e.collection("competitions").doc(this.data.id).field({title:!0,poster:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,workers:!0,juries:!0,rule:!0,rechargeable:!0,posterSize:!0,status:!0}).get().then((function(e){var i=e.data;i.startTime=t.formatTime("short",i.startTime);var n="example"==i._id||i.workers.indexOf(a.globalData.openid)>=0;o.data.competition=i,o.setData({competition:i,isWorker:n}),n||"已删除"!=i.status&&"已关闭"!=i.status?o.getAwards():(wx.hideLoading(),wx.showModal({content:"主办方"+i.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}}))})).catch((function(a){t.competitionNoExistShowModal(a.errCode)}))},getAwards:function(){var t=this;this.data.awards=[];var a=this.data.competition;e.collection("awards").where({competition_id:a._id}).orderBy("index","asc").orderBy("title","asc").get().then((function(o){var n=o.data;e.collection("programs").aggregate().match({competition_id:a._id}).group({_id:null,programs:i.addToSet({_id:"$_id",competition_id:"$competition_id",title:"$title",awards:"$awards",note:"$note"})}).end().then((function(a){for(var e=a.list.length>=1?a.list[0].programs:[],i=0;i<n.length;i++){n[i].prizeWinners=[];for(var o=0;o<e.length;o++)if(e[o].awards)for(var r=0;r<e[o].awards.length;r++)n[i]._id==e[o].awards[r].award_id&&n[i].prizeWinners.push({program_id:e[o]._id,title:e[o].title,note:e[o].note})}wx.hideLoading(),wx.stopPullDownRefresh(),t.setData({awards:n,loadmore:0==n.length?"未添加奖项":"全部加载"})})).catch((function(t){console.error(t)}))})).catch((function(t){console.error(t)}))},inputAward:function(){this.setData({inputAward:!this.data.inputAward,award:{}})},clearAward:function(){this.setData({award:{}})},formSubmit:function(t){var a=this;if("example"==this.data.competition._id)wx.showToast({title:"比赛示例不支持添加奖项",icon:"none",duration:3e3});else{var e={index:0,title:t.detail.value.title};switch(e.title){case"特等奖":e.index=0;break;case"一等奖":e.index=1;break;case"二等奖":e.index=2;break;case"三等奖":e.index=3;break;case"优秀奖":e.index=4;break;case"优胜奖":e.index=5;break;default:e.index=10}this.data.award._id?e._id=this.data.award._id:(e.competition_id=this.data.competition._id,e.prizeWinners=[]),e.title&&this.data.awards.length<=20?JSON.stringify(this.data.awards).indexOf(e.title)>=0?wx.showToast({title:"该奖项已存在",icon:"none",duration:2e3}):e._id?(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"awardV2",data:{award:e,operation:"updateAward"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"编辑奖项",icon:"success",duration:2e3});var i=a.data.awards.findIndex((function(t){return e._id==t._id}));a.data.awards[i]=e,a.setData({awards:a.data.awards,award:{},inputAward:!1})}))):(wx.showLoading({title:"正在提交",mask:!0}),wx.cloud.callFunction({name:"awardV2",data:{award:e,operation:"addAward"}}).then((function(t){a.getAwards(),wx.hideLoading(),wx.showToast({title:"添加奖项",icon:"success",duration:2e3}),a.setData({award:{},inputAward:!1}),wx.cloud.callFunction({name:"behavior",data:{competition_id:e.competition_id,behavior:"19添加奖项"}}).then((function(t){console.log("19添加奖项",t)}))}))):e.title?this.data.awards.length>20&&wx.showToast({title:"至多设置20个奖项",icon:"none",duration:2e3}):wx.showToast({title:"请添加奖项名称",icon:"none",duration:2e3})}},showActionSheet:function(t){if(console.log(t),"example"==this.data.competition._id)wx.showToast({title:"比赛示例的奖项不能编辑或删除",icon:"none",duration:2e3});else if(console.log(a.globalData.openid),this.data.competition.workers.indexOf(a.globalData.openid)>=0){var e=t.currentTarget.dataset.award,i=t.currentTarget.dataset.index;this.setData({inputAward:!1});var o=this;wx.showActionSheet({itemList:["编辑奖项","删除奖项"],itemColor:"#767676",success:function(t){switch(t.tapIndex){case 0:wx.pageScrollTo({scrollTop:0,duration:300}),o.setData({inputAward:!0,award:e});break;case 1:wx.showModal({title:"确认删除该奖项吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),wx.cloud.callFunction({name:"awardV2",data:{award:e,operation:"deleteAward"}}).then((function(t){wx.hideLoading(),wx.showToast({title:"删除奖项",icon:"success",duration:2e3}),o.data.awards.splice(i,1),o.setData({awards:o.data.awards}),o.getAwards()})))},fail:function(t){console.log(t)}})}}})}},showActionSheetDeleteWinner:function(t){if("example"==this.data.competition._id)console.log(t),wx.showToast({title:"比赛示例不能删除获奖者",icon:"none",duration:2e3});else if(this.data.competition.workers.indexOf(a.globalData.openid)>=0){var i=t.currentTarget.dataset.winner,o=t.currentTarget.dataset.indexwinner,n=t.currentTarget.dataset.idxaward;console.log(this.data.awards[n]._id);var r=this;wx.showActionSheet({itemList:["删除获奖者"],itemColor:"#767676",success:function(t){var a=e.command;switch(t.tapIndex){case 0:wx.showModal({title:"确认删除该获奖者吗？",cancelColor:"#484848",cancelText:"取消",confirmColor:"#FF5A5F",confirmText:"确定",success:function(t){t.confirm&&(wx.showLoading({title:"正在删除",mask:!0}),e.collection("programs").doc(i.program_id).update({data:{awards:a.pull({award_id:a.eq(r.data.awards[n]._id)})}}).then((function(t){console.log("deleteProgramAward",t),wx.hideLoading(),wx.showToast({title:"删除获奖者",icon:"success",duration:2e3}),r.data.awards[n].prizeWinners.splice(o,1),r.setData({awards:r.data.awards})})).catch(console.error))},fail:function(t){console.log(t)}})}}})}},onPageScroll:function(t){this.setData({scrollTop:t.scrollTop})},onPullDownRefresh:function(){this.getAwards()},drawPoster:function(){var t=this.data.competition;wx.navigateTo({url:"/pages/competition/drawPoster/drawPoster",success:function(a){a.eventChannel.emit("acceptDataFromOpenerPage",{competition:t,role:"awards"})}})},onShareAppMessage:function(){return{title:"点此查看获奖名单",path:"/pages/competition/awards/awards?id="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/awards/awards.js");
 		__wxRoute = 'pages/competition/vote/vote';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/vote/vote.js';	define("pages/competition/vote/vote.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../49539051658710DF2F35F8564970FAA0.js"),t=getApp(),o=wx.cloud.database(),a=o.command,i=o.command.aggregate;Page({data:{competition:"",programs:[],averageScores:[],loadmore:"",votes:[],isWorker:!1,orderBy:"index",programSearchIds:[],filtrating:!1,inputShowed:!1,inputVal:"",keyword:""},onLoad:function(e){var a=this;this.data.id=e.id||e.scene,"oRnCI5JYWT9dmVycOnBjYaX1Yx7k"!=t.globalData.openid&&o.collection("behaviors").add({data:{createTime:o.serverDate(),competition_id:e.id,type:"visit",role:"audience",page:"vote"}}),o.collection("_config").where({_id:"config"}).field({v:!0,adVote:!0}).get().then((function(e){a.setData({c:t.globalData.c,v:e.data[0].v}),a.getCompetition()})).catch((function(e){console.error(e)})),wx.showLoading({title:"正在加载"})},getCompetition:function(){var a=this,i=this;o.collection("competitions").doc(i.data.id).field({focus:!1}).get().then((function(r){var s=r.data;i.data.competition=s,s.startTime=e.formatTime("short",s.startTime);var n=s.workers.indexOf(t.globalData.openid)>=0,d=s.audiences.indexOf(t.globalData.openid)>=0;n||"已删除"!=s.status&&"已关闭"!=s.status?o.collection("votes").where({competition_id:i.data.id,_openid:t.globalData.openid}).get().then((function(e){var t=e.data?e.data:[];i.data.votes=t,i.setData({v:s.settings&&!s.settings.showVote?"0.0.0":a.data.v,competition:s,votes:t,focused:d,isWorker:n}),i.getPrograms()})):(wx.hideLoading(),wx.stopPullDownRefresh(),wx.hideShareMenu(),wx.showModal({showCancel:!1,content:"主办方"+s.status+"比赛",confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(e){wx.reLaunch({url:"/pages/index/index"})},fail:function(e){console.log(e)}}))})).catch((function(t){console.error("errCode",t),e.competitionNoExistShowModal(t.errCode)}))},getPrograms:function(){var t=this,a=this.data.competition,r=this;o.collection("programs").aggregate().match({competition_id:r.data.id}).group({_id:null,programs:i.addToSet({_id:"$_id",averageScore:"$averageScore",awards:"$awards",competition_id:"$competition_id",index:"$index",note:"$note",scores:"$scores",title:"$title",votesTotal:"$votesTotal",judging:"$judging",extraPoints:"$extraPoints",image:"$image"})}).end().then((function(o){for(var i=o.list.length>=1?o.list[0].programs:[],s=[],n=0;n<i.length;n++){if(a.juriesGroups&&a.juriesGroups.length>=1&&a.juriesGroups[0].juriesDetails.length>=1)for(var d=0;d<a.juriesGroups.length;d++)a.juriesGroups[d].scores=[];for(var c=0;c<i[n].scores.length;c++)if(-1==a.juries.indexOf(i[n].scores[c]._openid))i[n].scores.splice(c,1),c--;else for(var l=c+1;l<i[n].scores.length;l++)i[n].scores[c]._openid==i[n].scores[l]._openid&&(i[n].scores.splice(l,1),l--);if(i[n].averageScore=0,i[n].scores.length>=a.juries.length||!i[n].judging||"example"==i[n].competition_id&&i[n].scores.length>=1){var u=0,g={averageScore:0,totalScore:0};if(i[n].scores.length>0){for(var h=[],p=0;p<i[n].scores.length;p++)if(h.push(i[n].scores[p].score),a.juriesGroups&&a.juriesGroups.length>=1&&a.juriesGroups[0].juriesDetails.length>=1)for(var m=0;m<a.juriesGroups.length;m++)JSON.stringify(a.juriesGroups[m].juriesDetails).indexOf(i[n].scores[p]._openid)>=0&&a.juriesGroups[m].scores.push(i[n].scores[p].score);if(a.juriesGroups&&a.juriesGroups.length>=1&&a.juriesGroups[0].juriesDetails.length>=1)for(var v=0;v<a.juriesGroups.length;v++)g=e.calculateScores(a.juriesGroups[v].scores,a.rule.decimalPlaces,a.juriesGroups[v].lowestScoresExcludedTotal,a.juriesGroups[v].topScoresExcludedTotal),u+=parseFloat(g.averageScore)*a.juriesGroups[v].weight;else g=e.calculateScores(h,a.rule.decimalPlaces,a.rule.lowestScoresExcludedTotal,a.rule.topScoresExcludedTotal),u=parseFloat(g.averageScore)}else i[n].arrScores=[];u+=i[n].extraPoints,u=parseFloat(u.toFixed(a.rule.decimalPlaces)),s.push(u),i[n].averageScore=u}r.data.votes.length>=1&&JSON.stringify(r.data.votes).indexOf(i[n]._id)>=0?i[n].voted=!0:i[n].voted=!1}s.sort((function(e,t){return t-e}));for(var f=0;f<i.length;f++)i[f].averageScore>0?i[f].order=s.indexOf(i[f].averageScore)+1:i[f].order=1e3,0==t.data.programSearchIds.length||t.data.programSearchIds.indexOf(i[f]._id)>=0?i[f].searched=!0:i[f].searched=!1;i.sort((function(e,t){return e.index-t.index})),"order"!=r.data.orderBy&&"votes"!=r.data.orderBy||i.sort((function(e,t){return e.order-t.order})),"votes"==r.data.orderBy&&i.sort((function(e,t){return t.votesTotal-e.votesTotal})),wx.hideLoading(),wx.stopPullDownRefresh(),0==i.length?r.setData({loadmore:"主办方暂未添加参赛者"}):r.setData({programs:i,loadmore:"全部加载",averageScores:s,orderBy:r.data.orderBy})}))},focuseCompetition:function(){this.data.focused?(wx.showToast({title:"取消关注",icon:"success",duration:500}),this.setData({focused:!1}),wx.cloud.callFunction({name:"role",data:{competition:{_id:this.data.competition._id},operation:"deleteRole",role:"audience",openidDeleted:t.globalData.openid}}).then((function(e){}))):(this.setData({focused:!0}),wx.showToast({title:"可在“首页-比赛精选”中再次查看",icon:"none",duration:1500}),wx.cloud.callFunction({name:"role",data:{competition:{_id:this.data.competition._id},operation:"addRole",role:"audience"}}).then((function(e){})))},vote:function(e){var t=this;if(this.data.v!=this.data.c&&this.data.votes.length>=1);else if(this.data.votes.length>=this.data.competition.settings.votesTotal)this.data.v==this.data.c&&wx.showToast({title:"邀请好友一起来送花吧~",icon:"none",duration:1500});else{wx.showLoading({title:"正在提交",mask:!0});var i=e.currentTarget.dataset.id;o.collection("votes").add({data:{program_id:i,competition_id:this.data.competition._id,createTime:o.serverDate()}}).then((function(e){t.data.votes.push({program_id:i,competition_id:t.data.competition._id}),wx.hideLoading(),t.data.votes.length==t.data.competition.settings.votesTotal||t.data.v!=t.data.c?wx.showToast({title:"谢谢参与",icon:"success",duration:1500}):wx.showToast({title:"还剩"+(t.data.competition.settings.votesTotal-t.data.votes.length)+"朵可送",icon:"success",duration:1500}),t.setData({votes:t.data.votes}),o.collection("programs").doc(i).update({data:{votesTotal:a.inc(1)}}).then((function(e){var o=t.data.programs.findIndex((function(e){return e._id==i}));t.data.programs[o].votesTotal++,t.data.programs[o].voted=!0,t.setData({programs:t.data.programs})})).catch(console.error)}))}},onPullDownRefresh:function(){this.data.programs=[],this.getCompetition()},refresh:function(){wx.showLoading({title:"正在刷新",mask:!0}),this.data.programs=[],this.getCompetition()},changeOrderBy:function(e){switch(wx.showLoading({title:"切换排序",mask:!0}),this.data.orderBy){case"index":this.data.orderBy="order",this.data.programs=[],this.getCompetition();break;case"order":this.data.c==this.data.v?this.data.orderBy="votes":this.data.orderBy="index",this.data.programs=[],this.getPrograms();break;case"votes":this.data.orderBy="index",this.data.programs=[],this.getPrograms()}},showInput:function(){this.setData({inputShowed:!0})},hideInput:function(){this.setData({programs:[],loadmore:"",keyword:"",inputVal:"",inputShowed:!1}),this.data.programSearchIds=[],this.getPrograms()},clearInput:function(){this.setData({inputVal:""}),this.data.programSearchIds=[]},inputTyping:function(e){this.setData({inputVal:e.detail.value}),e.detail.value||(this.data.programSearchIds=[])},inputFinish:function(e){if(""==e.detail.value.replace(/\s*/g,"").length)wx.showToast({title:"请输入关键词",icon:"none",duration:1e3});else{var t=e.detail.value.replace(/\s*/g,"");wx.showLoading({title:"正在加载",mask:!0}),this.programSearchIds(t,this.data.competition._id)}},programSearchIds:function(e,t){var i=this,r=this.data.programSearchIds.length;o.collection("programs").where({competition_id:t}).where(a.or([{title:o.RegExp({regexp:e,options:"i"})},{note:o.RegExp({regexp:e,options:"i"})},{index:o.RegExp({regexp:e,options:"i"})}])).field({_id:!0}).skip(r).get().then((function(o){if(wx.hideLoading(),20==o.data.length){for(var a=0;a<o.data.length;a++)i.data.programSearchIds.push(o.data[a]._id);i.programSearchIds(e,t)}else{for(var r=0;r<o.data.length;r++)i.data.programSearchIds.push(o.data[r]._id);0==i.data.programSearchIds.length?i.setData({programs:[],loadmore:"搜索结果为空"}):i.getPrograms()}})).catch(console.error)},drawPoster:function(){var e=this.data.competition;wx.navigateTo({url:"/pages/competition/drawPoster/drawPoster",success:function(t){t.eventChannel.emit("acceptDataFromOpenerPage",{competition:e,role:"vote"})}})},previewImage:function(e){console.log(e);var t=e.currentTarget.dataset.image;wx.previewImage({current:t,urls:[t]})},onShareAppMessage:function(e){return{title:"查看成绩一起加油打Call@"+this.data.competition.title,path:"/pages/competition/vote/vote?id="+this.data.competition._id}}}); 
 			}); 	require("pages/competition/vote/vote.js");
 		__wxRoute = 'pages/competition/drawPoster/drawPoster';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/competition/drawPoster/drawPoster.js';	define("pages/competition/drawPoster/drawPoster.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=require("../../../49539051658710DF2F35F8564970FAA0.js"),t=(getApp(),wx.cloud.database());t.command,t.command.aggregate;Page({data:{sharePosterUrl:""},onLoad:function(e){var t=this;t.getOpenerEventChannel().on("acceptDataFromOpenerPage",(function(e){var a=e.competition;t.readyForDrawPoster(a._id,a.poster,a.title,a.startTime,e.role),t.data.targetPage=e.role})),wx.hideShareMenu()},readyForDrawPoster:function(t,a,o,s,r){var n=this;wx.showLoading({title:"绘制邀请码10%",mask:!0}),wx.cloud.callFunction({name:"getWxacodeV2",data:{id:t,role:r}}).then((function(t){wx.showLoading({title:"绘制邀请码40%",mask:!0});var i=wx.arrayBufferToBase64(t.result.wxacode.buffer);e.base64src("data:image/jpeg;base64,"+i).then((function(e){var t=e;wx.cloud.downloadFile({fileID:a}).then((function(e){var a=e.tempFilePath;wx.showLoading({title:"绘制邀请码80%",mask:!0}),n.drawPoster(a,t,o,s,r)})).catch((function(e){console.log(e),wx.showToast({title:"网络有点问题，请稍候再试",icon:"none",mask:!0})}))})).catch((function(e){console.log(e)}))})).catch(console.error)},drawPoster:function(e,t,a,o,s){var r=this,n=0;wx.getSystemInfo({success:function(e){n=e.screenWidth/375}});var i=wx.createCanvasContext("sharePoster");i.fillStyle="#FFFFFF",i.fillRect(0,0,750*n,750*n),i.setFontSize(32*n),i.setFillStyle("#484848"),i.drawImage(t,0*n,0*n,690*n,750*n),i.draw(!1,(function(){wx.canvasToTempFilePath({x:0,y:0,fileType:"jpg",quality:1,width:750*n,height:750*n,destWidth:750*n,destHeight:750*n,canvasId:"sharePoster",success:function(e){wx.hideLoading(),r.setData({sharePosterUrl:e.tempFilePath})},fail:function(e){wx.showToast({title:"网络有点问题，请稍候再试",icon:"none",mask:!0})}})}))},savePoster:function(){var e=this.data.sharePosterUrl,a=this.data.targetPage;wx.getSetting({success:function(o){t.collection("behaviors").add({data:{createDate:t.serverDate(),type:"savePoster",targetPage:a}}).then((function(e){})).catch(console.error),o.authSetting["scope.writePhotosAlbum"]?wx.saveImageToPhotosAlbum({filePath:e,success:function(e){wx.showToast({title:"保存到手机相册",icon:"success",mask:!0})}}):wx.authorize({scope:"scope.writePhotosAlbum",success:function(){wx.saveImageToPhotosAlbum({filePath:e,success:function(e){wx.showToast({title:"保存到手机相册",icon:"success",mask:!0})}})}})}})},previewSharePoster:function(){var e=this.data.sharePosterUrl;wx.previewImage({current:e,urls:[e]})}}); 
 			}); 	require("pages/competition/drawPoster/drawPoster.js");
 		__wxRoute = 'pages/more/more';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/more/more.js';	define("pages/more/more.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";require("../../49539051658710DF2F35F8564970FAA0.js");var e=getApp(),i=wx.cloud.database();i.command,i.command.aggregate;Page({data:{},onLoad:function(t){var a=this,n=[{url:"/pages/more/authorize/authorize",title:"授权微信登录",iconSrc:"/images/icons/intro.png",note:"登录或更新昵称和头像"},{url:"/pages/more/guide/guide",title:"使用指南",iconSrc:"/images/icons/intro.png",note:"联系客服"},{url:"",title:"不显示比赛示例",iconSrc:"/images/icons/intro.png",note:""},{url:"/pages/more/intro/intro",title:"关于赛易评",iconSrc:"/images/icons/intro.png",note:""}];i.collection("competitions").where({_id:"example",focus:e.globalData.openid}).count().then((function(e){0==e.total&&n.splice(2,1),a.setData({listMenu:n})}))},onShow:function(e){var t=this;i.collection("users").where({_openid:wx.getStorageSync("openid")}).field({nickName:!0,avatarUrl:!0,vipExpiryTime:!0,vipType:!0}).get().then((function(e){var i=e.data[0];if(i.nickName){t.setData({userInfo:{nickName:i.nickName,avatarUrl:i.avatarUrl},authorized:!0});var a=new Date;"specialVip"!=i.vipType&&a<i.vipExpiryTime&&t.setData({vipExp:i.vipExpiryTime.getFullYear()+"年"+(i.vipExpiryTime.getMonth()+1)+"月"+i.vipExpiryTime.getDate()+"日"})}else t.setData({authorized:!1})})).catch((function(e){console.log(e)}))},navigateToAuthorization:function(e){wx.navigateTo({url:"/pages/more/authorize/authorize?page=more"})},viewVipExp:function(e){var i=this.data.vipExp;i&&wx.showActionSheet({itemList:["VipExp："+i],success:function(e){},fail:function(e){}})},onShareAppMessage:function(){return{title:"我发现了一款高效好用的比赛评分小程序",path:"/pages/index/index",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/more/more.js");
 		__wxRoute = 'pages/more/guide/guide';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/more/guide/guide.js';	define("pages/more/guide/guide.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=getApp(),t=wx.cloud.database();t.command;Page({data:{activeNames:["1"]},onLoad:function(o){var a=this;wx.hideShareMenu(),t.collection("_config").where({_id:"config"}).field({v:!0,button:!0}).get().then((function(t){a.setData({c:e.globalData.c,v:t.data[0].v})})).catch((function(e){console.error(e)}))},onChange:function(e){this.setData({activeNames:e.detail})},openGuide:function(e){wx.showLoading({title:"正在加载",mask:!0}),wx.downloadFile({url:"https://7265-release-bu5dc-1301069672.tcb.qcloud.la/guide.pdf?sign=5e44ccbff65bf0b1bef6ba76341f3d7e&t=1645775927",success:function(e){if(200===e.statusCode){var t=e.tempFilePath;wx.openDocument({filePath:t,fileType:"pdf",showMenu:!0,success:function(e){wx.hideLoading()}})}else wx.showToast({title:"下载出了点问题稍后再试！",icon:"none",duration:1500})}})},downloadGuide:function(e){wx.showModal({showCancel:!1,content:"点击【复制链接】后黏贴到手机或电脑浏览器下载使用指南",confirmColor:"#FF5A5F",confirmText:"复制链接",success:function(e){wx.setClipboardData({data:"https://7265-release-bu5dc-1301069672.tcb.qcloud.la/guide.pdf?sign=5e44ccbff65bf0b1bef6ba76341f3d7e&t=1645775927",success:function(e){wx.getClipboardData({success:function(e){}})}})},fail:function(e){console.log(e)}})}}); 
 			}); 	require("pages/more/guide/guide.js");
 		__wxRoute = 'pages/more/authorize/authorize';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/more/authorize/authorize.js';	define("pages/more/authorize/authorize.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=getApp(),a=wx.cloud.database();Page({data:{_id:"",fromPage:"",canIUseGetUserProfile:!1},onLoad:function(t){var o=this;this.data.fromPage=t.page,wx.getUserProfile&&this.setData({canIUseGetUserProfile:!0}),a.collection("users").where({_openid:e.globalData.openid}).field({_id:!0}).get().then((function(e){o.data._id=e.data[0]._id})).catch((function(e){console.log(e),wx.showToast({title:"网络似乎出了点问题，请重试",icon:"none",duration:1500})})),wx.hideShareMenu()},getUserInfo:function(e){console.log(e.detail.userInfo),wx.showLoading({title:"正在登录",mask:!0});var a=e.detail.userInfo;a&&(this.updateUserInfo(a),wx.setStorageSync("getUserProfile",!0))},getUserProfile:function(e){var a=this;wx.getUserProfile({desc:"用于展示头像和昵称",lang:"zh_CN",success:function(e){a.updateUserInfo(e.userInfo),wx.setStorageSync("getUserProfile",!0)}})},updateUserInfo:function(t){var o=this.data.fromPage,n=this.data._id;a.collection("behaviors").add({data:{createTime:a.serverDate(),type:"authorization",page:"authorization",fromPage:o}}).then((function(e){})).catch(console.error),a.collection("users").doc(n).update({data:{authorized:!0,nickName:t.nickName,gender:t.gender,language:t.language,city:t.city,province:t.province,country:t.country,avatarUrl:t.avatarUrl,updateTime:a.serverDate()}}).then((function(a){wx.hideLoading(),e.globalData.authorized=!0,e.globalData.userInfo={nickName:t.nickName,avatarUrl:t.avatarUrl},wx.showModal({content:"授权登录成功!",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"返回",success:function(e){e.confirm?wx.navigateBack({delta:1}):e.cancel}})})).catch((function(e){console.log(e)}))}}); 
 			}); 	require("pages/more/authorize/authorize.js");
 		__wxRoute = 'pages/more/intro/intro';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/more/intro/intro.js';	define("pages/more/intro/intro.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var e=getApp().globalData;wx.cloud.database().command;Page({data:{openid:""},onLoad:function(a){this.data.openid=wx.getStorageSync("openid")||e.openid},previewWXACode:function(){wx.previewImage({current:"cloud://release-bu5dc.7265-release-bu5dc-1301069672/wxcode.jpg",urls:["cloud://release-bu5dc.7265-release-bu5dc-1301069672/wxcode.jpg"]})},onShareAppMessage:function(e){return{title:"我发现了一款高效好用的比赛评分小程序",path:"/pages/index/index",imageUrl:"/images/sharePic.png"}}}); 
 			}); 	require("pages/more/intro/intro.js");
 		__wxRoute = 'pages/addRole/worker/worker';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/addRole/worker/worker.js';	define("pages/addRole/worker/worker.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var t=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),o=wx.cloud.database();o.command;Page({data:{competition_id:"",maskStatus:!1},onLoad:function(t){this.data.competition_id=t.scene,wx.getStorageSync("getUserProfile")?this.addRole(t.scene,wx.getStorageSync("openid")):this.setData({maskStatus:!0}),wx.hideShareMenu()},getUserProfile:function(){var t=this;t.hideMaskStatus(),wx.getUserProfile({desc:"用于展示头像和昵称",lang:"zh_CN",success:function(o){var i=o.userInfo;wx.setStorageSync("getUserProfile",!0),wx.showLoading({title:"授权登录",mask:!0}),wx.cloud.callFunction({name:"updateUserInfo",data:{userInfo:i}}).then((function(o){e.globalData.authorized=!0,e.globalData.userInfo={nickName:i.nickName,avatarUrl:i.avatarUrl},t.addRole(t.data.competition_id,o.result.openid)}))}})},hideMaskStatus:function(t){this.setData({maskStatus:!1})},addRole:function(e,i){wx.showLoading({title:"正在加载",mask:!0}),o.collection("competitions").doc(e).field({workers:!0,status:!0}).get().then((function(t){var o=t.data;"已删除"==o.status?(wx.hideLoading(),wx.showModal({content:"主办方"+o.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(t){wx.reLaunch({url:"/pages/index/index"})},fail:function(t){console.log(t)}})):o.workers.indexOf(i)>=0?setTimeout((function(){wx.redirectTo({url:"/pages/competition/competition?id="+e})}),1500):wx.cloud.callFunction({name:"role",data:{competition:{_id:e},operation:"addRole",role:"worker"}}).then((function(t){"addRole_crawler"==t.result.errMsg?(wx.showToast({title:"检测到用户身份异常",icon:"none",duration:1500}),setTimeout((function(){wx.reLaunch({url:"/pages/index/index"})}),1500)):(wx.hideLoading(),wx.showToast({title:"成为工作人员",icon:"success",duration:2500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/competition?id="+e})}),2500))}))})).catch((function(e){t.competitionNoExistShowModal(e.errCode)}))}}); 
 			}); 	require("pages/addRole/worker/worker.js");
 		__wxRoute = 'pages/addRole/jury/jury';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/addRole/jury/jury.js';	define("pages/addRole/jury/jury.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var o=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),t=wx.cloud.database();t.command;Page({data:{competition:{},showAuthorizeButton:!1,showJuriesAccountForm:!1},onLoad:function(e){var n=this;wx.hideShareMenu(),t.collection("competitions").doc(e.scene).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,poster:!0,juries:!0,status:!0,juriesUnfocus:!0,rule:!0,settings:!0}).get().then((function(e){var t=e.data;n.data.competition=t,t.startTime=o.formatTime("short",t.startTime),n.setData({competition:t}),wx.getStorageSync("getUserProfile")||t.settings&&t.settings.unAuthorizeJury?n.identifyJury(t,wx.getStorageSync("openid")):n.setData({showAuthorizeButton:!0})})).catch((function(e){o.competitionNoExistShowModal(e.errCode)}))},getUserProfile:function(){var o=this;wx.getUserProfile({desc:"用于展示头像和昵称",lang:"zh_CN",success:function(t){var n=t.userInfo;wx.setStorageSync("getUserProfile",!0),wx.showLoading({title:"授权登录",mask:!0}),wx.cloud.callFunction({name:"updateUserInfo",data:{userInfo:n}}).then((function(t){e.globalData.authorized=!0,e.globalData.userInfo={nickName:n.nickName,avatarUrl:n.avatarUrl},e.globalData.openid=t.result.openid,o.identifyJury(o.data.competition,t.result.openid),o.setData({showAuthorizeButton:!1})}))}})},identifyJury:function(o,e){var n=this;wx.showLoading({title:"正在加载",mask:!0}),"已删除"==o.status||"已关闭"==o.status?(wx.hideLoading(),wx.showModal({content:"主办方"+o.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(o){wx.reLaunch({url:"/pages/index/index"})},fail:function(o){console.log(o)}})):o.juries.indexOf(e)>=0&&-1==o.juriesUnfocus.indexOf(e)?setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+o._id})}),1500):o.rule.refuseNewJury?(wx.hideLoading(),wx.showModal({content:"主办方已关闭新评委加入通道，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(o){wx.reLaunch({url:"/pages/index/index"})},fail:function(o){console.log(o)}})):t.collection("juriesAccounts").where({competition_id:o._id}).count().then((function(e){0==e.total?(console.log("未导入评委账号"),n.addRole(o)):(console.log("导入了评委账号需要输入后验证"),wx.hideLoading(),n.setData({showJuriesAccountForm:!0}))}))},submitJuriesAccount:function(o){var n=this,i=this.data.competition,a={name:o.detail.value.name,password:o.detail.value.password};a.name?a.password?(wx.showLoading({title:"正在验证",mask:!0}),t.collection("juriesAccounts").where({competition_id:i._id,name:a.name,password:a.password}).get().then((function(o){console.log(o.data),0==o.data.length?wx.showToast({title:"请先重新确认姓名和密码",icon:"none",duration:1500}):o.data[0].user_openid?o.data[0].user_openid==e.globalData.openid?(setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+i._id})}),1500),wx.hideLoading(),n.setData({showJuriesAccountForm:!1})):wx.showToast({title:"该账号已被他人绑定，或联系工作人员解绑",icon:"none",duration:2e3}):(n.setData({showJuriesAccountForm:!1}),n.addRole(i),t.collection("juriesAccounts").doc(o.data[0]._id).update({data:{user_openid:e.globalData.openid}}).then((function(o){console.log("评委账号绑定微信",o)})).catch((function(o){console.error(o)})),t.collection("users").where({_openid:e.globalData.openid}).field({_id:!0}).get().then((function(o){t.collection("users").doc(o.data[0]._id).update({data:{realName:a.name}}).then((function(o){console.log("评委信息user加入真实姓名")})).catch((function(o){console.log(o)}))})).catch((function(o){console.log(o)})))}))):wx.showToast({title:"请先输入密码",icon:"none",duration:1e3}):wx.showToast({title:"请先输入姓名",icon:"none",duration:1e3})},addRole:function(o){wx.cloud.callFunction({name:"role",data:{competition:{_id:o._id},operation:"addRole",role:"jury"}}).then((function(e){"addRole_crawler"==e.result.errMsg?(wx.showToast({title:"检测到用户身份异常",icon:"none",duration:1500}),setTimeout((function(){wx.reLaunch({url:"/pages/index/index"})}),1500)):(wx.hideLoading(),wx.showToast({title:"已成为评委",icon:"success",duration:2500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+o._id})}),1500))}))}}); 
 			}); 	require("pages/addRole/jury/jury.js");
 		__wxRoute = 'pages/addRole/juryByGroup/juryByGroup';__wxRouteBegin = true; 	__wxAppCurrentFile__ = 'pages/addRole/juryByGroup/juryByGroup.js';	define("pages/addRole/juryByGroup/juryByGroup.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ 			
"use strict";var o=require("../../../49539051658710DF2F35F8564970FAA0.js"),e=getApp(),t=wx.cloud.database();t.command;Page({data:{competition:{},juriesGroupTitle:"",showAuthorizeButton:!1,showJuriesAccountForm:!1},onLoad:function(e){var i=this;wx.hideShareMenu(),t.collection("juriesGroups").doc(e.scene).get().then((function(e){i.data.juriesGroupTitle=e.data.juriesGroupTitle,t.collection("competitions").doc(e.data.competition_id).field({title:!0,startTime:!0,site:!0,sponsor:!0,organizer:!0,poster:!0,juries:!0,status:!0,juriesUnfocus:!0,juriesGroups:!0,rule:!0,settings:!0}).get().then((function(e){var t=e.data;i.data.competition=t,t.startTime=o.formatTime("short",t.startTime),i.setData({competition:t}),wx.getStorageSync("getUserProfile")||t.settings&&t.settings.unAuthorizeJury?i.identifyJury(t,wx.getStorageSync("openid")):i.setData({showAuthorizeButton:!0})})).catch((function(e){o.competitionNoExistShowModal(e.errCode)}))})).catch((function(o){console.error(o),-1==o.errCode&&(wx.hideLoading(),wx.stopPullDownRefresh(),wx.hideShareMenu(),wx.showModal({showCancel:!1,content:"该邀请码已失效，请联系工作人员",confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(o){wx.reLaunch({url:"/pages/index/index"})},fail:function(o){console.log(o)}}))}))},getUserProfile:function(){var o=this;wx.getUserProfile({desc:"用于展示头像和昵称",lang:"zh_CN",success:function(t){var i=t.userInfo;wx.setStorageSync("getUserProfile",!0),wx.showLoading({title:"授权登录",mask:!0}),wx.cloud.callFunction({name:"updateUserInfo",data:{userInfo:i}}).then((function(t){e.globalData.authorized=!0,e.globalData.userInfo={nickName:i.nickName,avatarUrl:i.avatarUrl},e.globalData.openid=t.result.openid,o.identifyJury(o.data.competition,t.result.openid),o.setData({showAuthorizeButton:!1})}))}})},identifyJury:function(o,e){var i=this;wx.showLoading({title:"正在加载",mask:!0}),"已删除"==o.status||"已关闭"==o.status?(wx.hideLoading(),wx.showModal({content:"主办方"+o.status+"比赛，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(o){wx.reLaunch({url:"/pages/index/index"})},fail:function(o){console.log(o)}})):o.juries.indexOf(e)>=0&&-1==o.juriesUnfocus.indexOf(e)?setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+o._id})}),1500):o.rule.refuseNewJury?(wx.hideLoading(),wx.showModal({content:"主办方已关闭新评委加入通道，或联系工作人员",showCancel:!1,confirmColor:"#FF5A5F",confirmText:"我知道了",success:function(o){wx.reLaunch({url:"/pages/index/index"})},fail:function(o){console.log(o)}})):t.collection("juriesAccounts").where({competition_id:o._id}).count().then((function(e){0==e.total?(console.log("未导入评委账号"),i.addRole(o)):(console.log("导入了评委账号需要输入后验证"),wx.hideLoading(),i.setData({showJuriesAccountForm:!0}))}))},submitJuriesAccount:function(o){var i=this,n=this.data.competition,a={name:o.detail.value.name,password:o.detail.value.password};a.name?a.password?(wx.showLoading({title:"正在验证",mask:!0}),t.collection("juriesAccounts").where({competition_id:n._id,name:a.name,password:a.password}).get().then((function(o){console.log(o.data),0==o.data.length?wx.showToast({title:"请先重新确认姓名和密码",icon:"none",duration:1500}):o.data[0].user_openid?o.data[0].user_openid==e.globalData.openid?(setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+n._id})}),1500),wx.hideLoading(),i.setData({showJuriesAccountForm:!1})):wx.showToast({title:"该账号已被他人绑定，或联系工作人员解绑",icon:"none",duration:2e3}):(i.setData({showJuriesAccountForm:!1}),i.addRole(n),t.collection("juriesAccounts").doc(o.data[0]._id).update({data:{user_openid:e.globalData.openid}}).then((function(o){console.log("评委账号绑定微信",o)})).catch((function(o){console.error(o)})),t.collection("users").where({_openid:e.globalData.openid}).field({_id:!0}).get().then((function(o){t.collection("users").doc(o.data[0]._id).update({data:{realName:a.name}}).then((function(o){console.log("评委信息user加入真实姓名")})).catch((function(o){console.log(o)}))})).catch((function(o){console.log(o)})))}))):wx.showToast({title:"请先输入密码",icon:"none",duration:1e3}):wx.showToast({title:"请先输入姓名",icon:"none",duration:1e3})},addRole:function(o){wx.cloud.callFunction({name:"role",data:{competition:{_id:o._id},juriesGroups:o.juriesGroups,juriesGroupTitle:this.data.juriesGroupTitle,operation:"addJuryByGroup",role:"jury"}}).then((function(e){"addRole_crawler"==e.result.errMsg?(wx.showToast({title:"检测到用户身份异常",icon:"none",duration:1500}),setTimeout((function(){wx.reLaunch({url:"/pages/index/index"})}),1500)):(wx.hideLoading(),wx.showToast({title:"已成为评委",icon:"success",duration:2500}),setTimeout((function(){wx.redirectTo({url:"/pages/competition/judge/judge?id="+o._id})}),1500))}))}}); 
 			}); 	require("pages/addRole/juryByGroup/juryByGroup.js");
 	