Commit adf90a36 authored by zhengke's avatar zhengke

修改页面

parent 94635118
...@@ -28,8 +28,7 @@ export default { ...@@ -28,8 +28,7 @@ export default {
backgroundImage: x.backgroundImage, backgroundImage: x.backgroundImage,
backgroundRepeat: x.backgroundRepeat, backgroundRepeat: x.backgroundRepeat,
backgroundSize: x.backgroundSize, backgroundSize: x.backgroundSize,
backgroundPosition: x.backgroundPosition, backgroundPosition: x.backgroundPosition
border:'1px solid red'
}; };
if (this.ad.height == "auto") { if (this.ad.height == "auto") {
x.formatStyle.position = "unset"; x.formatStyle.position = "unset";
......
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
mainColor: "", mainColor: "",
active: 0, active: 0,
contentHeight: 0, contentHeight: 0,
pageId:0
}; };
}, },
components: { components: {
...@@ -120,7 +121,11 @@ export default { ...@@ -120,7 +121,11 @@ export default {
addialog, addialog,
quicknav quicknav
}, },
onLoad() { onLoad(options) {
console.log(options,'option');
if(options&&options.page_id){
this.pageId=options.page_id
}
let c = this.$uiConfig.is_bang ? 78 : 50; let c = this.$uiConfig.is_bang ? 78 : 50;
this.contentHeight = this.$utils.calcContentHeight(c); this.contentHeight = this.$utils.calcContentHeight(c);
this.init(); this.init();
...@@ -138,6 +143,7 @@ export default { ...@@ -138,6 +143,7 @@ export default {
{ {
url: '/api/Mall/GetHome', url: '/api/Mall/GetHome',
data: { data: {
page_id:this.pageId
}, },
}, },
(res) => { (res) => {
......
export default { export default {
install(Vue, options) { install(Vue, options) {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285" //Vue.prototype.host2 = "http://192.168.0.110:8200"
Vue.prototype.host2 = "https://mallApi.oytour.com" Vue.prototype.host2 = "https://mallApi.oytour.com"
//Vue.prototype.host2 = "https://mallApi.oytour.com"
//Vue.prototype.host2 = "http://mallapi.oytour.com"
Vue.prototype.request = function(param, success, failed) {
//网络请求
uni.request({
url: this.host + "&r=" + param.data.r,
method: param.method || "GET",
header: param.header || {
'content-type': "application/json"
},
data: param.data,
success: res => {
if (res.data.code != 0 && res.data.msg != "商品未上架") {
}
typeof success == "function" && success(res.data);
},
fail: (e) => {
console.log("网络请求fail:" + JSON.stringify(e));
uni.showModal({
content: "" + res.errMsg
});
typeof failed == "function" && failed(res.data);
}
});
}
Vue.prototype.request2 = function(param, success, failed) { Vue.prototype.request2 = function(param, success, failed) {
//网络请求 //网络请求
uni.request({ uni.request({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment