Commit 4de34df4 by 赵雅纹

回到首页

parent e35c19e8
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
"pages/subPage/subPage", "pages/subPage/subPage",
"pages/h5/h5page", "pages/h5/h5page",
"pages/pointGoodsList/pointGoodsList", "pages/pointGoodsList/pointGoodsList",
"pages/test/test" "pages/test/test",
"pages/goToHome/goToHome"
] ]
} }
], ],
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 15, "current": 18,
"list": [ "list": [
{ {
"id": -1, "id": -1,
...@@ -153,6 +153,12 @@ ...@@ -153,6 +153,12 @@
"pathName": "subPackage/page/pages/test/test", "pathName": "subPackage/page/pages/test/test",
"query": "", "query": "",
"scene": null "scene": null
},
{
"id": -1,
"name": "subPackage/page/pages/pointGoodsList/pointGoodsList",
"pathName": "subPackage/page/pages/goToHome/goToHome",
"scene": null
} }
] ]
} }
......
// subPackage/page/pages/goToHome/goToHome.js
var app = getApp()
const wxService = require('../../../../utils/wxService')
const utils = require('../../../../utils/util')
const envInfo = require('../../../../config/index').envInfo
wxService.page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
handelGoHome() {
wxService.router('/pages/userCenter/userCenter').replace()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--subPackage/page/pages/goToHome/goToHome.wxml-->
<view class="btn-wrap">
<view class="btn-home" bindtap="handelGoHome">
<button type='primary' class='btn-primary'>回到首页</button>
</view>
</view>
/* subPackage/page/pages/goToHome/goToHome.wxss */
.btn-wrap{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.btn-home{
width: 200rpx;
}
.btn-primary{
font-size: 14px;
box-sizing: border-box;
}
\ No newline at end of file
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