Browse Source

Merge branch 'master' into dev_master

master
jiazhipeng 9 months ago
parent
commit
4f2ef2cf2d
  1. 2
      app.js
  2. 28
      pages/index/index.js

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest101? true : false;
data.isTest = data.isTest102? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {

28
pages/index/index.js

@ -462,8 +462,6 @@ Page({
})
this.getUrlToPage()
},
showImg (img) {
@ -797,7 +795,6 @@ Page({
this.newPagePoint(item.pagePoint)
}
if (item.jump_type == "page") {
if (item.page.mini) {
wx.navigateTo({
@ -808,15 +805,24 @@ Page({
if (item.page.tdata) {
//sph 视频号
if (item.page.tdata.appid&&item.page.tdata.appid.indexOf("sph")>=0) {
wx.openChannelsActivity({
// if (item.page.tdata.page) {
// wx.openChannelsActivity({
// finderUserName: item.page.tdata.appid, // 视频号的原始ID
// feedId: item.page.tdata.page, // 视频号的视频ID
// success(res) {
// console.log('拉起视频号成功', res);
// },
// fail(res) {
// console.log('拉起视频号失败', res);
// }
// })
// } else {
// wx.openChannelsUserProfile({
// finderUserName: item.page.tdata.appid, // 视频号的原始ID
// })
// }
wx.openChannelsUserProfile({
finderUserName: item.page.tdata.appid, // 视频号的原始ID
feedId: item.page.tdata.page, // 视频号的视频ID
success(res) {
console.log('拉起视频号成功', res);
},
fail(res) {
console.log('拉起视频号失败', res);
}
})
return
}

Loading…
Cancel
Save