Browse Source

添加钱包详情页

pangqijun 2 years ago
parent
commit
101036a8db
4 changed files with 201 additions and 7 deletions
  1. 7 0
      api/user.js
  2. 19 0
      pages.json
  3. 2 7
      pages/user/index.vue
  4. 173 0
      pages/users/user_wallet/index.vue

+ 7 - 0
api/user.js

@@ -173,6 +173,13 @@ export function getGreenIntegralList(q) {
 	return request.get("/v1/userTicket-page", q);
 }
 
+/*
+ * 红色积分记录
+ * */
+export function getBalanceList(q) {
+	return request.post("/v1/balance/page", q);
+}
+
 /**
  * 获取分销海报图片
  * 

+ 19 - 0
pages.json

@@ -683,6 +683,25 @@
 						}
 					}
 				},
+				{
+					"path": "user_wallet/index",
+					"style": {
+						"navigationBarTitleText": "我的钱包"
+						// #ifdef MP
+					,
+						"navigationBarTextStyle": "black",
+						"navigationBarBackgroundColor": "#FFFFFF"
+						// #endif
+					,
+						"app-plus": {
+							// #ifdef APP-PLUS
+							"titleNView": {
+								"type": "default"
+							}
+							// #endif
+						}
+					}
+				},
 				{
 					"path": "user_coupon/index",
 					"style": {

+ 2 - 7
pages/user/index.vue

@@ -105,16 +105,11 @@
 
 						</view>
 						<view class="num-wrapper">
-							<view class="num-item" v-if="userInfo.nowMoney"
-								@click="goMenuPage('/pages/users/user_money/index')">
+							<view class="num-item"
+								@click="goMenuPage('/pages/users/user_wallet/index')">
 								<text class="num">{{userInfo.nowMoney || 0}}</text>
 								<view class="txt">{{$t('钱包余额')}}</view>
 							</view>
-							<view class="num-item" v-else
-								@click="goMenuPage('/pages/users/user_goods_collection/index')">
-								<text class="num">{{userInfo.collectCount || 0}}</text>
-								<view class="txt">{{$t('收藏')}}</view>
-							</view>
 							<view class="num-item" @click="goMenuPage('/pages/users/user_green_integral/index')">
 								<text class="num">{{userInfo.ticket || 0}}</text>
 								<view class="txt">{{$t('绿色积分')}}</view>

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


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