zhupeng 3 gadi atpakaļ
vecāks
revīzija
7bb351f1f1

+ 60 - 0
apis/refund.js

@@ -0,0 +1,60 @@
+import request from '../utils/request.js';
+import requestWhite from '../utils/requestWhite.js';
+
+/**
+ * 汽车充电个人余额信息
+ * result 	true 	boolean 	结果集
+ * message 	- 	Object 	
+ * data 	- 	Object 	返回数据
+ * data.giftAmount 	0 	Number 	赠送余额
+ * data.totalAmount 	0 	Number 	总余额
+ * data.availableAmount 	0 	Number 	可用总余额
+ * data.rechargeAmount 	0 	Number 	充值余额
+ * code 	200 	Number 	
+ */
+export function personAccount(){
+	return request({
+		method: 'post', 
+		url: '/mobile/regUser/carPersonAccount'
+	}) 
+}
+
+/**
+ * 手机端个人账户申请退费详情
+ * id 	16 	Text 	是 	-
+ */
+export function personAccountRefundDetail(data){
+	return request({
+		method: 'post',
+		data: data,
+		url: '/mobile/regUser/personAccountRefundDetail'
+	}) 
+}
+
+
+/**
+ * 手机端个人账户申请退费列表
+ * pageIndex 	1 	Text 	是 	
+ * pageSize 	10 	Text 	是 	-
+ */
+export function personAccountRefundList(data){
+	return request({
+		method: 'post',
+		data: data,
+		url: '/mobile/regUser/personAccountRefundList'
+	}) 
+}
+
+
+/**
+ * 手机端个人账户申请退费
+ * amount 	333 	Text 	是 	退款金额
+ * refundChannel 	wechat 	Text 	是 	退款通道(wechat:微信,alipay:支付宝)
+ */
+export function personAccountRefundApplication(data){
+	return request({
+		method: 'post',
+		data: data,
+		url: '/mobile/regUser/personAccountRefundApplication'
+	}) 
+}

+ 8 - 1
pages/user/finance/refundApp.vue

@@ -15,12 +15,19 @@
 </template>
 
 <script>
+	import * as api from "@/apis/refund.js"
 	export default {
 		data() {
 			return {
-
+				userId:'',
             }
 		},
+		onReady(){
+			if (this.carhelp.getPersonInfo()) {
+				this.userId = this.carhelp.getPersonInfo().id;
+						
+			}
+		},
 		methods: {
 			
 		}

+ 4 - 0
pages/user/finance/refundDet.vue

@@ -34,11 +34,15 @@
 </template>
 
 <script>
+	import * as api from "@/apis/refund.js"
 	export default {
 		data() {
 			return {
 				
 			}
+		},
+		onLoad(){
+			
 		},
 		methods: {
 

+ 18 - 2
pages/user/finance/refundList.vue

@@ -43,7 +43,7 @@
 						</view>
 					</view>
 					<!-- <view class="refundList-none">
-						<u-image width="200px" height="200px" src="static/img/none.svg"></u-image>
+						<u-image width="200px" height="200px" src="/static/img/none.svg"></u-image>
 					</view> -->
 				</view>
 			</view>
@@ -52,12 +52,28 @@
 </template>
 
 <script>
+	import * as api from "@/apis/refund.js"
 	export default {
 		data() {
 			return {
-				
+				userId:'',
 			}
 		},
+		onLoad(){
+			
+		},
+		onReady(){
+			if (this.carhelp.getPersonInfo()) {
+				this.userId = this.carhelp.getPersonInfo().id;
+						
+			}
+ 
+			api.personAccount().then(function(res){
+				console.log('个人余额信息'+JSON.stringify(res));
+			},function(err){
+				console.log('个人信息余额错误'+JSON.stringify(err));
+			});
+		},
 		methods: {
 
 		}