|
|
|
|
if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";const t="/static/forw.png",a=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a};const n=a({data:()=>({}),methods:{}},[["render",function(a,n,o,l,s,r){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"begin"},"我的班级"),e.createElementVNode("view",{class:"page-body"},[e.createElementVNode("view",{class:"btn-area"},[e.createElementVNode("navigator",{url:"/pages/index/question/question","hover-class":"navigator-hover"},[e.createElementVNode("button",{type:"default",class:"btn-with-icon"},[e.createElementVNode("view",{class:"btn-content"},[e.createElementVNode("image",{class:"btn-icon",src:"/static/class1.png"}),e.createElementVNode("view",{class:"shangke"},"上课次数:9")]),e.createElementVNode("view",{class:"btn-text"},"签到模拟"),e.createElementVNode("image",{src:t,class:"forward-icon"})])]),e.createElementVNode("navigator",{url:"/pages/index/attendance/attendance","hover-class":"navigator-hover"},[e.createElementVNode("button",{type:"default",class:"btn-with-icon"},[e.createElementVNode("view",{class:"btn-content"},[e.createElementVNode("image",{class:"btn-icon",src:"/static/class2.png"}),e.createElementVNode("view",{class:"shangke"},"上课次数:5")]),e.createElementVNode("view",{class:"btn-text"},"点名模拟"),e.createElementVNode("image",{src:t,class:"forward-icon"})])])])])])}]]);const o=a({data:()=>({availablePoints:140,products:[{name:"提问转移",price:25,description:"该商品允许用户将自己的提问转移到其他用户",message:""},{name:"免密钥签到",price:50,description:"购买此商品后,用户可以享受一次免密钥签到服务",message:""},{name:"成绩+1",price:200,description:"购买此商品后,用户可以获得额外的分数",message:""}]}),methods:{confirmPurchase(e){e.price>this.availablePoints?e.message="积分不足,无法购买该商品!":(this.availablePoints-=e.price,e.message=`购买成功!${e.name} 已购买,消耗 ${e.price} 积分。`)}}},[["render",function(t,a,n,o,l,s){return e.openBlock(),e.createElementBlock("view",{class:"product-list"},[e.createElementVNode("h2",null,"可用积分: "+e.toDisplayString(l.availablePoints)+" 积分",1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.products,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"product-item"},[e.createElementVNode("h2",null,e.toDisplayString(t.name),1),e.createElementVNode("p",{class:"shop-pri"},[e.createElementVNode("span",{style:{"font-size":"48rpx",color:"firebrick","font-weight":"bold","margin-left":"auto"}},e.toDisplayString(t.price),1),e.createElementVNode("span",{style:{"align-items":"center","padding-left":"10rpx"}},"积分")]),e.createElementVNode("p",null,"介绍: "+e.toDisplayString(t.description),1),e.createElementVNode("view",{class:"shop-btn"},[e.createElementVNode("button",{onClick:e=>s.confirmPurchase(t)},"确认购买",8,["onClick"])]),t.message?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message"},e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)])))),128))])}],["__scopeId","data-v-60c61bc9"]]);const l=a({data:()=>({name:"",studentId:"",className:"",age:"",major:""}),methods:{saveInfo(){uni.showToast({title:"信息已保存",icon:"success"})}}},[["render",function(t,a,n,o,l,s){return e.openBlock(),e.createEl
|