退款提示

This commit is contained in:
zmj 2024-04-27 16:00:55 +08:00
parent b50c8c6b10
commit cc568d9124
1 changed files with 246 additions and 100 deletions

View File

@ -5,7 +5,7 @@
<view class="state" v-else-if="orderInfo.status == -1">审核未通过</view> <view class="state" v-else-if="orderInfo.status == -1">审核未通过</view>
<view class="state" v-else-if="orderInfo.status == 1">待退货</view> <view class="state" v-else-if="orderInfo.status == 1">待退货</view>
<view class="state" v-else-if="orderInfo.status == 2">待收货</view> <view class="state" v-else-if="orderInfo.status == 2">待收货</view>
<view class="state" v-else-if="orderInfo.status == 3">已退款</view> <view class="state" v-else-if="orderInfo.status == 3">已退款</view>
</view> </view>
<view v-if="orderInfo.refund_type == 2 && orderInfo.status > 0" class="orderingUser acea-row row-middle"> <view v-if="orderInfo.refund_type == 2 && orderInfo.status > 0" class="orderingUser acea-row row-middle">
<span class="iconfont icon-yonghu2"></span>{{ orderInfo.user && orderInfo.user.nickname }} <span class="iconfont icon-yonghu2"></span>{{ orderInfo.user && orderInfo.user.nickname }}
@ -16,7 +16,8 @@
</view> </view>
<view>{{ orderInfo.mer_delivery_address }}</view> <view>{{ orderInfo.mer_delivery_address }}</view>
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<button class="copy copy-data" :data-clipboard-text="'收货人姓名'+orderInfo.mer_delivery_user+'\n收货人电话'+ orderInfo.phone+'\n收货人地址'+orderInfo.mer_delivery_address">复制</button> <button class="copy copy-data"
:data-clipboard-text="'收货人姓名:'+orderInfo.mer_delivery_user+'\n收货人电话'+ orderInfo.phone+'\n收货人地址'+orderInfo.mer_delivery_address">复制</button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP --> <!-- #ifdef MP -->
<button class="copy" @tap="copyText">复制</button> <button class="copy" @tap="copyText">复制</button>
@ -26,7 +27,9 @@
<image :src="`${domain}/static/images/line.jpg`" /> <image :src="`${domain}/static/images/line.jpg`" />
</view> </view>
<view class="pos-order-goods"> <view class="pos-order-goods">
<navigator :url="`/pages/goods_details/index?id=${item.product.cart_info.product.product_id}`" hover-class="none" class="goods acea-row row-between-wrapper" v-for="(item, index) in orderInfo.refundProduct" :key="index"> <navigator :url="`/pages/goods_details/index?id=${item.product.cart_info.product.product_id}`"
hover-class="none" class="goods acea-row row-between-wrapper"
v-for="(item, index) in orderInfo.refundProduct" :key="index">
<view class="picTxt acea-row row-between-wrapper"> <view class="picTxt acea-row row-between-wrapper">
<view class="pictrue"> <view class="pictrue">
<image :src="item.product.cart_info.product.image || item.product.cart_info.product.image" /> <image :src="item.product.cart_info.product.image || item.product.cart_info.product.image" />
@ -71,7 +74,7 @@
</view> </view>
<view class="item acea-row row-between"> <view class="item acea-row row-between">
<view>退款原因</view> <view>退款原因</view>
<view class="conter">{{ orderInfo.refund_message }}</view> <view class="conter">{{ getRightText(orderInfo.refund_message) }}</view>
</view> </view>
<view class="item acea-row row-between"> <view class="item acea-row row-between">
<view>备注信息</view> <view>备注信息</view>
@ -90,26 +93,25 @@
<view class="footer acea-row row-right row-middle" v-if="goname != 'looks'"> <view class="footer acea-row row-right row-middle" v-if="goname != 'looks'">
<view class="more"></view> <view class="more"></view>
<view class="bnt cancel" @click="modify('1')">订单备注</view> <view class="bnt cancel" @click="modify('1')">订单备注</view>
<navigator class="bnt cancel" v-if="orderInfo.status == 2" :url="'/pages/users/goods_logistics/index?refundId='+orderInfo.refund_order_id+'&merId='+mer_id">查看物流</navigator> <navigator class="bnt cancel" v-if="orderInfo.status == 2"
:url="'/pages/users/goods_logistics/index?refundId='+orderInfo.refund_order_id+'&merId='+mer_id">查看物流
</navigator>
<view class="bnt delivery" v-if="orderInfo.status == 2" @click="confirmOrder">确认收货</view> <view class="bnt delivery" v-if="orderInfo.status == 2" @click="confirmOrder">确认收货</view>
</view> </view>
<view> <view>
<view class="priceChange" :class="change === true ? 'on' : ''"> <view class="priceChange" :class="change === true ? 'on' : ''">
<view class="priceTitle"> <view class="priceTitle">
订单备注 订单备注
<span class="iconfont icon-guanbi" @click="changeclose"></span> <span class="iconfont icon-guanbi" @click="changeclose"></span>
</view> </view>
<view class="listChange"> <view class="listChange">
<textarea <textarea placeholder="请填写备注信息..." v-model="orderInfo.mer_mark"></textarea>
placeholder="请填写备注信息..." </view>
v-model="orderInfo.mer_mark" <view class="modify" @click="save">
></textarea> 确认提交
</view> </view>
<view class="modify" @click="save"> </view>
确认提交 <view class="mask" @touchmove.prevent v-show="change === true"></view>
</view>
</view>
<view class="mask" @touchmove.prevent v-show="change === true"></view>
</view> </view>
</view> </view>
</template> </template>
@ -132,12 +134,15 @@
refundOrderReceive, refundOrderReceive,
setRefundMark setRefundMark
} from "@/api/admin"; } from "@/api/admin";
import { isMoney } from '@/utils/validate.js' import {
import { HTTP_REQUEST_URL } from '@/config/app'; isMoney
} from '@/utils/validate.js'
import {
HTTP_REQUEST_URL
} from '@/config/app';
export default { export default {
name: "AdminOrder", name: "AdminOrder",
components: { components: {},
},
props: {}, props: {},
data: function() { data: function() {
return { return {
@ -155,7 +160,7 @@
payType: "", payType: "",
types: "", types: "",
clickNum: 1, clickNum: 1,
goname:'', goname: '',
domain: HTTP_REQUEST_URL, domain: HTTP_REQUEST_URL,
}; };
}, },
@ -179,19 +184,27 @@
var clipboard = new ClipboardJS('.copy-data'); var clipboard = new ClipboardJS('.copy-data');
clipboard.on('success', function(e) { clipboard.on('success', function(e) {
self.$util.Tips({ self.$util.Tips({
title:'复制成功' title: '复制成功'
}) })
}); });
clipboard.on('error', function(e) { clipboard.on('error', function(e) {
self.$util.Tips({ self.$util.Tips({
title:'复制失败' title: '复制失败'
}) })
}); });
}); });
// #endif // #endif
}, },
methods: { methods: {
getRightText(str) {
const index = str.indexOf("@");
if (index !== -1) {
return str.substring(index + 1);
} else {
return str
}
},
more: function() { more: function() {
this.order = !this.order; this.order = !this.order;
}, },
@ -203,7 +216,7 @@
this.change = false; this.change = false;
}, },
// //
loookImg(item,index){ loookImg(item, index) {
uni.previewImage({ uni.previewImage({
urls: this.orderInfo.pics, urls: this.orderInfo.pics,
current: this.orderInfo.pics[index] current: this.orderInfo.pics[index]
@ -216,38 +229,37 @@
urls: list urls: list
}); });
}, },
copyText: function (e) { copyText: function(e) {
// var copy = e.currentTarget.dataset.copy; //data-copy // var copy = e.currentTarget.dataset.copy; //data-copy
let arr = [ let arr = [{
{ name: "收货人姓名",
name: "收货人姓名", value: this.orderInfo.real_name
value: this.orderInfo.real_name },
}, {
{ name: "收货人电话",
name: "收货人电话", value: this.orderInfo.user_phone
value: this.orderInfo.user_phone },
}, {
{ name: "收货人地址",
name: "收货人地址", value: this.orderInfo.user_address
value: this.orderInfo.user_address }
} ]
] wx.setClipboardData({
wx.setClipboardData({ data: `${arr.map(item =>`${item.name}: ${item.value}`).join("\n")}`,
data: `${arr.map(item =>`${item.name}: ${item.value}`).join("\n")}`, success: function(res) {
success: function (res) { wx.getClipboardData({
wx.getClipboardData({ success: function(res) {
success: function (res) { wx.showToast({
wx.showToast({ title: '复制成功'
title: '复制成功' })
}) }
} })
}) }
} })
})
}, },
getIndex: function() { getIndex: function() {
let that = this; let that = this;
getRefundOrderDetail(that.mer_id,that.order_id).then( getRefundOrderDetail(that.mer_id, that.order_id).then(
res => { res => {
that.orderInfo = res.data; that.orderInfo = res.data;
}, },
@ -269,7 +281,7 @@
content: '为保障权益,请收到货确认无误后,再确认收货', content: '为保障权益,请收到货确认无误后,再确认收货',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
refundOrderReceive(that.mer_id,that.orderInfo.refund_order_id).then(res => { refundOrderReceive(that.mer_id, that.orderInfo.refund_order_id).then(res => {
return that.$util.Tips({ return that.$util.Tips({
title: '操作成功', title: '操作成功',
icon: 'success' icon: 'success'
@ -286,14 +298,16 @@
}) })
}, },
// //
save(){ save() {
let that = this; let that = this;
if (!that.orderInfo.mer_mark) { if (!that.orderInfo.mer_mark) {
return this.$util.Tips({ return this.$util.Tips({
title: '请输入备注' title: '请输入备注'
}) })
} }
setRefundMark(that.mer_id,that.orderInfo.refund_order_id,{ mer_mark: that.orderInfo.mer_mark }).then( setRefundMark(that.mer_id, that.orderInfo.refund_order_id, {
mer_mark: that.orderInfo.mer_mark
}).then(
res => { res => {
that.change = false; that.change = false;
this.$util.Tips({ this.$util.Tips({
@ -318,7 +332,7 @@
} }
}); });
}, },
copyData(id){ copyData(id) {
uni.setClipboardData({ uni.setClipboardData({
data: id, data: id,
success: function() { success: function() {
@ -348,36 +362,44 @@
background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%); background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%); background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
} }
.pos-order-details .header .state { .pos-order-details .header .state {
font-size: 36upx; font-size: 36upx;
color: #fff; color: #fff;
} }
.pos-order-details .header .data { .pos-order-details .header .data {
margin-left: 35upx; margin-left: 35upx;
font-size: 28upx; font-size: 28upx;
} }
.pos-order-details .header .data .order-num { .pos-order-details .header .data .order-num {
font-size: 30upx; font-size: 30upx;
margin-bottom: 8upx; margin-bottom: 8upx;
} }
.pos-order-details .remarks { .pos-order-details .remarks {
width: 100%; width: 100%;
height: 86upx; height: 86upx;
background-color: #fff; background-color: #fff;
padding: 0 30upx; padding: 0 30upx;
} }
.pos-order-details .remarks .iconfont { .pos-order-details .remarks .iconfont {
font-size: 40upx; font-size: 40upx;
color: #2a7efb; color: #2a7efb;
} }
.pos-order-details .remarks input { .pos-order-details .remarks input {
width: 630upx; width: 630upx;
height: 100%; height: 100%;
font-size: 30upx; font-size: 30upx;
} }
.pos-order-details .remarks input::placeholder { .pos-order-details .remarks input::placeholder {
color: #666; color: #666;
} }
.pos-order-details .orderingUser { .pos-order-details .orderingUser {
font-size: 26upx; font-size: 26upx;
color: #282828; color: #282828;
@ -387,17 +409,21 @@
margin-top: 16upx; margin-top: 16upx;
border-bottom: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
} }
.pos-order-details .orderingUser .iconfont { .pos-order-details .orderingUser .iconfont {
font-size: 40upx; font-size: 40upx;
color: #2a7efb; color: #2a7efb;
margin-right: 15upx; margin-right: 15upx;
} }
.pos-order-details .address { .pos-order-details .address {
margin-top: 0; margin-top: 0;
} }
.pos-order-details .pos-order-goods { .pos-order-details .pos-order-goods {
margin-top: 17upx; margin-top: 17upx;
} }
.pos-order-details .footer .more { .pos-order-details .footer .more {
font-size: 27upx; font-size: 27upx;
color: #aaa; color: #aaa;
@ -408,11 +434,13 @@
margin-right: 25upx; margin-right: 25upx;
position: relative; position: relative;
} }
.pos-order-details .footer .delivery { .pos-order-details .footer .delivery {
background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%); background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%); background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%); background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
} }
.pos-order-details .footer .more .order .arrow { .pos-order-details .footer .more .order .arrow {
width: 0; width: 0;
height: 0; height: 0;
@ -423,6 +451,7 @@
left: 15upx; left: 15upx;
bottom: -18upx; bottom: -18upx;
} }
.pos-order-details .footer .more .order .arrow:before { .pos-order-details .footer .more .order .arrow:before {
content: ''; content: '';
width: 0; width: 0;
@ -434,6 +463,7 @@
left: -10upx; left: -10upx;
bottom: 0; bottom: 0;
} }
.pos-order-details .footer .more .order { .pos-order-details .footer .more .order {
width: 200upx; width: 200upx;
background-color: #fff; background-color: #fff;
@ -443,68 +473,84 @@
top: -200upx; top: -200upx;
z-index: 9; z-index: 9;
} }
.pos-order-details .footer .more .order .item { .pos-order-details .footer .more .order .item {
height: 77upx; height: 77upx;
line-height: 77upx; line-height: 77upx;
} }
.pos-order-details .footer .more .order .item~.item { .pos-order-details .footer .more .order .item~.item {
border-top: 1px solid #f5f5f5; border-top: 1px solid #f5f5f5;
} }
.pos-order-details .footer .more .moreName { .pos-order-details .footer .more .moreName {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.order-details .header { .order-details .header {
padding: 0 30upx; padding: 0 30upx;
height: 150upx; height: 150upx;
} }
.order-details .header.on { .order-details .header.on {
background-color: #666 !important; background-color: #666 !important;
} }
.order-details .header .pictrue { .order-details .header .pictrue {
width: 110upx; width: 110upx;
height: 110upx; height: 110upx;
} }
.order-details .header .pictrue image { .order-details .header .pictrue image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.order-details .header .data { .order-details .header .data {
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
font-size: 24upx; font-size: 24upx;
margin-left: 27upx; margin-left: 27upx;
} }
.order-details .header.on .data { .order-details .header.on .data {
margin-left: 0; margin-left: 0;
} }
.order-details .header .data .state { .order-details .header .data .state {
font-size: 30upx; font-size: 30upx;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
margin-bottom: 7upx; margin-bottom: 7upx;
} }
.order-details .nav { .order-details .nav {
background-color: #fff; background-color: #fff;
font-size: 26upx; font-size: 26upx;
color: #282828; color: #282828;
padding: 25upx 0; padding: 25upx 0;
} }
.order-details .nav .navCon { .order-details .nav .navCon {
padding: 0 40upx; padding: 0 40upx;
} }
.order-details .nav .navCon .on { .order-details .nav .navCon .on {
font-weight: bold; font-weight: bold;
color: #e93323; color: #e93323;
} }
.order-details .nav .progress { .order-details .nav .progress {
padding: 0 65upx; padding: 0 65upx;
margin-top: 10upx; margin-top: 10upx;
} }
.order-details .nav .progress .line { .order-details .nav .progress .line {
width: 100upx; width: 100upx;
height: 2upx; height: 2upx;
background-color: #939390; background-color: #939390;
} }
.order-details .nav .progress .iconfont { .order-details .nav .progress .iconfont {
font-size: 25upx; font-size: 25upx;
color: #939390; color: #939390;
@ -515,6 +561,7 @@
text-align: center; text-align: center;
margin-right: 0 !important; margin-right: 0 !important;
} }
.order-details .address { .order-details .address {
font-size: 26upx; font-size: 26upx;
color: #868686; color: #868686;
@ -522,52 +569,64 @@
padding: 25upx 30upx 30upx 30upx; padding: 25upx 30upx 30upx 30upx;
position: relative; position: relative;
} }
.order-details .address .name { .order-details .address .name {
font-size: 30upx; font-size: 30upx;
color: #282828; color: #282828;
margin-bottom: 0.1rem; margin-bottom: 0.1rem;
} }
.order-details .address .name .phone { .order-details .address .name .phone {
margin-left: 40upx; margin-left: 40upx;
} }
.order-details .line { .order-details .line {
width: 100%; width: 100%;
height: 3upx; height: 3upx;
} }
.order-details .line image { .order-details .line image {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block; display: block;
} }
.order-details .wrapper { .order-details .wrapper {
background-color: #fff; background-color: #fff;
margin-top: 12upx; margin-top: 12upx;
padding: 30upx; padding: 30upx;
} }
.order-details .wrapper .item { .order-details .wrapper .item {
font-size: 28upx; font-size: 28upx;
color: #282828; color: #282828;
} }
.order-details .wrapper .item~.item { .order-details .wrapper .item~.item {
margin-top: 20upx; margin-top: 20upx;
} }
.order-details .wrapper .item .conter { .order-details .wrapper .item .conter {
color: #868686; color: #868686;
text-align: right; text-align: right;
} }
.order-details .wrapper .item .virtual_image { .order-details .wrapper .item .virtual_image {
// text-align: left; // text-align: left;
margin-left: 50rpx; margin-left: 50rpx;
} }
.order-details .wrapper .item .virtual_image .picture{
.order-details .wrapper .item .virtual_image .picture {
width: 106rpx; width: 106rpx;
height: 106rpx; height: 106rpx;
border-radius: 8rpx; border-radius: 8rpx;
margin-right: 10rpx; margin-right: 10rpx;
&:last-child{
&:last-child {
margin-right: 0; margin-right: 0;
} }
} }
.order-details .wrapper .item .conter .copy { .order-details .wrapper .item .conter .copy {
font-size: 20rpx; font-size: 20rpx;
color: #868686; color: #868686;
@ -581,7 +640,8 @@
justify-content: center; justify-content: center;
border-radius: 16rpx; border-radius: 16rpx;
} }
.address .copy{
.address .copy {
font-size: 20rpx; font-size: 20rpx;
color: #868686; color: #868686;
border-radius: 3rpx; border-radius: 3rpx;
@ -594,17 +654,20 @@
border-radius: 16rpx; border-radius: 16rpx;
position: absolute; position: absolute;
right: 30rpx; right: 30rpx;
top: 20rpx; top: 20rpx;
} }
.order-details .wrapper .actualPay { .order-details .wrapper .actualPay {
border-top: 1upx solid #eee; border-top: 1upx solid #eee;
margin-top: 30upx; margin-top: 30upx;
padding-top: 30upx; padding-top: 30upx;
} }
.order-details .wrapper .actualPay .money { .order-details .wrapper .actualPay .money {
font-weight: bold; font-weight: bold;
font-size: 30upx; font-size: 30upx;
} }
.order-details .footer { .order-details .footer {
width: 100%; width: 100%;
height: 100upx; height: 100upx;
@ -615,6 +678,7 @@
padding: 0 30upx; padding: 0 30upx;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.order-details .footer .bnt { .order-details .footer .bnt {
width: auto; width: auto;
height: 60upx; height: 60upx;
@ -626,52 +690,65 @@
font-size: 27upx; font-size: 27upx;
padding: 0 3%; padding: 0 3%;
} }
.order-details .footer .bnt.cancel { .order-details .footer .bnt.cancel {
color: #aaa; color: #aaa;
border: 1px solid #ddd; border: 1px solid #ddd;
} }
.order-details .footer .bnt.default { .order-details .footer .bnt.default {
color: #444; color: #444;
border: 1px solid #444; border: 1px solid #444;
} }
.order-details .footer .bnt~.bnt { .order-details .footer .bnt~.bnt {
margin-left: 18upx; margin-left: 18upx;
} }
.pos-order-goods { .pos-order-goods {
padding: 0 30upx; padding: 0 30upx;
background-color: #fff; background-color: #fff;
} }
.pos-order-goods .goods { .pos-order-goods .goods {
height: 185upx; height: 185upx;
position: relative; position: relative;
} }
.pos-order-goods .goods~.goods { .pos-order-goods .goods~.goods {
border-top: 1px dashed #e5e5e5; border-top: 1px dashed #e5e5e5;
} }
.pos-order-goods .goods .picTxt { .pos-order-goods .goods .picTxt {
width: 515upx; width: 515upx;
} }
.pos-order-goods .goods .picTxt .pictrue { .pos-order-goods .goods .picTxt .pictrue {
width: 130upx; width: 130upx;
height: 130upx; height: 130upx;
} }
.pos-order-goods .goods .picTxt .pictrue image { .pos-order-goods .goods .picTxt .pictrue image {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 6upx; border-radius: 6upx;
} }
.pos-order-goods .goods .picTxt .text { .pos-order-goods .goods .picTxt .text {
width: 365upx; width: 365upx;
height: 130upx; height: 130upx;
} }
.pos-order-goods .goods .picTxt .text .info { .pos-order-goods .goods .picTxt .text .info {
font-size: 28upx; font-size: 28upx;
color: #282828; color: #282828;
} }
.pos-order-goods .goods .picTxt .text .attr { .pos-order-goods .goods .picTxt .text .attr {
font-size: 24upx; font-size: 24upx;
color: #999; color: #999;
} }
.pos-order-goods .goods .money { .pos-order-goods .goods .money {
width: 164upx; width: 164upx;
text-align: right; text-align: right;
@ -681,48 +758,117 @@
right: 0; right: 0;
color: #999999; color: #999999;
} }
.pos-order-goods .goods .money .refund_num{
.pos-order-goods .goods .money .refund_num {
display: inline-block; display: inline-block;
margin-left: 10rpx; margin-left: 10rpx;
} }
.pos-order-goods .goods .x-money { .pos-order-goods .goods .x-money {
color: #FF9600; color: #FF9600;
} }
.priceChange{position:fixed;width:580upx;background-color:#fff;border-radius:10upx;top:50%;left:50%;margin-left:-290upx;margin-top:-335upx;z-index:666;transition:all 0.3s ease-in-out 0s;transform: scale(0);opacity:0;}
.priceChange.on{opacity:1;transform: scale(1);} .priceChange {
.priceChange .priceTitle{background:url("~@/static/images/pricetitle.jpg") no-repeat;background-size:100% 100%;width:100%;height:160upx;border-radius:10upx 10upx 0 0;text-align:center;font-size:40upx;color:#fff;line-height:160upx;position:relative;} position: fixed;
.priceChange .priceTitle .iconfont{position:absolute;font-size:40upx;right:26upx;top:23upx;width:40upx;height:40upx;line-height:40upx;} width: 580upx;
.priceChange .listChange{padding:0 40upx;} background-color: #fff;
.priceChange .listChange textarea{box-sizing: border-box;} border-radius: 10upx;
.priceChange .listChange .item{height:103upx;border-bottom:1px solid #e3e3e3;font-size:32upx;color:#333;} top: 50%;
.priceChange .modify{font-size:32upx;color:#fff;width:490upx;height:90upx;text-align:center;line-height:90upx;border-radius:45upx;background-color:#2291f8;margin:53upx auto;} left: 50%;
.priceChange .listChange textarea { margin-left: -290upx;
border: 1px solid #eee; margin-top: -335upx;
width: 100%; z-index: 666;
height: 200upx; transition: all 0.3s ease-in-out 0s;
margin-top: 50upx; transform: scale(0);
border-radius: 10upx; opacity: 0;
color: #333; }
padding: 20upx;
} .priceChange.on {
.upload-img{ opacity: 1;
display: flex; transform: scale(1);
flex-wrap: wrap; }
margin-top: 20rpx;
.img-item{ .priceChange .priceTitle {
background: url("~@/static/images/pricetitle.jpg") no-repeat;
background-size: 100% 100%;
width: 100%;
height: 160upx;
border-radius: 10upx 10upx 0 0;
text-align: center;
font-size: 40upx;
color: #fff;
line-height: 160upx;
position: relative; position: relative;
width: 156rpx; }
height: 156rpx;
margin-right: 23rpx; .priceChange .priceTitle .iconfont {
position: absolute;
font-size: 40upx;
right: 26upx;
top: 23upx;
width: 40upx;
height: 40upx;
line-height: 40upx;
}
.priceChange .listChange {
padding: 0 40upx;
}
.priceChange .listChange textarea {
box-sizing: border-box;
}
.priceChange .listChange .item {
height: 103upx;
border-bottom: 1px solid #e3e3e3;
font-size: 32upx;
color: #333;
}
.priceChange .modify {
font-size: 32upx;
color: #fff;
width: 490upx;
height: 90upx;
text-align: center;
line-height: 90upx;
border-radius: 45upx;
background-color: #2291f8;
margin: 53upx auto;
}
.priceChange .listChange textarea {
border: 1px solid #eee;
width: 100%;
height: 200upx;
margin-top: 50upx;
border-radius: 10upx;
color: #333;
padding: 20upx;
}
.upload-img {
display: flex;
flex-wrap: wrap;
margin-top: 20rpx; margin-top: 20rpx;
&:nth-child(4n){
margin-right: 0; .img-item {
} position: relative;
image{
width: 156rpx; width: 156rpx;
height: 156rpx; height: 156rpx;
border-radius: 8rpx; margin-right: 23rpx;
margin-top: 20rpx;
&:nth-child(4n) {
margin-right: 0;
}
image {
width: 156rpx;
height: 156rpx;
border-radius: 8rpx;
}
} }
} }
} </style>
</style>