|
@@ -23,9 +23,8 @@
|
|
|
|
|
|
<script>
|
|
|
import { PlayType, UsefulType } from '../../types';
|
|
|
-import axios from 'axios';
|
|
|
import Report from '../../log-center/log';
|
|
|
-import { getQueryString, baseURL, appVersionCode, getMid, getStorage, removeStorage } from '../../utils/help';
|
|
|
+import { getQueryString, baseURL, getMid, getStorage, removeStorage, GetDetailSSR } from '../../utils/help';
|
|
|
|
|
|
export default {
|
|
|
name: 'course',
|
|
@@ -120,19 +119,17 @@ export default {
|
|
|
Report.reportLog(logData);
|
|
|
},
|
|
|
},
|
|
|
- async asyncData(params) {
|
|
|
- let { route } = params;
|
|
|
- let { data } = await axios.post(`${baseURL}/denet/base/guide/getAllMobilePageGuide`, {
|
|
|
- baseInfo: {
|
|
|
- appVersionCode: appVersionCode,
|
|
|
- mid: '00000000-0000-0000-0000-000000000000',
|
|
|
- },
|
|
|
+ async asyncData(context) {
|
|
|
+ let { route } = context;
|
|
|
+ let result = await GetDetailSSR({
|
|
|
+ context,
|
|
|
+ url: `${baseURL}/denet/base/guide/getAllMobilePageGuide`,
|
|
|
});
|
|
|
- if (data.code == 0) {
|
|
|
+ if (result.code == 0) {
|
|
|
return {
|
|
|
useful: route.query.useful,
|
|
|
playType: route.query.playType,
|
|
|
- course: route.query.useful === UsefulType.unUseful || route.query.playType === PlayType.NFT ? data.data.withoutRewardGuideImages : data.data.withRewardGuideImages,
|
|
|
+ course: route.query.useful === UsefulType.unUseful || route.query.playType === PlayType.NFT ? result.data.withoutRewardGuideImages : result.data.withRewardGuideImages,
|
|
|
};
|
|
|
}
|
|
|
},
|
|
@@ -163,6 +160,7 @@ body,
|
|
|
body {
|
|
|
background-color: #f5f5f5;
|
|
|
}
|
|
|
+
|
|
|
.course-page {
|
|
|
min-height: 100%;
|
|
|
max-height: 100%;
|
|
@@ -184,27 +182,33 @@ body {
|
|
|
line-height: 22px;
|
|
|
color: #fff;
|
|
|
z-index: 1;
|
|
|
+
|
|
|
.tip-icon {
|
|
|
width: 36px;
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
&-pics-contail {
|
|
|
flex: 1;
|
|
|
overflow: hidden;
|
|
|
+
|
|
|
&-wrap {
|
|
|
display: flex;
|
|
|
transition: all 0.5s;
|
|
|
+
|
|
|
.pic {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
&-pagination {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
margin: 16px 0;
|
|
|
+
|
|
|
.spon {
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
@@ -212,14 +216,17 @@ body {
|
|
|
margin: 0 3px;
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
+
|
|
|
.active {
|
|
|
background: #1d9bf0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
&-btns {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
padding: 0 8px 30px;
|
|
|
+
|
|
|
&-btn {
|
|
|
flex: 1;
|
|
|
margin: 0 8px;
|
|
@@ -228,19 +235,23 @@ body {
|
|
|
text-align: center;
|
|
|
border-radius: 60px;
|
|
|
}
|
|
|
+
|
|
|
&-btn:active {
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
+
|
|
|
.back {
|
|
|
background: rgba(29, 155, 240, 0.01);
|
|
|
border: 1px solid #e8e8e8;
|
|
|
color: #3d3d3d;
|
|
|
}
|
|
|
+
|
|
|
.next {
|
|
|
background: rgba(0, 0, 0, 0.01);
|
|
|
border: 1px solid #b5e1ff;
|
|
|
color: #1d9bf0;
|
|
|
}
|
|
|
+
|
|
|
.retweer {
|
|
|
background: #1d9bf0;
|
|
|
border: 1px solid #1d9bf0;
|