123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- <template>
- <view class="box">
- <view class="cont">
- <view class="topBox goodsBox" v-if="data.openSheetRefund.refundState == 1 || data.openSheetRefund.refundState == 3">
- <view class="topState">
- <view class="tsTop">
- <view class="tsYd"></view>
- <view class="tsHx"></view>
- <view class="tsYd"></view>
- <view class="tsHx tsHx2"></view>
- <view class="tsYd tsYd2"></view>
- <view class="tsHx tsHx2"></view>
- <view class="tsYd tsYd2"></view>
- </view>
- <view class="tsM">
- <view class="tsMline">发起退款</view>
- <view class="tsMline">商家处理</view>
- <view class="tsMline tsMline2">商家退款</view>
- <view class="tsMline tsMline2">退款结束</view>
- </view>
- <view class="txTxt" v-if="data.openSheetRefund.refundState == 1">
- <span>请等待</span><span style="color: #EC0F0A;">商家处理</span>
- </view>
- <view class="txTxt2" v-if="data.openSheetRefund.refundState == 1">已发起退款申请</view>
- <view class="txTxt" v-if="data.openSheetRefund.refundState == 3">
- <span>商家</span><span style="color: #EC0F0A;">拒绝退款</span>
- </view>
- </view>
- </view>
- <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 2">
- <view class="tkTopTitle">退款成功</view>
- <view class="tksuccess">
- <view class="tksuccessYx">
- <view class="tksuccessTxt">原路退回</view>
- <view class="tksuccessPrice">¥<span style="font-size: 36rpx;">{{data.openSheetRefund.money}}</span> </view>
- </view>
- <view class="tksuccessTime">{{data.openSheetRefund.reAccountTime}}</view>
- </view>
- </view>
- <!-- 退款关闭-->
- <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 4||data.openSheetRefund.refundState == 5">
- <view class="tkTopTitle">退款关闭</view>
- <view class="tkErr" v-if="data.openSheetRefund.refundState == 4">退款失败</view>
- <view class="tkErr" v-if="data.openSheetRefund.refundState == 5">用户已取消退款</view>
- </view>
- <!-- 退款关闭-->
- <view class="itemBox flex">
- </image>
- <image class="itemIMg" src="../../static/timg/noimg.png" mode=""></image>
- <view class="itemRight">
- <view class="itemName">{{data.openSheetRefund.itemName}}</view>
- <view class="priceBox">
- <view class="price">¥{{data.openSheet.realMoney}}</view>
- </view>
- </view>
- </view>
- <view class="goodsBox">
- <view class="goodsline flex" v-if="data.openSheetRefund.couponCount==1" >
- <view class="goodsLeft">退款券号</view>
- <view class="goodRight" style="display: flex;">
- <image @click="copy(data.openSheetRefund.couponCode)" src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
- <span>{{data.openSheetRefund.couponCode}}</span>
- </view>
- </view>
- <view class="goodsline flex" v-if="data.openSheetRefund.couponCount!=1">
- <view class="goodsLeft">退款券号</view>
- <view class="goodRight" style="display: flex;" @click="codeFn">
- <span>共{{data.openSheetRefund.couponCount}}份券号</span>
- <image src="../../static/img2/hjt.png" mode="" class="jtIcon"></image>
- </view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款份数</view>
- <view class="goodRight" >
- {{data.openSheetRefund.couponCount}}份
- </view>
- </view>
-
- <view class="goodsline flex" >
- <view class="tkPrice">
- <view class="tkPrice1">退款金额</view>
- <view class="tkPrice2">实际退款金额以到账金额为准</view>
- </view>
- <view class="tkPriceNum">¥{{data.openSheetRefund.money}}</view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款方式</view>
- <view class="goodRight" style="font-size: 26rpx;color: #222222;">原路退回</view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">商品是否已使用</view>
- <view class="goodRight" >{{data.openSheetRefund.hType==1?'未使用':'已使用'}}</view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款原因</view>
- <view class="goodRight" >{{data.openSheetRefund.refundReason}}</view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款说明</view>
- <view class="goodRight" style="width: 400rpx;text-align: right;">{{data.openSheetRefund.content}}</view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款凭证</view>
- <view class="goodRight tkImgBox" >
- <image class="tkImg" @click="previewImage(index)" v-for="(item,index) in data.evidenceList" :src="item.url" mode="aspectFit"></image>
-
- </view>
- </view>
- </view>
- <view class="goodsBox">
- <view class="goodsline flex" >
- <view class="goodsLeft">订单编号</view>
- <view class="goodRight" style="display: flex;">
- <image @click="copy(data.openSheetRefund.sheetCode)" src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
- <span>{{data.openSheetRefund.sheetCode}}</span>
- </view>
- </view>
- <view class="goodsline flex" >
- <view class="goodsLeft">退款编号</view>
- <view class="goodRight" style="display: flex;">
- <image @click="copy(data.openSheetRefund.code)" src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
- <span>{{data.openSheetRefund.code}}</span>
- </view>
- </view>
-
- </view>
-
- </view>
-
- <view class="reasonBox" v-if="codeShow" @click="qdTkclose">
- <view class="codeCont" @click.stop="">
- <view class="reasonTop">
- <view class="chahao"></view>
- <view class="tkTitle">退款券号</view>
- <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
- </view>
- <view class="codeLineBox">
- <view class="codeLine" v-for="(v,i) in data.openSheetRefund.couponCode.split(',')">
- <span style="padding-right: 10rpx;">{{v}}</span>
- <image src="../../static/img2/copy.png" mode="" @click="copy(v)" class="copyIcon"></image>
-
- </view>
- </view>
-
- </view>
- </view>
-
- <view style="height: 40rpx;"></view>
- </view>
- </template>
- <script>
- export default {
- components: {
-
- },
-
- data() {
- return {
- themeColor:'',
- ext:'',
- userInfo:'',
- carInfo:'',
- customerInfo:'',
- codeShow:false,
- id:'09ee0273-d2b2-4204-a1db-f0555ec2ea10',
- data:'',
- }
- },
- onLoad(opt) {
- if(opt.id){
- this.id=opt.id
- }
-
- this.userInfo=this.$store.state.userInfo;
- this.ext=this.$common.getExtStoreId();
- if(this.userInfo){
- this.getData()
- }else{
- this.$common.automaticlogin().then(val => {
- this.userInfo=this.$store.state.userInfo;
- if (this.id) {
- this.getData();
- }
- if(!this.userInfo){
- //this.authorizShow=true
- }
- })
- }
-
- },
- onShow() {
-
- },
- methods: {
- previewImage(index){
- // 预览图片
- var arr=[]
- this.data.evidenceList.forEach(item=>{
- arr.push(item.url)
- })
- uni.previewImage({
- urls: arr,
- current: index,
- longPressActions: {
- itemList: ['发送给朋友', '保存图片', '收藏'],
- success: function(data) {
- console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
- },
- fail: function(err) {
- console.log(err.errMsg);
- }
- }
- });
- },
- getData(){
- uni.showLoading({
- title: '加载中'
- })
- this.$http('openOrderManagement/openSheetRefundDetail', {
-
- id: this.id,
- }, 'GET').then(res => {
- uni.hideLoading();
- this.data=res.data
- })
- },
- qdTkclose(){
- this.codeShow=false;
- },
- codeFn(){
- this.codeShow=true;
- },
- copy(txt) {
- uni.setClipboardData({
- data: txt,
- success: function() {
- uni.showToast({
- title: '复制成功',
- icon: 'none',
- duration: 2000
- });
- }
- });
- },
-
-
- },
- onPullDownRefresh() {
-
- this.getData()
- setTimeout(function() {
- uni.stopPullDownRefresh();
- }, 1000);
- },
- }
- </script>
- <style scoped lang="less">
- .box {
- width: 100vw;
- min-height: 100vh;
- background: #F4F4F4;
- }
- .tkTopTitle{
- font-weight: 500;
- font-size: 32rpx;
- color: #222222;
- line-height: 50rpx;
- padding-top: 12rpx;
- }
- .tksuccess{
- background: #F7F7F7;
- border-radius: 16rpx;
- padding: 20rpx;
- margin-top: 20rpx;
- }
- .tksuccessYx{
- display: flex;justify-content: space-between;
- }
- .tksuccessTxt{
- font-weight: 500;
- font-size: 28rpx;
- color: #222222;
- line-height: 40rpx;
- }
- .tksuccessPrice{
- font-weight: 500;
- font-size: 26rpx;
- color: #EC0F0A;
- }
- .tksuccessTime{
- font-size: 26rpx;
- color: #9A9A9A;
-
- }
- .tsTop{
- display: flex;justify-content: center;
- }
- .tsM{
- display: flex;justify-content: center;
- }
- .tsMline{
- font-size: 26rpx;
- color: #666666;
- line-height: 33rpx;
- text-align: center;
- width: 210rpx;
- padding-top: 8rpx;
- }
- .txTxt{
- font-weight: 500;
- font-size: 36rpx;
- color: #222222;
- line-height: 50rpx;
- padding-top: 20rpx;
- }
- .txTxt2{
- font-size: 24rpx;
- color: #9A9A9A;
- line-height: 33rpx;
- padding-top: 8rpx;
- padding-bottom: 20rpx;
- }
- .tsYd{
- width: 12rpx;
- height: 12rpx;
- border: 3rpx solid #88888A;
- border-radius: 50%;
- }
- .tsHx{
- width: 135rpx;
- height: 4rpx;
- background: #5B5B5C;
- border-radius: 2rpx;
- margin-left: 9rpx;
- margin-right: 9rpx;
- margin-top: 6rpx;
- }
- .tsYd2{
- border: 3rpx solid #eeeeee;
- }
- .tsHx2{
- background: #eeeeee;
- }
- .tsMline2{
- color: #9A9A9A;
- }
- .topState{
- padding-top: 20rpx;
- }
- .topBox{
- margin-bottom: 20rpx;
- }
- .copyIcon{
- width: 30rpx;height: 30rpx;
- margin-top: 4rpx;margin-right: 6rpx;
- }
- .tkImg{
- width: 148rpx;height: 148rpx;
- margin-left: 10rpx;
- margin-bottom: 10rpx;
- }
- .tkImgBox{
- display: flex;flex-wrap: wrap;
- width: 484rpx;
- }
- .reasonTop{
- display: flex;justify-content: space-between;
- padding: 32rpx 42rpx;
- }
- .chahao{
- width: 21rpx;height: 21rpx;
- padding-top: 10rpx;
- padding-left: 10rpx;
- padding-right: 10rpx;
- padding-bottom: 10rpx;
- }
- .tkTitle{
- font-weight: 500;
- font-size: 28rpx;
- color: #222222;
- line-height: 40rpx;
- }
- .reasonBox{
- position: fixed;
- left: 0;
- top: 0;
- height: 100vh;
- width: 750rpx;
- background: rgba(0, 0, 0, 0.5);
- }
- .codeCont{
- width: 750rpx;
- background: #FFFFFF;
- border-radius: 28rpx 28rpx 0rpx 0rpx;
- position: absolute;
- left: 0;
- bottom: 0;
- height: 383rpx;
- }
- .reasonCont{
- height: 70vh;
- width: 750rpx;
- background: #FFFFFF;
- border-radius: 28rpx 28rpx 0rpx 0rpx;
- position: absolute;
- left: 0;
- bottom: 0;
- }
- .reasonContLine{
- display: flex;justify-content: space-between;
- padding: 20rpx 0;
- }
- .reasonContLineTitle{
- font-weight: 500;
- font-size: 28rpx;
- color: #222222;
- }
- .reasonContLineTxt{
- font-weight: 400;
- font-size: 28rpx;
- color: #222222;
- line-height: 40rpx;
- }
- .reasonContLineCk{
- width: 28rpx;
- height: 28rpx;
- border: 2rpx solid #9A9A9A;
- border-radius: 16rpx;
- margin-top: 6rpx;
- }
- .reasonContLineBox{
- padding: 0 33rpx;
- height: calc(70vh - 270rpx);
- overflow-y: scroll;
- }
- .ckLine{
- display: flex;color: #9A9A9A;
- font-size: 26rpx;
- }
- .xinghao{
- color: #EC0F0A;
- }
- .jtIcon{
- width: 10rpx;height: 20rpx;
- margin-top: 8rpx;
- margin-left: 10rpx;
- }
- .tkPrice1{
- font-size: 26rpx;
- color: #222222;
- }
- .tkPrice2{
- font-size: 24rpx;
- color: #9A9A9A;
- padding-top: 8rpx;
- }
- .tkPriceNum{
- font-size: 26rpx;
- color: #222222;
- line-height: 50rpx;
- }
- .textareaNum{
- padding-bottom: 18rpx;
- }
- .tkSm{
- font-size: 26rpx;
- color: #222222;
- padding-top: 18rpx;
- }
- .tktextarea{
- font-size: 26rpx;
- background: #F7F7F7;
- border-radius: 14rpx;
- margin-top: 20rpx;
- width: 600rpx;padding: 20rpx 30rpx;
- margin-bottom: 10rpx;
- }
- .textareaNum{
- font-size: 24rpx;
- color: #9A9A9A;
- display: flex;justify-content: flex-end;
- }
- .cont{
- padding: 20rpx 24rpx;
- }
- .itemBox{
- background: #FFFFFF;
- border-radius: 16rpx;padding: 24rpx;
- }
- .itemIMg{
- width: 128rpx;
- height: 128rpx;border-radius: 10rpx;
- }
- .flex{
- display: flex;
- }
- .itemRight{
- width: 450rpx;padding-left: 24rpx;
- }
- .itemName{
- font-weight: 500;
- font-size: 28rpx;
- color: #222222;
- line-height: 40rpx;
- }
- .buyType{
- padding: 0 8rpx;text-align: center;
- height: 32rpx;line-height: 34rpx;
- border-radius: 5rpx;
- border: 1px solid #FF0035;font-size: 22rpx;
- color: #FF0035;
- margin-top: 10rpx;
- }
- .priceBox{
- display: flex;justify-content: space-between;padding-top: 40rpx;
- }
- .price{
- font-size: 28rpx;
- color: #222222;
- line-height: 50rpx;
- }
- .itemNum{
- font-size: 34rpx;line-height: 50rpx;
- color: #686868;
- }
- .itemnotes{
- font-size: 24rpx;padding-top: 12rpx;
- color: #FFC107;
- }
- .mealBox{
- background: #FFFFFF;
- padding: 20rpx 24rpx;
- margin-top: 20rpx;
- font-size: 26rpx;
- color: #666666;
- border-radius: 16rpx;
- }
- .fwlcTitle{
- color: #333333;font-size: 30rpx;font-weight: 500;
- padding-bottom: 20rpx;
- }
- .mealTop{
- display: flex;
- justify-content: space-between;
- height: 72rpx;
- line-height: 72rpx;
- font-weight: 500;
- font-size: 26rpx;
- color: #222222;
- font-size: 26rpx;
- padding: 0 20rpx;
- }
- .mealNum{
- text-align: center;
- width: 120rpx;
- }
- .mealexpire{
- text-align: center; width: 120rpx;
- }
- .mealName{
- width: 460rpx;
- }
- .mealTop2{
- display: flex;
- justify-content: space-between;
- height: 72rpx;
- line-height: 72rpx;
- font-weight: 500;
- font-size: 26rpx;
- color: #222222;
- font-size: 26rpx;
- padding: 0 20rpx;
- background: #FFF6DB;
- }
- .mealXj{
- background: #FFFCF3;
- }
- .xjLine{
- display: flex;
- font-weight: 500;
- font-size: 26rpx;
- color: #222222;
- padding: 20rpx 20rpx;
- }
- .xjyd{
- width: 8rpx;
- height: 8rpx;
- background: #FABF1B;
- border-radius: 50rpx;
- margin-top: 12rpx;
- margin-right: 10rpx;
- }
- .mealMs{
- background: #FFFFFF;
- padding: 20rpx;
- font-weight: 400;
- font-size: 24rpx;
- color: #9A9A9A;
- line-height: 38rpx;
- }
- .goodsBox{
- padding:18rpx 24rpx 30rpx 18rpx;font-size: 28rpx;
- color: #222222;background: #FFFFFF;margin-top: 20rpx;
- border-radius: 16rpx;
- }
- .goodsline{
- justify-content: space-between;
- padding: 18rpx 0;
- }
- .mealBox img{
- width: 100%;
- }
- .mealBox image{
- width: 100%;
- }
- .tkErr{
- font-size: 26rpx;
- color: #9A9A9A;
- padding-bottom: 10rpx;
- padding-bottom: 20rpx;
- }
- .codeLine{
- font-size: 26rpx;
- color: #222222;
- display: flex;
- justify-content: center;
- padding-bottom: 30rpx;
- }
- </style>
|