module/flk/themes/shop/flk_order_code/index.js
(完整代码) 1KBvar that;
new Vue({
el:"#App",
data:function(){
return {
ordercode:"",
order:{},
prolist:{},
isorder:false,
errorMsg:"",
finishMsg:""
}
},
created:function(){
that=this;
if(ordercode!=""){
this.ordercode=ordercode;
this.checkOrder();
}
},
methods:{
checkOrder:function(){
$.ajax({
dataType:"json",
url:"/moduleshop.php?m=flk_order_code&a=check&ajax=1&ordercode="+this.ordercode,
success:function(res){
if(res.error){
that.errorMsg=res.message;
return false;
}
that.errorMsg="";
that.isorder=true;
that.order=res.data.order;
that.prolist=res.data.prolist;
}
})
},
finishOrder:function(){
$.ajax({
dataType:"json",
url:"/moduleshop.php?m=flk_order_code&a=finish&ajax=1&ordercode="+this.ordercode,
success:function(res){
that.finishMsg=res.message;
if(res.error){
skyToast(res.message);
return false;
}
that.order.status=3;
that.order.status_name="待评价";
}
})
}
}
})
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。