Commit b0d74a3a by 梁建民

资料下载bug修复

parent 48a62247
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<p class="t1">{{item.title}}</p> <p class="t1">{{item.title}}</p>
</template> </template>
<template v-else> <template v-else>
<p class="t1" @click="toUrl">{{item.title}}</p> <p class="t1">{{item.title}}</p>
</template> </template>
<div class="bar"> <div class="bar">
<p class="t2">已下载{{item.download_num}}次</p> <p class="t2">已下载{{item.download_num}}次</p>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
}); });
setTimeout(() => { setTimeout(() => {
window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download' window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownload&from=download'
}, 1000) }, 1000)
}, },
......
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9599ce0c"],{4835:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"exchange"},[i("Header",{attrs:{title:"兑换记录"}}),i("ul",{staticClass:"point-list-head1"},t._l(t.navlist,(function(e,n){return i("li",{class:{act:t.prize_type==e.prise_type},on:{click:function(i){return t.tab(e.prise_type)}}},[t._v("\n "+t._s(e.prise_type_text)+"\n ")])})),0),i("div",{ref:"pointContent",staticClass:"exchange_content"},[i("div",{staticClass:"has_data"},[i("van-list",{attrs:{loading:t.loadStatus,finished:t.finished,offset:2,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.detaillist,(function(e,n){return i("div",{key:n,staticClass:"data-group clr"},[i("div",{staticClass:"f-l"},[i("div",{staticClass:"imgbox"},[i("img",{attrs:{src:e.prize_img_url,alt:e.prize_name}})])]),i("div",{staticClass:"f-l infotext"},[i("div",{staticClass:"boxtextx"},[t._v(t._s(e.prize_name))]),i("span",[t._v(t._s(t._f("dateTimeFormate")(e.exchange_time)))])]),i("div",{staticClass:"f-r"},[t._v("支出"+t._s(e.prize_use_point)+"积分")])])})),0)],1)])],1)},a=[],s=(i("efce"),i("4634"),i("96dd"),i("ed8b"),i("97a3")),r=i("6e6d"),o=i("591a"),c=i("b322"),l=i("57af");function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(i,!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}r["a"].use(c["a"]);var d={name:"exchange",components:{Header:l["a"]},data:function(){return{page:1,loading:!1,limit:12,flow_type:1,detaillists:[],prize_type:1}},computed:u({},Object(o["c"])({navlist:function(t){return t.pointmall.navlist},loadStatus:function(t){return t.exchange.loadStatus},finished:function(t){return t.exchange.finished},totalLimit:function(t){return t.exchange.totalLimit},detaillist:function(t){return t.exchange.detaillist}})),created:function(){this.$store.dispatch({type:"getPointPrize"}),this.getData()},watch:{loadStatus:function(t){this.loading=t}},methods:{getData:function(){this.$store.dispatch({type:"getUserPointExchangeList",page:this.page,limit:this.limit,prize_type:this.prize_type})},tab:function(t){if(t!=this.prize_type){this.prize_type=t,this.page=1;var e=this.$refs["pointContent"];e.scrollTo?e.scrollTo(0,0):e.scrollTop=0,this.getData()}},onLoad:function(){this.page<this.totalLimit&&(this.page++,this.getData())}}},f=d,h=(i("6c42"),i("6691")),g=Object(h["a"])(f,n,a,!1,null,"05db62e6",null);e["default"]=g.exports},"62c4":function(t,e,i){},"6c42":function(t,e,i){"use strict";var n=i("62c4"),a=i.n(n);a.a}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1da11f06"],{4835:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"exchange"},[i("Header",{attrs:{title:"兑换记录"}}),i("ul",{staticClass:"point-list-head1"},t._l(t.navlist,(function(e,n){return i("li",{class:{act:t.prize_type==e.prise_type},on:{click:function(i){return t.tab(e.prise_type)}}},[t._v("\n "+t._s(e.prise_type_text)+"\n ")])})),0),i("div",{ref:"pointContent",staticClass:"exchange_content"},[i("div",{staticClass:"has_data"},[i("van-list",{attrs:{loading:t.loadStatus,finished:t.finished,offset:2,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.detaillist,(function(e,n){return i("div",{key:n,staticClass:"data-group clr"},[i("div",{staticClass:"f-l"},[i("div",{staticClass:"imgbox"},[i("img",{attrs:{src:e.prize_img_url,alt:e.prize_name}})])]),i("div",{staticClass:"f-l infotext"},[i("div",{staticClass:"boxtextx"},[t._v(t._s(e.prize_name))]),i("span",[t._v(t._s(t._f("dateTimeFormate")(e.exchange_time)))])]),i("div",{staticClass:"f-r"},[t._v("支出"+t._s(e.prize_use_point)+"积分")])])})),0)],1)])],1)},a=[],s=(i("efce"),i("4634"),i("96dd"),i("ed8b"),i("97a3")),r=i("6e6d"),o=i("591a"),c=i("b322"),l=i("57af");function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(i,!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}r["a"].use(c["a"]);var d={name:"exchange",components:{Header:l["a"]},data:function(){return{page:1,loading:!1,limit:12,flow_type:1,detaillists:[],prize_type:1}},computed:u({},Object(o["c"])({navlist:function(t){return t.pointmall.navlist},loadStatus:function(t){return t.exchange.loadStatus},finished:function(t){return t.exchange.finished},totalLimit:function(t){return t.exchange.totalLimit},detaillist:function(t){return t.exchange.detaillist}})),created:function(){this.$store.dispatch({type:"getPointPrize"}),this.getData()},watch:{loadStatus:function(t){this.loading=t}},methods:{getData:function(){this.$store.dispatch({type:"getUserPointExchangeList",page:this.page,limit:this.limit,prize_type:this.prize_type})},tab:function(t){if(t!=this.prize_type){this.prize_type=t,this.page=1;var e=this.$refs["pointContent"];e.scrollTo?e.scrollTo(0,0):e.scrollTop=0,this.getData()}},onLoad:function(){this.page<this.totalLimit&&(this.page++,this.getData())}}},f=d,h=(i("6c427"),i("6691")),g=Object(h["a"])(f,n,a,!1,null,"05db62e6",null);e["default"]=g.exports},"62c4":function(t,e,i){},"6c427":function(t,e,i){"use strict";var n=i("62c4"),a=i.n(n);a.a}}]);
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment