| 12345678910111213141516171819202122232425262728293031323334353637 |
- var app = new Vue({
- 'el': '#app',
- 'data': {
- // 详情
- submitting: false,
- },
- methods: {
- // 获取列表数据
- rePrint: function(){
- var _this = this;
- if(_this.submitting){
- return false;
- }
- var id = getParam('id');
- if(id<=0 || id == ''){
- $.showLoading("订单参数错误...");
- setTimeout(function(){
- location.href = history.go(-1);
- }, 500)
- return false;
- }
- $.showLoading("重新打印中,请耐心等候...");
- $.post('/weixin/print/rePrint', {id: id}, function (res) {
- $.hideLoading();
- if (res.code == 'success') {
- $.toast('已成功发起打印,请留意设备口');
- }else if(res.code == 'login'){
- login(res.data.url);
- }else{
- $.toast(res.message)
- }
- }, "json");
- }
- }
- })
|