Authored by QC-L

添加帮助与客服网页跳转链接 review by 黄敬囿

... ... @@ -32,11 +32,6 @@ export default class UserCenter extends Component {
page: 'orderList',
},
{
text: '通知',
page: 'message',
routerAction: 'switchTab'
},
{
text: '收藏',
num: 0,
page: 'collection'
... ... @@ -47,7 +42,9 @@ export default class UserCenter extends Component {
},
{
text: '客服与帮助',
mt: true
mt: true,
page: 'webview',
url: 'https://activity.yoho.cn/feature/3185.html?title=%E5%B8%AE%E5%8A%A9%E4%B8%8E%E5%AE%A2%E6%9C%8D'
}
],
hasUnionID: '',
... ... @@ -294,7 +291,7 @@ export default class UserCenter extends Component {
}
jumpWithItem(item) {
router.go(item.page, item.query, item.routerAction);
router.go(item.page, item, item.routerAction);
}
getInfoNum() {
... ...
... ... @@ -20,10 +20,12 @@ export default {
go(name, query, jumpType) {
const jump = jumpType ? jumpType : 'navigateTo';
const rule = rules[name];
console.log(name);
if (!rule) {
return Promise.reject(`路由规则未匹配到: ${name}`);
}
query = query || {}
query = query || {};
console.log(query);
const routerFn = router[jumpType] || router.navigateTo;
return routerFn({
... ...