corala 3 lat temu
rodzic
commit
47a6565cf7
24 zmienionych plików z 67 dodań i 8 usunięć
  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. BIN
      static/imgs/bg.png
  8. BIN
      static/imgs/checked.png
  9. BIN
      static/imgs/logo.png
  10. BIN
      static/imgs/name.png
  11. BIN
      static/imgs/row.png
  12. BIN
      static/imgs/sanjiao.png
  13. BIN
      static/imgs/title.png
  14. BIN
      ).png
  15. BIN
      static/imgs/形状结合.png
  16. BIN
      static/imgs/排行榜_slices.zip
  17. BIN
      static/imgs/排行榜_slices/位图(1).png
  18. BIN
      static/imgs/排行榜_slices/位图.png
  19. BIN
      static/imgs/排行榜_slices/位图备份.png
  20. BIN
      static/imgs/排行榜_slices/形状.png
  21. BIN
      png
  22. BIN
      static/imgs/矩形.png
  23. BIN
      png
  24. BIN
      .png

+ 1
- 1
app.json Wyświetl plik

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


+ 41
- 0
pages/login/index.js Wyświetl plik

@@ -14,7 +14,20 @@ Page({
url: '' url: ''
}) })
}, },
checkFun(){
this.setData({
ischecked: !this.data.ischecked
})
},
login(){ login(){
if(!this.data.ischecked){
wx.showToast({
title: '请勾选协议',
icon: 'none',
duration: 2000
})
return;
}
wx.login({ wx.login({
success (res) { success (res) {
console.log(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 Wyświetl plik

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

+ 1
- 0
pages/open/index.wxml Wyświetl plik

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

+ 10
- 3
pages/open/index.wxss Wyświetl plik

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

+ 10
- 2
project.config.json Wyświetl plik

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

BIN
static/imgs/bg.png Wyświetl plik

Przed Po
Szerokość: 750  |  Wysokość: 1464  |  Rozmiar: 316 KiB

BIN
static/imgs/checked.png Wyświetl plik

Przed Po
Szerokość: 28  |  Wysokość: 28  |  Rozmiar: 717 B

BIN
static/imgs/logo.png Wyświetl plik

Przed Po
Szerokość: 542  |  Wysokość: 228  |  Rozmiar: 44 KiB

BIN
static/imgs/name.png Wyświetl plik

Przed Po
Szerokość: 538  |  Wysokość: 58  |  Rozmiar: 9.9 KiB

BIN
static/imgs/row.png Wyświetl plik

Przed Po
Szerokość: 100  |  Wysokość: 58  |  Rozmiar: 1.3 KiB

BIN
static/imgs/sanjiao.png Wyświetl plik

Przed Po
Szerokość: 92  |  Wysokość: 44  |  Rozmiar: 1022 B

BIN
static/imgs/title.png Wyświetl plik

Przed Po
Szerokość: 547  |  Wysokość: 200  |  Rozmiar: 33 KiB

BIN
static/imgs/形状结合 → ).png Wyświetl plik


BIN
static/imgs/形状结合.png Wyświetl plik

Przed Po
Szerokość: 44  |  Wysokość: 44  |  Rozmiar: 855 B

BIN
static/imgs/排行榜_slices.zip Wyświetl plik


BIN
static/imgs/排行榜_slices/位图(1).png Wyświetl plik

Przed Po
Szerokość: 34  |  Wysokość: 46  |  Rozmiar: 3.3 KiB

BIN
static/imgs/排行榜_slices/位图.png Wyświetl plik

Przed Po
Szerokość: 34  |  Wysokość: 46  |  Rozmiar: 3.1 KiB

BIN
static/imgs/排行榜_slices/位图备份.png Wyświetl plik

Przed Po
Szerokość: 34  |  Wysokość: 46  |  Rozmiar: 3.1 KiB

BIN
static/imgs/排行榜_slices/形状.png Wyświetl plik

Przed Po
Szerokość: 54  |  Wysokość: 54  |  Rozmiar: 1.6 KiB

BIN
static/imgs/排行榜_slices/编组 → png Wyświetl plik


BIN
static/imgs/矩形.png Wyświetl plik

Przed Po
Szerokość: 750  |  Wysokość: 1624  |  Rozmiar: 32 KiB

BIN
static/imgs/矩形备份 → png Wyświetl plik


BIN
static/imgs/编组 → .png Wyświetl plik


Ładowanie…
Anuluj
Zapisz