|
|
|
@ -67,13 +67,15 @@ |
|
|
|
<self-line/> |
|
|
|
<view class="bg-white flex flex-direction justify-around align-center text-center padding-tb"> |
|
|
|
<view> |
|
|
|
<image src="../../static/tu.png" mode="widthFix" style="height: 150px;width: 150px;"></image> |
|
|
|
<tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="140" unit="px" background="#fff" foreground="#000" |
|
|
|
pdground="#000" :onval="true" :loadMake="true" /> |
|
|
|
<!-- :icon="require('@/static/images/system/user-default.jpg')" --> |
|
|
|
</view> |
|
|
|
<view class="flex justify-around align-center text-center margin-top-sm"> |
|
|
|
<view> |
|
|
|
<view @tap="refreshCode()"> |
|
|
|
<image class="margin-right" src="@/static/images/system/refresh.png" mode="widthFix" style="width: 20px;height: 20px;"></image> |
|
|
|
</view> |
|
|
|
<view class="text-lg">SP738644872</view> |
|
|
|
<view class="text-lg">{{checkArea}}</view> |
|
|
|
<view class="text-orange text-sm margin-left" @tap="copy('SP738644872')">复制</view> |
|
|
|
</view> |
|
|
|
<view class="margin-top-sm text-green text-sm"> |
|
|
|
@ -84,11 +86,11 @@ |
|
|
|
<view class="flex align-center"> |
|
|
|
<text class="text-gray text-sm">已付款:</text> |
|
|
|
<view class="text-lg text-price text-red"> |
|
|
|
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
|
<amount :value="Number(orderDetails.amount || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
已付款 |
|
|
|
{{orderDetails.state_text.text}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -98,16 +100,21 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import tkiQrcode from "tki-qrcode" // 二维码生成器 |
|
|
|
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
|
|
|
export default { |
|
|
|
mixins: [MescrollMixin], // 使用mixin |
|
|
|
components: { |
|
|
|
tkiQrcode |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
base64Img: '', // |
|
|
|
skeletonLoading: true, |
|
|
|
loading: false, |
|
|
|
orderId:1, |
|
|
|
orderDetails: {} |
|
|
|
orderDetails: {}, |
|
|
|
checkArea: '0' |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -122,12 +129,19 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
refreshCode() { |
|
|
|
this.getOrderDetails() |
|
|
|
}, |
|
|
|
//二维码回调 |
|
|
|
qrR(data) { |
|
|
|
this.base64Img = data; |
|
|
|
}, |
|
|
|
getOrderDetails() { |
|
|
|
this.$http(this.API.API_ORDER_DETAILS, {order_id: this.orderId}).then(res => { |
|
|
|
if(res.code == 0) { |
|
|
|
this.orderDetails = res.data |
|
|
|
this.checkArea = res.data.confirm_code |
|
|
|
this.skeletonLoading = false |
|
|
|
console.log(this.orderDetails) |
|
|
|
} |
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|