|
|
@@ -5,7 +5,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { post } from "@/request/api.js";
|
|
|
+import { post, get } from "@/request/api.js";
|
|
|
import mpHtml from "@/uni_modules/mp-html/components/mp-html/mp-html.vue"
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -19,11 +19,22 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
loadData(type) {
|
|
|
- post("v1/my/article", { type }).then((res) => {
|
|
|
- if (res.code == 0) {
|
|
|
- this.content = res.data.data.content;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (type == 26) {
|
|
|
+ get("static/server.html", { }).then((res) => {
|
|
|
+ this.content = res
|
|
|
+ });
|
|
|
+ } else if (type == 27) {
|
|
|
+ get("static/agreement.html", { }).then((res) => {
|
|
|
+ this.content = res
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ post("v1/my/article", { type }).then((res) => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.content = res.data.data.content;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
components: {
|