module/household/themes/sender/household_order/show.js

(开头部分) 2KB

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

var App=new Vue({
	el:"#app",
	data:function(){
		return {
			order:{},
			logList:[],
			appendBox:false,
			appendData:{},
			append_money:0,
			append_content:""
		}
	},
	created:function(){
		this.getPage();
	},
	methods:{
		getPage:function(){
			var that=this;
			$.ajax({
				url:"sender.php?m=household_order&a=show&ajax=1&orderid="+orderid,
				dataType:"json",
				success:function(res){
					that.order=res.data.order;
					that.logList=res.data.logList;
					that.appendData=res.data.append;
				}
			})
		},
		confirm:function(order){
			if(confirm("确认正在处理吗")){
				var that=this;
				$.ajax({
					url:"sender.php?m=household_order&a=confirm&ajax=1&orderid="+order.orderid,
					dataType:"json",
					success:function(res){
						skyToast(res.message);
						if(!res.error){
							that.getPage();
						}
						 
					}
				})
			}
		},
		send:function(order){
			var that=this;
			skyJs.confirm({
				content:"确认处理完了吗",
				success:function(){
					$.ajax({
						url:"sender.php?m=household_order&a=send&ajax=1&orderid="+order.orderid,
						dataType:"json",
						success:function(res){
							skyToast(res.message);
							if(!res.error){
								that.getPage();
							}
						}
					})
				}
后面还有 36 行代码,购买后查看完整代码

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

AI 解读

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

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