Blame view

apis/account/index.js 1.77 KB
bb09ac81   wangming   DEV初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  import request from '../../service/request.js'
  import utils from '../../service/request.js'
  // 用户登录模块
  export default{
  	WxLogin(data){
  		return	request.post(`/Account/WxLogin?`+`${utils.ObjectToQureyParams(data)}`)
  	},
  	utils(data){
  		return request.get(`/Account/GetPhoneNumber?`+`${utils.ObjectToQureyParams(data)}`)
  	},
  	
  	//登录
  	WeCharLogin(data){
  		return	request.get('/Account/WeCharLogin',data)
  	},
  
  }
  	// uni.request({
  				// 	method: 'POST',
  				// 	url: 'http://8.130.163.46:8091/api/Account/WxLogin?code=' + this.code,
  				// 	fullScreen: true,
  				// 	success(val) {
  				// 		console.log(val)
  				// 		_this.listdata=val;
  				
  				// -------------------------------------
  				//获取手机号
  				// 		// GET /api/Account/GetPhoneNumber
  				// 		uni.request({
  				// 			url: 'http://8.130.163.46:8091/api/Account/GetPhoneNumber', //服务器端地址
  				// 			data: {
  				// 				 code: code,
  				// 				 aesIv:res.detail.iv,
  				// 				 encryptedData:res.detail.encryptedData,
  				// 			},
  				// 			method: 'get',
  				// 			header: {
  				// 				 "pragma": "no-cache",
  				// 				  "date": "Wed, 15 Dec 2021 03:21:48 GMT",
  				// 				  "server": "Microsoft-IIS/10.0",
  				// 				  "x-aspnet-version": "4.0.30319",
  				// 				  "x-powered-by": "ASP.NET",
  				// 				  "content-type": "application/json; charset=utf-8",
  				// 				  "cache-control": "no-cache",
  				// 				  "content-length": "24",
  				// 				  "expires": "-1"
  				// 			},
  				// 			success: (res1) => {
  				// 				debugger
  				// 				console.log(res1)
  				// 				// if (res.data.state == "success") {
  				// 				// 	uni.reLaunch({ //信息更新成功后跳转到小程序首页
  				// 				// 		url: '../index/index'
  				// 				// 	});
  				// 				// }
  				// 				// uni.hideLoading()
  				// 			}
  									
  				// 		});