Commit b760ef0a0c76200f82ded04ec7e86c4335e63e46
1 parent
6ab91e46
测肤首页js
Showing
1 changed file
with
84 additions
and
0 deletions
packageB/pages/AI-test-skin/index/aiskin.js
0 → 100644
| 1 | +/* | ||
| 2 | + * @Author: your name | ||
| 3 | + * @Date: 2022-02-11 14:13:05 | ||
| 4 | + * @LastEditTime: 2022-02-16 14:18:30 | ||
| 5 | + * @LastEditors: Please set LastEditors | ||
| 6 | + * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||
| 7 | + * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\index\aiskin.js | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +const app = getApp(); | ||
| 11 | +const request = app.request; | ||
| 12 | +const os = app.globalData; | ||
| 13 | +const setting = os.setting; | ||
| 14 | +const ut = require('../../../../utils/util'); | ||
| 15 | +Page({ | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 页面的初始数据 | ||
| 19 | + */ | ||
| 20 | + data: { | ||
| 21 | + iurl: setting.imghost, | ||
| 22 | + }, | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * 生命周期函数--监听页面加载 | ||
| 26 | + */ | ||
| 27 | + onLoad: function (options) { | ||
| 28 | + | ||
| 29 | + }, | ||
| 30 | + | ||
| 31 | + /** | ||
| 32 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 33 | + */ | ||
| 34 | + onReady: function () { | ||
| 35 | + | ||
| 36 | + }, | ||
| 37 | + | ||
| 38 | + /** | ||
| 39 | + * 生命周期函数--监听页面显示 | ||
| 40 | + */ | ||
| 41 | + onShow: function () { | ||
| 42 | + | ||
| 43 | + }, | ||
| 44 | + | ||
| 45 | + /** | ||
| 46 | + * 生命周期函数--监听页面隐藏 | ||
| 47 | + */ | ||
| 48 | + onHide: function () { | ||
| 49 | + | ||
| 50 | + }, | ||
| 51 | + | ||
| 52 | + goto(e) { | ||
| 53 | + let url = e.currentTarget.dataset.url; | ||
| 54 | + app.goto(url); | ||
| 55 | + }, | ||
| 56 | + | ||
| 57 | + /** | ||
| 58 | + * 生命周期函数--监听页面卸载 | ||
| 59 | + */ | ||
| 60 | + onUnload: function () { | ||
| 61 | + | ||
| 62 | + }, | ||
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 66 | + */ | ||
| 67 | + onPullDownRefresh: function () { | ||
| 68 | + | ||
| 69 | + }, | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * 页面上拉触底事件的处理函数 | ||
| 73 | + */ | ||
| 74 | + onReachBottom: function () { | ||
| 75 | + | ||
| 76 | + }, | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * 用户点击右上角分享 | ||
| 80 | + */ | ||
| 81 | + onShareAppMessage: function () { | ||
| 82 | + | ||
| 83 | + } | ||
| 84 | +}) | ||
| 0 | \ No newline at end of file | 85 | \ No newline at end of file |