Browse Source

我的服务固定

yuxingxing 2 years ago
parent
commit
a99c98cd2b
1 changed files with 97 additions and 8 deletions
  1. 97 8
      pages/user/index.vue

+ 97 - 8
pages/user/index.vue

@@ -507,12 +507,12 @@ export default {
 				"id": "idundefined"
 			}
 			// getNavigation().then(res => {
-				this.newData = res
-				if (this.newData.status && this.newData.status.status) {
-					uni.hideTabBar()
-				} else {
-					uni.showTabBar()
-				}
+			this.newData = res
+			if (this.newData.status && this.newData.status.status) {
+				uni.hideTabBar()
+			} else {
+				uni.showTabBar()
+			}
 			// })
 		}
 		// #ifdef MP
@@ -690,7 +690,96 @@ export default {
 		getMyMenus: function () {
 			let that = this;
 			// if (this.MyMenus.length) return;
-			getMenuList().then(res => {
+			let res = {
+				data: {
+					"routine_my_menus": [
+						{
+							"id": 1157,
+							"name": "付费会员",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_vip.png",
+							"url": "/pages/annex/vip_paid/index"
+						},
+						{
+							"id": 1158,
+							"name": "发票管理",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_invoice.png",
+							"url": "/pages/users/user_invoice_list/index"
+						},
+						{
+							"id": 1159,
+							"name": "积分中心",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_integral.png",
+							"url": "/pages/users/user_integral/index"
+						},
+						{
+							"id": 1160,
+							"name": "联系客服",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_customer.png",
+							"url": "/pages/extension/customer_list/chat"
+						},
+						{
+							"id": 1161,
+							"name": "我的收藏",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_collection.png",
+							"url": "/pages/users/user_goods_collection/index"
+						},
+						{
+							"id": 1162,
+							"name": "地址信息",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_address.png",
+							"url": "/pages/users/user_address_list/index"
+						},
+						{
+							"id": 1163,
+							"name": "我的余额",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_money.png",
+							"url": "/pages/users/user_money/index"
+						},
+						{
+							"id": 1164,
+							"name": "我的推广",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_spread.png",
+							"url": "/pages/users/user_spread_user/index"
+						},
+						{
+							"id": 1165,
+							"name": "砍价记录",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_bargain.png",
+							"url": "/pages/activity/bargain/index"
+						},
+						{
+							"id": 1166,
+							"name": "浏览记录",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_log.png",
+							"url": "/pages/users/visit_list/index"
+						},
+						{
+							"id": 1167,
+							"name": "我的等级",
+							"pic": "https://demo26.crmeb.net/statics/system_images/menu_level.png",
+							"url": "/pages/users/user_vip/index"
+						},
+						{
+							"id": 1168,
+							"name": "抽奖记录",
+							"pic": "https://demo26.crmeb.net/uploads/attach/2022/09/20220909/0792fc1da45d6621fcd9a0bb941911f4.png",
+							"url": "/pages/goods/lottery/grids/record"
+						}
+					],
+					"routine_my_banner": [],
+					"routine_spread_banner": [
+						"https://demo26.crmeb.net/statics/system_images/spread_1.jpeg",
+						"https://demo26.crmeb.net/statics/system_images/spread_2.jpeg"
+					],
+					"routine_contact_type": "0",
+					"diy_data": {
+						"value": "1",
+						"order_status": 4,
+						"my_banner_status": 0
+					}
+				}
+			}
+			// getMenuList().then(res => {
 				let storeMenu = []
 				let myMenu = []
 				res.data.routine_my_menus.forEach((el, index, arr) => {
@@ -760,7 +849,7 @@ export default {
 				that.$set(that, 'storeMenu', storeMenu);
 				this.imgUrls = res.data.routine_my_banner
 				this.routineContact = Number(res.data.routine_contact_type)
-			});
+			// });
 		},
 		// 编辑页面
 		goEdit() {