42 lines
714 B
JavaScript
42 lines
714 B
JavaScript
// packageH/signPage/signPage.js
|
|
const app = getApp();
|
|
Page({
|
|
|
|
data: {
|
|
url: '',
|
|
},
|
|
|
|
onLoad: function (options) {
|
|
// `https://dev1.yunzmall.com/addons/yun_shop/?menu#/${'signPage/99'}?i=2`
|
|
let url = "";
|
|
|
|
if(options.url) {
|
|
// 认证页面跳转
|
|
url = options.url;
|
|
}else if(options.id){
|
|
url = app.globalData.host + `/addons/yun_shop/?menu#/signPage/${options.id}?i=` + app.globalData.uniacid;
|
|
}else {
|
|
wx.navigateBack({
|
|
delta: 1,
|
|
});
|
|
}
|
|
|
|
this.setData({
|
|
url: url
|
|
});
|
|
console.log(this.data.url);
|
|
},
|
|
|
|
|
|
onHide: function () {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面卸载
|
|
*/
|
|
onUnload: function () {
|
|
|
|
},
|
|
|
|
}); |