|
@@ -12,9 +12,11 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
-
|
|
|
+ let url = decodeURIComponent(options.url);
|
|
|
+ var reg = /[\u4E00-\u9FA5]/g;
|
|
|
+ var result = url.replace(reg, '');
|
|
|
this.setData({
|
|
|
- webViewUrl: options.url
|
|
|
+ webViewUrl: result
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -22,14 +24,14 @@ Page({
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|
|
|
onReady: function () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
onShow: function () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|