123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <template>
- <view class="content">
- <!-- 商品信息 -->
- <view class="shopshead dfsb">
- <image :src="info.shop.goods_img" mode=""></image>
- <view class="shopsInfo dffd">
- <view class="elli bold">{{ info.shop.goods_name || '商品名称' }}</view>
- <view class="subtit fontssm">sdfsfdasgdffdsaf1345565</view>
- <view class="tips">复制</view>
- </view>
- </view>
- <view class="list">
- <view v-for="(item, index) in info.list" class="li dfsb">
- <view :class="[index == 0 ? '' : 'textgrey', 'time']">{{ item.time }}</view>
- <view :class="[index == 0 ? '' : 'textgrey', 'add']">{{ item.add }}</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- exp_id: '',
- exp_no: '',
- info: {
- shop: {
- goods_name: '商品名称',
- vip_price: 100,
- goods_img: '/static/img/pro/hotbgtj.png'
- },
- list: [
- {
- time: '12:10 07月20日',
- add: '您的订单开始捡货'
- },
- {
- time: '12:10',
- add: '包裹交付顺丰速递公司'
- },
- {
- time: '12:10',
- add: '您的订单已到达【广东黄埔分拣中心】分拣完成'
- },
- {
- time: '12:10',
- add: '您的订单从【广东黄埔分拣中心】发往【厦门分拨中心】'
- }
- ]
- }
- };
- },
- onLoad(options) {
- this.exp_id = options.exp_id || '';
- this.exp_no = options.exp_no || '';
- this.loadData();
- },
- onShow() {},
- methods: {
- loadData() {
- this.$api
- .request('common/sel_exp', {
- exp_no: this.exp_no || '',
- exp_id: this.exp_id || ''
- })
- .then(data => {
- if (data.code == 200) {
- this.info = data.data;
- } else {
- this.$api.toast(data.msg);
- }
- });
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- background-color: #fff;
- padding: 20rpx 50rpx;
- }
- .shopshead {
- height: 216rpx;
- background: #ffffff;
- box-shadow: 2rpx 2rpx 30rpx 0rpx rgba(236, 236, 236, 0.5);
- image {
- width: 216rpx;
- height: 216rpx;
- margin-right: 30rpx;
- }
- .shopsInfo {
- padding: 25rpx 0;
- flex: 1;
- height: 100%;
- align-items: flex-start;
- justify-content: space-between;
- .elli {
- // height: 80rpx;
- line-height: 40rpx;
- }
- .subtit {
- margin: 8rpx 0 53rpx;
- }
- .tips {
- padding: 2rpx 10rpx;
- text-align: center;
- border-radius: 19rpx;
- border: 1px solid #333333;
- font-size: 20rpx;
- }
- }
- }
- .list {
- padding: 80rpx 0;
- .li {
- align-items: flex-start;
- .time {
- width: 141rpx;
- padding: 0rpx 40rpx 45rpx 0;
- border-right: 1rpx solid #333;
- font-size: 24rpx;
- position: relative;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- right: -7rpx;
- width: 14rpx;
- height: 14rpx;
- border-radius: 50%;
- background: #333333;
- }
- }
- .add {
- flex: 1;
- margin-left: 55rpx;
- font-size: 26rpx;
- }
- &:nth-last-of-type(1) {
- .time {
- border-right: 0 solid #333;
- }
- }
- }
- }
- </style>
|