时空网前端
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.
 
 
 
 

212 lines
6.4 KiB

<template>
<view>
<mescroll-body ref="mescrollRef" @down="downCallback" :down="downOpt">
<!-- 商品信息 -->
<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">
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
</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">
<amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
</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">
<amount :value="Number(3.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
</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">
<amount :value="Number(16.00 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
</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>
</mescroll-body>
</view>
</template>
<script>
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
export default {
mixins: [MescrollMixin], // 使用mixin
data() {
return {
skeletonLoading: true,
loading: false,
// 选择的本地图片路径
hostImg: '',
// 已上传服务器的图片名称
serverImg:'',
}
},
computed: {
},
onLoad(e) {
setTimeout(()=>{
this.skeletonLoading = false
this.mescroll.endSuccess(); // 请求成功,隐藏加载状态
},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
});
},
//下拉刷新
downCallback() {
setTimeout(()=>{
this.mescroll.endSuccess(); // 请求成功,隐藏加载状态
this.mescroll.endErr(); // 请求失败,隐藏加载状态
},1000)
},
}
}
</script>
<style lang="scss" scoped>
.address-box {
// background-image: url(../../static/images/shop/envelope.png);
background-repeat: repeat-x;
background-position: left bottom;
background-size: auto 8rpx;
}
.self-img-sm {
width: 40rpx;
height: 40rpx;
}
.bref-box {
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.order-bottom {
position: relative;
.cuIcon-fold {
position: absolute;
right: 50rpx;
top: -19rpx;
color: rgba(0, 0, 0, 0.1)
}
}
</style>