<template>
    <view>
        <presriptionDetail :ordID="ordID" :prescNo="prescNo" :type="type" />
    </view>
</template>

<script>
import presriptionDetail from '../../../../components/presriptionDetail/presriptionDetail';
// pages/entryWrite/page/Entry/prescription/prescDetail/prescDetail.js
export default {
    components: {
        presriptionDetail
    },
    data() {
        return {
            prescData: {
                prescStatusDesc: '未确认'
            },

            ordID: '',
            prescNo: '',
            type: 0,
            winWidth: '',
            winHeight: ''
        };
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        console.log('onLoadoptions:', options);
        this.setData({
            ordID: options.ordID,
            prescNo: options.prescNo,
            type: Number(options.type)
        });
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function (options) {
        console.log(options);
        var that = this;
        uni.getSystemInfo({
            success: function (res) {
                that.setData({
                    winWidth: res.windowWidth,
                    winHeight: res.windowHeight
                });
            }
        });
    },
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style>
/* pages/entryWrite/page/Entry/prescription/prescDetail/prescDetail.wxss */
</style>
