|
@@ -5,8 +5,10 @@
|
|
<img class="tip-icon" src="./../../static/img/icon-h5-topc.png" />
|
|
<img class="tip-icon" src="./../../static/img/icon-h5-topc.png" />
|
|
<span class="tip-text">{{ tipTextCpd }}</span>
|
|
<span class="tip-text">{{ tipTextCpd }}</span>
|
|
</div>
|
|
</div>
|
|
- <div class="course-page-pics-wrap" :style="{ transform: translastCpd }">
|
|
|
|
- <img class="pic" v-for="(item, index) in course" :key="index" :src="item" />
|
|
|
|
|
|
+ <div class="course-page-pics-contail">
|
|
|
|
+ <div class="course-page-pics-contail-wrap" :style="{ transform: translastCpd }">
|
|
|
|
+ <img class="pic" v-for="(item, index) in course" :key="index" :src="item" />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="course-page-pagination">
|
|
<div class="course-page-pagination">
|
|
<div class="spon" v-for="(item, index) in course" :key="index" :class="active === index ? 'active' : ''"></div>
|
|
<div class="spon" v-for="(item, index) in course" :key="index" :class="active === index ? 'active' : ''"></div>
|
|
@@ -22,7 +24,8 @@
|
|
<script>
|
|
<script>
|
|
import { PlayType, UsefulType } from '../../types';
|
|
import { PlayType, UsefulType } from '../../types';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
-import { getQueryString, baseURL, appVersionCode } from '../../utils/help';
|
|
|
|
|
|
+import Report from '../../log-center/log';
|
|
|
|
+import { getQueryString, baseURL, appVersionCode, getMid, appType } from '../../utils/help';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'course',
|
|
name: 'course',
|
|
@@ -50,9 +53,11 @@ export default {
|
|
return this.useful === '1';
|
|
return this.useful === '1';
|
|
},
|
|
},
|
|
tipTextCpd() {
|
|
tipTextCpd() {
|
|
- if (this.isLottaryCpd) {
|
|
|
|
|
|
+ if (this.isUsefulCpd) {
|
|
|
|
+ return 'How to install Denet Chrome Extension';
|
|
|
|
+ } else if (this.isCommonCpd) {
|
|
return 'Install DeNet chrome extension to claim your prize';
|
|
return 'Install DeNet chrome extension to claim your prize';
|
|
- } else if (this.isCommonCpd || this.isTreasureCpd) {
|
|
|
|
|
|
+ } else if (this.isLottaryCpd || this.isTreasureCpd) {
|
|
return 'Install Denet Chrome Extension to complete the quest';
|
|
return 'Install Denet Chrome Extension to complete the quest';
|
|
} else {
|
|
} else {
|
|
return 'How to install Denet Chrome Extension';
|
|
return 'How to install Denet Chrome Extension';
|
|
@@ -62,15 +67,54 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
next() {
|
|
next() {
|
|
this.active++;
|
|
this.active++;
|
|
|
|
+ this.reportLog();
|
|
},
|
|
},
|
|
back() {
|
|
back() {
|
|
this.active--;
|
|
this.active--;
|
|
|
|
+ this.reportLog();
|
|
},
|
|
},
|
|
retweer() {
|
|
retweer() {
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ mid: getMid(),
|
|
|
|
+ pageSource: Report.pageSource.tutorialPage,
|
|
|
|
+ appType,
|
|
|
|
+ machineCode: getMid(),
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.rtButton,
|
|
|
|
+ postId: getQueryString('postId'),
|
|
|
|
+ },
|
|
|
|
+ extParams: {
|
|
|
|
+ pageindex: this.active + 1,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ });
|
|
if (getQueryString('postId')) {
|
|
if (getQueryString('postId')) {
|
|
window.open(`https://twitter.com/intent/retweet?tweet_id=${getQueryString('postId')}`);
|
|
window.open(`https://twitter.com/intent/retweet?tweet_id=${getQueryString('postId')}`);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ reportLog() {
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ baseInfo: {
|
|
|
|
+ mid: getMid(),
|
|
|
|
+ pageSource: Report.pageSource.tutorialPage,
|
|
|
|
+ appType,
|
|
|
|
+ machineCode: getMid(),
|
|
|
|
+ },
|
|
|
|
+ params: {
|
|
|
|
+ eventData: {
|
|
|
|
+ businessType: Report.businessType.pageView,
|
|
|
|
+ postId: getQueryString('postId'),
|
|
|
|
+ },
|
|
|
|
+ extParams: {
|
|
|
|
+ pageindex: this.active + 1,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
async asyncData(params) {
|
|
async asyncData(params) {
|
|
let { route } = params;
|
|
let { route } = params;
|
|
@@ -88,6 +132,9 @@ export default {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.reportLog();
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -133,11 +180,15 @@ body {
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- &-pics-wrap {
|
|
|
|
- display: flex;
|
|
|
|
- transition: all 0.5s;
|
|
|
|
- .pic {
|
|
|
|
- width: 100%;
|
|
|
|
|
|
+ &-pics-contail {
|
|
|
|
+ flex: 1;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ &-wrap {
|
|
|
|
+ display: flex;
|
|
|
|
+ transition: all 0.5s;
|
|
|
|
+ .pic {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&-pagination {
|
|
&-pagination {
|