Browse Source

接口联调初始化

yuxingxing 2 years ago
parent
commit
8a63346961
4 changed files with 187 additions and 6 deletions
  1. 5 0
      api/home.js
  2. 19 0
      pages.json
  3. 153 0
      pages/users/user_earningsCount/index.vue
  4. 10 6
      pages/users/user_invoice_list/index.vue

+ 5 - 0
api/home.js

@@ -186,3 +186,8 @@ export function todayStatistics(data) {
 export function linkedBindLogList(data) {
 	return request.get('v1/linked/linkedBindLogList', data)
 }
+
+// 收益记录
+export function earningsList(data) {
+	return request.get('v1/linked/earningsList', data)
+}

+ 19 - 0
pages.json

@@ -664,6 +664,25 @@
 						}
 					}
 				},
+				{
+					"path": "user_earningsCount/index",
+					"style": {
+						"navigationBarTitleText": "收益记录"
+						// #ifdef MP
+					,
+						"navigationBarTextStyle": "black",
+						"navigationBarBackgroundColor": "#FFFFFF"
+						// #endif
+					,
+						"app-plus": {
+							// #ifdef APP-PLUS
+							"titleNView": {
+								"type": "default"
+							}
+							// #endif
+						}
+					}
+				},
 				{
 					"path": "user_green_integral/index",
 					"style": {

File diff suppressed because it is too large
+ 153 - 0
pages/users/user_earningsCount/index.vue


+ 10 - 6
pages/users/user_invoice_list/index.vue

@@ -11,12 +11,12 @@
 				<u-cell v-for="(item, index) in invoiceList" :key="index">
 					<view slot="title" class="u-slot-title">
 						<u--text mode="name" :text="item.userName" bold></u--text>
-						<u--text :text="('前上级:'+item.beforeParentName)"></u--text>
-						<u--text :text="('现上级:'+item.afterParentName)"></u--text>
+						<u--text :text="('前上级:'+item.beforeParentName)" size="12"></u--text>
+						<u--text :text="('现上级:'+item.afterParentName)" size="12"></u--text>
 					</view>
 					<view slot="right-icon" style="margin-top: 20px">
 						<u--text :text="item.typeMsg" bold align="right"></u--text>
-						<u--text :text="item.updateTime"></u--text>
+						<u--text :text="item.updateTime" size="12"></u--text>
 					</view>
 				</u-cell>
 			</u-cell-group>
@@ -117,7 +117,7 @@ export default {
 			invoiceList: [],
 			nav: 1, // 1:发票记录 2:抬头管理
 			page: 1,
-			limit: 30,
+			limit: 300,
 			loading: false,
 			finished: false,
 			specialInvoice: true
@@ -149,8 +149,12 @@ export default {
 		this.getStatistics();
 	},
 	methods: {
-		click(name) {
-			console.log(name);
+		click(index) {
+			if (index == 0 ){
+				uni.navigateTo({
+					url: '/pages/users/user_earningsCount/index'
+				})
+			}
 		},
 		getStatistics() {
 			uni.showLoading({

Some files were not shown because too many files changed in this diff