zhengkaixin 1 年之前
父節點
當前提交
6b9b1e301b
共有 4 個文件被更改,包括 41 次插入2 次删除
  1. 19 0
      apis/pagejs/refund.js
  2. 1 1
      config/.env.dev.js
  3. 1 1
      pages/recharge/accountRecharge.vue
  4. 20 0
      pages/returnBalance/returnBalance.vue

+ 19 - 0
apis/pagejs/refund.js

@@ -0,0 +1,19 @@
+import request from '@/apis/utils/request'
+ 
+ export function refundAmount(data) {
+ 	var url='/mobile/tenant/refundAmount';
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: url
+ 	})
+ }
+ 
+ export function refundApplication(data) {
+ 	var url='/mobile/tenant/refundApplication';
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: url
+ 	})
+ }

+ 1 - 1
config/.env.dev.js

@@ -13,7 +13,7 @@ const UNI_APP = {
 	//openId:"55555",//测试人员 开发环境
 	//openId:"oK9Wr57rAcNzihDN2PEdptprT0As", 
 	// openId:"oK9Wr54VbEh3xvWYmD_zT5NbH4AY",
-	openId:"oLowyuOJvTszgk96C0f8j0XfcEXg",//zkx
+	//openId:"oLowyuOJvTszgk96C0f8j0XfcEXg",//zkx
 	openId:"oLowyuAJ1Ld0ivnLj4qp1k5Vy_l4",
 	//appid
 	VUE_APP_WXAPPID:"wx0b3c41a903053808",

+ 1 - 1
pages/recharge/accountRecharge.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<u-navbar title="账户充值" title-color="#101010">
-			<view slot="right" class="slot" @click="gotoUrl('/pages/returnBalance/returnBalance')" >
+			<view slot="right" class="slot" v-if="false" @click="gotoUrl('/pages/returnBalance/returnBalance')" >
 				退余额
 			</view>
 		</u-navbar>

+ 20 - 0
pages/returnBalance/returnBalance.vue

@@ -73,6 +73,8 @@
 </template>
 
 <script>
+	import * as API from '@/apis/pagejs/refund.js'
+	
 	export default {
 		data() {	
 			return {
@@ -84,7 +86,25 @@
 
 			}
 		},
+		onLoad() {
+			this.getRefundAmount()
+		},
 		methods: {
+			getRefundAmount(){
+				// uni.showLoading({
+				// 	title: "加载中",
+				// 	mask: true,
+				// })
+				
+				API.refundAmount({
+					
+				}).then((response) => {
+					
+				}).catch(error => {
+					//uni.hideLoading();
+					
+				})
+			},
 			open() {
 				this.show = true;
 			},