wkyy 3 éve
szülő
commit
021a556042
5 módosított fájl, 20 hozzáadás és 3 törlés
  1. 2 1
      apis/index.js
  2. 2 1
      pages/index/index.vue
  3. 1 0
      pages/login/login.vue
  4. 8 0
      pages/user/finance/recharge.vue
  5. 7 1
      utils/mixin.js

+ 2 - 1
apis/index.js

@@ -1,8 +1,9 @@
 import request from '../utils/request.js';
+import requestWhite from '../utils/requestWhite.js';
 import Qs from 'qs';
 
 export function activityInfoList(data) {
-	return request({
+	return requestWhite({
 		method: 'post',
 		data: data,
 		url: '/mobile/activityInfo/activityInfoList'

+ 2 - 1
pages/index/index.vue

@@ -209,6 +209,7 @@
 			return {
 				activityList: [],
 				userId: '',
+				nickname: '',
 				newsList: [],
 				pageIndex: 1,
 				recordsTotal: 0,
@@ -230,7 +231,7 @@
 			WxJsApi.getWxConfig(['getLocation','addEventListener','scanQRCode']).then((res)=>{
 				// console.log(res)
 			}).catch(error => {
-					console.log(res)
+					// console.log(res)
 			})
 			
 			this.getPoint();

+ 1 - 0
pages/login/login.vue

@@ -156,6 +156,7 @@
 				loginApi.validateCode({
 					verifyCode: this.form.verifyCode,
 					telephone: this.form.telephone,
+					nickName: this.carhelp.getUserInfo().nickname,
 					openId: this.carhelp.getOpenId(),
 				}).then((response) => {
 					uni.hideLoading();

+ 8 - 0
pages/user/finance/recharge.vue

@@ -42,6 +42,7 @@
 	export default {
 		data() {
 			return {
+				id: '',
 				moneyActiveClass: 1,
 				moneyList: [
 					{id: '1',name: '10'},
@@ -68,6 +69,13 @@
 				checked: true,
 			}
 		},
+		onLoad(op) {
+			if(op.id){
+				this.id =op.id;
+			}
+			console.log(op)
+			console.log(this.id)
+		},
 		methods: {
 			moneyClick(item,index) {
 				this.moneyActiveClass = index;

+ 7 - 1
utils/mixin.js

@@ -33,9 +33,15 @@ var app = {
 	},
 	signOut:()=>  uni.removeStorageSync(prefix  + 'personInfo'),
 	getOpenId : () =>   uni.getStorageSync(prefix + 'wx_openId'),
+	
+	getUserInfo : () => {
+		 return uni.getStorageSync(prefix + 'xpgj_wx_user_info')
+	},
 
 	setOpenId : (value) => uni.setStorageSync(prefix + 'wx_openId', value),
-	setPersonInfo : (value) => uni.setStorageSync(prefix + 'personInfo', value),
+	setPersonInfo : (value) => uni.setStorageSync(prefix + 'personInfo', value),
+	
+	setUserInfo : (value) => uni.setStorageSync(prefix + 'xpgj_wx_user_info', value),
 	
 	getToken : (options) => {
 		//不同权限 ,不同token