船员公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
gzh_chuanyuan/unpackage/dist/build/web/static/js/pages-exercises-complete.c8...

1 lines
33 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-exercises-complete"],{"07fd":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={lCircle:n("58ff").default,popCard:n("f925").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"complete"},[n("v-uni-view",{staticClass:"complete-con"},[n("v-uni-view",{staticClass:"complete-con-tit"},[t._v(t._s(t.title)),0==t.type||2==t.type||99==t.type?n("v-uni-view",{staticClass:"complete-con-card",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.viewCard.apply(void 0,arguments)}}},[t._v("答题卡")]):t._e()],1),n("v-uni-view",{staticClass:"complete-con-progress"},[n("l-circle",{attrs:{percent:t.score},model:{value:t.score,callback:function(e){t.score=e},expression:"score"}},[n("v-uni-text",[t._v(t._s(t.score)+"分")])],1)],1),n("v-uni-view",{staticClass:"complete-con-section"},[n("v-uni-view",{staticClass:"sec"},[n("v-uni-image",{attrs:{src:t.staticUrl("/static/complete-01.png")}}),n("v-uni-view",{staticClass:"txt"},[t._v("正确率"),n("v-uni-text",[t._v(t._s(t.score)+"%")])],1)],1),n("v-uni-view",{staticClass:"sec"},[n("v-uni-image",{attrs:{src:t.staticUrl("/static/complete-02.png")}}),n("v-uni-view",{staticClass:"txt"},[t._v("完成时间"),n("v-uni-text",[t._v(t._s(t.use_time?t.use_time:"00:00:00"))])],1)],1)],1)],1),n("v-uni-view",{staticClass:"complete-btns"},[n("v-uni-view",{staticClass:"btn btn-1"},[n("v-uni-image",{attrs:{src:t.staticUrl("/static/complete-03.png")}}),t._v("分享给朋友"),n("v-uni-button",{attrs:{"open-type":"share"}})],1),n("v-uni-view",{staticClass:"btn btn-2",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage()}}},[n("v-uni-image",{attrs:{src:t.staticUrl("/static/complete-04.png")}}),t._v("继续刷题")],1)],1),n("pop-card",{attrs:{showPop:t.showCard,successNum:t.correct_num,errorNum:t.error_num,list:t.cardList},on:{selItem:function(e){arguments[0]=e=t.$handleEvent(e),t.selCardItem.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.showCard=!1}}})],1)},a=[]},"1dcc":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.unitConvert=function(t){if((0,r.isNumeric)(t))return Number(t);if((0,i.isString)(t)){var e=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g.exec(t);if(!t||!e)return 0;var n=e[3];if(t=parseFloat(t),"rpx"===n)return uni.upx2px(t);if("px"===n)return 1*t}return 0},n("64aa"),n("5c47"),n("e838");var i=n("b3bf"),r=n("fbe5")},2032:function(t,e,n){var i=n("4503");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("967d").default;r("2e71d70e",i,!0,{sourceMap:!1,shadowMode:!1})},"24ee":function(t,e,n){var i=n("ea01");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("967d").default;r("030c1aa4",i,!0,{sourceMap:!1,shadowMode:!1})},"281b":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Animation=void 0;var r=i(n("3471")),a=i(n("80b1")),o=i(n("efe5")),c=i(n("39d8"));n("01a2"),n("e39c"),n("bf0f"),n("f3f7"),n("18f7"),n("de6c"),n("c1a3");var s=Symbol("tick"),u=Symbol("tick-handler"),l=Symbol("animations"),d=Symbol("start-times"),f=Symbol("pause-start"),h=Symbol("pause-time"),v="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(t,1e3/60)},p="undefined"!==typeof cancelAnimationFrame?cancelAnimationFrame:function(t){clearTimeout(t)},m=function(){function t(){(0,a.default)(this,t),(0,c.default)(this,"state",void 0),this.state="Initiated",this[l]=new Set,this[d]=new Map}return(0,o.default)(t,[{key:"start",value:function(){var t=this;if("Initiated"===this.state){this.state="Started";var e=Date.now();this[h]=0,this[s]=function(){var n,i=Date.now(),a=(0,r.default)(t[l]);try{for(a.s();!(n=a.n()).done;){var o=n.value,c=void 0;c=t[d].get(o)<e?i-e-o.delay-t[h]:i-t[d].get(o)-o.delay-t[h],c>o.duration&&(t[l].delete(o),c=o.duration),c>0&&o.run(c)}}catch(f){a.e(f)}finally{a.f()}t[u]=v(t[s])},this[s]()}}},{key:"pause",value:function(){"Started"===this.state&&(this.state="Paused",this[f]=Date.now(),p(this[u]))}},{key:"resume",value:function(){"Paused"===this.state&&(this.state="Started",this[h]+=Date.now()-this[f],this[s]())}},{key:"reset",value:function(){this.pause(),this.state="Initiated",this[h]=0,this[f]=0,this[l]=new Set,this[d]=new Map,this[u]=null}},{key:"add",value:function(t,e){arguments.length<2&&(e=Date.now()),this[l].add(t),this[d].set(t,e)}}]),t}();e.Timeline=m;var b=function(){function t(e,n,i,r,o,s){(0,a.default)(this,t),(0,c.default)(this,"startValue",void 0),(0,c.default)(this,"endValue",void 0),(0,c.default)(this,"duration",void 0),(0,c.default)(this,"timingFunction",void 0),(0,c.default)(this,"delay",void 0),(0,c.default)(this,"template",void 0),o=o||function(t){return t},s=s||function(t){return t},this.startValue=e,this.endValue=n,this.duration=i,this.timingFunction=o,this.delay=r,this.template=s}return(0,o.default)(t,[{key:"run",value:function(t){var e=this.endValue-this.startValue,n=this.timingFunction(t/this.duration);this.template(this.startValue+e*n)}}]),t}();e.Animation=b},"2f24":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.addUnit=function(t){if(!(0,r.isDef)(t))return;return t=String(t),(0,i.isNumeric)(t)?"".concat(t,"px"):t};var i=n("fbe5"),r=n("b418")},"2f3e":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;e.length>n;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);e>n;n++)i[n]=t[n];return i}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return t.length>i?{done:!1,value:t[i++]}:{done:!0}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}Object.defineProperty(e,"__esModule",{value:!0}),e.Circle=void 0,n("7a76"),n("c9b5"),n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("f7a5"),n("08eb"),n("5c47"),n("0506"),n("fd3c"),n("e966"),n("ab80"),n("aa9c"),n("f3f7"),n("c1a3"),n("c223"),n("2797");var s=function(t){return/^#.{3,6}$/.test(t)?4===t.length?t.substring(1).split("").map((function(t){return 17*parseInt(t,16)})):[t.substring(1,3),t.substring(3,5),t.substring(5,7)].map((function(t){return parseInt(t,16)})):(console.error("lime-circle: 渐变仅支持hex值"),[0,0,0])},u=function(t){return 1===t.length?"0"+t:t},l=function(t,e,n){var i,r,a,o,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,l=[],d=[],f=function(t){return Math.pow(t/255,c)};for(t=s(t).map(f),e=s(e).map(f),i=0;n>i;i++){for(o=1-(a=i/(n-1)),r=0;3>r;r++)d[r]=u(Math.round(255*Math.pow(t[r]*o+e[r]*a,1/c)).toString(16));l.push("#"+d.join(""))}return l},d=function(t,e,n,i){var r=1e-6;function a(t){return((1*t-.75)*t+.75)*t}return function(t){return e=function(t){for(var e,n,i,o=t,c=0;8>c;c++){if(n=a(o)-t,r>Math.abs(n))return o;if(r>Math.abs(e=(3*(i=o)-1.5)*i+.75))break;o-=n/e}var s=1,u=0;for(o=t;s>u;){if(n=a(o)-t,r>Math.abs(n))return o;n>0?s=o:u=o,o=(s+u)/2}return o}(t),(((1-2.7)*e+2.4)*e+3*.1)*e;var e}}(),f=Symbol("tick"),h=Symbol("tick-handler"),v=Symbol("animations"),p=Symbol("start-times"),m=Symbol("pause-start"),b=Symbol("pause-time"),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(t,1e3/60)},y="undefined"!=typeof cancelAnimationFrame?cancelAnimationFrame:function(t){clearTimeout(t)},_=function(){function t(){i(this,t),this.state=void 0,this.state="Initiated",this[v]=new Set,this[p]=new Map}return a(t,[{key:"start",value:function(){var t=this;if("Initiated"===this.state){this.state="Started";var e=Date.now();this[b]=0,this[f]=function(){var n,i=Date.now(),r=c(t[v]);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=void 0;(o=t[p].get(a)<e?i-e-a.delay-t[b]:i-t[p].get(a)-a.delay-t[b])>a.duration&&(t[v].delete(a),o=a.duration),o>0&&a.run(o)}}catch(t){r.e(t)}finally{r.f()}t[h]=g(t[f])},this[f]()}}},{key:"pause",value:function(){"Started"===this.state&&(this.state="Paused",this[m]=Date.now(),y(this[h]))}},{key:"resume",value:function(){"Paused"===this.state&&(this.state="Started",this[b]+=Date.now()-this[m],this[f]())}},{key:"reset",value:function(){this.pause(),this.state="Initiated",this[b]=0,this[m]=0,this[v]=new Set,this[p]=new Map,this[h]=null}},{key:"add",value:function(t,e){2>arguments.length&&(e=Date.now()),this[v].add(t),this[p].set(t,e)}}]),t}(),w=function(){function t(e,n,r,a,o,c){i(this,t),this.startValue=void 0,this.endValue=void 0,this.duration=void 0,this.timingFunction=void 0,this.delay=void 0,this.template=void 0,o=o||function(t){return t},c=c||function(t){return t},this.startValue=e,this.endValue=n,this.duration=r,this.timingFunction=o,this.delay=a,this.template=c}return a(t,[{key:"run",value:function(t){var e=this.endValue-this.startValue,n=this.timingFunction(t/this.duration);this.template(this.startValue+e*n)}}]),t}(),x=Math.PI/180,k=function(){function t(e,n){i(this,t),this.canvas=void 0,this.context=void 0,this.current=0,this.size=0,this.pixelRatio=1,this._isConicGradient=!1,this._attrs={percent:0,size:"120px",lineCap:"round",strokeWidth:6,strokeColor:"#2db7f5",trailWidth:6,trailColor:"#ddd",dashboard:!1,clockwise:!0,duration:300,max:100,beforeAnimate:!0,animate:!0,formatter:"{d}{d}.{d}{d}%",fontSize:"16px",showText:!1},this._timer=void 0,this.startTime=0,this.target=0,this._colors=[],this._gradientColors=[],this._rAF=function(t){},this._cAf=function(t){},this.timeline=void 0,this.run=void 0,this.canvas=e,this.run=n.run,this.size=n.size||120,this.pixelRatio=n.pixelRatio||1,this.init(),this.initRaf(),this.timeline=new _(this._rAF,this._cAf)}return a(t,[{key:"init",value:function(){var t=this.size,e=this.pixelRatio;if(this.canvas){this.canvas.width=t*e,this.canvas.height=t*e;var n=this.canvas.getContext("2d");this._isConicGradient=!!n.createConicGradient,this.context=n}}},{key:"initRaf",value:function(){var t=this.canvas;"undefined"!=typeof window?(this._rAF=window.requestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},this._cAf=window.cancelAnimationFrame||function(t){window.clearTimeout(t)}):t&&t.requestAnimationFrame?(this._rAF=t.requestAnimationFrame,this._cAf=t.cancelAnimationFrame):(this._rAF=function(t){return setTimeout(t,16.7)},this._cAf=function(t){clearTimeout(t)})}},{key:"setOption",value:function(t){Object.assign(this._attrs,t)}},{key:"set",value:function(t,e){this._attrs[t]=e}},{key:"get",value:function(t){return this._attrs[t]||this.canvas[t]}},{key:"play",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.get("percent");this.target=Math.max(Math.min(e,this.get("max")||100),0),this.createConicGradient(),this.timeline.start(),this.timeline.add(new w(this.current,e,this.get("duration"),0,d,(function(e){t.current=1e-4>e?0:e,t.render(t.current),t.run(t.current)})))}},{key:"createConicGradient",value:function(){if(!this._isConicGradient){var t=this.get("strokeColor");if("string"!=typeof t&&this._colors!==t){this._colors=t,this._gradientColors=[];for(var e=this.getArc(),n=t.length-1,i=Math.floor(e/n),r=0;n>r;r++)e-=i,this._gradientColors=this._gradientColors.concat(l(t[r],t[r+1],r+1===n?i+e:i))}}}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.context,n=this.size,i=this.pixelRatio,r=this.getSalce(),a=this.getRotate(),o=n/2;e.setTransform(1,0,0,1,0,0),e.clearRect(-o,-o,n,n),e.setTransform(r*i,0,0,i,o*i,o*i),e.rotate(a*x),this.drawTrail(o),this.drawStroke(o,t),e.draw&&e.draw()}},{key:"drawArc",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.get("lineCap"),o=this.context;o.beginPath(),o.lineCap=a,o.strokeStyle=e,o.lineWidth=n,o.arc(0,0,t,i,r),o.stroke()}},{key:"getArc",value:function(){var t=this.get("arc");return t||(this.get("dashboard")?270:360)}},{key:"getSalce",value:function(){return this.get("clockwise")?1:-1}},{key:"getRotate",value:function(){return this.get("arc")?180:this.get("dashboard")?135:-90}},{key:"drawTrail",value:function(t){var e=t-this.get("trailWidth")/2;this.drawArc(e,this.get("trailColor"),this.get("trailWidth"),0,this.getArc()*x)}},{key:"drawStroke",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var n=t-this.get("strokeWidth")/2,i=this.get("strokeColor"),r=this.getArc(),a=Math.round(r/this.get("max")*e);if("string"==typeof i||this._isConicGradient)if("string"!=typeof i&&this._isConicGradient){var o=this.context,c=o.createConicGradient(this.get("dashboard")?45:90,0,0);i.forEach((function(t,e){c.addColorStop(e/(i.length-1),t)})),this.drawArc(n,c,this.get("strokeWidth"),0,a*x)}else this.drawArc(n,i,this.get("strokeWidth"),0,a*x);else for(var s=0;a>s;s++)this.drawArc(n,this._gradientColors[s],this.get("strokeWidth"),s*x,(s+1)*x,this.get("dashboard")||r!=a?this.get("lineCap"):"butt")}}}]),t}();e.Circle=k},3009:function(t,e,n){"use strict";n.r(e);var i=n("f5b7"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"340d":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5");var r=i(n("2634")),a=i(n("2fdc")),o={data:function(){return{modelVale:20,score:0,error_num:0,times:1e4,use_time:"",title:"'",img:"",showCard:!1,correct_num:0,list:[],cardList:[],type:null,logId:null}},onLoad:function(t){this.img=uni.getStorageSync("shareImg1"),this.score=t.score,this.error_num=t.error_num,this.correct_num=t.correct_num,this.use_time=decodeURIComponent(t.use_time),this.title=uni.getStorageSync("categoryTitle"),this.type=t.type,this.logId=t.logId,console.log(this.title),0!=this.type&&2!=this.type&&99!=this.type||this.questionLogInfo()},mounted:function(){},methods:{openPage:function(){uni.switchTab({url:"/pages/question/index"})},viewCard:function(){this.showCard=!0},selCardItem:function(t){this.showCard=!1,uni.navigateTo({url:"/pages/exercises/answerCard/answerCard?index="+t+"&error_num="+this.error_num+"&correct_num="+this.correct_num})},questionLogInfo:function(){var t=this;return(0,a.default)((0,r.default)().mark((function e(){var n,i,a,o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.showLoading({title:"加载中"}),e.next=3,t.$api.questionLogInfo({log_id:t.logId?t.logId:0});case 3:n=e.sent,i=n.code,a=n.data,o=n.msg,200==i?(uni.hideLoading(),t.cardList=a,uni.setStorageSync("cardList",JSON.stringify(a))):(uni.hideLoading(),uni.showToast({icon:"none",title:o}));case 8:case"end":return e.stop()}}),e)})))()}},onShareAppMessage:function(){return{title:this.title,imageUrl:this.img,path:"/pages/question/index"}},onShareTimeline:function(){return{title:this.title,imageUrl:this.img,path:"/pages/question/index"}}};e.default=o},3471:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,i.default)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(s)throw o}}}},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("7a76"),n("c9b5");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("5d6b"))},"381c":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvas=function(t,e){return u.apply(this,arguments)},e.isCanvas2d=void 0;var r=i(n("2634")),a=i(n("2fdc")),o=n("d350"),c=n("7690"),s=(0,c.canIUseCanvas2d)();function u(){return u=(0,a.default)((0,r.default)().mark((function t(n,i){var a;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=i.context,a.proxy&&(a=a.proxy),t.abrupt("return",(0,o.getRect)("#"+n,{context:a,type:s?"fields":"boundingClientRect"}).then((function(t){var i=t.node;if(i)return i;e.isCanvas2d=s=!1;var r=uni.createCanvasContext(n,a);return{getContext:function(t){if("2d"==t)return r}}})));case 3:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}e.isCanvas2d=s},4503:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.complete[data-v-9ba4f348]{width:100%;min-height:calc(100vh - 44px);background-color:#f6f6f6;padding:0 %?25?% %?25?%;overflow:hidden;box-sizing:border-box}.complete-con[data-v-9ba4f348]{padding:%?40?% %?20?%;overflow:hidden;border-radius:%?20?%;margin-top:%?20?%;background-color:#fff}.complete-con-tit[data-v-9ba4f348]{position:relative;height:%?60?%;line-height:%?60?%;font-size:%?34?%;color:#222;text-align:center}.complete-con-card[data-v-9ba4f348]{position:absolute;top:0;right:0;padding:%?6?% %?30?%;font-size:%?28?%;line-height:%?57?%;color:#fff;text-align:center;background:linear-gradient(-90deg,#3399ea,#38bcff);border-radius:%?29?%}.complete-con-progress[data-v-9ba4f348]{display:flex;justify-content:center;margin:%?50?% auto}.complete-con-progress .num[data-v-9ba4f348]{font-size:%?40?%;font-weight:700;color:#f24646}.complete-con-progress .num uni-text[data-v-9ba4f348]{font-size:%?75?%;font-weight:700;color:#f01b1b}.complete-con-section[data-v-9ba4f348]{display:flex;justify-content:space-between;padding-top:%?50?%;border-top:1px solid #f5f5f5}.complete-con-section .sec[data-v-9ba4f348]{display:flex;justify-content:start;width:42%;padding:%?30?% 3%;background-color:#f2f3f5;border-radius:%?20?%}.complete-con-section .sec uni-image[data-v-9ba4f348]{width:%?80?%;height:%?80?%;margin-right:%?20?%}.complete-con-section .sec .txt[data-v-9ba4f348]{font-size:%?28?%;color:#464646}.complete-con-section .sec .txt uni-text[data-v-9ba4f348]{display:block;font-size:%?32?%;font-weight:700;color:#363636}.complete-btns[data-v-9ba4f348]{width:90%;margin:%?36?% auto 0;display:flex;justify-content:space-between}.complete-btns .btn[data-v-9ba4f348]{width:48%;padding:%?26?% 0;font-size:%?30?%;color:#fff;border-radius:%?84?%;text-align:center;position:relative}.complete-btns .btn uni-image[data-v-9ba4f348]{width:%?44?%;height:%?44?%;margin-right:%?12?%;vertical-align:middle}.complete-btns .btn uni-button[data-v-9ba4f348]{width:100%;height:100%;position:absolute;left:0;top:0;z-index:2;opacity:0}.complete-btns .btn-1[data-v-9ba4f348]{background:linear-gradient(-90deg,#14baa1,#52d4c0)}.complete-btns .btn-2[data-v-9ba4f348]{background:linear-gradient(-90deg,#3399ea,#38bcff)}',""]),t.exports=e},4719:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.useTransition=function(t,e){var n=(0,a.ref)(0),o=e.immediate,c=e.duration,s=new r.Timeline,u=(0,a.watch)((function(){return t.value}),(function(t){s.start(),s.add(new r.Animation(n.value,t,c,0,i.ease,(function(t){n.value=t<1e-4?0:t})))}),{immediate:o});return[n,u]};var i=n("6ac7"),r=n("281b"),a=n("697d")},"4d24":function(t,e,n){"use strict";n.r(e);var i=n("340d"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"58ff":function(t,e,n){"use strict";n.r(e);var i=n("ef5c"),r=n("3009");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("5c89");var o=n("828b"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"f44274c8",null,!1,i["a"],void 0);e["default"]=c.exports},"5c89":function(t,e,n){"use strict";var i=n("24ee"),r=n.n(i);r.a},"697d":function(t,e,n){"use strict";n("6a54"),n("bf0f"),n("2797"),n("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var i=n("c4a0");Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}))},"6ac7":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.ease=void 0;var i=n("7507"),r=(0,i.cubicBezier)(.25,.1,.25,1);e.ease=r},7507:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.cubicBezier=function(t,e,n,i){var r=3*t-3*n+1,a=3*n-6*t,o=3*t,c=3*e-3*i+1,s=3*i-6*e,u=3*e;function l(t){return(3*r*t+2*a)*t+o}function d(t){return((r*t+a)*t+o)*t}return function(t){return function(t){return((c*t+s)*t+u)*t}(function(t){for(var e,n,i=t,r=0;r<8;r++){if(n=d(i)-t,Math.abs(n)<1e-6)return i;if(e=l(i),Math.abs(e)<1e-6)break;i-=n/e}var a=1,o=0;i=t;while(a>o){if(n=d(i)-t,Math.abs(n)<1e-6)return i;n>0?a=i:o=i,i=(a+o)/2}return i}(t))}}},7690:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.canIUseCanvas2d=function(){return!1},n("aa9c"),n("e966")},"7d1f":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={percent:{type:Number,default:0},size:{type:String,default:"120px"},lineCap:{type:String,default:"round"},strokeWidth:{type:[String,Number],default:6},strokeColor:{type:[String,Array],default:"#2db7f5"},trailWidth:{type:[String,Number],default:6},trailColor:{type:String,default:"#ddd"},dashboard:Boolean,clockwise:{type:Boolean,default:!0},duration:{type:Number,default:300},max:{type:Number,default:100},canvas:Boolean};e.default=i},b3bf:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.isString=void 0;e.isString=function(t){return"string"===typeof t}},b418:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.isDef=function(t){return void 0!==t&&null!==t}},d25b:function(t,e,n){"use strict";var i=n("2032"),r=n.n(i);r.a},d350:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.getRect=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="boundingClientRect",i=e.context,r=e.needAll,a=e.type,o=void 0===a?n:a;i.proxy&&(i=i.proxy);return new Promise((function(e,a){var c=uni.createSelectorQuery().in(i)[r?"selectAll":"select"](t),s=function(t){t?e(t):a("no rect")};o==n?c[o](s).exec():c[o]({node:!0,size:!0,rect:!0},s).exec()}))},n("bf0f"),n("5c47")},ea01:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */@supports (background:conic-gradient(#000,#fff)){.check[data-v-f44274c8]{height:%?1?%;position:absolute}}@property --l-circle-percent{syntax:"<percentage>";initial-value:25%;inherits:false}[data-v-f44274c8]:root{display:inline-block}.l-circle[data-v-f44274c8]{position:relative;display:inline-block}.l-circle__canvas[data-v-f44274c8]{width:100%;height:100%}.l-circle__inner[data-v-f44274c8]{position:absolute;left:0;right:0;top:0;bottom:0;align-items:center;justify-content:center;display:flex}.l-circle__trail[data-v-f44274c8], .l-circle__stroke[data-v-f44274c8], .l-circle__stroke-line[data-v-f44274c8]{position:absolute;width:100%;height:100%;border-radius:50%}.l-circle__stroke-line[data-v-f44274c8]{z-index:2;background:var(--l-background)}.is-round .l-circle__trail .cap[data-v-f44274c8]{position:absolute;display:block;width:var(--l-circle-trail-cap-size,6px);height:var(--l-circle-trail-cap-size,6px);background-color:currentColor;z-index:10;border-radius:50%}.is-round .l-circle__trail .cap.start[data-v-f44274c8]{left:var(--l-circle-trail-cap-start-x,14%);top:var(--l-circle-trail-cap-start-y,81%)}.is-round .l-circle__trail .cap.end[data-v-f44274c8]{left:var(--l-circle-trail-cap-end-x,14%);top:var(--l-circle-trail-cap-end-y,81%)}.is-round .l-circle__stroke .cap[data-v-f44274c8]{position:absolute;display:block;width:var(--l-circle-stroke-cap-size,6px);height:var(--l-circle-stroke-cap-size,6px);background-color:var(--l-circle-stroke-cap-start-color,var(--l-fill-2,rgba(0,0,0,.06)));\r\n /* z-index: 10; */border-radius:50%;transition:opacity .3s ease-out;opacity:var(--l-circle-stroke-cap-opacity,0)}.is-round .l-circle__stroke .cap.start[data-v-f44274c8]{left:var(--l-circle-stroke-cap-start-x,14%);top:var(--l-circle-stroke-cap-start-y,81%);background-color:var(--l-circle-stroke-cap-start-color,var(--l-fill-2,rgba(0,0,0,.06)))}.is-round .l-circle__stroke .cap.end[data-v-f44274c8]{left:var(--l-circle-stroke-cap-end-x,14%);top:var(--l-circle-stroke-cap-end-y,81%);z-index:-1;background-color:var(--l-circle-stroke-cap-end-color,var(--l-fill-2,rgba(0,0,0,.06)))}.clockwise[data-v-f44274c8]{-webkit-transform:translateY(var(--l-circle-offset-top,0)) scaleX(-1);transform:translateY(var(--l-circle-offset-top,0)) scaleX(-1)}.clockwise .l-circle__inner[data-v-f44274c8]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}',""]),t.exports=e},ef5c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"l-circle",class:[{clockwise:!t.clockwise&&!t.useCanvas},["is-"+t.lineCap]],style:[t.styles]},[n("v-uni-view",{staticClass:"check"}),t.useCanvas?t._e():n("v-uni-view",{staticClass:"l-circle__trail",style:[t.trailStyles]},[n("v-uni-text",{staticClass:"cap start"}),n("v-uni-text",{staticClass:"cap end"})],1),t.useCanvas?t._e():n("v-uni-view",{staticClass:"l-circle__stroke",style:[t.strokeStyles]},[n("v-uni-view",{staticClass:"l-circle__stroke-line"}),t.current?n("v-uni-text",{staticClass:"cap start"}):t._e(),t.current?n("v-uni-text",{staticClass:"cap end"}):t._e()],1),t.useCanvas?n("v-uni-canvas",{staticClass:"l-circle__canvas",attrs:{type:"2d","canvas-id":t.canvasId,id:t.canvasId}}):t._e(),n("v-uni-view",{staticClass:"l-circle__inner"},[t._t("default")],2)],1)},r=[]},f257:function(t,e,n){"use strict";n.r(e);var i=n("07fd"),r=n("4d24");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("d25b");var o=n("828b"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"9ba4f348",null,!1,i["a"],void 0);e["default"]=c.exports},f5b7:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("5de6"));n("c223");var a=n("697d"),o=n("4719"),c=i(n("7d1f")),s=n("381c"),u=n("2f3e"),l=n("2f24"),d=n("1dcc"),f=n("b3bf"),h=n("d350"),v=(0,a.defineComponent)({name:"l-circle",props:c.default,emits:["update:current"],setup:function(t,e){var n=e.emit,i=(0,a.getCurrentInstance)(),c=(0,a.ref)(t.canvas),v="l-circle-".concat(i.uid),p=null,m=Math.PI/180,b=(0,a.computed)((function(){return 100/t.max})),g=(0,a.ref)(0),y=(0,a.computed)((function(){return t.dashboard?135:-90})),_=(0,a.computed)((function(){var e=t.dashboard;return O.value>0&&(!!e||O.value<t.max)})),w=(0,a.ref)(0),x=(0,a.reactive)({x:"0",y:"0"}),k=(0,a.computed)((function(){return{width:(0,l.addUnit)(t.size),height:(0,l.addUnit)(t.size),"--l-circle-offset-top":!c.value&&w.value}})),C=(0,a.computed)((function(){t.clockwise;var e=t.lineCap;return e?"is-".concat(e," "):!c.value&&"clockwise"})),S=(0,a.computed)((function(){var e=t.size,n=t.trailWidth,i=t.trailColor,r=t.dashboard,a=z(e,n),o="radial-gradient(transparent ".concat(a.r-.5,"px, #000 ").concat(a.r,"px)"),c="",s={x:"",y:""},u=s;return r?(c="conic-gradient(from 225deg, ".concat(i," 0%, ").concat(i," 75%, transparent 75%, transparent 100%)"),s=M(a.c,135),u=M(a.c,45),w.value=((0,d.unitConvert)(e)-((0,d.unitConvert)(s.y)+(0,d.unitConvert)(n)/2))/4+"px"):c="".concat(i),{color:i,mask:o,"-webkit-mask":o,background:c,"--l-circle-trail-cap-start-x":s.x,"--l-circle-trail-cap-start-y":s.y,"--l-circle-trail-cap-end-x":u.x,"--l-circle-trail-cap-end-y":u.y,"--l-circle-trail-cap-size":(0,l.addUnit)((0,d.unitConvert)(n))}})),A=(0,a.computed)((function(){var e=t.size,n=t.strokeWidth,i=t.strokeColor,r=t.dashboard,a=t.max,o=z(e,n),c=r?.75*O.value*b.value:O.value*b.value,s="radial-gradient(transparent ".concat(o.r-.5,"px, #000 ").concat(o.r,"px)"),u=M(o.c,y.value),h="",v="",p="conic-gradient(".concat(r?"from 225deg,":""," transparent 0%,"),m="transparent var(--l-circle-percent), transparent ".concat(r?"75%":"100%",")");if((0,f.isString)(i))p+=" ".concat(i," 0%, ").concat(i," var(--l-circle-percent), ").concat(m),h=v=i;else if(Array.isArray(i)){for(var g=i.length,w=0;w<g;w++){var k=i[w];0===w?(p+="".concat(k," 0%,"),h=k):p+="".concat(k," calc(var(--l-circle-percent) * ").concat((w+1)/g,"),"),w==g-1&&(v=k)}p+=m}return{mask:s,"-webkit-mask":s,"--l-background":p,"--l-circle-percent":"".concat(c/b.value==a?c+.1:c,"%"),"--l-circle-stroke-cap-start-color":h,"--l-circle-stroke-cap-end-color":v,"--l-circle-stroke-cap-start-x":u.x,"--l-circle-stroke-cap-start-y":u.y,"--l-circle-stroke-cap-end-x":x.x,"--l-circle-stroke-cap-end-y":x.y,"--l-circle-stroke-cap-size":(0,l.addUnit)((0,d.unitConvert)(n)),"--l-circle-stroke-cap-opacity":_.value?1:0}})),M=function(t,e){return{x:t+t*Math.cos(e*m)+"px",y:t+t*Math.sin(e*m)+"px"}},z=function(t,e){var n=(0,d.unitConvert)(t),i=(0,d.unitConvert)(e),r=(n-i)/2,a=n/2-i;return{s:n,w:i,c:r,r:a}},j=(0,o.useTransition)(g,{duration:t.duration}),I=(0,r.default)(j,2),O=I[0],P=I[1],T=(0,a.watch)((function(){return t.percent}),(function(t){g.value=t,p&&p.play(t)})),F=(0,a.watch)(O,(function(e){c.value||function(){var e=t.size,n=t.strokeWidth,i=t.dashboard,r=t.max,a=z(e,n),o=i?270:360,c=o/r*O.value+y.value,s=M(a.c,c);x.x=s.x,x.y=s.y}(),n("update:current",e.toFixed(2))}));return(0,a.onMounted)((function(){(0,h.getRect)(".check",{context:i}).then((function(e){c.value=!(e.height>0&&!t.canvas),c.value&&(P(),setTimeout((function(){(0,s.getCanvas)(v,{context:i}).then((function(e){p=new u.Circle(e,{size:(0,d.unitConvert)(t.size),run:function(t){return O.value=t},pixelRatio:s.isCanvas2d?uni.getSystemInfoSync().pixelRatio:1}),p.setOption(function(){var e=t.strokeWidth,n=t.trailWidth;return Object.assign({},t,{trailWidth:(0,d.unitConvert)(n),strokeWidth:(0,d.unitConvert)(e)})}()),p.play(t.percent)}))}),50)),g.value=t.percent}))})),(0,a.onUnmounted)((function(){T(),F(),P()})),{useCanvas:c,canvasId:v,classes:C,styles:k,trailStyles:S,strokeStyles:A,current:O}}});e.default=v},fbe5:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.isNumeric=function(t){return/^(-)?\d+(\.\d+)?$/.test(t)},n("5c47"),n("0506")}}]);