医废配置交接小程序源码
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<view>
|
||||
<cu-custom bgColor="bg-cyan"><block slot="content">医废列表</block></cu-custom>
|
||||
<view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
|
||||
<view class="cu-item arrow" v-for="(value,index) in DeptScaleList" :key="index">
|
||||
<navigator class="content" :url="'/pages/component/listDetails?dept_code='+index" hover-class="none">
|
||||
<text class="cuIcon-list text-cyan"></text>
|
||||
<text class="text-grey">{{ value.name }}</text>
|
||||
</navigator>
|
||||
<view class="action">
|
||||
<view class="cu-tag round bg-orange light">{{ value.last_handout_time }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
DeptScaleList: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getDeptScaleList()
|
||||
},
|
||||
methods: {
|
||||
getDeptScaleList(){
|
||||
let that = this;
|
||||
uni.request({
|
||||
url: "https://mwapi.opmonitor.com/?c=app_api&a=dept_scale_list",
|
||||
data: {},
|
||||
header: {
|
||||
'Content-type': 'application/json'
|
||||
},
|
||||
success: function(res){
|
||||
that.DeptScaleList = res.data.data
|
||||
},
|
||||
fail: () => {
|
||||
console.info('小程序域名不正确,请检查域名的正确性')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user