module/flk/themes/shop/flk_order/show.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

new Vue({
	el:"#App",
	data:function(){
		return {
			order:{},
			addr:{},
			prolist:{},
			shop:{}
		}
	},
	created:function(){
		this.getPage();
	},
	methods:{
		getPage:function(){
			var that=this;
			$.ajax({
				url:"/moduleshop.php?m=flk_order&a=show&ajax=1&orderid="+orderid,
				dataType:"json",
				success:function(res){
					if(res.error){
						skyToast(res.message)
						return false;
					}
					that.order=res.data.order;
					that.addr=res.data.addr;
					that.prolist=res.data.prolist;
				}
			})
		},
		cancel:function(orderid){
			var that=this;
			if(confirm("确认取消订单吗?")){
				$.ajax({
					dataType:"json",
					url:"/moduleshop.php?m=flk_order&a=cancel&ajax=1&orderid="+orderid,
					success:function(res){
						if(res.error){
							return false;
						}
						var order=that.order;
						order.status=4;
						order.status_name="已取消";
						that.order=order;
					}
				})
			}
		},
		confirm:function(orderid){
			var that=this;
			if(confirm("确认接单吗?")){
				$.ajax({
					dataType:"json",
					url:"/moduleshop.php?m=flk_order&a=confirm&ajax=1&orderid="+orderid,
					success:function(res){
						if(res.error){
							return false;
						}
						var order=that.order;
						order.status=1;
后面还有 26 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。