满天星医废小程序,带账号登录
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<view>
|
||||
<scroll-view scroll-y class="page bg-white">
|
||||
<cu-custom bgColor="bg-cyan" :isBack="true"><block slot="backText">返回</block><block slot="content">追溯详情(按医废袋)</block></cu-custom>
|
||||
<view class="cu-timeline margin-top" v-for="(value,index) in traceMedicalDetailsInfo" :key="index">
|
||||
<view class="cu-time">{{value.date}}</view>
|
||||
<view class="cu-item text-cyan" v-for="(val,ind) in value.content" :key="ind">
|
||||
<view class="content bg-cyan shadow-blur">
|
||||
{{val.data}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
id: '',
|
||||
traceMedicalDetailsInfo: []
|
||||
}
|
||||
},
|
||||
onLoad(options){
|
||||
this.id = options.id
|
||||
let that = this;
|
||||
uni.request({
|
||||
url: "https://lekapi.opmonitor.com/?c=app_api&a=getTraceMedicalDetailsInfo",
|
||||
data: {id: that.id},
|
||||
header: {
|
||||
'Content-type': 'application/json'
|
||||
},
|
||||
success: function(res){
|
||||
that.traceMedicalDetailsInfo = res.data.data
|
||||
},
|
||||
fail: () => {
|
||||
console.info('小程序域名不正确,请检查域名的正确性')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page {
|
||||
width: 100vw;
|
||||
height: 100Vh;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user