Bläddra i källkod

修改:1.修改了我的页面继续教育显示逻辑;2.修改了会费缴交相关页面

littleblue55 1 vecka sedan
förälder
incheckning
4c76394353

+ 33 - 0
api/cost.js

@@ -73,4 +73,37 @@ export function deptPayment(data) {
 		'method': 'post',
 		'data': data
 	})
+}
+
+// 会费缴交文字说明
+export function getPersonCastAgree(){
+	return request({
+		url: '/explain/due',
+		headers: {
+			isToken: false
+		},
+		'method': 'get'
+	})
+}
+
+// 代缴个人会费缴交文字说明
+export function getSubPersonCastAgree(){
+	return request({
+		url: `/explain/prePayDue/1`,
+		headers: {
+			isToken: false
+		},
+		'method': 'get'
+	})
+}
+
+// 代缴单位会费缴交文字说明
+export function getSubUnitCastAgree(){
+	return request({
+		url: `/explain/prePayDue/2`,
+		headers: {
+			isToken: false
+		},
+		'method': 'get'
+	})
 }

+ 7 - 8
api/user.js

@@ -86,35 +86,34 @@ export function updateIcon(data) {
 	})
 }
 
-
+// 用户协议相关接口
+// 隐私政策
 export function getPrivacyAgree(){
 	return request({
-		url: '/privacy',
+		url: '/explain/privacy',
 		headers: {
 			isToken: false
 		},
 		'method': 'get'
 	})
 }
-
+// 用户手册
 export function getUserAgree(){
 	return request({
-		url: '/userManual',
+		url: '/explain/userManual',
 		headers: {
 			isToken: false
 		},
 		'method': 'get'
 	})
 }
-
-
+// 注册须知
 export function getCancelAgree(){
 	return request({
-		url: '/cancelRule',
+		url: '/explain/cancelRule',
 		headers: {
 			isToken: false
 		},
 		'method': 'get'
 	})
 }
-

+ 1 - 1
components/creditCard.vue

@@ -15,7 +15,7 @@
 		</view>
 		<view class="desc-box" v-if="isLogin && !data.creditNo" @click="onGuideClick">
 			<view class="text">
-				您未办理信用信息卡<br/>点击了解办理指引&gt;
+				您未办理信用信息卡<br/>点击了解办理指引
 			</view>
 			<!-- <image src="/static/images/xinyong.png"></image> -->
 		</view>

+ 98 - 32
pages/daiJiaoDanWeiChaXunJieGuo/daiJiaoDanWeiChaXunJieGuo.vue

@@ -50,11 +50,12 @@
 				</view>
 			</view>
 		</view>
-		<view class="info-item-box row" style="padding: 20rpx;">
-			<view class="label">
-				描述:
+		<view class="info-box" style="background: none;">
+			<view class="info-item-box row" style="height: auto;border-bottom: 0;">
+				<view class="text" v-html="info.remark"></view>
 			</view>
-			<view class="text" v-html="info.remark"></view>
+		</view>
+		<view class="bottom-box-block">
 		</view>
 		<view class="bottom-box">
 			<u-button type="error" shape="circle" @click="onSubmit">支付</u-button>
@@ -62,20 +63,32 @@
 	</view>
 </template>
 <script setup>
-	import { ref } from 'vue'
-	import { onLoad } from '@dcloudio/uni-app'
-	import { dept, deptPayment } from '@/api/cost.js'
-	import { msgError } from '../../utils/common'
-	
-	import { useAuthStore } from '@/store/authStore'
+	import {
+		ref
+	} from 'vue'
+	import {
+		onLoad
+	} from '@dcloudio/uni-app'
+	import {
+		dept,
+		deptPayment,
+		getSubUnitCastAgree
+	} from '@/api/cost.js'
+	import {
+		msgError
+	} from '../../utils/common'
+
+	import {
+		useAuthStore
+	} from '@/store/authStore'
 	const authStore = useAuthStore()
-	
+
 	const openid = ref('')
-	
+
 	const info = ref({
 		name: '某某某机构', // 机构名称
-		payProject: '2024年度普通会员单位会费', // 支付项目
-		type: '普通会员单位会费', // 类型
+		payProject: '2025年度理事单位会费', // 支付项目
+		type: '理事单位会费', // 类型
 		year: '2024', // 年份
 		price: '1000', // 金额
 		periodOfValidity: '2024.1.1-2024.12.31',
@@ -84,7 +97,7 @@
 		giver: "",
 		giverPhone: ""
 	})
-	
+
 	const params = ref({
 		timeStamp: '',
 		nonceStr: '',
@@ -92,10 +105,49 @@
 		signType: '',
 		paySign: '',
 	})
-	
+
+	function init() {
+		getSubUnitCastAgree().then(res => {
+			if (res && res.code === 0) {
+				info.value.remark = res.data.content
+// 				info.value.remark = `<p>
+//     描述:
+// </p>
+// <p>
+//     会员可享受以下权利:
+// </p>
+// <p>
+//     1、本会的选举权、被选举权和表决权;
+// </p>
+// <p>
+//     2、参加本会的活动权;
+// </p>
+// <p>
+//     3、获得本会服务的优先权;
+// </p>
+// <p>
+//     4、入会自愿、退会自由权;
+// </p>
+// <p>
+//     5、查阅本会章程、会员名册、会议纪要(决议)、财务审计报告等知情权;
+// </p>
+// <p>
+//     6、批评建议权和监督权;
+// </p>
+// <p>
+//     7、请求协会维护合法权益。
+// </p>`
+				// console.log("代缴单位会费缴交",res.data)
+			}
+		})
+	}
+
 	function onSubmit() {
 		// 支付写了,但是没有测试
-		const {giver, giverPhone} = info.value
+		const {
+			giver,
+			giverPhone
+		} = info.value
 		const form = {
 			title: `${info.value.payProject}代缴`,
 			year: info.value.year,
@@ -111,16 +163,16 @@
 			if (res && res.code === 0) {
 				params.value = res.data
 				wx.requestPayment({
-				  timeStamp: params.value.timeStamp,
-				  nonceStr: params.value.nonceStr,
-				  package: params.value.package,
-				  signType: params.value.signType,
-				  paySign: params.value.paySign,
-				  success (res) {
+					timeStamp: params.value.timeStamp,
+					nonceStr: params.value.nonceStr,
+					package: params.value.package,
+					signType: params.value.signType,
+					paySign: params.value.paySign,
+					success(res) {
 						msgSuccess('支付成功')
 						uni.navigateBack()
 					},
-				  fail (res) {
+					fail(res) {
 						// console.log('支付失败', res)
 						const errMsg = res.errMsg
 						if (errMsg.indexOf('fail cancel')) {
@@ -133,15 +185,17 @@
 				uni.navigateBack()
 			}
 		})
-		
+
 	}
-	
+
 	onLoad((load) => {
 		const name = load.name
 		const year = load.year
 		const number = load.number
 		const price = load.price
-		const type = Number(price) > 10000 ? '副会长单位' : Number(price) > 1000 ? '常务理事及理事单位' : '普通会员单位'
+		const type = Number(price) > 10000 
+		? '副会长单位' : Number(price) > 1000 
+		? '理事单位' : '普通会员单位'
 		const userId = load.userId
 		openid.value = uni.getStorageSync('openid')
 		const giver = load.giver
@@ -158,6 +212,7 @@
 			giver,
 			giverPhone
 		}
+		init()
 		// console.log(info.value)
 	})
 </script>
@@ -168,44 +223,55 @@
 		width: 100vw;
 		background-color: $uni-bg-color;
 		padding: 20rpx;
+
 		.info-box {
 			padding: 30rpx;
 			background-color: $uni-bg-color-grey;
 			border-radius: $uni-card-border-radius;
+
 			.info-item-box {
 				font-size: $uni-title-font-size-2;
 				border-bottom: 1rpx solid #E6E6E6;
 				height: 82rpx;
+
 				.label {
 					font-weight: bold;
 				}
 			}
+
 			.flex {
 				display: flex;
 				align-items: center;
+
 				.label {
 					width: 30%;
 				}
+
 				.text {
 					width: 70%;
 				}
 			}
+
 			.row {
 				.label {
 					line-height: 62rpx;
 				}
+
 				.text {
-					line-height: 42rpx;
-					font-size: $uni-title-font-size-3;
+					line-height: 180%;
+					font-size: 28rpx;
 					font-weight: bold;
 				}
 			}
 		}
-	
+
+		.bottom-box-block {
+			height: 150rpx;
+		}
+
 		.bottom-box {
 			padding: 20rpx;
-			
-			position: absolute;
+			position: fixed;
 			bottom: 50rpx;
 			width: 95%;
 		}

+ 43 - 8
pages/daiJiaoGeRenChaXunJieGuo/daiJiaoGeRenChaXunJieGuo.vue

@@ -43,6 +43,13 @@
 			</view>
 		</view>
 		<u-select v-model="showYear" :list="yearList" @confirm="onYearConfirm"></u-select>
+		<view class="info-box" style="background: none;">
+			<view class="info-item-box row" style="height: auto;border-bottom: 0;">
+				<view class="text" v-html="info.remark"></view>
+			</view>
+		</view>
+		<view class="bottom-box-block">
+		</view>
 		<view class="bottom-box">
 			<u-button type="error" shape="circle" @click="onSubmit">点击缴费</u-button>
 		</view>
@@ -52,7 +59,7 @@
 <script setup>
 	import { ref } from 'vue'
 	import { onLoad } from '@dcloudio/uni-app'
-	import { person, personPayment } from '@/api/cost.js'
+	import { person, personPayment, getSubPersonCastAgree } from '@/api/cost.js'
 	
 	import { useAuthStore } from '@/store/authStore'
 	const authStore = useAuthStore()
@@ -73,6 +80,7 @@
 		creditNo: 'xxxxxxxxxx', // 信用信息卡号
 		year: '', // 缴交年份
 		duePrice: 0.00, // 价格
+		remark: ""
 	})
 	
 	const showYear = ref(false)
@@ -127,7 +135,32 @@
 			}
 		})
 	}
-	
+	function init(){
+		getSubPersonCastAgree().then(res=>{
+			if (res && res.code === 0) {
+				// console.log("代缴个人会费缴交",res.data)
+				info.value.remark = res.data.content
+				// info.value.remark = `<p>
+				//     描述:
+				// </p>
+				// <p>
+				//     根据协会章程,个人会费200元/年/人,会员会籍为每年1月1日至12月31日。
+				// </p>
+				// <p>
+				//     个人会员可享受以下会员服务:
+				// </p>
+				// <p>
+				//     1、免费使用网络教育培训系统【系统已上线海量视频课程,77本电子书,涵盖:政策法规、职业素养、商务礼仪、客户服务、销售技能、市场营销、团队管理、办公软件等多个知识领域】
+				// </p>
+				// <p>
+				//     2、优先或以会员价参加协会组织的公开培训课
+				// </p>
+				// <p>
+				//     更多优惠请关注协会微信号【gzreavip】
+				// </p>`
+			}
+		})
+	}
 	onLoad((load) => {
 		yearList.value = []
 		const year = new Date().getFullYear()
@@ -144,9 +177,9 @@
 		
 		form.value = {
 			name: load.name,
-			idNumber: load.idNumber,
-			
+			idNumber: load.idNumber,	
 		}
+		init()
 		person(form.value).then(res => {
 			if (res && res.code === 0) {
 				info.value = res.data
@@ -192,17 +225,19 @@
 					line-height: 62rpx;
 				}
 				.text {
-					line-height: 42rpx;
-					font-size: $uni-title-font-size-3;
+					line-height: 180%;
+					font-size: 28rpx;
 					font-weight: bold;
 				}
 			}
 		}
 	
+		.bottom-box-block{
+			height: 150rpx;
+		}
 		.bottom-box {
 			padding: 20rpx;
-			
-			position: absolute;
+			position: fixed;
 			bottom: 50rpx;
 			width: 95%;
 		}

+ 35 - 11
pages/geRenHuiFeiJiaoJiao/geRenHuiFeiJiaoJiao.vue

@@ -53,12 +53,11 @@
 		</view>
 		<view class="info-box" style="background: none;">
 			<view class="info-item-box row" style="height: auto;border-bottom: 0;">
-				<view class="label">
-					描述:
-				</view>
 				<view class="text" v-html="info.remark"></view>
 			</view>
 		</view>
+		<view class="bottom-box-block">
+		</view>
 		<view class="bottom-box">
 			<u-button type="error" shape="circle" @click="onSubmit">支付</u-button>
 		</view>
@@ -72,7 +71,7 @@
 	import { personPayment } from '@/api/cost.js'
 	import { msgError, msgSuccess } from '@/utils/common'
 	const authStore = useAuthStore()
-	
+	import { getSubPersonCastAgree } from '@/api/cost.js'
 	const openid = ref('')
 	
 	// 用户信息
@@ -138,15 +137,39 @@
 			type: '个人会费',
 			year: Number(load.year),
 			price: Number(load.duePrice),
-			periodOfValidity: `${Number(load.year)}.05.1-${Number(load.year) + 1}.4.30`,
+			periodOfValidity: `${Number(load.year)}.01.01-${Number(load.year)}.12.31`,
 			remark: '根据《协会章程》规定,个人会费200元/年/人,会员会籍为每年5月1日至4月30日。<br/>个人会员可享受以下会员服务:<br/>1、免费使用网络教育培训系统【系统已上线121个视频课程77本电子书,涵盖:政策法规、职业素养、商务礼仪、客户服务销售技能、市场营销、团队管理、办公软件等多个知识领域】<br/>2、优先优惠参加协会组织的公开培训课<br/>更多优惠请关注协会微信号【gzreavip】'
 		}
+		getSubPersonCastAgree().then(res=>{
+			if (res && res.code === 0) {
+				// console.log("个人会费缴交",res.data)
+				info.value.remark = res.data.content
+// 				info.value.remark = `<p>
+//     描述:
+// </p>
+// <p>
+//     根据协会章程,个人会费200元/年/人,会员会籍为每年1月1日至12月31日。
+// </p>
+// <p>
+//     个人会员可享受以下会员服务:
+// </p>
+// <p>
+//     1、免费使用网络教育培训系统【系统已上线海量视频课程,77本电子书,涵盖:政策法规、职业素养、商务礼仪、客户服务、销售技能、市场营销、团队管理、办公软件等多个知识领域】
+// </p>
+// <p>
+//     2、优先或以会员价参加协会组织的公开培训课
+// </p>
+// <p>
+//     更多优惠请关注协会微信号【gzreavip】
+// </p>`
+			}
+		})
 	})
 </script>
 
 <style lang="scss" scoped>
 	.container {
-		height: 100vh;
+		// height: 100vh;
 		width: 100vw;
 		background-color: $uni-bg-color;
 		padding: 20rpx;
@@ -177,17 +200,18 @@
 					line-height: 62rpx;
 				}
 				.text {
-					line-height: 42rpx;
-					font-size: $uni-title-font-size-3;
+					line-height: 180%;
+					font-size: 28rpx;
 					font-weight: bold;
 				}
 			}
 		}
-	
+		.bottom-box-block{
+			height: 150rpx;
+		}
 		.bottom-box {
 			padding: 20rpx;
-			
-			position: absolute;
+			position: fixed;
 			bottom: 50rpx;
 			width: 95%;
 		}

+ 106 - 38
pages/huiFeiJiaoJiao/huiFeiJiaoJiao.vue

@@ -5,6 +5,9 @@
 				用&nbsp;&nbsp;户&nbsp;名:{{user.name}}
 			</view>
 			<view class="info-item">
+				会籍情况:{{user.isMember ==='1' ? '有效' : '无效' }}
+			</view>
+			<view class="info-item">
 				任职机构:{{user.corpName ?? '无'}}
 			</view>
 		</view>
@@ -16,17 +19,17 @@
 				<view class="list-item">
 					是否缴费
 				</view>
-				<view class="list-item">
+				<!-- <view class="list-item">
 					会籍情况
-				</view>
+				</view> -->
 			</view>
 			<view class="list-item-box" v-for="(item, index) in listData" :key="index">
 				<view class="list-item">
 					{{item.year}}
 				</view>
-				<view class="list-item">
+				<!-- <view class="list-item">
 					{{item.payed ? '是' : '否'}}
-				</view>
+				</view> -->
 				<view class="list-item">
 					<view class="button" :class="[item.payed ? '' : 'error']" @click="onJiaoFei(item)">
 						{{item.payed ? '已缴费' : '点击缴费'}}
@@ -36,32 +39,44 @@
 		</view>
 		<view class="desc-box">
 			<!-- <rich-text :nodes="explain"></rich-text> -->
-			<mp-html :content="explain" />
+			<view class="text" v-html="explain"></view>
+			<!-- <mp-html :content="explain" /> -->
 		</view>
 	</view>
 </template>
 
 <script setup>
-	import { ref } from 'vue'
-	import { onLoad } from '@dcloudio/uni-app'
-	import { useAuthStore } from '@/store/authStore'
-	
-	import { list } from '@/api/cost.js'
+	import {
+		ref
+	} from 'vue'
+	import {
+		onLoad
+	} from '@dcloudio/uni-app'
+	import {
+		useAuthStore
+	} from '@/store/authStore'
+
+	import {
+		list,
+		getPersonCastAgree
+	} from '@/api/cost.js'
 	const authStore = useAuthStore()
-	
+
 	// 用户信息
 	const user = ref({
 		userIcon: '1',
 		name: '某某某',
 		corpName: '广州市xx地产有限公司',
-		corpRegNo: '123xxxx'
+		corpRegNo: '123xxxx',
+		isMember: null
 	})
-	
-	const listData = ref([
-	])
-	const explain = ref(`
-	<p><span style="font-size: 14px;"></span></p><p style="line-height:150%"><span style="font-size: 14px; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 14px; line-height: 150%;">会员会费缴交规则:</span></strong></span></p><p style="line-height:150%"><span style="line-height: 150%; font-family: arial, helvetica, sans-serif; font-size: 12px;">根据《广州市房地产中介协会章程》第五十六条,会费标准如下:</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>副会长单位:50000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>理事单位:10000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>普通会员单位:1000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>个人会员:200元/年/人。</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 12px;">单位会员会籍为每年1月1日至12月31日;</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 12px;">个人会员会籍为每年5月1日至次年4月30日。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;</p><p><br/></p>
-	`)
+
+	const listData = ref([])
+	const explain = ref("")
+	// const explain = ref(`
+	// <p><span style="font-size: 14px;"></span></p><p style="line-height:150%"><span style="font-size: 14px; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 14px; line-height: 150%;">会员会费缴交规则:</span></strong></span></p><p style="line-height:150%"><span style="line-height: 150%; font-family: arial, helvetica, sans-serif; font-size: 12px;">根据《广州市房地产中介协会章程》第五十六条,会费标准如下:</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>副会长单位:50000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>理事单位:10000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>普通会员单位:1000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 12px;"><span style="font-size: 12px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>个人会员:200元/年/人。</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 12px;">单位会员会籍为每年1月1日至12月31日;</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 12px;">个人会员会籍为每年5月1日至次年4月30日。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;</p><p><br/></p>
+	// `)
+
 	function onJiaoFei(val) {
 		if (val.payed) {
 			return
@@ -70,7 +85,7 @@
 			url: `/pages/geRenHuiFeiJiaoJiao/geRenHuiFeiJiaoJiao?year=${val.year}&duePrice=${val.duePrice}`
 		})
 	}
-	
+
 	onLoad(() => {
 		user.value = authStore.userInfo
 		list().then(res => {
@@ -78,6 +93,43 @@
 				listData.value = res.data
 			}
 		})
+		getPersonCastAgree().then(res => {
+			if (res && res.code === 0) {
+				// console.log("个人会费缴交",res.data)
+				explain.value = res.data.content
+// 				explain.value = `<p>
+//     会员会费缴交规则:&nbsp;
+// </p>
+// <p>
+//     根据协会章程,会费标准如下:
+// </p>
+// <ul class=" list-paddingleft-2">
+//     <li>
+//         <p>
+//             副会长单位:50000元/年;
+//         </p>
+//     </li>
+//     <li>
+//         <p>
+//             理事单位:10000元/年;
+//         </p>
+//     </li>
+//     <li>
+//         <p>
+//             普通会员单位:1000元/年;<br/>
+//         </p>
+//     </li>
+//     <li>
+//         <p>
+//             个人会员:200元/年/人。
+//         </p>
+//     </li>
+// </ul>
+// <p>
+//     会员会籍为每年1月1日至12月31日。<br/>
+// </p>`
+			}
+		})
 	})
 </script>
 
@@ -86,81 +138,97 @@
 		min-height: 100vh;
 		width: 100vw;
 		background: rgb(141, 204, 255);
-		background: -moz-linear-gradient(   90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
+		background: -moz-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
 		background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
-		background: -o-linear-gradient(     90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
-		background: -ms-linear-gradient(    90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
-		background: linear-gradient(       180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
-		
+		background: -o-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
+		background: -ms-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
+		background: linear-gradient(180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
+
 		.info-box {
 			margin: 0 20rpx;
 			padding: 0 40rpx;
 			padding-top: 50rpx;
 			margin-bottom: 30rpx;
+
 			.info-item {
 				margin-bottom: 10rpx;
-				font-size: $uni-title-font-size-2;
+				font-size: 28rpx;
 				font-weight: bold;
 				letter-spacing: 3rpx;
 			}
 		}
-		
+
 		.list-box {
 			margin: 0 20rpx;
 			background-color: $uni-bg-color-grey;
 			border-radius: $uni-card-border-radius;
 			padding: 20rpx 15rpx;
 			margin-bottom: 30rpx;
+
 			.list-item-box {
 				&:first-child {
 					border-bottom: 5rpx solid #E6E6E6;
-					font-size: $uni-font-size-1;
+					font-size: 34rpx;
 					font-weight: bold;
+
 					.list-item {
-						width: calc(100% / 3);
+						width: calc(100% / 2);
 						text-align: center;
+
 						&:last-child {
 							color: #303133;
 							font-weight: bold;
 						}
 					}
 				}
-				padding: 20rpx 0;
+
+				padding: 26rpx 0;
 				text-align: center;
-				font-size: $uni-font-size-1;
+				font-size: 32rpx;
 				font-weight: bold;
 				display: flex;
 				align-items: center;
+
 				.list-item {
-					width: calc(100% / 3);
+					width: calc(100% / 2);
 					text-align: center;
+
 					&:last-child {
 						font-weight: normal;
 					}
 				}
-				
+
 				.button {
 					width: fit-content;
-					border-radius: $uni-card-border-radius;
+					border-radius: 30rpx;
 					color: #303133;
 					margin: 0 auto;
+					letter-spacing: 2rpx;
+					font-size: 28rpx;
 				}
+
 				.primary {
-					padding: 5rpx 25rpx;
-					background-color: $uni-color-primary;
+					padding: 3px 0px;
+					width: 200rpx;
+					background-color: #0069f6;
 				}
+				
+
 				.error {
-					padding: 5rpx 15rpx;
+					padding: 3px 0px;
+					width: 200rpx;
+					// padding: 5rpx 40rpx;
 					color: $uni-text-color-inverse;
-					background-color: $uni-color-error;
+					background-color: #fe0000;
 				}
 			}
 		}
-	
+
 		.desc-box {
 			margin: 0 20rpx;
 			padding-bottom: 30rpx;
 			font-weight: bold;
+			line-height: 180%;
 		}
 	}
 </style>

+ 16 - 4
pages/jixujiaoyunianjian/jixujiaoyunianjian.vue

@@ -8,7 +8,7 @@
 				任职机构:{{user.corpName ?? '无'}}
 			</view>
 			<view class="info-item">
-				业务水平认证证书编号:{{user.corpRegNo ?? '无'}}
+				业务水平认证证书编号:{{ zsbh ?? '无'}}
 			</view>
 		</view>
 		<view class="list-box">
@@ -37,7 +37,7 @@
 					{{item.gotCredit}}
 				</view>
 				<view class="list-item btn">
-					<view class="button" :class="[item.finish ? '' : 'error']" @click="onXuexi(item)">
+					<view class="button" :class="[item.finish ? 'primary' : 'error']" @click="onXuexi(item)">
 						{{item.annIns}}
 					</view>
 				</view>
@@ -97,9 +97,20 @@
 			});
 		}
 	}
-	
-	onLoad(() => {
+	const zsbh = ref("")
+	onLoad((load) => {
 		user.value = authStore.userInfo
+		const { data } = load
+		const { zhongjie, anjie } = JSON.parse(data)
+		if(zhongjie && anjie){
+			zsbh.value = zhongjie
+		}else if( zhongjie && !anjie ){
+			zsbh.value = zhongjie
+		}else if( anjie && !zhongjie ){
+			zsbh.value = anjie
+		}else{
+			zsbh.value = "无"
+		}
 		list().then(res => {
 			if (res && res.code === 0) {
 				listData.value = res.data.creditList
@@ -183,6 +194,7 @@
 				}
 				.primary {
 					padding: 5rpx 25rpx;
+					color: $uni-text-color-inverse;
 					background-color: $uni-color-primary;
 				}
 				.error {

+ 10 - 3
pages/login/login.vue

@@ -6,7 +6,7 @@
 					mode="aspectFit" style="height: 80rpx;"></image>
 			</view>
 			<view class="app-title mb-30">
-				欢迎使用会员中心系统小程序
+				欢迎使用会员服务中心
 			</view>
 			<view class="mb-30 login-form">
 				<view class="loginType">
@@ -278,6 +278,9 @@
 					...this.userNameForm
 				}
 				form.password = encryptAESCBC(form.password);
+				uni.showLoading({
+					title: '正在登录...'
+				})
 				let res = await usernameLogin(form)
 				if (res.data.token) {
 					msgSuccess("登录成功!")
@@ -432,12 +435,12 @@
 					try{
 						const openidRes = await wxLoginOpenid({code : wxcode})
 						if(openidRes?.data){
-							const { openid, sessionKey } = openidRes.data
+							const { openid, sessionKey,tokenExp } = openidRes.data
 							this.useAuthStore.setOpenid(openid)
 							const phoneRes = await wxloginPhone({ openid, phoneCode: code})
 							const { phone, token, isNewUser } = phoneRes.data;
 							this.useAuthStore.setPhone(phone);
-							this.useAuthStore.setAuthToken(token, res.data.tokenExp);
+							this.useAuthStore.setAuthToken(token, tokenExp);
 							// uni.reLaunch({
 							// 	url: "/pages/register/register?mode=refine"
 							// })
@@ -450,10 +453,14 @@
 							}else{
 								// 老用户,跳转至:首页
 								msgSuccess("授权成功!")
+								uni.showLoading({
+									title: '正在登录...'
+								})
 								let userRes = await me()
 								if(userRes && userRes?.code===0){
 									this.useAuthStore.setUserInfo(userRes.data)
 								}
+								msgSuccess("登录成功!")
 								setTimeout(()=>{
 									if(this.redirect){
 										uni.reLaunch({

+ 22 - 7
pages/personalCenter/personalCenter.vue

@@ -264,7 +264,7 @@
 
 	// 是否预览信用信息卡
 	const showCreditCard = ref(false)
-	const showEdu = ref(false)
+	// const showEdu = ref(false)
 	// 信用信息卡
 	const creditCard = ref({
 		creditNo: '',
@@ -281,9 +281,6 @@
 		showCreditCard.value = false
 		if (isLogin.value) {
 			showCreditCard.value = true
-			if (creditCard.value.creditNo) {
-				showEdu.value = true
-			}
 			 // else {
 			// 	uni.navigateTo({
 			// 		url: '/pages/zhiyin/zhiyin?title=信息信用卡指引'
@@ -376,14 +373,20 @@
 			url: '/pages/huifeijiaojiaoRukou/huifeijiaojiaoRukou'
 		})
 	}
+	
+	const cardNumber = ref({
+		zhongjie: "",
+		anjie: ""
+	})
 	// 点击-继续教育年检
 	function onJiXuJiaoYuNianJian() {
 		if (!isLogin.value) {
 			showMsg()
 			return
 		}
+		const data = JSON.stringify(cardNumber.value)
 		uni.navigateTo({
-			url: '/pages/jixujiaoyunianjian/jixujiaoyunianjian'
+			url: '/pages/jixujiaoyunianjian/jixujiaoyunianjian?data='+data
 		})
 	}
 	// 点击-我的订单
@@ -458,22 +461,34 @@
 	const isLogin = computed(() => {
 		return authStore.token ? true : false
 	})
-
+	
+	const showEdu = computed(()=>{
+		if (creditCard.value.creditNo) {
+			return true
+		}
+		return false
+	})
+	
 	onShow(() => {
 		user.value = authStore.userInfo
 		getCreditCard().then(res => {
 			if (res && res.code === 0) {
 				creditCard.value = res.data
 				authStore.setCreditCard(res.data)
-
+				// if (creditCard.value.creditNo) {
+				// 	showEdu.value = true
+				// }
+				// console.log(showEdu.value,"显示")
 				getZhongjie().then(res => {
 					if (res && res.code === 0) {
 						zhongjie.value = res.data ?? {zsbh: null}
+						cardNumber.value.zhongjie = res.data.zsbh ? res.data.zsbh : null
 					}
 				})
 				getAnjie().then(res => {
 					if (res && res.code === 0) {
 						anjie.value = res.data ?? {zsbh: null}
+						cardNumber.value.anjie = res.data.zsbh ? res.data.zsbh : null
 					}
 				})
 				getIconList().then(res => {