提交 d317609d 编写于 作者: 张磊's avatar 张磊

add native save

上级 da020d16
......@@ -52,22 +52,10 @@ const routerConfig = [
meta: {
title: '专项合作',
content: [
{
name: '关注',
outShow: false,
},
{
name: '客服',
outShow: true,
},
{
name: '分享',
outShow: false,
},
{
name: '首页',
outShow: false,
},
],
},
component: () => import('@/views/prolist'),
......
......@@ -168,7 +168,6 @@ export default class PicaJsBridge {
throw Error(
'widthCallback flag not defined, registerMethods should take second param value(true/false) for is not has callback.'
);
if (this.isWeb) return; // Add By Anndy Yang
methods.forEach((m) => {
widthCallback === true
? this._registerMethod(m)
......
......@@ -32,6 +32,7 @@ export default {
return {
headerInfo: {
title: '学情报告',
backMethod: 'native',
},
token: 'C98719AA9D544876A92277955A692C8D',
projectList: [],
......@@ -42,13 +43,13 @@ export default {
const _this = this;
if (this.$rocNative.isWeb) {
cookies.set('conslToken', _this.token);
_this.headerInfo.backMethod = '';
_this.getProjectList();
} else {
_this.getUserInfo();
}
},
mounted() {
console.log('---prolist--', this.$rocNative.getAppVersionCode);
this.$sendBuriedData &&
this.$sendBuriedData({
action: 'ACTION_WEB_ENTER',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册