Browse Source

2023-12-29 礼品兑换修改接口字段

zhiquz 1 year ago
parent
commit
eda1741e35

+ 7 - 7
pages/index-my/index-my.vue

@@ -99,13 +99,13 @@
 			icon: '8.png',
 			url: 'payment/payment'
 		},
-		// {
-		// 	name: '礼品兑换',
-		// 	icon: '3.png',
-		// 	url: 'zbs-exchange/exchange',
-		// 	width: 39,
-		// 	height: 37
-		// },
+		{
+			name: '礼品兑换',
+			icon: '3.png',
+			url: 'zbs-exchange/exchange',
+			width: 39,
+			height: 37
+		},
 		{
 			name: '安全管理',
 			remark: '退出、修改手机号',

+ 1 - 1
pages/zbs-addAddress/addAddress.vue

@@ -83,7 +83,7 @@
 		computed: {
 			userServerInfo() {
 				//用户服务器信息
-				return this.$store.state.userServerInfo;
+				return this.$store.state.userinfo;
 			}
 		},
 		onShow() {

+ 1 - 1
pages/zbs-detail/detail.vue

@@ -60,7 +60,7 @@ export default {
 		},
 		userServerInfo() {
 			//用户服务器信息
-			return this.$store.state.userServerInfo;
+			return this.$store.state.userinfo;
 		}
 	},
 	onShow() {

+ 1 - 1
pages/zbs-detail/success.vue

@@ -30,7 +30,7 @@
 		computed: {
 			userServerInfo() {
 				//用户服务器信息
-				return this.$store.state.userServerInfo;
+				return this.$store.state.userinfo;
 			},
 		},
 		onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数

+ 1 - 1
pages/zbs-exchange/exchange.vue

@@ -58,7 +58,7 @@
 		computed: {
 			userServerInfo() {
 				//用户服务器信息
-				return this.$store.state.userServerInfo;
+				return this.$store.state.userinfo
 			}
 		},
 		onShow() {

+ 1 - 1
pages/zbs-exchangerecord/exchangerecord.vue

@@ -44,7 +44,7 @@
 		computed: {
 			userServerInfo() {
 				//用户服务器信息
-				return this.$store.state.userServerInfo;
+				return this.$store.state.userinfo;
 			},
 		},
 		onShow() {

+ 1 - 1
store/modules/app.js

@@ -8,7 +8,7 @@ export default {
 		indextabbarHeight: uni.upx2px(98), // 首页 tabbar 高
 		token: uni.getStorageSync('token'),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