界面更新
This commit is contained in:
parent
48a3aab41b
commit
573fc2fda0
@ -221,13 +221,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onTabItemTap(e) {
|
onTabItemTap(e) {
|
||||||
|
|
||||||
uni.pageScrollTo({
|
uni.pageScrollTo({
|
||||||
selector: ".Circle_friends",
|
selector: ".Circle_friends",
|
||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
|
|
||||||
|
@ -435,7 +435,6 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.cartFn()
|
this.cartFn()
|
||||||
},
|
},
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.flag || !this.goodsList.length) return
|
if (this.flag || !this.goodsList.length) return
|
||||||
|
@ -117,19 +117,34 @@ const actions = {
|
|||||||
} else {
|
} else {
|
||||||
apptype = 1
|
apptype = 1
|
||||||
}
|
}
|
||||||
console.log(os)
|
|
||||||
Appversion({
|
Appversion({
|
||||||
version: os.appWgtVersion,
|
version: os.appWgtVersion,
|
||||||
type: apptype
|
type: apptype,
|
||||||
|
phone_brand: os.brand
|
||||||
|
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
if (Object.keys(res.data.appInfo).length > 0) {
|
if (Object.keys(res.data.appInfo).length > 0) {
|
||||||
|
|
||||||
|
|
||||||
// if(res.data.appInfo.version) uni.showLoading({
|
// if(res.data.appInfo.version) uni.showLoading({
|
||||||
// title: '检查更新中'
|
// title: '检查更新中'
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
if (res.data.appInfo.phone_brand.length > 0) {
|
||||||
|
if (plus.os.name == "Android") {
|
||||||
|
// 跳转安卓应用市场
|
||||||
|
let appurl = res.data.appInfo.
|
||||||
|
.dow_url //这个是通用应用市场,如果想指定某个应用商店,需要单独查这个应用商店的包名或scheme及参数
|
||||||
|
plus.runtime.openURL(appurl)
|
||||||
|
} else {
|
||||||
|
// 跳转AppStore
|
||||||
|
plus.runtime.launchApplication({
|
||||||
|
action: res.data.appInfo..dow_url,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
// 版本更新
|
// 版本更新
|
||||||
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
||||||
compareVersions(res.data.appInfo.version,
|
compareVersions(res.data.appInfo.version,
|
||||||
@ -150,6 +165,7 @@ console.log(os)
|
|||||||
}
|
}
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user