Commit 09eeebd4 authored by xwq's avatar xwq

login

parent 6a4ba013
...@@ -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 = {}) => {
......
...@@ -7,7 +7,7 @@ Page({ ...@@ -7,7 +7,7 @@ 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.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--> <!--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
...@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment