Bläddra i källkod

上传文件至 'hangout-master/Pages/HGBot/Home'

master
曹天怡 2 år sedan
förälder
incheckning
1c83719b0d
4 ändrade filer med 193 tillägg och 0 borttagningar
  1. +100
    -0
      hangout-master/Pages/HGBot/Home/Home.js
  2. +3
    -0
      hangout-master/Pages/HGBot/Home/Home.json
  3. +29
    -0
      hangout-master/Pages/HGBot/Home/Home.wxml
  4. +61
    -0
      hangout-master/Pages/HGBot/Home/Home.wxss

+ 100
- 0
hangout-master/Pages/HGBot/Home/Home.js Visa fil

@ -0,0 +1,100 @@
// Pages/HGBot/Home.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 抽签->投票->悄悄话
*/
onRet:function(){
wx.reLaunch({
url: '/Pages/menu/menu',
})
},
onRd:function(){
wx.navigateTo({
url: '/Pages/HGBot/Rd/Rd',
})
},
onVote:function(){
wx.navigateTo({
url: '/Pages/HGBot/Vote/send/send',
})
},
onWhisper:function(){
wx.navigateTo({
url: '/Pages/HGBot/Whisper/send/getMsg',
})
},
home:function(){
wx.redirectTo({
url: '/Pages/menu/menu',
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

+ 3
- 0
hangout-master/Pages/HGBot/Home/Home.json Visa fil

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

+ 29
- 0
hangout-master/Pages/HGBot/Home/Home.wxml Visa fil

@ -0,0 +1,29 @@
<view style="display: flex;">
<image class="navi" src="/asset/img/navi.png" bindtap="onRet"></image>
<view style="padding: 0;margin: 0;width: 1px;height:700px;background-color: #7B8B6F;"></view>
<view style="display: block">
<view class="title">
憨狗Bot
</view>
<view>
<image src="/asset/img/icon-rd.png" class="icon" style="top:180px;"></image>
<text class="rd" bindtap="onRd">抽签
</text>
</view>
<view>
<image src="/asset/img/icon-vote.png" class="icon" style="top: 255px;"></image>
<text class="vote" bindtap="onVote">投票
</text>
</view>
<view>
<image src="/asset/img/icon-whisper.png" class="icon" style="top: 330px;"></image>
<text class="whisper" bindtap="onWhisper">悄悄话
</text>
</view>
<view>
<image src="/asset/img/hangou1.png" mode="heightFix" class="hg"></image>
</view>
</view>
</view>

+ 61
- 0
hangout-master/Pages/HGBot/Home/Home.wxss Visa fil

@ -0,0 +1,61 @@
/* Pages/HGBot/Home.wxss */
@import "/Pages/homepage/homepage.wxss";
.navi{
width: 40px;
height: 30px;
margin: 5px;
padding-top: 10px;
}
.title{
color: #7b8b6f;
font-size: 60px;
font-weight: 900;
font-family: Sniglet;
text-align: center;
margin: 50px;
}
.rd{
position: absolute;
left: 185px;
top: 176px;
font-size: 36px;
font-weight: 900;
text-align: center;
color: #7b8b6f;
}
.vote{
position: absolute;
left: 185px;
top: 251px;
font-size: 36px;
font-weight: 900;
text-align: center;
color: #7b8b6f;
}
.whisper{
position: absolute;
left: 167px;
top: 327px;
font-size: 36px;
font-weight: 900;
text-align: center;
color: #7b8b6f;
}
.icon{
height: 43px;
width: 45px;
position: absolute;
left:100px;
}
.hg{
position:absolute;
left: 100px;
top: 400px;
}

Laddar…
Avbryt
Spara