|
@@ -20,6 +20,9 @@ import {
|
|
|
// import '../../utils/hls';
|
|
|
import httpRequestApi from '../../utils/APIClient';
|
|
|
import httputil from '../../utils/httpUtil';
|
|
|
+import {
|
|
|
+ GetQueryString
|
|
|
+} from '../../utils/util';
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
@@ -78,7 +81,7 @@ Page({
|
|
|
templates
|
|
|
});
|
|
|
if (myIndex == 0) {
|
|
|
-
|
|
|
+
|
|
|
groupInit(this);
|
|
|
}
|
|
|
if (myIndex == 1) {
|
|
@@ -105,9 +108,18 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
- console.log(options)
|
|
|
- this.uid = wx.getStorageSync('uid');
|
|
|
|
|
|
+ this.uid = wx.getStorageSync('uid');
|
|
|
+ // const type = GetQueryString(decodeURIComponent(options.scene),"type");
|
|
|
+ // const sceneId = GetQueryString( decodeURIComponent(options.scene),"id");
|
|
|
+ // console.log(type,sceneId)
|
|
|
+ // switch(type){
|
|
|
+ // case "works":
|
|
|
+ // wx.navigateTo({
|
|
|
+ // url: `../social/works/works?id=${sceneId}&title="测试"`
|
|
|
+ // })
|
|
|
+ // break
|
|
|
+ // };
|
|
|
wx.getSystemInfo({
|
|
|
success: (res) => {
|
|
|
this.setData({
|
|
@@ -161,7 +173,7 @@ Page({
|
|
|
},
|
|
|
// 触底加载
|
|
|
onReachBottom: function () {
|
|
|
-
|
|
|
+
|
|
|
// 当前在推荐页面 加载推荐
|
|
|
if (this.data.myIndex === 1) {
|
|
|
console.log(this.data.recommendPageNo)
|
|
@@ -196,6 +208,6 @@ Page({
|
|
|
wx.startPullDownRefresh();
|
|
|
setTimeout(() => {
|
|
|
wx.stopPullDownRefresh()
|
|
|
- },10)
|
|
|
+ }, 10)
|
|
|
}
|
|
|
})
|