更换版本
This commit is contained in:
51
pages/website/website.js
Normal file
51
pages/website/website.js
Normal file
@@ -0,0 +1,51 @@
|
||||
var e;
|
||||
(e = getApp()),
|
||||
Page({
|
||||
data: { data: "" },
|
||||
onLoad: function (e) {
|
||||
for (var t = e.url, a = 0; a < t.length; a++)
|
||||
"#" == t[a] && (t = t.replace("#", "="));
|
||||
for (a = 0; a < t.length; a++) "@" == t[a] && (t = t.replace("@", "&"));
|
||||
(t = t.replace("$", "?")), this.setData({ url: t, urldata: e.url });
|
||||
},
|
||||
onShareAppMessage: function () {
|
||||
return {
|
||||
title: "",
|
||||
desc: "",
|
||||
imageUrl: " ",
|
||||
path: "pages/website/website?url=" + this.data.urldata,
|
||||
};
|
||||
},
|
||||
onShareTimeline: function (e) {
|
||||
return {
|
||||
title: "",
|
||||
desc: "",
|
||||
imageUrl: " ",
|
||||
path: "pages/website/website?url=" + this.data.urldata,
|
||||
};
|
||||
},
|
||||
onShow: function (e) {
|
||||
this.getvip();
|
||||
},
|
||||
getvip: function (t) {
|
||||
console.log(wx.getStorageSync("uid")),
|
||||
wx.getStorageSync("uid")
|
||||
? (console.log(wx.getStorageSync("uid")),
|
||||
this.setData({
|
||||
footerLink:
|
||||
this.data.url +
|
||||
"&uid=" +
|
||||
wx.getStorageSync("uid") +
|
||||
"&phone=" +
|
||||
e.getSystemPlatform(),
|
||||
}))
|
||||
: wx.showModal({
|
||||
title: "温馨提醒",
|
||||
content: "使用本功能请先登录后在使用~",
|
||||
showCancel: !1,
|
||||
success: function (e) {
|
||||
e.confirm && wx.reLaunch({ url: "/pages/mine/index" });
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
1
pages/website/website.json
Normal file
1
pages/website/website.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "navigationBarTitleText": "浏览器", "usingComponents": {} }
|
5
pages/website/website.wxml
Normal file
5
pages/website/website.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="page-body">
|
||||
<view class="page-section page-section-gap">
|
||||
<web-view src="{{footerLink}}"></web-view>
|
||||
</view>
|
||||
</view>
|
4
pages/website/website.wxss
Normal file
4
pages/website/website.wxss
Normal file
@@ -0,0 +1,4 @@
|
||||
.page-section-gap {
|
||||
box-sizing: border-box;
|
||||
padding: 0 30rpx;
|
||||
}
|
Reference in New Issue
Block a user