123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- import httpRequestApi from '../../../utils/APIClient';
- Page({
- data: {
- fullScreenBtn: false,
- playBtn: false,
- gesture: true,
- user: [{
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- },
- {
- nickName: '萝莉小猫咪',
- image: '../../../static/image/timg.jpg',
- }
- ],
- text: '总有一天我将实质性操作死去而你我的\xa0\xa0\xa0\xa0\xa0\xa0\xa0儿子自行车在啊实打实大苏打撒旦将加冕为王'
- },
- onLoad: function (option) {
- if (option.title) {
- wx.setNavigationBarTitle({
- title: option.title //页面标题为路由参数
- })
- this.setData({
- title: option.title,
- id: option.id
- })
- }
- let uid = 1;
- httpRequestApi.getWorksDetail(uid,option.uid).success((res)=>{
- console.log(res);
- });
- },
- goToReading: function () {
- let id = this.data.id;
- let title = this.data.title;
- wx.navigateTo({
- url: `../../main/reading/reading?id=${id}&title=${title}`
- })
- },
- onShareAppMessage: function (res) {
- if (res.from === 'button') {
- // 来自页面内转发按钮
- console.log(res.target)
- }
- return {
- title: '测试',
- path: '/pages/social/works/works'
- }
- },
- follow: function(){
- let uid = 1;
- let followUid = 2;
- httpRequestApi.followUser(uid,followUid).success((res)=>{
- console.log(res)
- });
- },
- // 去其他用户的作品页
- goToOthers: function (e){
- wx.navigateTo({
- url: `../../main/reading/reading?id=${id}&title=${title}`
- })
- }
- })
|