Showing
6 changed files
with
117 additions
and
3 deletions
| @@ -23,12 +23,13 @@ | @@ -23,12 +23,13 @@ | ||
| 23 | "pages/book/setting/sms", | 23 | "pages/book/setting/sms", |
| 24 | "pages/book/setting/sms_buy", | 24 | "pages/book/setting/sms_buy", |
| 25 | "pages/book/crm/index", | 25 | "pages/book/crm/index", |
| 26 | - "pages/book/remark/index", | 26 | + "pages/book/remark/index", |
| 27 | "pages/book/smsbatch/index", | 27 | "pages/book/smsbatch/index", |
| 28 | "pages/book/smsbatch/update", | 28 | "pages/book/smsbatch/update", |
| 29 | "pages/book/smsbatch/detail", | 29 | "pages/book/smsbatch/detail", |
| 30 | "pages/book/smsbatch/list", | 30 | "pages/book/smsbatch/list", |
| 31 | - "pages/book/smsbatch/result" | 31 | + "pages/book/smsbatch/result", |
| 32 | + "pages/tucao/index" | ||
| 32 | ], | 33 | ], |
| 33 | "subpackages": [ | 34 | "subpackages": [ |
| 34 | { | 35 | { |
| @@ -85,6 +86,10 @@ | @@ -85,6 +86,10 @@ | ||
| 85 | "bmCalendar": { | 86 | "bmCalendar": { |
| 86 | "version": "1.2.1", | 87 | "version": "1.2.1", |
| 87 | "provider": "wx23a9cef3522e4f7c" | 88 | "provider": "wx23a9cef3522e4f7c" |
| 89 | + }, | ||
| 90 | + "tucao": { | ||
| 91 | + "version": "1.1.4", | ||
| 92 | + "provider": "wx8abaf00ee8c3202e" | ||
| 88 | } | 93 | } |
| 89 | }, | 94 | }, |
| 90 | "permission": { | 95 | "permission": { |
pages/tucao/index.js
0 → 100644
| 1 | +// pages/tucao/index.js | ||
| 2 | +import util from '../../utils/util' | ||
| 3 | +const Tucao = requirePlugin('tucao').default; | ||
| 4 | +const productId = 55214; | ||
| 5 | +Page({ | ||
| 6 | + | ||
| 7 | + /** | ||
| 8 | + * 页面的初始数据 | ||
| 9 | + */ | ||
| 10 | + data: {}, | ||
| 11 | + options:{}, | ||
| 12 | + /** | ||
| 13 | + * 生命周期函数--监听页面加载 | ||
| 14 | + */ | ||
| 15 | + onLoad: function (options) { | ||
| 16 | + this.options=options | ||
| 17 | + }, | ||
| 18 | + | ||
| 19 | + /** | ||
| 20 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 21 | + */ | ||
| 22 | + onReady: function () { | ||
| 23 | + | ||
| 24 | + }, | ||
| 25 | + | ||
| 26 | + /** | ||
| 27 | + * 生命周期函数--监听页面显示 | ||
| 28 | + */ | ||
| 29 | + onShow: function () { | ||
| 30 | + let options=this.options | ||
| 31 | + if (options.id > 0) { | ||
| 32 | + let params={ | ||
| 33 | + productId:productId, | ||
| 34 | + scene:1099, | ||
| 35 | + postId:options.id, | ||
| 36 | + //entry:'post-detail', | ||
| 37 | + | ||
| 38 | + } | ||
| 39 | + let url=util.http_build_query(params,'plugin://tucao/post-detail') | ||
| 40 | + console.log(url); | ||
| 41 | + | ||
| 42 | + //Tucao.init(this, {navigateTo:function(_p){wx.navigateTo(_p)}}) | ||
| 43 | + Tucao.set(params) | ||
| 44 | + let turl=Tucao.getUrl(); | ||
| 45 | + console.log(turl); | ||
| 46 | + //Tucao.go(); | ||
| 47 | + wx.redirectTo({ | ||
| 48 | + url: turl | ||
| 49 | + }) | ||
| 50 | + } | ||
| 51 | + }, | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 生命周期函数--监听页面隐藏 | ||
| 55 | + */ | ||
| 56 | + onHide: function () { | ||
| 57 | + | ||
| 58 | + }, | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 生命周期函数--监听页面卸载 | ||
| 62 | + */ | ||
| 63 | + onUnload: function () { | ||
| 64 | + | ||
| 65 | + }, | ||
| 66 | + | ||
| 67 | + /** | ||
| 68 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 69 | + */ | ||
| 70 | + onPullDownRefresh: function () { | ||
| 71 | + | ||
| 72 | + }, | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * 页面上拉触底事件的处理函数 | ||
| 76 | + */ | ||
| 77 | + onReachBottom: function () { | ||
| 78 | + | ||
| 79 | + }, | ||
| 80 | + | ||
| 81 | + /** | ||
| 82 | + * 用户点击右上角分享 | ||
| 83 | + */ | ||
| 84 | + onShareAppMessage: function () { | ||
| 85 | + | ||
| 86 | + } | ||
| 87 | +}) |
pages/tucao/index.json
0 → 100644
pages/tucao/index.wxml
0 → 100644
pages/tucao/index.wxss
0 → 100644
| 1 | +/* pages/tucao/index.wxss */ |
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | "list": [] | 31 | "list": [] |
| 32 | }, | 32 | }, |
| 33 | "miniprogram": { | 33 | "miniprogram": { |
| 34 | - "current": 17, | 34 | + "current": 38, |
| 35 | "list": [ | 35 | "list": [ |
| 36 | { | 36 | { |
| 37 | "id": 0, | 37 | "id": 0, |
| @@ -321,6 +321,13 @@ | @@ -321,6 +321,13 @@ | ||
| 321 | "shareName": "8DEbIRpK4pa9mH_QY2vU4ZUKYPuI97WoQ4BQoFej-Q8@cr4dev", | 321 | "shareName": "8DEbIRpK4pa9mH_QY2vU4ZUKYPuI97WoQ4BQoFej-Q8@cr4dev", |
| 322 | "shareKey": "PZhnqMlY2TnRuHhATyGeSamVmBQUDXXr_WtjRSddeeFK17UAiOP-HNOdhxiEN7PFub5S1DjAeUl0IXOdW-VDqg~~" | 322 | "shareKey": "PZhnqMlY2TnRuHhATyGeSamVmBQUDXXr_WtjRSddeeFK17UAiOP-HNOdhxiEN7PFub5S1DjAeUl0IXOdW-VDqg~~" |
| 323 | } | 323 | } |
| 324 | + }, | ||
| 325 | + { | ||
| 326 | + "id": -1, | ||
| 327 | + "name": "pages/tucao/index 吐槽", | ||
| 328 | + "pathName": "pages/tucao/index", | ||
| 329 | + "query": "", | ||
| 330 | + "scene": null | ||
| 324 | } | 331 | } |
| 325 | ] | 332 | ] |
| 326 | } | 333 | } |
-
Please register or login to post a comment