13 lines
266 B
JavaScript
13 lines
266 B
JavaScript
|
|
|
||
|
|
Page({
|
||
|
|
data: {
|
||
|
|
url: '',
|
||
|
|
},
|
||
|
|
onLoad(options) {
|
||
|
|
let { url } = options;
|
||
|
|
console.log('url',url);
|
||
|
|
const user_id = wx.getStorageSync('user_id');
|
||
|
|
url = url.replace('${user_id}', user_id);
|
||
|
|
this.setData({ url: decodeURIComponent(url) });
|
||
|
|
},
|
||
|
|
})
|