Authored by bevishuang

优化UI

.container {
width: 750rpx;
height: 480rpx;
height: 540rpx;
display: flex;
flex-direction: column;
align-items: center;
... ...
... ... @@ -19,11 +19,9 @@ Page({
key: 'social',
success: function (res) {
if (res.data.length > 0) {
// debugger
// console.log(that.data.url)
that.setData({ url: 'http://yoho-community-web.test3.ingress.dev.yohocorp.com/grass/topic/2624?headerid=-1&toplayoutByH5=Y' });
// that.setData({ url : res.data});
// console.log(url)
// that.setData({ url: 'http://yoho-community-web.test3.ingress.dev.yohocorp.com/grass/topic/2624?headerid=-1&toplayoutByH5=Y' });
that.setData({ url:res.data});
}
}
})
... ...
page {
width: 100%;
height: 100%;
/* background-color: #ddf; */
}
.mars-image {
width: 100%;
... ...
... ... @@ -232,13 +232,14 @@ Page({
url = decodeURIComponent(webveiwUrl) + '&uid=' + param.uid;
let response = sign_body(param, decodeURIComponent(webveiwUrl));
console.log('response:', response);
let url = response.url;
let responseUrl = response.url;
if (response.signString) {
url = url + "&client_secret=" + response.signString
url = responseUrl + "&client_secret=" + response.signString
}
}
let newUrl = webveiwUrl.replace("m.yohobuy.com","yoho-community-web.test3.ingress.dev.yohocorp.com");
let newUrl = url.replace("http://", "https://");
// let newUrl = webveiwUrl.replace("m.yohobuy.com","yoho-community-web.test3.ingress.dev.yohocorp.com");
console.log("webview-url:", newUrl)
if (!newUrl){
return
... ...