|
|
|
@ -27,18 +27,18 @@ |
|
|
|
<self-line /> |
|
|
|
<!-- 表单 --> |
|
|
|
<view class="bg-white"> |
|
|
|
<view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> |
|
|
|
<view class="cu-bar padding-lr flex justify-between align-center text-center"> |
|
|
|
<text class="lf-color-555 lf-font-28">订单编号</text> |
|
|
|
<view> |
|
|
|
<text class="margin-right lf-font-28 text-black1">{{orderDetails.order_no}}</text> |
|
|
|
<text class="text-orange lf-font-28" @click="copy(orderDetails.order_no)">复制</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cu-bar padding-lr solid-bottom" v-if="orderDetails.created_at"> |
|
|
|
<view class="cu-bar padding-lr" v-if="orderDetails.created_at"> |
|
|
|
<text class="lf-color-555 lf-font-28">下单时间</text> |
|
|
|
<text class="lf-font-28 text-black1">{{ orderDetails.created_at }}</text> |
|
|
|
</view> |
|
|
|
<view class="cu-bar padding-lr solid-bottom" v-if="orderDetails.paid_at"> |
|
|
|
<view class="cu-bar padding-lr" v-if="orderDetails.paid_at"> |
|
|
|
<text class="lf-color-555 lf-font-28">付款时间</text> |
|
|
|
<text class="lf-font-28 text-black1" v-if="orderDetails.paid_at == 0">暂未付款</text> |
|
|
|
<text class="lf-font-28 text-black1" v-else>{{ orderDetails.paid_at }}</text> |
|
|
|
@ -47,23 +47,22 @@ |
|
|
|
<text class="lf-color-555 lf-font-28">支付方式</text> |
|
|
|
<text class="lf-font-28 text-black1">{{orderDetails.pay_type_text}}</text> |
|
|
|
</view> |
|
|
|
<view class="cu-bar padding-lr" v-for="(item,index) of orderDetails.info" :key="index"> |
|
|
|
<view class="cu-bar padding-lr" :class="item.type=='image' || item.type == 'textarea'?'flex-img':''" v-for="(item,index) of orderDetails.info" :key="index"> |
|
|
|
<text class="lf-color-555 lf-font-28">{{index}}</text> |
|
|
|
<text class="lf-font-28 text-black1">{{item}}</text> |
|
|
|
<view v-if=""> |
|
|
|
<view class="grid col-3 grid-square flex-sub lf-m-t-30" v-if="item.type == 'image'"> |
|
|
|
<view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="bg-img" v-for="(item,index) in img_list" :key="index" @tap="showImg(index)" :data-url="img_list[index]"> |
|
|
|
<image :src="img_list[index]" mode="aspectFill"></image> |
|
|
|
<view class="cu-tag bg-red" @tap.stop="DelImg(index)" :data-index="index"> |
|
|
|
<!-- <text class='cuIcon-close'></text> --> |
|
|
|
<text class="lf-iconfont lf-icon-cuowu lf-font-40 lf-color-price"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="solids" @tap="ChooseImage(item.field)" v-if="img_list.length<3"> |
|
|
|
<text class='cuIcon-cameraadd'></text> |
|
|
|
<text class="lf-font-28 text-black1" v-if="!item.type">{{item}}</text> |
|
|
|
<text class="lf-font-28 text-black1" v-if="item.type=='text'">{{item.value}}</text> |
|
|
|
<text class="lf-font-28 text-black1" v-if="item.type=='radio'">{{item.value}}</text> |
|
|
|
<text class="lf-font-28 text-black1" v-if="item.type=='checkbox'">{{item.value}}</text> |
|
|
|
<view v-if="item.type == 'image'"> |
|
|
|
<view class="grid col-3 grid-square flex-sub lf-m-t-30"> |
|
|
|
<view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="bg-img" v-for="(item2,index2) in item.value" :key="index2" @tap="showImg(item.value,index2)" :data-url="item.value[index2]"> |
|
|
|
<image :src="item.value[index2]" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cu-self menu lf-w-100" style="margin-top: 30rpx; position: relative;" v-if="item.type == 'textarea'"> |
|
|
|
<textarea :cursor-spacing="120" disabled maxlength="300" :adjust-position="true" type="text" style="background-color: #F8F8F8;border-radius: 20rpx;" class="text-left lf-font-28 area-self lf-w-100 lf-p-20" :placeholder="item.value" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
@ -163,6 +162,17 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 预览图片 |
|
|
|
showImg(url,index) { |
|
|
|
this.$u.throttle(() => { |
|
|
|
let goods_banner = url || []; |
|
|
|
let banners = goods_banner.map(item => item); |
|
|
|
uni.previewImage({ |
|
|
|
urls: banners, |
|
|
|
current: index |
|
|
|
}) |
|
|
|
}, 200); |
|
|
|
}, |
|
|
|
refreshCode() { |
|
|
|
this.getOrderDetails() |
|
|
|
this.$msg('刷新成功') |
|
|
|
@ -225,6 +235,13 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.flex-img { |
|
|
|
display: flex!important; |
|
|
|
align-items: flex-start!important; |
|
|
|
flex-direction: column!important; |
|
|
|
padding: 30rpx; |
|
|
|
justify-content: space-between!important; |
|
|
|
} |
|
|
|
.loading-more-text::before { |
|
|
|
height: 60rpx; |
|
|
|
width: 60rpx; |
|
|
|
|