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

add page-model

上级 1df7fb21
......@@ -2,7 +2,7 @@ import Vue from 'vue';
import rocNative from '@/utils/jsbridge';
import { Toast } from 'vant';
const echarts = window.echarts;
console.log('--rocNative', rocNative);
Vue.use(Toast);
Vue.prototype.$echarts = echarts;
Vue.prototype.$rocNative = new rocNative();
......@@ -51,6 +51,26 @@ const routerConfig = [
name: 'prolist',
meta: {
title: '专项合作',
meta: {
content: [
{
name: '关注',
outShow: false,
},
{
name: '客服',
outShow: true,
},
{
name: '分享',
outShow: false,
},
{
name: '首页',
outShow: false,
},
],
},
},
component: () => import('@/views/prolist'),
},
......
......@@ -94,7 +94,6 @@ export default class PicaJsBridge {
// register method width callback in window
_registerMethod(method) {
const _this = this;
console.log('-method', method, _this);
_this[method] = (param) => {
return new Promise((response, reject) => {
_this._callNative(method, param, function (result) {
......
......@@ -2,7 +2,10 @@
<!-- 专项合作首页: 我参与的,其它项目 -->
<div class="pro-list-container">
<!-- <CommonHeader :title="title"></CommonHeader> -->
<PageModel :header-info="headerInfo" />
<PageModel
:header-info="headerInfo"
@onService="goKf"
/>
<CoopListItem
style="margin: 10px 0"
:data-list="projectList"
......@@ -15,6 +18,7 @@ import PageModel from '@pica-kit/page-model';
import CoopListItem from '@/components/bussiness/coop-list-item';
import { getProjectList } from '@/service';
import { BASE_URL } from '@/utils/enumerate';
import { goKfFn } from '@/utils/kf';
const { VUE_APP_ENV } = process.env;
const cookies = require('cookie-universal')();
......@@ -85,6 +89,11 @@ export default {
}
});
},
goKf() {
goKfFn({
code: '0002',
});
},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册