|
@@ -218,6 +218,7 @@ export default {
|
|
|
|
|
|
onPullDownRefresh() {
|
|
|
this.pageNum = 1
|
|
|
+ this.courseList = []
|
|
|
this.getcourList()
|
|
|
// this.timer = setTimeout(function() {
|
|
|
// uni.stopPullDownRefresh()
|
|
@@ -244,7 +245,21 @@ export default {
|
|
|
await this.bankExam();
|
|
|
await this.mockReport();
|
|
|
|
|
|
- uni.getSystemInfo({
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ this.pageNum = 1
|
|
|
+ this.courseList = []
|
|
|
+ this.getcourList()
|
|
|
+ },
|
|
|
+ onUnload() {
|
|
|
+ clearTimeout(this.timer)
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...mapActions(['setSystemTime']),
|
|
|
+ getCanvas() {
|
|
|
+ uni.getSystemInfo({
|
|
|
success: res => {
|
|
|
var winW = res.screenWidth;
|
|
|
var winH = res.screenHeight;
|
|
@@ -330,19 +345,9 @@ export default {
|
|
|
|
|
|
|
|
|
});
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- },
|
|
|
- onShow() {
|
|
|
- this.courseList = []
|
|
|
- this.getcourList()
|
|
|
- },
|
|
|
- onUnload() {
|
|
|
- clearTimeout(this.timer)
|
|
|
- },
|
|
|
- methods: {
|
|
|
- ...mapActions(['setSystemTime']),
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getcourList() {
|
|
|
this.$http({
|
|
|
url: '/apply/recommend/goodsList',
|
|
@@ -477,6 +482,7 @@ export default {
|
|
|
// /mock/record/'+data
|
|
|
this.$api.mockReport(this.recordId).then(res => {
|
|
|
this.reportdata = res.data.data;
|
|
|
+ this.getCanvas()
|
|
|
resolve()
|
|
|
});
|
|
|
|