add file
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '操作手册', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
list: []
|
||||
},
|
||||
onShow(){
|
||||
console.log("onShow");
|
||||
//获取医生我的账户数据
|
||||
api.getBasicOperationManual().then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
list: response.data,
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-cell": "@vant/weapp/cell/index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<!-- 操作手册 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="item_list">
|
||||
<van-cell url="/Pages/yishi/manual_detail/index?manual_id={{item.manual_id}}" custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="{{item.title}}" is-link wx:for="{{list}}" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,9 @@
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.item_list{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
Reference in New Issue
Block a user