Commit a63ecd0038a9cc2a137fd4e680ac150718b0ef24

Authored by vking
1 parent 6df5dce3

welcome

@@ -36,7 +36,8 @@ @@ -36,7 +36,8 @@
36 "pages/me/history", 36 "pages/me/history",
37 "pages/reserve/remark", 37 "pages/reserve/remark",
38 "pages/reserve/findSeller", 38 "pages/reserve/findSeller",
39 - "pages/customer/cancel" 39 + "pages/customer/cancel",
  40 + "pages/customer/welcome"
40 ], 41 ],
41 "subpackages": [ 42 "subpackages": [
42 { 43 {
  1 +// pages/customer/welcome.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + },
  66 + launchAppError (e) {
  67 + console.log('launchAppError',e)
  68 + this.setData({
  69 + error:JSON.stringify(e.detail)
  70 + })
  71 + }
  72 +})
  1 +{
  2 + "usingComponents": {
  3 + "nav":"/components/nav/nav"
  4 + }
  5 +}
  1 +<!--pages/customer/welcome.wxml-->
  2 +<nav>打开APP</nav>
  3 +<button open-type="launchApp" type="primary" app-parameter="wechat" binderror="launchAppError">打开APP</button>
  4 +<view wx:if="{{error}}" style="width: 100%;">{{error}}</view>
  1 +/* pages/customer/welcome.wxss */
@@ -680,6 +680,13 @@ @@ -680,6 +680,13 @@
680 "pathName": "pages/reserve/index_yy", 680 "pathName": "pages/reserve/index_yy",
681 "query": "id=71629&_hasSubscribeFail=1", 681 "query": "id=71629&_hasSubscribeFail=1",
682 "scene": null 682 "scene": null
  683 + },
  684 + {
  685 + "id": 85,
  686 + "name": "pages/customer/welcome",
  687 + "pathName": "pages/customer/welcome",
  688 + "query": "id=104544",
  689 + "scene": null
683 } 690 }
684 ] 691 ]
685 } 692 }