💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 小票扫码 >[info]功能: 1,显示数据:查询 `wp_order` 订单表 显示待支付的订单信息 订单由前台用户购买商品生成 点击结算 改变支付状态 back: function() { $.ajax({ type: "GET", url: base_url+"/home/welcome/user_index", data: {}, dataType: "json", success: function(data) { if(data.status) { $(" body").html(data.html); } } }); }, /** * * 切换订单状态 */ changeType: function(obj){ this.type = obj; this.hide = 1; var that = this $.ajax({ type: "POST", url: base_url+"/home/welcome/order_ticket", data: {type:obj}, dataType: "json", success: function(data) { that.order_list = data; if(data.length == 0){ that.order = 0; } else{ that.order = 1; } } }); }, /** * * 通过会员手机号和订单号搜索 */ search_ceshi: function(val){ if(!val){ Public.tips.error('请输入订单号'); return false; } var that = this $.get(base_url+"/home/welcome/order_serach",{wq:val},function(rs){ if(data == null){ that.order = 0; Public.tips.error('该订单不存在'); }else{ that.order = 1; that.order_list[0] = data } },'json') }, /** * * 键盘输入 */ calculator: function(v) { this.order_id += v; }, /** * 退格 */ backspace: function() { if(this.order_id) { this.order_id = this.order_id.replace(/.$/,''); } }, /** * * 订单详情 */ order_detail: function(obj) { this.hide = 0; this.order_id = obj var that = this $.ajax({ type: "POST", url: base_url+"/home/welcome/order_ticket", data: {order_id: obj, mold: 'detail'}, dataType: "json", success: function(data) { that.detail_list = data.detail that.detail = data.order var swiperticket= new Swiper('.swiper-ticket', { scrollbar: '.swiper-scrollbar-ticket', direction: 'vertical', slidesPerView: 'auto', slidesPerView:5, mousewheelControl: true, freeMode: true, initialSlide :0, observer:true,//修改swiper自己或子元素时,自动初始化 observeParents:true//修改swiper的父元素时,自动初始化swiper }); } }); }, cancel: function() { this.hide = 1; this.order_id = ''; }, account: function() { var that = this; $.ajax({ type: "POST", url: base_url+"/home/welcome/pay", data: {order_id:that.order_id, type:'ticket'}, dataType: "json", success: function(data) { if(data.status) { $(" body").html(data.html); } } }); } }