优化部分页面以及逻辑

This commit is contained in:
lemon橪
2021-07-15 15:10:27 +08:00
parent 2df8be328f
commit fc9b7bac16
20 changed files with 871 additions and 94 deletions

View File

@@ -57,7 +57,9 @@
applyInfo.refundWay == 'ORIGINAL' ? '原路退回' : '账号退款'
" type="text" input-align="right" :disabled="true" />
</u-form-item>
<view >
<view v-if="
applyInfo.accountType === 'BANK_TRANSFER' &&
applyInfo.applyRefundPrice != 0">
<u-form-item label="银行开户行" :label-width="150">
<u-input v-model="form.bankDepositName" type="text" input-align="right" placeholder="请输入银行开户行" />
</u-form-item>
@@ -97,7 +99,7 @@ import {
import city from "@/components/m-city/m-city";
import { upload } from "@/api/common.js";
import {checkBankno} from '@/utils/Foundation'
import { checkBankno } from "@/utils/Foundation";
import storage from "@/utils/storage.js";
export default {
component: {
@@ -146,7 +148,7 @@ export default {
customStyle: {
backgroundColor: this.$lightColor,
},
applyInfo: {},
applyInfo: {},
form: {
orderItemSn: "", // 订单sn
skuId: "",
@@ -188,8 +190,8 @@ export default {
this.sn = options.sn;
let dsku = decodeURIComponent(options.sku);
let newSku = JSON.parse(dsku);
this.sku = newSku
this.sku = newSku;
this.form.orderItemSn = options.sn;
this.form.skuId = this.sku.skuId;
this.form.num = this.sku.num;
@@ -251,9 +253,7 @@ export default {
this.form.accountType_label = e[0].label;
},
//返回方式
returnSelectConfirm(e) {
},
returnSelectConfirm(e) {},
//修改申请数量
valChange(e) {
@@ -261,7 +261,6 @@ export default {
},
//图片上传
onUploaded(lists) {
let images = [];
lists.forEach((item) => {
@@ -297,7 +296,6 @@ export default {
},
//检测提交参数
handleCheckParams() {
if (this.$u.test.isEmpty(this.form.reason)) {
this.$refs.uToast.show({ title: "请选择 退款原因", type: "error" });
return false;

View File

@@ -25,7 +25,16 @@
{{ comment.goodsName }}
</view>
<view class="goods-subtitle"></view>
<view class="commentStyle" v-if="comment.reply">
商家回复
<span class="addCommentSpan">{{ comment.reply }}</span>
<view class="img">
<!-- 循环出商家回复评价的图片 -->
<u-image width="140rpx" height="140rpx" v-if="comment.replyImage" v-for="(replyImg, replyIndex) in splitImg(comment.replyImage)" :src="replyImg" :key="replyIndex"
@click="preview(splitImg( comment.replyImage), index)">
</u-image>
</view>
</view>
</view>
</view>
</view>
@@ -49,6 +58,18 @@ export default {
this.comment = JSON.parse(decodeURIComponent(options.comment));
},
methods: {
/**
* 切割图像
*/
splitImg(val) {
if (val && val.split(",")) {
return val.split(",");
} else if (val) {
return val;
} else {
return false;
}
},
/**
* 点击图片放大或保存
*/
@@ -68,6 +89,38 @@ export default {
</script>
<style lang="scss" scoped>
.commentStyle {
margin-top: 16rpx;
padding: 14rpx 26rpx;
background: #f5f5f5;
border-radius: 6px;
font-size: 22rpx;
font-weight: 700;
text-align: left;
line-height: 40rpx;
}
.img {
display: flex;
flex-wrap: wrap;
/* height: 140rpx; */
overflow: hidden;
margin: 10rpx 0;
image {
width: 166rpx;
height: 166rpx;
margin: 0 15rpx 15rpx 0;
&:nth-of-type(3n + 0) {
margin: 0 0 15rpx 0;
}
}
}
.addCommentSpan {
color: $u-tips-color !important;
padding-left: 20rpx;
}
.memName {
font-size: 28rpx;
}

View File

@@ -39,9 +39,9 @@
<view class="btn-view u-flex u-row-between">
<view class="description">
<!-- 等待付款 -->
<text v-if="order.payStatus === 'PAID'">已付金额</text>
<text v-else>应付金额</text>
<text class="price">{{ order.flowPrice | unitPrice }}</text>
<div v-if="order.payStatus === 'PAID'">已付金额:</div>
<div v-else>应付金额:</div>
<div class="price">{{ order.flowPrice | unitPrice }}</div>
</view>
<view>
<!-- 全部 -->
@@ -623,9 +623,10 @@ page,
font-size: 26rpx;
.description {
display: flex;
color: #909399;
size: 25rpx;
size: 24rpx;
flex: 1;
.price {
color: $main-color;
}

View File

@@ -204,7 +204,7 @@
</view>
</u-popup>
<u-toast ref="uToast" />
<u-modal v-model="rogShow" :show-cancel-button="true" :content="'是否确认收货?'" @confirm="confirmRog"></u-modal>
<u-modal v-model="rogShow" :show-cancel-button="true" :content="'是否确认收货?'" :confirm-color="lightColor" @confirm="confirmRog"></u-modal>
<!-- 分享 -->
<shares v-if="shareFlage " :thumbnail="orderDetail.orderItems[0].image" :goodsName="orderDetail.orderItems[0].goodsName" @close="shareFlage = false" />
@@ -447,12 +447,13 @@ export default {
confirmRog() {
confirmReceipt(this.orderSn).then((res) => {
if (res.data.success) {
this.$refs.uToast.show({
uni.showToast({
title: "已确认收货",
type: "success",
duration: 2000,
icon: "none",
});
this.rogShow = false;
this.loadData(options.sn);
this.loadData(this.sn);
}
});
},
@@ -653,7 +654,7 @@ page,
}
}
}
.verificationCode{
.verificationCode {
font-weight: bold;
letter-spacing: 2rpx;
}