1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c773cc0"],{"0088":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'.page[data-v-38ce4224]{background:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/videoAnswerBg@3x.png);background-size:cover;min-height:100vh}.title[data-v-38ce4224]{height:2.938rem;width:375px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.title .con[data-v-38ce4224]{width:100%;position:relative}.title .con[data-v-38ce4224],.title .con .left[data-v-38ce4224]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.title .con .left[data-v-38ce4224]{position:absolute;left:0;top:0;width:3rem;height:100%;padding-left:1.313rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.title .con .left .icon-member-left[data-v-38ce4224],.title .con .right[data-v-38ce4224]{color:#000;font-weight:700}.title .con .right[data-v-38ce4224]{-webkit-box-flex:0;-webkit-flex:0 0 calc(100% - 6rem);-ms-flex:0 0 calc(100% - 6rem);flex:0 0 calc(100% - 6rem);width:calc(100% - 6rem);margin:0 auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:1.125rem;letter-spacing:.056rem;pointer-events:none;text-overflow:ellipsis;white-space:normal;overflow:hidden}.header[data-v-38ce4224]{margin:0 auto;padding-top:1.8rem;font-size:2.2rem;color:#e9e8e8}.answerContainer[data-v-38ce4224]{margin:0 auto;margin-top:2.8rem;width:19.969rem;height:20.625rem;border-radius:5%;background-color:#fff;padding:1.8rem 2.2rem 0;position:relative}.answerContainer[data-v-38ce4224]:before{left:-.5rem}.answerContainer[data-v-38ce4224]:after,.answerContainer[data-v-38ce4224]:before{content:"";display:block;width:1rem;height:1rem;border-radius:50%;position:absolute;top:2rem;background:#cf243b}.answerContainer[data-v-38ce4224]:after{right:-.5rem}.answerContainer .answerTitle[data-v-38ce4224]{color:#333;font-size:.938rem}.answerContainer .answerList[data-v-38ce4224]{padding-top:1.53rem;height:16rem;overflow:scroll}.answerContainer .answerList .answerItem[data-v-38ce4224]{width:100%;height:2.656rem;background-color:#f1f1f1;border-radius:1.328rem;color:#333;font-size:.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-bottom:1.06rem}.answerContainer .answerList .answerItem[data-v-38ce4224]:active{background:#cf243b;color:#fff}.successAlert[data-v-38ce4224]{width:19.563rem;height:17.631rem;background:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/videoAnswerAlert@3x.png);background-size:contain;background-repeat:no-repeat}.successAlert .c1[data-v-38ce4224]{color:#f06161;font-size:1rem;padding-top:1.3rem}.successAlert .c2[data-v-38ce4224]{color:#333;font-size:1rem;margin-top:1.8rem}.successAlert .c3[data-v-38ce4224]{color:#f06161;font-size:2.25rem;margin-top:1.575rem}.successAlert .btn[data-v-38ce4224]{width:10.375rem;height:2.35rem;margin:0 auto;margin-top:4rem}.successAlert .btn img[data-v-38ce4224]{width:100%;height:auto}.errorAlert[data-v-38ce4224]{width:15.938rem;height:15.938rem;background-color:#fff;border-radius:.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-top:2rem}.errorAlert .sigh[data-v-38ce4224]{width:5.8rem;padding-left:.8rem;height:4.719rem}.errorAlert .sigh img[data-v-38ce4224]{width:100%;height:100%}.errorAlert .c1[data-v-38ce4224]{margin-top:.8rem;font-size:1rem;color:#999}.errorAlert .c2[data-v-38ce4224]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;color:#333;font-size:.875rem}.errorAlert .btn[data-v-38ce4224],.errorAlert .c2[data-v-38ce4224]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:1rem}.errorAlert .btn[data-v-38ce4224]{font-size:.938rem;color:#fff;width:11.188rem;height:1.906rem;background-color:#f35056;border-radius:.188rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}',""]),e.exports=t},34374:function(e,t,i){"use strict";i("bf23")},bf23:function(e,t,i){var a=i("0088");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("499e").default;r("0af85d00",a,!0,{sourceMap:!1,shadowMode:!1})},d2e7a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page"},[i("div",{staticClass:"title"},[i("div",{staticClass:"con",staticStyle:{height:"2.938rem"}},[i("div",{staticClass:"left",on:{click:e.goto}},[i("i",{staticClass:"iconfont icon-member-left back"})]),i("div",{staticClass:"right"},[e._v("答题")])])]),i("div",{staticClass:"header"},[e._v("答题赢"+e._s(e.integral_name))]),null!=e.subject?i("div",{staticClass:"answerContainer"},[i("div",{staticClass:"answerTitle"},[e._v(e._s(e.subject.title))]),i("div",{staticClass:"answerList"},e._l(e.answerfilter,(function(t){return i("div",{key:t.id,staticClass:"answerItem",on:{click:function(i){return e.reward(t.id)}}},[e._v(e._s(t.content))])})),0)]):e._e(),i("van-popup",{staticStyle:{background:"transparent"},attrs:{"close-on-click-overlay":!1},model:{value:e.successShow,callback:function(t){e.successShow=t},expression:"successShow"}},[i("div",{staticClass:"successAlert"},[i("div",{staticClass:"c1"},[e._v("答题成功")]),i("div",{staticClass:"c2"},[e._v("恭喜你获得"+e._s(e.integral_name))]),i("div",{staticClass:"c3"},[e._v(e._s(e.integral))]),i("div",{staticClass:"btn",on:{click:e.goto}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/videoAnswerSuccess@3x.png",alt:""}})])])]),i("van-popup",{staticStyle:{background:"transparent"},attrs:{"close-on-click-overlay":!1},model:{value:e.errorShow,callback:function(t){e.errorShow=t},expression:"errorShow"}},[i("div",{staticClass:"errorAlert"},[i("div",{staticClass:"sigh"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/videoAnswerTan@3x.png",alt:""}})]),i("div",{staticClass:"c1"},[e._v("答题失败")]),i("div",{staticClass:"c2"},[i("span",[e._v("很遗憾,答错了。请重新")]),i("span",[e._v("观看,再接再厉!")])]),i("div",{staticClass:"btn",on:{click:e.goto}},[e._v("我知道了")])])])],1)},r=[],n=(i("e7e5"),i("d399")),s=i("c7eb"),c=i("1da1"),o=(i("4de4"),i("d3b7"),i("14d9"),{data:function(){return{successShow:!1,errorShow:!1,subject:null,integral:0,integral_name:"积分"}},created:function(){return Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},mounted:function(){this.getSubject()},computed:{answerfilter:function(){return this.subject.has_many_answer.filter((function(e){return""!=e.content}))}},methods:{getSubject:function(){var e=this;$http.get("plugin.answer-reward.api.index.get-subject",{vid:this.$route.query.vid},"load").then((function(t){1==t.result&&(1!=t.data.status?Object(n["a"])("本视频你已获得积分奖励"):null!=t.data.subject&&(e.integral_name=t.data.integral_name,e.subject=t.data.subject))}))},reward:function(e){var t=this;$http.get("plugin.answer-reward.api.index.index",{vid:this.$route.query.vid,subject_id:this.subject.id,answer_id:e},"load").then((function(e){1!=e.result?t.errorShow=!0:0==e.data.status?Object(n["a"])(e.msg):1==e.data.status&&(t.integral=e.data.integral,t.successShow=!0)}))},goto:function(){window.history.length<=1?this.$router.push(this.fun.getUrl("home",{})):this.$router.go(-1)}}}),l=o,d=l,m=(i("34374"),i("2877")),u=Object(m["a"])(d,a,r,!1,null,"38ce4224",null);t["default"]=u.exports}}]); |