12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import httpRequestApi from '../../../utils/APIClient';
- Page({
-
- data: {
- fullScreenBtn: false,
- playBtn: false,
- gesture: true,
- fanList:[]
- },
- toUserDetails: function(e){
- let fanId = e.currentTarget.dataset.fanId;
- wx.navigateTo({
- url: `../../social/works/works?fanId=${fanId}`
- });
- },
-
- onLoad: function (option) {
- console.log(option.title);
- if (option.title) {
- wx.setNavigationBarTitle({
- title: option.title
- });
- this.setData({
- title: option.title
- });
- }
- httpRequestApi.myFans().success(res => {
- this.setData({
- fanList: res.data.data.list
- },() => {
- console.log(this.data.fanList);
- });
- });
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|