From 9acf4430b2a93bd6db86908663fc843fce040429 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期四, 13 六月 2024 14:44:03 +0800
Subject: [PATCH] feat:保安

---
 pages/customer-page/customer-my/customer-my.vue |   50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)

diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index 3fd2897..d2ee75c 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -4,6 +4,37 @@
 			<view class="navgation">鎴戠殑</view>
 		</view>
 		<view class="personal-information">
+			<view class="personal-information-block" v-if="userInfo.isBuyFlag==1?true:false">
+				<view class="block-main">
+					<view class="huodai">
+						<combined-title title="鎴戠殑璐拱璇�"
+							@rightText="addGouMai">
+							<template v-slot:rightText>
+								<text>娣诲姞</text>
+							</template>
+						</combined-title>
+						<view class="huodai-list">
+							<u-swipe-action>
+								<u-cell-group :border="false">
+									<u-swipe-action-item :options="options1"
+										v-for="(item, index) in BuyCardData"
+										:key="item.userId"
+										:name="item.productName">
+										<u-cell :title="item.productName"
+											:value="item.status==0?'寰呯敓鏁�':item.status==1?'鐢熸晥':'搴熷純'"
+											>
+											<u-icon name="arrow-right"
+												color="#999999"
+												size="30"
+												slot="right-icon"></u-icon>
+										</u-cell>
+									</u-swipe-action-item>
+								</u-cell-group>
+							</u-swipe-action>
+						</view>
+					</view>
+				</view>
+			</view>
 			<view class="personal-information-block">
 				<view class="block-main">
 					<view class="huodai">
@@ -164,6 +195,7 @@
 			return {
 				userInfo: {},
 				huoDaiData: [],
+				BuyCardData:[],
 				fleetData: [],
 				// 鏂板缓杞﹂槦
 				addGroupForm: {
@@ -204,7 +236,7 @@
 			init() {
 				this.getAllHuoDaiByCustomerId();
 				this.getFleet();
-				this.getUserEntity()
+				this.getUserEntity();
 			},
 			getUserEntity() {
 				uni.showLoading({
@@ -212,7 +244,17 @@
 				});
 				this.$reqGet('getUserEntity').then(res => {
 					this.userInfo = res.data;
+					this.getBuyCardList();
 				})
+			},
+			getBuyCardList() {
+				uni.showLoading({
+					title: '鍔犺浇涓�...'
+				});
+				this.$reqGet('getBuyCardList',{customerId: this.userInfo.customerid}).then(res => {
+					uni.hideLoading();
+					this.BuyCardData = res.data;
+				});
 			},
 			// 鑾峰彇璐т唬鍒楄〃
 			getAllHuoDaiByCustomerId() {
@@ -240,6 +282,12 @@
 					url: '/pages/customer-page/addTo-freightForwarder-driver/addTo-freightForwarder-driver?role=1' // 1浠h〃鐨勬槸璐т唬
 				});
 			},
+			// 娣诲姞璐拱璇�
+			addGouMai(){
+				uni.navigateTo({
+					url: '/pages/customer-page/addTo-freightForwarder-purchasePermit/addTo-freightForwarder-purchasePermit'
+				});
+			},
 			// 娣诲姞杞﹂槦
 			addFleet() {
 				this.updateGroupShow = true;

--
Gitblit v1.9.1