Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
X
xinya_mini
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xwq
xinya_mini
Commits
09eeebd4
Commit
09eeebd4
authored
Apr 27, 2021
by
xwq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login
parent
6a4ba013
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
request.js
jade/request.js
+1
-1
login.js
pages/login/login.js
+2
-2
login.wxml
pages/login/login.wxml
+1
-1
login.wxss
pages/login/login.wxss
+3
-2
takePhoto.wxml
pages/takePhoto/takePhoto.wxml
+5
-4
index.js
utils/index.js
+1
-1
No files found.
jade/request.js
View file @
09eeebd4
...
@@ -180,7 +180,7 @@ var XYSequencedBatchFetch = function (paramsArr) {
...
@@ -180,7 +180,7 @@ var XYSequencedBatchFetch = function (paramsArr) {
return
sequencedTask
(
paramsArr
)
return
sequencedTask
(
paramsArr
)
}
}
const
HOST
=
"
https://
test.
xinya.me
"
const
HOST
=
"
https://xinya.me
"
const
API_URL
=
HOST
+
"
/mp/
"
const
API_URL
=
HOST
+
"
/mp/
"
const
getUrl
=
(
relative_path
,
params
=
{})
=>
{
const
getUrl
=
(
relative_path
,
params
=
{})
=>
{
...
...
pages/login/login.js
View file @
09eeebd4
...
@@ -7,11 +7,11 @@ Page({
...
@@ -7,11 +7,11 @@ Page({
data
:
{
data
:
{
},
},
bindGetUserInfo
:
function
(
e
)
{
bindGetUserInfo
:
function
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
wx
.
navigateBack
({
wx
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
...
pages/login/login.wxml
View file @
09eeebd4
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
<view class="login-button">
<view class="login-button">
<button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">授权登录</button>
<button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">授权登录</button>
</view>
</view>
</view>
</view>
\ No newline at end of file
pages/login/login.wxss
View file @
09eeebd4
/* pages/login/login.wxss */
/* pages/login/login.wxss */
.login-back{
.login-back
{
width: 100%;
width: 100%;
height: 100%;
height: 100%;
background-color: #FFB12C;
background-color: #FFB12C;
min-height: calc(100%vh - 0px);
min-height: calc(100%vh - 0px);
position: relative;
position: relative;
}
}
.login-button{
.login-button {
position: absolute;
position: absolute;
left: 50%;
left: 50%;
transform: translateX(-50%);
transform: translateX(-50%);
...
...
pages/takePhoto/takePhoto.wxml
View file @
09eeebd4
<!--pages/takePhoto/takePhoto.wxml-->
<!--pages/takePhoto/takePhoto.wxml-->
<view style="height: 100vh; width: 100%">
<view style="height: 100vh; width: 100%">
<camera device-position="back" flash="off" binderror="error" style="width: 100%; height: calc(100% - 100px); background: black"></camera>
<camera device-position="back" flash="off" binderror="error"
style="width: 100%; height: calc(100% - 100px); background: black"></camera>
<block wx:if="{{cameraError}}">
<block wx:if="{{cameraError}}">
<view style="margin-top: 30vh;text-align: center;">{{cameraError}}</view>
<view style="margin-top: 30vh;text-align: center;">{{cameraError}}</view>
</block>
</block>
<view bindtap="takePhoto" style="height: 100px; width: 100%; background: black; display: flex; justify-content: center;align-items: center;">
<view bindtap="takePhoto"
style="height: 100px; width: 100%; background: black; display: flex; justify-content: center;align-items: center;">
<image src='../../assets/images/take_photo.png' style="width: 70px; height: 70px"></image>
<image src='../../assets/images/take_photo.png' style="width: 70px; height: 70px"></image>
</view>
</view>
</view>
</view>
\ No newline at end of file
utils/index.js
View file @
09eeebd4
...
@@ -141,7 +141,7 @@ const convertURLToJSON = function (url, params = {}) {
...
@@ -141,7 +141,7 @@ const convertURLToJSON = function (url, params = {}) {
// }
// }
// }
// }
const
hosts
=
"
https://
test.
xinya.me
"
const
hosts
=
"
https://xinya.me
"
// const hosts="https://xinya.me"
// const hosts="https://xinya.me"
// const request=function(url){
// const request=function(url){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment