Browse Source

首页印象苏州

master
jiazhipeng 9 months ago
parent
commit
ce65574d09
  1. 24
      pages/index/index.js
  2. 2
      utils/https.js

24
pages/index/index.js

@ -519,7 +519,8 @@ Page({
func_data: (app.globalData.configJson.func_data||{})
})
} else {
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
// 小程序是3
commonApi._post("adv/get_home_ui", {type_id: 2}).then(res => {
let obj = {};
(res.data.content||[]).forEach(item => {
obj[item.id] = item.image
@ -792,7 +793,11 @@ Page({
mainNavClick:function (e) {
let item = e.currentTarget.dataset.item
console.log(item)
if (item.pagePoint) { this.newPagePoint(item.pagePoint) }
if (item.pagePoint) {
this.newPagePoint(item.pagePoint)
}
if (item.jump_type == "page") {
if (item.page.mini) {
wx.navigateTo({
@ -801,6 +806,21 @@ Page({
return
}
if (item.page.tdata) {
//sph 视频号
if (item.page.tdata.appid&&item.page.tdata.appid.indexOf("sph")>=0) {
wx.openChannelsActivity({
finderUserName: item.page.tdata.appid, // 视频号的原始ID
feedId: item.page.tdata.page, // 视频号的视频ID
success(res) {
console.log('拉起视频号成功', res);
},
fail(res) {
console.log('拉起视频号失败', res);
}
})
return
}
if (item.page.tdata.ghid == "gh_b55e177a4069" || item.page.tdata.appid == 'wx4bb7b6050831f585') {
wx.navigateTo({
url: "/"+item.page.tdata.page,

2
utils/https.js

@ -150,7 +150,6 @@ function user_post(url, data = {}, type) {
}
}
function user_post_new(url, data = {}, type) {
console.log(type)
var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid");
//为了用户体验,加一个loading效果
wx.showLoading({ title: '加载中', mask: true });
@ -192,7 +191,6 @@ function user_post_new(url, data = {}, type) {
header: header,
success: (res) => {
wx.hideLoading();
console.log(url, url.indexOf('team_order/apply_post') != -1)
if (url.indexOf('user/getJumpThirdAppCode') != -1) {
}

Loading…
Cancel
Save