This commit is contained in:
lym
2026-03-18 17:27:43 +08:00
parent 4a5d7353ed
commit c076cf32b0
34 changed files with 480 additions and 264 deletions

View File

@@ -1,4 +1,4 @@
var WxParse = null;
var WxParse = null;
//获取应用实例
var app = getApp()
var sopenFrame = null
@@ -200,7 +200,7 @@ Page({
})
}
that.getIconList();
that.getIconList();
that.rdata(0);
sopenFrame = setInterval(function () {
if (app.globalData.IFRefreshindex == 1) {
@@ -826,7 +826,7 @@ Page({
gotodetail: function (e) {
var id = e.currentTarget.dataset.id
wx.navigateTo({
url: "../details/index?id=" + id
url: "../details/index?id=" + id + "&fromHot=1"
})
},
gotoPointDetail: function (e) {
@@ -1149,31 +1149,35 @@ Page({
var userId = wx.getStorageSync("userId")
var LoginId = wx.getStorageSync("LoginId")
var userInfodata = wx.getStorageSync("userInfo")
if (userId && LoginId && userInfodata) {
wx.request({
url: app.globalData.apiurl + "/api/api.ashx?action=index_about_id",
data: {},
method: "POST",
dataType: "json",
header: {
"content-type": "application/x-www-form-urlencoded"
},
success(res) {
if (res.data.status == 1) {
wx.navigateTo({
url: "../articledetail/index?id="+res.data.about_id
})
}
else
{
wx.showToast({
title: res.data.msg,
icon: "none",
duration: 3000
})
}
}
})
wx.navigateTo({
url: "../articledetail/index?ParentID=7"
})
// wx.request({
// url: app.globalData.apiurl + "/api/api.ashx?action=index_about_id",
// data: {},
// method: "POST",
// dataType: "json",
// header: {
// "content-type": "application/x-www-form-urlencoded"
// },
// success(res) {
// if (res.data.status == 1) {
// wx.navigateTo({
// url: "../articledetail/index?id="+res.data.about_id
// })
// }
// else
// {
// wx.showToast({
// title: res.data.msg,
// icon: "none",
// duration: 3000
// })
// }
// }
// })
}
else {