USER-20230908AJ\Administrator il y a 2 semaines
Parent
commit
182af22d53

+ 4 - 13
common/system_popup/system_popup.vue

@@ -10,10 +10,10 @@
 					<image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></image>
 					<view class="column m-l20 flex">
 						<view class="size-30 text-color-333 ellipsis" style="width: 160rpx;">
-							{{ memberData.name ? memberData.name : memberData.nickname }}
+              远东资信评估
 						</view>
 						<view class="size-26 text-color-666 ellipsis" style="width: 160rpx;">
-							{{memberData.position_name?memberData.position_name:'无'}}
+              评估专员
 						</view>
 					</view>
 				</view>
@@ -68,16 +68,7 @@
 						icon: "https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-phone.png",
 						name: '修改手机号',
 						id: 3
-					}, {
-						icon: "https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-phone.png",
-						name: '邀请二维码',
-						id: 4
-					},
-					{
-						icon: "/static/img/index/to_excel.png",
-						name: '转换工具',
-						id: 5
-					},
+					}
 				]
 			}
 		},
@@ -181,4 +172,4 @@
 		position: absolute;
 		top: 0;
 	}
-</style>
+</style>

+ 36 - 7
common/task/loan-item.vue

@@ -142,10 +142,6 @@
 				type: Number,
 				default: 1
 			},
-			taskList: {
-				type: Array,
-				default: () => []
-			},
 			commonHeight: {
 				type: Number,
 				default: 0
@@ -178,10 +174,14 @@
 				iconList: ['task-audit', 'task-do', 'task-stay'],
 				lineColor: ['#EEFDF4', '#EFF4FF'],
 				isAjax: false,
-				item: {}
+				item: {},
+        taskList:[]
 			}
 		},
-		methods: {
+    mounted() {
+      this.taskList = uni.getStorageSync('loanList')
+    },
+    methods: {
 			moveHandle() {
 				return false
 			},
@@ -191,6 +191,35 @@
 					'type': type
 				})
 			},
+      heartBut(item,status){
+        console.log(item)
+        item.live=status
+        let isAdd =true
+        let delKey =-1
+        let loanList = uni.getStorageSync('loanList')
+        for (const loanListKey in loanList) {
+          if(status){
+            if(loanList[loanListKey].name===item.name){
+              isAdd=false
+            }
+          }else {
+            if(loanList[loanListKey].name===item.name){
+              delKey=loanListKey
+            }
+          }
+        }
+
+        if(status){
+          if (isAdd){
+            loanList=loanList.push(item)
+          }
+        }else {
+          if (delKey>=0){
+            loanList=loanList.splice(delKey,1)
+          }
+        }
+
+      },
 			makCall(phone) {
 				tools.makingCall(phone)
 			}
@@ -326,4 +355,4 @@
 		line-height: 80rpx;
 		text-align: center;
 	}
-</style>
+</style>

+ 2 - 2
pages/index/module/index_personal.vue

@@ -5,10 +5,10 @@
 				<image class="wh-100 r-circle" v-if="!memberData.head_img" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-avatar.png" mode="aspectFill"></image>
 				<image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></image>
 				<view class="m-l20">
-					<text class="text-color-fff">HI,{{ memberData.name ? memberData.name : memberData.nickname }}</text>
+					<text class="text-color-fff">HI,远东资信评估</text>
 					<view class="text-color-fff size-24 text-center r-20 line-30 p-tb6 p-lr20 m-t10 "
 						style="background-color: rgba(0, 0, 0, 0.2);opacity: 0.6;">
-						{{memberData.position_name?memberData.position_name:'无'}}
+						评估专员
 					</view>
 				</view>
 			</view>

+ 8 - 39
pages/loan/loan.vue

@@ -2,48 +2,17 @@
 	<view class="flex-common-css page-box task-bg">
 		<Nav title=" " :back="false" :is_fixed="true" :justify="'left'" :color="'#fff'">
 			<view class="p-20">
-				<IndexPersonal ref="memberObj" @setMemberData="setMemberData"></IndexPersonal>
+				<IndexPersonal ref="memberObj" ></IndexPersonal>
 				<IndexColumn ref="columnObj"></IndexColumn>
 			</view>
 		</Nav>
-		<!-- 			<EnScroll ref="scroll" :navHeight="100" is_tabHeight @onRefresh="onRefresh"
-				@onScrollBottom="onScrollBottom">
-			</EnScroll> -->
+
 		<view class="common-view-css common-view-box flex-direction" ref="commonView" id="commonView">
-			<LoanItem :task-list="list" @onCalculate="onCalculate" :commonHeight='commonHeight'></LoanItem>
+			<LoanItem  @onCalculate="onCalculate" :commonHeight='commonHeight'></LoanItem>
 		</view>
 		<Tab class="tabView" :tab-index="0"></Tab>
-		<uni-popup ref="popup" type="bottom" @touchmove.stop.prevent="moveHandle">
-			<view class="page-env-160 sys-background-fff r-20">
-				<view class="row-justify-sb center p-lr30 p-t30">
-					<view class="wh-25"></view>
-					<text class="size-30 sys-weight-600">核算年利率</text>
-					<image class="wh-25"
-						src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/close.png"
-						mode="aspectFill" @click="onClose">
-					</image>
-				</view>
-				<view class="p-30 size-28 m-b50">
-					<view class="">
-						<text>当前年利率</text><text
-							class="sys-weight-600 color-FF730E m-l10">{{(loanItem.interest_rate*1).toFixed(2)}}%</text>
-					</view>
-					<view class="row-justify-sb center r-10 sys-from-background-color p-30 m-t30">
-						<input class="flex" type="text" placeholder="请输入新年利率" v-model="loanItem.new_rate" />
-						<text class="text-color-12">%</text>
-					</view>
-				</view>
-				<EnButton text="确认核算" @onSubmit="setComputation"></EnButton>
-			</view>
-		</uni-popup>
-		<!--		<EnButton :is_both="1" leftText="利率对比" rightText="完善贷后" @onLeftSubmit="onRateCompare" @onSubmit="onPerfectRate">-->
-		<!--		</EnButton>-->
-		<uni-popup background-color="#fff" ref="clientPopup" type="bottom" border-radius="10px"
-			@touchmove.stop.prevent="moveHandle">
-			<view>
-				<client-type :client-id="loanItem.client_id" @endTaskSet="onClose"></client-type>
-			</view>
-		</uni-popup>
+
+
 	</view>
 
 </template>
@@ -130,7 +99,7 @@
 						this.commonHeight = data.height - tabView;
 						console.log(this.commonHeight,'1111111');
 					}).exec()
-					
+
 				});
 			},
 			// setMemberData(memberData) {
@@ -150,7 +119,7 @@
 				this.startList()
 			},
 			getList() {
-				this.list = uni.getStorageSync('loanList')
+
 				console.log(this.list, '1111111111');
 				// getLoanList(this.fromData).then((res) => {
 				// 	if (res.code === 1) {
@@ -243,4 +212,4 @@
 	//   }
 
 	// }
-</style>
+</style>