|
@ -1,6 +1,6 @@ |
|
|
<script setup> |
|
|
<script setup> |
|
|
import { onLoad } from '@dcloudio/uni-app'; |
|
|
import { onLoad } from '@dcloudio/uni-app'; |
|
|
import { reactive, ref } from "vue"; |
|
|
|
|
|
|
|
|
import { reactive, ref, computed } from "vue"; |
|
|
import textLine from "./text_line.vue"; |
|
|
import textLine from "./text_line.vue"; |
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
dyOrder: { |
|
|
dyOrder: { |
|
@ -10,10 +10,19 @@ const props = defineProps({ |
|
|
imgUrl: { |
|
|
imgUrl: { |
|
|
type: String, |
|
|
type: String, |
|
|
default: '' |
|
|
default: '' |
|
|
|
|
|
}, |
|
|
|
|
|
orderId: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: '' |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
onLoad(() => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const payAmountFormat = computed(() => { |
|
|
|
|
|
let _amount = props.dyOrder?.amount?.pay_amount ?? 0; |
|
|
|
|
|
return (Number(_amount) / 100).toFixed(2); |
|
|
|
|
|
}); |
|
|
|
|
|
onLoad(() => { |
|
|
|
|
|
console.warn('dyOrder', props.dyOrder); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
@ -23,17 +32,17 @@ onLoad(() => { |
|
|
<view class="od-goods"> |
|
|
<view class="od-goods"> |
|
|
<view class="og-title">抖音商品信息</view> |
|
|
<view class="og-title">抖音商品信息</view> |
|
|
<view class="og-info"> |
|
|
<view class="og-info"> |
|
|
<image v-if="imgUrl" class="oi-pic" mode="aspectFit" :src="imgUrl"></image> |
|
|
|
|
|
|
|
|
<!-- <image v-if="imgUrl" class="oi-pic" mode="aspectFit" :src="imgUrl"></image> --> |
|
|
<view class="oi-desc"> |
|
|
<view class="oi-desc"> |
|
|
<view class="od-name">{{ dyOrder?.sku_info?.title ?? '-' }}</view> |
|
|
<view class="od-name">{{ dyOrder?.sku_info?.title ?? '-' }}</view> |
|
|
<view class="od-price">¥ {{ dyOrder?.amount?.pay_amount ?? '' }}</view> |
|
|
|
|
|
|
|
|
<view class="od-price">¥ {{ payAmountFormat }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<text class="oi-icon"></text> |
|
|
|
|
|
|
|
|
<!-- <text class="oi-icon"></text> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="og-bottom"> |
|
|
<view class="og-bottom"> |
|
|
<view class="ob-lines"> |
|
|
<view class="ob-lines"> |
|
|
<view class="ol-item"> |
|
|
<view class="ol-item"> |
|
|
<text-line label="订单编号:">{{ dyOrder?.certificate_id ?? '' }}</text-line> |
|
|
|
|
|
|
|
|
<text-line label="订单编号:">{{ orderId ?? '' }}</text-line> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="ol-item"> |
|
|
<!-- <view class="ol-item"> |
|
|
<text-line label="核销券码:">{{ dyOrder?.certificate_id ?? '' }}</text-line> |
|
|
<text-line label="核销券码:">{{ dyOrder?.certificate_id ?? '' }}</text-line> |
|
|