master
yujialong 3 years ago
parent 02115b5248
commit 85416a34d0
  1. 2
      apis/request.js
  2. 33
      pages.json
  3. 86
      pages/login/login.vue
  4. BIN
      static/image/login1.png
  5. BIN
      static/image/login2.png
  6. BIN
      static/image/logo.png
  7. 0
      static/image/phone.png
  8. 0
      static/image/wechat.png
  9. BIN
      static/login-bg.png
  10. 3
      styles/common.scss

@ -12,7 +12,7 @@ const request = options => {
}) })
} }
const header = Object.assign({}, config.headers, { const header = Object.assign({}, config.headers, {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMjcyMjMyLCJleHAiOjE2NTMzMTU0MzIsImFjY291bnRJZCI6IjEifQ.gf5myNnrLmVjUcIWfqfohWyvdPXXwr9butZo75CXk64' token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMzU5NTQwLCJleHAiOjE2NTM0MDI3NDAsImFjY291bnRJZCI6IjEifQ._dqfOSY8Gr6O0BFXxP17CI7zzJY9MHmfzj3876zc21s'
}) })
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
uni.request({ uni.request({

@ -1,10 +1,16 @@
{ {
"pages": [ "pages": [
{ {
"path" : "pages/invite/invite", "path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页"
}
},
{
"path" : "pages/login/login",
"style" : "style" :
{ {
"navigationBarTitleText": "加入团队", "navigationBarTitleText": "登录",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
@ -16,6 +22,14 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{
"path" : "pages/invite/invite",
"style" :
{
"navigationBarTitleText": "加入团队",
"enablePullDownRefresh": false
}
},
{ {
"path" : "pages/orderDetail/orderDetail", "path" : "pages/orderDetail/orderDetail",
"style" : "style" :
@ -72,12 +86,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页"
}
},
{ {
"path" : "pages/qrcode/qrcode", "path" : "pages/qrcode/qrcode",
"style" : "style" :
@ -143,15 +151,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
,{
"path" : "pages/login/login",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
], ],
"condition": { // "condition": { //
"current": 0, //list "current": 0, //list

@ -1,15 +1,21 @@
<template> <template>
<view class="page"> <view class="page">
<view class="wrap"> <view class="wrap">
<view class="hello">Hi或然科技城市合伙人请登录备份</view> <image class="logo" src="../../static/image/logo.png" mode=""></image>
<view class="hello">Hi城市合伙人请登录</view>
<view class="btn wechat"> <view class="btn wechat">
<image src="../../static/wechat.png" mode=""></image> <image src="../../static/image/wechat.png" mode="widthFix"></image>
微信授权登录 微信授权登录
</view> </view>
<view class="btn phone"> <view class="btn phone">
<image src="../../static/phone.png" mode=""></image> <image src="../../static/image/phone.png" mode="widthFix"></image>
手机账号登录 手机账号登录
</view> </view>
<view class="agree">
<uni-data-checkbox class="check" multiple v-model="agree" :localdata="agreeData"></uni-data-checkbox>
同意
<text>或然科技城市合伙人服务协议</text>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -18,7 +24,11 @@
export default { export default {
data() { data() {
return { return {
agree: [],
agreeData: [{
text: '',
value: 0
}],
} }
}, },
methods: { methods: {
@ -29,9 +39,73 @@
<style scoped lang="scss"> <style scoped lang="scss">
.page { .page {
background: url(../../static/login-bg.png) 0 0/100% 500px no-repeat; min-height: calc(100vh - 170rpx);
padding-top: 170rpx;
background: url(../../static/image/login1.png) 0 0/175rpx auto no-repeat,
url(../../static/image/login2.png) bottom right/123rpx auto no-repeat;
overflow: hidden;
} }
.wrap { .wrap {
margin-top: 350px; position: relative;
height: 60vh;
padding: 214rpx 74rpx 28rpx;
margin: 0 61rpx;
text-align: center;
background-color: #fff;
border-radius: 20rpx;
.logo {
width: 393rpx;
height: 93rpx;
}
.hello {
margin: 36rpx 0;
font-size: 28rpx;
color: #333;
}
.btn {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 88rpx;
font-size: 32rpx;
border-radius: 10rpx;
image {
width: 50rpx;
margin-right: 15rpx;
}
}
.wechat {
margin-bottom: 38rpx;
color: #fff;
background-color: #007EFF;
}
.phone {
color: #007EFF;
border: 1px solid #007EFF;
image {
width: 40rpx;
}
}
.agree {
position: absolute;
bottom: 28rpx;
left: 0%;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
font-size: 24rpx;
color: #ccc;
text {
color: #007EFF;
}
}
/deep/.check {
.checklist-box {
margin: 0;
}
}
} }
</style> </style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 367 B

After

Width:  |  Height:  |  Size: 367 B

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

@ -1,6 +1,9 @@
button[type=primary] { button[type=primary] {
background-color: #007eff; background-color: #007eff;
} }
page {
height: 100%;
}
.block { .block {
padding: 0 24rpx; padding: 0 24rpx;
margin: 20rpx 24rpx; margin: 20rpx 24rpx;

Loading…
Cancel
Save