Commit ae5bd04b authored by wangxuelai's avatar wangxuelai

'完结'

parent c2939f2e
...@@ -88,7 +88,6 @@ Page({ ...@@ -88,7 +88,6 @@ Page({
} catch (error) { } catch (error) {
content = []; content = [];
} }
console.log(content, 'content');
data.content = content; data.content = content;
this.setData({ this.setData({
detail: data, detail: data,
......
...@@ -182,11 +182,17 @@ Page({ ...@@ -182,11 +182,17 @@ Page({
goLink (e) { goLink (e) {
const { ad } = e.currentTarget.dataset; // 1-小程序 2-公众号文章 3-自定义连接 4-无 const { ad } = e.currentTarget.dataset; // 1-小程序 2-公众号文章 3-自定义连接 4-无
if (ad.redirect_type == 1) { if (ad.redirect_type == 1) {
console.log(ad.redirect_type, 'adsads'); wx.navigateTo({
url: ad.redirect_url,
})
} else if (ad.redirect_type == 2) { } else if (ad.redirect_type == 2) {
console.log(ad.redirect_type, 'adsads'); wx.navigateTo({
url: `/business/pages/helpcenter/webview?src=${ad.redirect_url}`,
})
} else if (ad.redirect_type == 3) { } else if (ad.redirect_type == 3) {
console.log(ad.redirect_type, 'adsads'); wx.navigateTo({
url: `/business/pages/helpcenter/webview?src=${ad.redirect_url}`,
})
} else if (ad.redirect_type == 4) { } else if (ad.redirect_type == 4) {
console.log(ad.redirect_type, 'adsads'); console.log(ad.redirect_type, 'adsads');
} }
......
import { helpList, helpAds } from "../../../service/common.js";
import { imagify } from "../../../utilities/index.js";
var app = getApp();
Page({
data: {
},
onLoad: function(options) {
const { src } = options;
this.setData({
src,
})
},
});
{
"navigationBarTitleText": ""
}
\ No newline at end of file
<web-view src="{{src}}"></web-view>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment