123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <template>
- <view class="container">
- <view class="express-box">
- <view class="top-text">
- <text class="top-com">{{ expressList.com }}</text>
- <text>{{ expressList.nu }}</text>
- </view>
- <view class="express-body"><uni-steps :options="expressList.data" active-color="#007AFF" :active="active" direction="column"></uni-steps></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- id: '',
- expressList: [],
- active: 0
- };
- },
- onLoad(option) {
- this.id = option.id;
- },
- onShow() {
- this.loadData();
- },
- methods: {
- loadData() {
- express_query({
- id: this.id
- }).then(({ data }) => {
- this.expressList = data;
- console.log(this.expressList);
- });
- }
- }
- };
- </script>
- <style lang="scss">
- .container {
- padding: 40rpx;
- .express-box {
- .top-text {
- width: 100%;
- height: 60rpx;
- background: #ffffff;
- padding-left: 20rpx;
- display: flex;
- align-items: center;
- .top-com {
- margin-right: 10rpx;
- }
- }
- .express-body {
- margin-top: 20rpx;
- background: #ffffff;
- padding: 20rpx 10rpx 20rpx 0;
- }
- }
- }
- </style>
|