ui修改
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user