You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view> <!-- 商品信息 --> <self-line/> <view class="bg-white padding-tb-sm"> <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true">
<view class="flex justify-between align-start padding-top-sm padding-lr"> <image src="@/static/tu.png" mode="aspectFill" style="width: 150rpx; height: 150rpx;"></image> <view class="flex-sub padding-left-sm"> <view class="bref-box margin-top-xs"> 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季 </view> <text class="block margin-top-sm text-gray text-sm">数量 <text class="margin-left text-gray">x1</text></text> <view class="flex justify-between margin-top-sm"> <view class="text-red text-price text-lg"> 19.90 </view> <view> <button class="cu-btn border-blue bg-white text-blue round margin-left-sm text-sm">等待审核</button> </view> </view> </view> </view>
</skeleton> </view> <self-line/> <skeleton :loading="skeletonLoading" :row="3" :showAvatar="false" :showTitle="true"> <view class="bg-white"> <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> <text class="text-gray">订单金额</text> <view class="text-price"> 19.90 </view> </view> <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> <text class="text-gray">扣费率</text> <view> <text>30%</text> </view> </view> <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> <text class="text-gray">扣费金额</text> <view class="text-price"> 3.90 </view> </view> </view> </skeleton> <self-line/> <!-- 表单 --> <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true"> <view class="bg-white"> <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> <text class="text-gray">可退金额</text> <view class="text-price"> 16.00 </view> </view> <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center"> <text class="text-gray">订单编号</text> <view> <text class="margin-right">67432428794847982374</text> <text class="text-orange text-sm" @tap="copy('67432428794847982374')">复制</text> </view> </view> </view> </skeleton> <self-line/> <skeleton :loading="skeletonLoading" :row="6" :showAvatar="false" :showTitle="true"> <view class="padding-top padding-lr bg-white"> <view class="cu-self menu"> <view class="text-gray"> 由于产品的特殊性,在申请的过程中,供应商会向您收取部分费用。如有疑问可参与产品的《售后说明》或咨询客服 </view> </view> </view> <view class="padding bg-white"> <view class="cu-self menu"> <view class="text-df text-bold">退款说明</view> </view> <view class="cu-self menu margin-top"> <view class="text-gray">看着不是很新鲜了,然后还有一些都烂了!!!看着不是很新鲜了,然后还有一些都烂了!!!看着不是很新鲜了,然后还有一些都烂了!!!看着不是很新鲜了,然后还有一些都烂了!!!看着不是很新鲜了,然后还有一些都烂了!!!</view> </view> </view> <view class="cu-form-group solid-bottom"> <view class="grid col-4 grid-square flex-sub"> <view class="bg-img"> <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image> </view> <view class="bg-img"> <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image> </view> <view class="bg-img"> <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image> </view> </view> </view> </skeleton> </view></template>
<script> export default { data() { return { skeletonLoading: true, loading: false, // 选择的本地图片路径
hostImg: '', // 已上传服务器的图片名称
serverImg:'', } }, computed: { }, onLoad(e) { setTimeout(()=>{ this.skeletonLoading = false },1000) }, methods: { // 选择图片
ChooseImage(e) { uni.chooseImage({ count: 1, success: e => { this.hostImg = e.tempFilePaths[0]; } }); }, // 预览图片
showImg() { uni.previewImage({ urls: ['../../static/tu.png'] }); }, // 删除图片
DelImg() { uni.showModal({ title: '提示', content: '即将取消上传这张图片,请确认?', success: e => { if (!e.confirm) return; this.hostImg = ''; this.serverImg = ''; } }); }, // 点击复制
copy(text) { uni.setClipboardData({ data: text }); }, } }</script>
<style lang="scss" scoped> .bref-box { text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }</style>
|