Files

51 lines
1.2 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view>
<scroll-view scroll-y class="page bg-white">
<cu-custom bgColor="bg-blue" :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-blue" v-for="(val,ind) in value.content" :key="ind">
<view class="content bg-blue 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>