Browse Source

修复问题,添加页面

hejie 3 years ago
parent
commit
40fc4a05f0
3 changed files with 53 additions and 1 deletions
  1. 6 0
      src/pages.json
  2. 46 0
      src/pages/agreement/recharge.vue
  3. 1 1
      src/pages/top-up/index.vue

+ 6 - 0
src/pages.json

@@ -241,6 +241,12 @@
 				"navigationBarTitleText": "隐私协议"
 			}
 		},
+		{
+			"path": "pages/agreement/recharge",
+			"style": {
+				"navigationBarTitleText": "充值协议"
+			}
+		},
 		{
 			"path": "pages/serviceAgreement/index",
 			"style": {

+ 46 - 0
src/pages/agreement/recharge.vue

@@ -0,0 +1,46 @@
+<template>
+	<view class="container">
+		<!-- 用户须知 -->
+		<jyf-parser :html="content" class="mar_t50"></jyf-parser>
+		<!-- 用户须知-end -->
+	</view>
+</template>
+
+<script>
+let app=getApp();
+var appEv = app.$vm.$options;
+import { post } from "@/request/api.js";
+import jyfParser from '@/components/jyf-parser/jyf-parser.vue'
+	export default {
+		data() {
+			return {
+				content:''
+			};
+		},
+		onLoad(){
+			this.loadData()
+		},
+		methods:{
+			loadData(){
+				let data = {
+					type:28
+				}
+				post("/my/article",data).then(res => {
+				  if (res.code == 0) {
+				    this.content = res.data.data.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;}
+// 用户须知-end
+</style>

+ 1 - 1
src/pages/top-up/index.vue

@@ -62,7 +62,7 @@
             <checkbox class="checkboxCom" value="agree" />
             <view>我同意</view>
           </label>
-          <navigator url="/pages/agreement/privacy" hover-class="li_hover"
+          <navigator url="/pages/agreement/recharge" hover-class="li_hover"
             ><text>《充值协议》</text></navigator
           >
         </checkbox-group>