|
@@ -2,11 +2,11 @@
|
|
|
<view class="content" >
|
|
<view class="content" >
|
|
|
<view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;"'>
|
|
<view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;"'>
|
|
|
|
|
|
|
|
-<!-- <view @click='goBack()' style="font-size: 17px;-->
|
|
|
|
|
-<!-- padding-top: 7px;-->
|
|
|
|
|
-<!-- position: absolute;">-->
|
|
|
|
|
-<!-- 返回-->
|
|
|
|
|
-<!-- </view>-->
|
|
|
|
|
|
|
+ <view v-if="isH5" @click='goBack()' style="font-size: 17px;
|
|
|
|
|
+ padding-top: 7px;
|
|
|
|
|
+ position: absolute;">
|
|
|
|
|
+ 返回
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<view class="status_info">
|
|
<view class="status_info">
|
|
|
<view class="status_detail">
|
|
<view class="status_detail">
|
|
@@ -1133,6 +1133,7 @@ export default {
|
|
|
baowenTemp:100,
|
|
baowenTemp:100,
|
|
|
hasBaowen:false,
|
|
hasBaowen:false,
|
|
|
baowenId:0,
|
|
baowenId:0,
|
|
|
|
|
+ isH5:false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad: function(opt) {
|
|
onLoad: function(opt) {
|
|
@@ -1142,6 +1143,7 @@ export default {
|
|
|
this.getDetail();
|
|
this.getDetail();
|
|
|
this.imgUrl = config.imgUrl
|
|
this.imgUrl = config.imgUrl
|
|
|
this.fixStyle();
|
|
this.fixStyle();
|
|
|
|
|
+ this.setSystemInfo();
|
|
|
// this.fixImage();
|
|
// this.fixImage();
|
|
|
// console.log = function(){}
|
|
// console.log = function(){}
|
|
|
},
|
|
},
|
|
@@ -1163,6 +1165,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ setSystemInfo(){
|
|
|
|
|
+ const systemInfo = uni.getSystemInfoSync();
|
|
|
|
|
+ let uniPlatform = systemInfo.uniPlatform;
|
|
|
|
|
+ if(uniPlatform == 'web' || uniPlatform == 'h5'){
|
|
|
|
|
+ this.isH5 = true;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isH5 = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
goBack(){
|
|
goBack(){
|
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
|
},
|
|
},
|