|
@@ -191,33 +191,33 @@ var vm = new Vue({
|
|
|
},
|
|
|
downFile (item) {
|
|
|
//location.href = item.s_downUrl
|
|
|
- $.ajax({
|
|
|
- type: 'post',
|
|
|
- url: '/jypay/resourcePack/consumePack',
|
|
|
- data: {
|
|
|
- productName: '附件下载包',
|
|
|
- platform: 'APP',
|
|
|
- fileName: item.s_fileName,
|
|
|
- id: item.s_id,
|
|
|
- title: item.s_title
|
|
|
- },
|
|
|
- success: function (r) {
|
|
|
- if (r && r.m === '' && r.r) {
|
|
|
- location.href = r.r.downUrl
|
|
|
- setTimeout(function(){
|
|
|
- location.reload();
|
|
|
- },2000)
|
|
|
- }else{
|
|
|
- vant.Dialog.alert({
|
|
|
- message: '附件下载异常,请联系管理员,谢谢!',
|
|
|
- className: 'custom-dialog',
|
|
|
- confirmButtonText: '我知道了',
|
|
|
- confirmButtonColor: '#2ABDD1',
|
|
|
- width: 303,
|
|
|
- }).then(() => {})
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: '/jypay/resourcePack/consumePack',
|
|
|
+ data: {
|
|
|
+ productName: '附件下载包',
|
|
|
+ platform: 'APP',
|
|
|
+ fileName: item.s_fileName,
|
|
|
+ id: item.s_id,
|
|
|
+ title: item.s_title
|
|
|
+ },
|
|
|
+ success: function (r) {
|
|
|
+ if (r && r.m === '' && r.r) {
|
|
|
+ location.href = r.r.downUrl
|
|
|
+ setTimeout(function(){
|
|
|
+ location.reload();
|
|
|
+ },2000)
|
|
|
+ }else{
|
|
|
+ vant.Dialog.alert({
|
|
|
+ message: '附件下载异常,请联系管理员,谢谢!',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ confirmButtonText: '我知道了',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ width: 303,
|
|
|
+ }).then(() => {})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
commonDialogFn (message, confirmText, callBack) {
|
|
|
if (this.ptype == "1") {
|