mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:13:26 +08:00
【新增】后台页面设计【导航组件】增加跳转到其他小程序的下拉设置。
This commit is contained in:
@@ -305,6 +305,19 @@ module.exports = {
|
||||
} else if (type == navLinkType.shopCategory) {
|
||||
//商品分类
|
||||
this.$u.route('/pages/category/list/list', { id: val });
|
||||
} else if (type == navLinkType.wxMiNiProgram) {
|
||||
//跳转微信小程序
|
||||
console.log("跳转微信小程序");
|
||||
uni.navigateToMiniProgram({
|
||||
appId: val,
|
||||
path: '',
|
||||
extraData: {},
|
||||
success(res) {
|
||||
console.log("跳转小程序成功", res);
|
||||
}, fail(res) {
|
||||
console.log("跳转小程序失败", res);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$u.route(val);
|
||||
}
|
||||
|
||||
@@ -132,6 +132,7 @@ export const navLinkType = {
|
||||
article: 3,// "文章"
|
||||
articleCategory: 4,// "文章分类",
|
||||
intelligentForms: 5,// "智能表单"
|
||||
shopCategory: 6// "商品分类"
|
||||
shopCategory: 6,// "商品分类"
|
||||
wxMiNiProgram: 7// "跳转小程序Appid"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user