天启工作室

学生作品广场

同学们完成的Scratch、Python创意项目展示

3D跑酷游戏

Scratch | 学生作品

飞机大战

Python | 学生作品

羊了个羊

Scratch | 学生作品

超级马里奥

Python | 学生作品

作品广场 - 天启工作室
天启工作室

学生作品广场

提交作品
function passWork(idx){ if(!confirm("确定审核通过,奖励作者8天启币?")) return; let workList = JSON.parse(localStorage.getItem("workList")) || []; const work = workList[idx]; work.isPass = true; //给作者加币 let userList = JSON.parse(localStorage.getItem("userList")); const userIndex = userList.findIndex(u=>u.name === work.author); userList[userIndex].coin += 8; //更新currentUser缓存,如果当前登录的就是这个作者 const current = JSON.parse(localStorage.getItem("currentUser")); if(current.name === work.author){ current.coin = userList[userIndex].coin; localStorage.setItem("currentUser",JSON.stringify(current)); } localStorage.setItem("userList",JSON.stringify(userList)); localStorage.setItem("workList",JSON.stringify(workList)); addCoinRecord("作品审核奖励",8,work.author); renderWorks(); } //全局函数,给作者增加流水 function addCoinRecord(type,num,username){ let record = JSON.parse(localStorage.getItem("coinRecord")) || []; record.push({ username:username, type:type, num:num, time:new Date().toLocaleString() }) localStorage.setItem("coinRecord",JSON.stringify(record)); }