Commit a63ecd0038a9cc2a137fd4e680ac150718b0ef24

Authored by vking
1 parent 6df5dce3

welcome

... ... @@ -36,7 +36,8 @@
"pages/me/history",
"pages/reserve/remark",
"pages/reserve/findSeller",
"pages/customer/cancel"
"pages/customer/cancel",
"pages/customer/welcome"
],
"subpackages": [
{
... ...
// pages/customer/welcome.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
launchAppError (e) {
console.log('launchAppError',e)
this.setData({
error:JSON.stringify(e.detail)
})
}
})
\ No newline at end of file
... ...
{
"usingComponents": {
"nav":"/components/nav/nav"
}
}
\ No newline at end of file
... ...
<!--pages/customer/welcome.wxml-->
<nav>打开APP</nav>
<button open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>
<view wx:if="{{error}}" style="width: 100%;">{{error}}</view>
... ...
/* pages/customer/welcome.wxss */
\ No newline at end of file
... ...
... ... @@ -680,6 +680,13 @@
"pathName": "pages/reserve/index_yy",
"query": "id=71629&_hasSubscribeFail=1",
"scene": null
},
{
"id": 85,
"name": "pages/customer/welcome",
"pathName": "pages/customer/welcome",
"query": "id=104544",
"scene": null
}
]
}
... ...