diff --git a/homepage.html b/homepage.html index 9a42692..7d6031d 100644 --- a/homepage.html +++ b/homepage.html @@ -373,7 +373,8 @@ self.swiperDataList = res.data; sessionStorage.setItem('goodsCount', res.data.length); self.goodsShow = res.data.length > 1; - if (res.data && res.data.length == 1) {//单个商品直接进入详情页面 + let ua = window.navigator.userAgent.toLowerCase();/* 判断是否web-view打开 */ + if ((res.data && res.data.length == 1) || /miniProgram/i.test(ua)) {//单个商品直接进入详情页面 sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0])); this.toPage(res.data[0]); return false; diff --git a/ysf.html b/ysf.html index c0d322e..5c92baf 100644 --- a/ysf.html +++ b/ysf.html @@ -17,7 +17,7 @@