|
|
@@ -1,49 +1,66 @@
|
|
|
<template>
|
|
|
- <view class="container">
|
|
|
- <!-- 用户须知 -->
|
|
|
- <jyf-parser :html="content" class="mar_t50"></jyf-parser>
|
|
|
- <!-- 用户须知-end -->
|
|
|
- </view>
|
|
|
+ <view class="container">
|
|
|
+ <jyf-parser :html="content" class="mar_t50"></jyf-parser>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-let app=getApp();
|
|
|
+let app = getApp();
|
|
|
// let reqApi = new ReqApi();
|
|
|
var appEv = app.$vm.$options;
|
|
|
import { post } from "@/request/api.js";
|
|
|
-import jyfParser from '@/components/jyf-parser/jyf-parser.vue'
|
|
|
+import jyfParser from "@/components/jyf-parser/jyf-parser.vue";
|
|
|
// import { ReqApi } from "@/utils/reqTools.js";
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- content:''
|
|
|
- };
|
|
|
- },
|
|
|
- onLoad(){
|
|
|
- this.loadData()
|
|
|
- },
|
|
|
- methods:{
|
|
|
- loadData(){
|
|
|
- let data = {
|
|
|
- type:5
|
|
|
- }
|
|
|
- post("/my/article",data).then(res => {
|
|
|
- if (res.code == 0) {
|
|
|
- this.content = res.data.data.content
|
|
|
- console.log(this.content)
|
|
|
- // this.BannerImg = res.list;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- components:{
|
|
|
- jyfParser
|
|
|
- },
|
|
|
- }
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ content: "",
|
|
|
+ type: 5,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onLoad(option) {
|
|
|
+ if (option.type == 1) {
|
|
|
+ this.type = 18;
|
|
|
+ } else if (option.type == 2) {
|
|
|
+ this.type = 19;
|
|
|
+ } else if (option.type == 3) {
|
|
|
+ this.type = 21;
|
|
|
+ } else if (option.type == 4) {
|
|
|
+ this.type = 22;
|
|
|
+ } else if (option.type == 5) {
|
|
|
+ this.type = 23;
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: "兑换协议",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.loadData();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ loadData() {
|
|
|
+ let data = {
|
|
|
+ type: this.type,
|
|
|
+ };
|
|
|
+ post("/my/article", data).then((res) => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.content = res.data.data.content;
|
|
|
+ console.log(this.content);
|
|
|
+ // this.BannerImg = res.list;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ jyfParser,
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
// 用户须知
|
|
|
-.container{border-top: 20rpx solid #f5f5f5;padding: 0 20rpx;box-sizing: border-box;}
|
|
|
+.container {
|
|
|
+ border-top: 20rpx solid #f5f5f5;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
// 用户须知-end
|
|
|
</style>
|