corala 3 年之前
父節點
當前提交
47a6565cf7
共有 24 個文件被更改,包括 67 次插入8 次删除
  1. +1
    -1
      app.json
  2. +41
    -0
      pages/login/index.js
  3. +4
    -2
      pages/login/index.wxml
  4. +1
    -0
      pages/open/index.wxml
  5. +10
    -3
      pages/open/index.wxss
  6. +10
    -2
      project.config.json
  7. 二進制
      static/imgs/bg.png
  8. 二進制
      static/imgs/checked.png
  9. 二進制
      static/imgs/logo.png
  10. 二進制
      static/imgs/name.png
  11. 二進制
      static/imgs/row.png
  12. 二進制
      static/imgs/sanjiao.png
  13. 二進制
      static/imgs/title.png
  14. 二進制
      ).png
  15. 二進制
      static/imgs/形状结合.png
  16. 二進制
      static/imgs/排行榜_slices.zip
  17. 二進制
      static/imgs/排行榜_slices/位图(1).png
  18. 二進制
      static/imgs/排行榜_slices/位图.png
  19. 二進制
      static/imgs/排行榜_slices/位图备份.png
  20. 二進制
      static/imgs/排行榜_slices/形状.png
  21. 二進制
      png
  22. 二進制
      static/imgs/矩形.png
  23. 二進制
      png
  24. 二進制
      .png

+ 1
- 1
app.json 查看文件

@@ -1,8 +1,8 @@
{
"pages": [
"pages/open/index",
"pages/login/index",
"pages/rank/index",
"pages/open/index",
"pages/index/index"
],
"window": {


+ 41
- 0
pages/login/index.js 查看文件

@@ -14,7 +14,20 @@ Page({
url: ''
})
},
checkFun(){
this.setData({
ischecked: !this.data.ischecked
})
},
login(){
if(!this.data.ischecked){
wx.showToast({
title: '请勾选协议',
icon: 'none',
duration: 2000
})
return;
}
wx.login({
success (res) {
console.log(res)
@@ -31,5 +44,33 @@ Page({
}
}
})
},
// 授权手机号
getPhoneNumber(e) {
console.log(e);
let that = this
if (e.detail.errMsg == "getPhoneNumber:ok") {
// console.log(e)
const {
iv,
encryptedData
} = e.detail;
// that.$u.api.bindMini({
// encrypted: encryptedData,
// iv
// }).then((res) => { // 绑定手机号
// console.log(res);
// let userinfo = that.vuex_userInfo
// userinfo.phone = res.data
// that.$u.vuex("vuex_userInfo", userinfo);
// uni.setStorageSync('userInfo', userinfo)
// that.islogin = true
// })
} else {
uni.showToast({
icon: "none",
title: "请授权手机号"
})
}
}
})

+ 4
- 2
pages/login/index.wxml 查看文件

@@ -6,11 +6,13 @@
<image class="search" src="https://static.quhouse.com/2d4207f23033420da62154bbdab565fb.png"></image>
<image class="logo" src="https://static.quhouse.com/36be11c7991c484cbf4853d108772137.png"></image>
<view class="agreement">
<image class="checked" wx:if="{{ischecked}}"src="https://static.quhouse.com/73be27af311b4a97b17e75dd5b984100.png"></image>
<view class="nocheck" wx:else></view>
<image class="checked" bindtap="checkFun"
wx:if="{{ischecked}}" src="https://static.quhouse.com/73be27af311b4a97b17e75dd5b984100.png"></image>
<view class="nocheck" bindtap="checkFun" wx:else></view>
<view class="text">勾选表示您已阅读并同意</view>
<view class="text text1">《隐私协议》</view>
</view>
<!-- <button class="btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">绑定手机</button> -->
<view class="btn" bindtap="login">微信一键登录</view>
<view class="btn btn1" bindtap="backGame">返回游戏</view>
</view>

+ 1
- 0
pages/open/index.wxml 查看文件

@@ -8,5 +8,6 @@
<image class="white" src="https://static.quhouse.com/783169705fe74e8190b144eb2f132591.png"></image>
<view class="btn btn2">扫码参与
<image class="row" src="https://static.quhouse.com/4066235dc1404b928a5e247f7b56274e.png"></image></view>
<image class="dot" src="https://static.quhouse.com/0452d5bbf636490f8476f08e2d8aa96b.png"></image>
</view>
</view>

+ 10
- 3
pages/open/index.wxss 查看文件

@@ -35,14 +35,14 @@
.btn1{
color: #000000;
background: #FFC700;
top: 0;
top: -12rpx;
left: 0;
}
.btn2{
background: #2845E0;
color: #FFFFFF;
right: 0;
top: 12rpx;
top: 0;
}
.btn .row{
width: 44rpx;
@@ -54,6 +54,13 @@
width: 40rpx;
height: 116rpx;
position: absolute;
top: 1rpx;
top: -9rpx;
left: 322rpx;
}
.dot{
width: 182rpx;
height: 6rpx;
top: 140rpx;
right: 0;
position: absolute;
}

+ 10
- 2
project.config.json 查看文件

@@ -63,8 +63,16 @@
"list": []
},
"miniprogram": {
"current": -1,
"list": []
"current": 0,
"list": [
{
"id": -1,
"name": "pages/open/index",
"pathName": "pages/open/index",
"query": "",
"scene": null
}
]
}
}
}

二進制
static/imgs/bg.png 查看文件

Before After
Width: 750  |  Height: 1464  |  Size: 316 KiB

二進制
static/imgs/checked.png 查看文件

Before After
Width: 28  |  Height: 28  |  Size: 717 B

二進制
static/imgs/logo.png 查看文件

Before After
Width: 542  |  Height: 228  |  Size: 44 KiB

二進制
static/imgs/name.png 查看文件

Before After
Width: 538  |  Height: 58  |  Size: 9.9 KiB

二進制
static/imgs/row.png 查看文件

Before After
Width: 100  |  Height: 58  |  Size: 1.3 KiB

二進制
static/imgs/sanjiao.png 查看文件

Before After
Width: 92  |  Height: 44  |  Size: 1022 B

二進制
static/imgs/title.png 查看文件

Before After
Width: 547  |  Height: 200  |  Size: 33 KiB

二進制
static/imgs/形状结合 → ).png 查看文件


二進制
static/imgs/形状结合.png 查看文件

Before After
Width: 44  |  Height: 44  |  Size: 855 B

二進制
static/imgs/排行榜_slices.zip 查看文件


二進制
static/imgs/排行榜_slices/位图(1).png 查看文件

Before After
Width: 34  |  Height: 46  |  Size: 3.3 KiB

二進制
static/imgs/排行榜_slices/位图.png 查看文件

Before After
Width: 34  |  Height: 46  |  Size: 3.1 KiB

二進制
static/imgs/排行榜_slices/位图备份.png 查看文件

Before After
Width: 34  |  Height: 46  |  Size: 3.1 KiB

二進制
static/imgs/排行榜_slices/形状.png 查看文件

Before After
Width: 54  |  Height: 54  |  Size: 1.6 KiB

二進制
static/imgs/排行榜_slices/编组 → png 查看文件


二進制
static/imgs/矩形.png 查看文件

Before After
Width: 750  |  Height: 1624  |  Size: 32 KiB

二進制
static/imgs/矩形备份 → png 查看文件


二進制
static/imgs/编组 → .png 查看文件


Loading…
取消
儲存