mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
abf54b5a9a
commit
8863129d0e
@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
// 高度,单位upx,默认180upx
|
// 高度,单位upx,默认180upx
|
||||||
height: {
|
height: {
|
||||||
default: 160
|
default: 140
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@ -25,7 +25,7 @@ import {getCurCommunity,recoveryCommunityInfo} from '../api/community/communityA
|
|||||||
// 页面初始化相关
|
// 页面初始化相关
|
||||||
import {onLoad,getWAppId} from '../api/init/initApi.js'
|
import {onLoad,getWAppId} from '../api/init/initApi.js'
|
||||||
|
|
||||||
import {navigateTo,navigateBack} from './vcRoute.js'
|
import {navigateTo,navigateBack,navigateToMall} from './vcRoute.js'
|
||||||
|
|
||||||
import {isEmpty} from '../utils/StringUtil.js'
|
import {isEmpty} from '../utils/StringUtil.js'
|
||||||
|
|
||||||
|
|||||||
@ -105,6 +105,19 @@ export function navigateTo(_param, callback = () => {}) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 跳转功能封装
|
||||||
|
* @param {Object} _param 跳转入参
|
||||||
|
*/
|
||||||
|
export function navigateToMall(_param) {
|
||||||
|
//参数中刷入wAppId
|
||||||
|
let _url = _param.url;
|
||||||
|
uni.setStorageSync(mapping.HC_MALL_CUR_URL,_url)
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/hcWebView/hcWebView?wAppId=' + getWAppId()
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 返回上层页面
|
* 返回上层页面
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -93,9 +93,9 @@
|
|||||||
selectType(index) {
|
selectType(index) {
|
||||||
let shopTypeId = this.navList[index].shopTypeId;
|
let shopTypeId = this.navList[index].shopTypeId;
|
||||||
this.shopTypeId = shopTypeId;
|
this.shopTypeId = shopTypeId;
|
||||||
this.vc.navigateTo({
|
this.vc.navigateToMall({
|
||||||
url: '/pages/market/market?typeId=' + shopTypeId
|
url: '/pages/market/market?typeId=' + shopTypeId
|
||||||
}, true)
|
})
|
||||||
},
|
},
|
||||||
_getCategoryList() {
|
_getCategoryList() {
|
||||||
let _that = this
|
let _that = this
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user