py 2 年 前
親
コミット
35e021b365
4 ファイル変更、144 行追加、23 行削除
  1. 46 18
      pages-my/about-us.vue
  2. 23 5
      pages-my/aptitude.vue
  3. 69 0
      pages-my/protocol.vue
  4. 6 0
      pages.json

+ 46 - 18
pages-my/about-us.vue

@@ -3,54 +3,60 @@
 		<Nav title="关于我们" titleColor="#333" bgckgroundBox='#fff'></Nav>
 		<scroll-view :scroll-y="true" class="scroll-view-css content-box box-sizing-border">
 			<view class="module-box box-sizing-border bgc-f b-rad-20 mb-20">
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl()">
+				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(1)">
 					<view class="fs-30 fc-3">
-						用户隐私协议
+						用户使用协议
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl()">
+				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(2)">
 					<view class="fs-30 fc-3">
 						个人信息保护政策
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space" @click="goToUrl()">
+				<!-- 				<view class="item-box align-items-center flex-justify-space" @click="goToUrl()">
 					<view class="fs-30 fc-3">
 						个人信息保护政策概要
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
-				</view>
+				</view> -->
 			</view>
 			<view class="module-box box-sizing-border bgc-f b-rad-20 mb-20">
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl()">
+				<!-- 				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(6)">
 					<view class="fs-30 fc-3">
 						平台规则
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
-				</view>
-				<view class="item-box align-items-center flex-justify-space" @click="goToUrl()">
+				</view> -->
+				<view class="item-box align-items-center flex-justify-space" @click="goToUrl(3)">
 					<view class="fs-30 fc-3">
 						平台资质
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
+				<view class="item-box align-items-center flex-justify-space" @click="goToUrl(6)">
+					<view class="fs-30 fc-3">
+						增值电信业务经营许可证
+					</view>
+					<uni-icons type="right" color="#999" size="16"></uni-icons>
+				</view>
 			</view>
 			<view class="module-box box-sizing-border bgc-f b-rad-20 mb-20">
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl()">
+				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(4)">
 					<view class="fs-30 fc-3">
-						个人信息收集清单
+						校友圈使用规范说明
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space" @click="goToUrl()">
+				<view class="item-box align-items-center flex-justify-space" @click="goToUrl(5)">
 					<view class="fs-30 fc-3">
-						个人信息共享清单
+						定金声明
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
 			</view>
-			<view class="module-box box-sizing-border bgc-f b-rad-20">
+			<!-- 			<view class="module-box box-sizing-border bgc-f b-rad-20">
 				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9">
 					<view class="fs-30 fc-3">
 						当前版本
@@ -59,7 +65,7 @@
 						v1.19.55
 					</view>
 				</view>
-			</view>
+			</view> -->
 		</scroll-view>
 	</view>
 </template>
@@ -73,10 +79,32 @@
 		onLoad(data) {},
 		mounted() {},
 		methods: {
-			goToUrl() {
-				uni.navigateTo({
-					url: '/pages-my/aptitude'
-				})
+			goToUrl(num) {
+				if (num == 1) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 1
+					})
+				} else if (num == 2) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 2
+					})
+				} else if (num == 3) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 3
+					})
+				} else if (num == 4) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 4
+					})
+				} else if (num == 5) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 5
+					})
+				} else if (num == 6) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 6
+					})
+				}
 			}
 		},
 	}

+ 23 - 5
pages-my/aptitude.vue

@@ -3,25 +3,25 @@
 		<Nav title="关于我们" titleColor="#333" bgckgroundBox='#fff'></Nav>
 		<scroll-view :scroll-y="true" class="scroll-view-css content-box box-sizing-border">
 			<view class="module-box box-sizing-border bgc-f b-rad-20 mb-20">
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9">
+				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(6)">
 					<view class="fs-30 fc-3">
 						平台资质
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9">
+				<view class="item-box align-items-center flex-justify-space b-b-F9F9F9" @click="goToUrl(7)">
 					<view class="fs-30 fc-3">
 						网络食品交易第三方备案凭证
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space">
+				<view class="item-box align-items-center flex-justify-space" @click="goToUrl(8)">
 					<view class="fs-30 fc-3">
 						等保证书备案证明
 					</view>
 					<uni-icons type="right" color="#999" size="16"></uni-icons>
 				</view>
-				<view class="item-box align-items-center flex-justify-space">
+				<view class="item-box align-items-center flex-justify-space" @click="goToUrl(9)">
 					<view class="fs-30 fc-3">
 						增值电信业务经营许可证
 					</view>
@@ -41,7 +41,25 @@
 		onLoad(data) {},
 		mounted() {},
 		methods: {
-
+			goToUrl(num) {
+				if (num == 6) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 6
+					})
+				} else if(num == 7) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 7
+					})
+				} else if(num == 8) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 8
+					})
+				} else if(num == 9) {
+					uni.navigateTo({
+						url: '/pages-my/protocol?num=' + 9
+					})
+				}
+			}
 		},
 	}
 </script>

+ 69 - 0
pages-my/protocol.vue

@@ -0,0 +1,69 @@
+<template>
+	<view class="flex-common-css bgc-f">
+		<Nav :title="title" leftIconColor="#333" titleColor="#333"></Nav>
+		<scroll-view :scroll-y="true" class="scroll-view-css p-24 box-border-box" @scrolltolower="scrolltolower">
+			<view v-if="numType == 1 || numType == 2 || numType == 4 || numType == 5" class="" v-html="text"></view>
+			<view v-else class="align-items-center flex-wrap-wrap">
+				<image class="image-c" :src="imageData" mode="widthFix"></image>
+			</view>
+		</scroll-view>
+	</view>
+</template>
+
+<script>
+	import {
+		getAgreement
+	} from "@/api/common.js"
+	export default {
+		components: {},
+		data() {
+			return {
+				numType: '',
+				title: '',
+				text: '',
+				imageData: ''
+			};
+		},
+		onLoad(data) {
+			if(data) {
+				this.numType = data.num
+				this.getAgreement(data.num)
+			}
+		},
+		mounted() {},
+		methods: {
+			getAgreement(num){
+				getAgreement().then((res) => {
+					if(res.code == 1) {
+						if(num == 1) {
+							this.title = '用户协议'
+							this.text = res.data.member_agreement
+						}else if(num == 2) {
+							this.title = '隐私协议'
+							this.text = res.data.privacy_protocol
+						} else if(num == 3) {
+							this.title = '平台资质'
+							this.imageData = res.data.business_license
+						}else if(num == 4) {
+							this.title = '校友圈使用规范说明'
+							this.text = res.data.alumni_using_standards
+						}else if(num == 5) {
+							this.title = '定金声明'
+							this.text = res.data.deposit_statement
+						}else if(num == 6) {
+							this.title = '增值电信业务经营许可证'
+							this.imageData = res.data.permit
+						}
+					}
+				})
+			}
+		},
+	}
+</script>
+
+<style lang="scss" scoped>
+.image-c{
+	width: 100%;
+	height: auto;
+}
+</style>

+ 6 - 0
pages.json

@@ -392,6 +392,12 @@
 					"style": {
 						"navigationBarTitleText": "可用商家"
 					}
+				},
+				{
+					"path": "protocol",
+					"style": {
+						"navigationBarTitleText": "协议"
+					}
 				}
 			]
 		}