申请退换货页面及重构page.json
This commit is contained in:
@@ -1,30 +1,33 @@
|
||||
<template>
|
||||
<view>
|
||||
<oct-pay :price="price" :payNo="payNo" color="#34CE98" price-color="#e6576b" :payPlatform="platform"
|
||||
@onPay="pay" />
|
||||
<oct-pay :price="price" :coins="coins" :payNo="payNo" color="#34CE98" price-color="#e6576b"
|
||||
:payPlatform="platform" @onPay="pay" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
wxPAY,
|
||||
alPAY
|
||||
alPAY,
|
||||
dtPAY
|
||||
} from '@/apis/interfaces/pay'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
payNo: "",
|
||||
price: "",
|
||||
coins: "",
|
||||
platform: ['dtpay']
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.payNo = this.$Route.query.orderNo
|
||||
this.price = Number(this.$Route.query.price).toFixed(2)
|
||||
this.coins = this.$Route.query.coins
|
||||
},
|
||||
methods: {
|
||||
pay(e) {
|
||||
if (e.platform === 'dtpay') return this.getDTPAY(e.platform);
|
||||
pay(e) {
|
||||
if (e.platform === 'dtpay') return this.getDTPAY(e.platform);
|
||||
uni.getProvider({
|
||||
service: 'payment',
|
||||
success: res => {
|
||||
@@ -47,27 +50,59 @@
|
||||
}
|
||||
if (e.platform === 'wxpay') this.getWXPAY(e.platform)
|
||||
if (e.platform === 'alipay') this.getALPAY(e.platform)
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
getDTPAY(){
|
||||
console.log('dt 支付。。。')
|
||||
uni.showModal({
|
||||
title:'当前DT积分不足',
|
||||
content:'不能支付该订单,是否放弃当前支付',
|
||||
confirmText:'立即充值',
|
||||
confirmColor:"#34CE98",
|
||||
cancelText:'放弃支付',
|
||||
cancelColor:"#666666",
|
||||
success: (res) => {
|
||||
if(res.confirm){
|
||||
|
||||
}else{
|
||||
uni.navigateBack();
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getDTPAY() {
|
||||
console.log('dt 支付。。。')
|
||||
dtPAY(this.payNo).then(res => {
|
||||
console.log(res);
|
||||
// this.callPay(res, payType)
|
||||
if (res.state === 'warning') {
|
||||
uni.showModal({
|
||||
title: '当前DT积分不足',
|
||||
content: '不能支付该订单,是否放弃当前支付',
|
||||
confirmText: '立即充值',
|
||||
confirmColor: "#34CE98",
|
||||
cancelText: '放弃支付',
|
||||
cancelColor: "#666666",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.$Router.push({
|
||||
name: "AccountRecharge"
|
||||
})
|
||||
} else {
|
||||
uni.navigateBack();
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '支付成功',
|
||||
content: '该订单已支付成功',
|
||||
confirmText: '我的订单',
|
||||
confirmColor: "#34CE98",
|
||||
cancelText: '再逛逛',
|
||||
cancelColor: "#666666",
|
||||
success: (res) => {
|
||||
// if (res.confirm) {
|
||||
// this.$Router.push({
|
||||
// name: "AccountRecharge"
|
||||
// })
|
||||
// } else {
|
||||
// uni.navigateBack();
|
||||
// }
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: "none",
|
||||
mask: true,
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
getALPAY(payType) {
|
||||
alPAY(this.payNo).then(res => {
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
<view class="sales-item-right">
|
||||
<view class="sales-des">
|
||||
<text> 2022-06-22 前可申请</text>
|
||||
<text class="red"> 支持七天无理由退货</text>
|
||||
<text class="red"> (一次性包装破损不支持)</text>
|
||||
<text class="red">支持七天无理由退货</text>
|
||||
<text class="red">(一次性包装破损不支持)</text>
|
||||
</view>
|
||||
<uni-icons class="icon-right" size="16" type="right" />
|
||||
</view>
|
||||
@@ -51,6 +51,8 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class=" introduce"> 退换货说明 </view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -67,9 +69,9 @@
|
||||
"is_self": true
|
||||
},
|
||||
"is_self": true,
|
||||
"name": "铜锣烧蛋糕",
|
||||
"name": "铜锣烧蛋糕铜锣烧蛋糕铜锣烧",
|
||||
"description": "口感丰富,悠闲小食",
|
||||
"cover": "http://storage.zh.shangkelian.cn/images/2022/01/11/37ecc570f9d7ad929a693d24118a0311.png",
|
||||
"cover": "https://gl-ecological.oss-cn-zhangjiakou.aliyuncs.com/images/2022/06/08/0dcb67738c93b2e1c8a489d8ac39266e.png",
|
||||
"tags": [],
|
||||
"original_price": 155,
|
||||
"price": {
|
||||
@@ -85,15 +87,25 @@
|
||||
},
|
||||
methods: {
|
||||
goSales(type) {
|
||||
console.log(type);
|
||||
if(type === 'refund') return this.$Router.push({name:'Refund'}); ;
|
||||
this.$Router.push({name:'Exchange'});
|
||||
this.$Router.push({
|
||||
name: 'RefundOrExchangeApply',
|
||||
params:{
|
||||
type:type
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.introduce {
|
||||
padding-top: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #1890FF;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.afterSales {
|
||||
background-color: #f9f9f9;
|
||||
min-height: 100vh;
|
||||
@@ -126,7 +138,7 @@
|
||||
background-color: #Fff;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
border-bottom: solid 1rpx #eee;
|
||||
// border-bottom: solid 1rpx #eee;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
// padding: $padding;
|
||||
padding-left: $padding;
|
||||
@@ -149,43 +161,44 @@
|
||||
padding: $padding - 10;
|
||||
|
||||
&>.title {
|
||||
font-size: 28rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.sub_title {
|
||||
color: #a05f0c;
|
||||
font-size: 24rpx;
|
||||
padding-top: 4rpx;
|
||||
font-size: 26rpx;
|
||||
padding-top: 6rpx;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.price {
|
||||
padding-top: $padding/2;
|
||||
padding-top: 10rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
font-size: 36rpx;
|
||||
color: $text-price;
|
||||
|
||||
// @extend .ellipsis-1;
|
||||
.price-type {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
|
||||
text {
|
||||
margin-right: $margin/2;
|
||||
padding-left: 6rpx;
|
||||
font-size: 70%;
|
||||
padding-left: 10rpx;
|
||||
font-size: 60%;
|
||||
padding-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.kucun {
|
||||
@@ -196,6 +209,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.sales {
|
||||
@@ -221,7 +235,7 @@
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
font-size: 32rpx;
|
||||
font-weight: bolder;
|
||||
font-weight: bold;
|
||||
|
||||
.icon {
|
||||
width: 60rpx;
|
||||
@@ -238,13 +252,13 @@
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
|
||||
.sales-des {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
@@ -1,157 +1,173 @@
|
||||
<template>
|
||||
<view class="Refund">
|
||||
<view class="service-content">
|
||||
<view class="service"> 本次售后服务将由<span>DT生态平台</span>为您提供服务 </view>
|
||||
</view>
|
||||
<!-- 商品信息 -->
|
||||
<view class="goods-item" @click="onGoods(goodsInfo.goods_id)">
|
||||
<image :src="goodsInfo.cover" mode="aspectFill" class="good-img" />
|
||||
<view class="item--content">
|
||||
<view class="title">{{goodsInfo.name}}</view>
|
||||
<view class="sub_title">{{goodsInfo.shop.name}}</view>
|
||||
<view class="price">{{goodsInfo.price.price_min || '0'}}
|
||||
<view class="price-type">
|
||||
<text> DT积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="afterSales">
|
||||
<view class="service-content">
|
||||
<view class="service"> 本次售后服务将由<span>DT生态平台</span>为您提供服务 </view>
|
||||
</view>
|
||||
<!-- 商品信息 -->
|
||||
<view class="goods-item" @click="onGoods(goodsInfo.goods_id)">
|
||||
<image :src="goodsInfo.cover" mode="aspectFill" class="good-img" />
|
||||
<view class="item--content">
|
||||
<view class="title">{{goodsInfo.name}}</view>
|
||||
<view class="sub_title">{{goodsInfo.shop.name}}</view>
|
||||
<view class="price">{{goodsInfo.price.price_min || '0'}}
|
||||
<view class="price-type">
|
||||
<text> DT积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
goodsInfo: {
|
||||
"goods_id": 56,
|
||||
"shop": {
|
||||
"shop_id": 1,
|
||||
"name": "平台自营店铺",
|
||||
"cover": "",
|
||||
"is_self": true
|
||||
},
|
||||
"is_self": true,
|
||||
"name": "铜锣烧蛋糕",
|
||||
"description": "口感丰富,悠闲小食",
|
||||
"cover": "http://storage.zh.shangkelian.cn/images/2022/01/11/37ecc570f9d7ad929a693d24118a0311.png",
|
||||
"tags": [],
|
||||
"original_price": 155,
|
||||
"price": {
|
||||
"show": "100",
|
||||
"score": 1,
|
||||
"price_min": 100,
|
||||
"price_max": 100
|
||||
},
|
||||
"clicks": 0,
|
||||
"sales": 7394
|
||||
},
|
||||
return {
|
||||
goodsInfo: {
|
||||
"goods_id": 56,
|
||||
"shop": {
|
||||
"shop_id": 1,
|
||||
"name": "平台自营店铺",
|
||||
"cover": "",
|
||||
"is_self": true
|
||||
},
|
||||
"is_self": true,
|
||||
"name": "铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕",
|
||||
"description": "口感丰富,悠闲小食",
|
||||
"cover": "https://gl-ecological.oss-cn-zhangjiakou.aliyuncs.com/images/2022/06/08/0dcb67738c93b2e1c8a489d8ac39266e.png",
|
||||
"tags": [],
|
||||
"original_price": 155,
|
||||
"price": {
|
||||
"show": "100",
|
||||
"score": 1,
|
||||
"price_min": 100,
|
||||
"price_max": 100
|
||||
},
|
||||
"clicks": 0,
|
||||
"sales": 7394
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.service-content {
|
||||
background-color: #Fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service {
|
||||
font-size: 24rpx;
|
||||
margin: $margin;
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #f9f9f9;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
|
||||
span {
|
||||
color: $text-price;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item {
|
||||
background-color: #Fff;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
border-bottom: solid 1rpx #eee;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
// padding: $padding;
|
||||
padding-left: $padding;
|
||||
padding-top: $padding;
|
||||
padding-bottom: $padding;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
|
||||
.good-img {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.item--content {
|
||||
flex: 1;
|
||||
padding: $padding - 10;
|
||||
|
||||
&>.title {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.sub_title {
|
||||
color: #a05f0c;
|
||||
font-size: 24rpx;
|
||||
padding-top: 4rpx;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.price {
|
||||
padding-top: $padding/2;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: $text-price;
|
||||
|
||||
// @extend .ellipsis-1;
|
||||
.price-type {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
|
||||
text {
|
||||
margin-right: $margin/2;
|
||||
padding-left: 6rpx;
|
||||
font-size: 70%;
|
||||
}
|
||||
|
||||
.kucun {
|
||||
color: $text-gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
.introduce {
|
||||
padding-top: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #1890FF;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.afterSales {
|
||||
background-color: #f9f9f9;
|
||||
min-height: 100vh;
|
||||
|
||||
.service-content {
|
||||
background-color: #Fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service {
|
||||
font-size: 24rpx;
|
||||
margin: $margin;
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #f9f9f9;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
|
||||
span {
|
||||
color: $text-price;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item {
|
||||
background-color: #Fff;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
// border-bottom: solid 1rpx #eee;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
// padding: $padding;
|
||||
padding-left: $padding;
|
||||
padding-top: $padding;
|
||||
padding-bottom: $padding;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
|
||||
.good-img {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.item--content {
|
||||
flex: 1;
|
||||
padding: $padding - 10;
|
||||
|
||||
&>.title {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.sub_title {
|
||||
color: #a05f0c;
|
||||
font-size: 26rpx;
|
||||
padding-top: 6rpx;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.price {
|
||||
padding-top: 10rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: $text-price;
|
||||
|
||||
// @extend .ellipsis-1;
|
||||
.price-type {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
|
||||
text {
|
||||
margin-right: $margin/2;
|
||||
padding-left: 10rpx;
|
||||
font-size: 60%;
|
||||
padding-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.kucun {
|
||||
color: $text-gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
<template>
|
||||
<view class="Refund">
|
||||
<view class="service-content">
|
||||
<view class="service"> 本次售后服务将由<span>DT生态平台</span>为您提供服务 </view>
|
||||
</view>
|
||||
<!-- 商品信息 -->
|
||||
<view class="goods-item" @click="onGoods(goodsInfo.goods_id)">
|
||||
<image :src="goodsInfo.cover" mode="aspectFill" class="good-img" />
|
||||
<view class="item--content">
|
||||
<view class="title">{{goodsInfo.name}}</view>
|
||||
<view class="sub_title">{{goodsInfo.shop.name}}</view>
|
||||
<view class="price">{{goodsInfo.price.price_min || '0'}}
|
||||
<view class="price-type">
|
||||
<text> DT积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
goodsInfo: {
|
||||
"goods_id": 56,
|
||||
"shop": {
|
||||
"shop_id": 1,
|
||||
"name": "平台自营店铺",
|
||||
"cover": "",
|
||||
"is_self": true
|
||||
},
|
||||
"is_self": true,
|
||||
"name": "铜锣烧蛋糕",
|
||||
"description": "口感丰富,悠闲小食",
|
||||
"cover": "http://storage.zh.shangkelian.cn/images/2022/01/11/37ecc570f9d7ad929a693d24118a0311.png",
|
||||
"tags": [],
|
||||
"original_price": 155,
|
||||
"price": {
|
||||
"show": "100",
|
||||
"score": 1,
|
||||
"price_min": 100,
|
||||
"price_max": 100
|
||||
},
|
||||
"clicks": 0,
|
||||
"sales": 7394
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.Refund {
|
||||
min-height: 100vh;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.service-content {
|
||||
background-color: #Fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service {
|
||||
font-size: 24rpx;
|
||||
margin: $margin;
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #f9f9f9;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
|
||||
span {
|
||||
color: $text-price;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item {
|
||||
background-color: #Fff;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
border-bottom: solid 1rpx #eee;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
// padding: $padding;
|
||||
padding-left: $padding;
|
||||
padding-top: $padding;
|
||||
padding-bottom: $padding;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
|
||||
.good-img {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.item--content {
|
||||
flex: 1;
|
||||
padding: $padding - 10;
|
||||
|
||||
&>.title {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.sub_title {
|
||||
color: #a05f0c;
|
||||
font-size: 24rpx;
|
||||
padding-top: 4rpx;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.price {
|
||||
padding-top: $padding/2;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
line-height: 40rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: $text-price;
|
||||
|
||||
// @extend .ellipsis-1;
|
||||
.price-type {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
|
||||
text {
|
||||
margin-right: $margin/2;
|
||||
padding-left: 6rpx;
|
||||
font-size: 70%;
|
||||
}
|
||||
|
||||
.kucun {
|
||||
color: $text-gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
329
pages/refund/refund_or_exchange_apply.vue
Normal file
329
pages/refund/refund_or_exchange_apply.vue
Normal file
@@ -0,0 +1,329 @@
|
||||
<template>
|
||||
<view class="afterSales">
|
||||
<view class="service-content">
|
||||
<view class="service"> 本次售后服务将由<span>DT生态平台</span>为您提供服务 </view>
|
||||
</view>
|
||||
<!-- 商品信息 -->
|
||||
<view class="goods-item" @click="onGoods(goodsInfo.goods_id)">
|
||||
<image :src="goodsInfo.cover" mode="aspectFill" class="good-img" />
|
||||
<view class="item--content">
|
||||
<view class="title">{{goodsInfo.name}}</view>
|
||||
<view class="sub_title">{{goodsInfo.shop.name}}</view>
|
||||
<view class="price">{{goodsInfo.price.price_min || '0'}}
|
||||
<view class="price-type">
|
||||
<text> DT积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 申请数量 -->
|
||||
<view class="apply-number">
|
||||
<view class="apply-number-title">
|
||||
申请数量<text>(最多可申请3个)</text>
|
||||
</view>
|
||||
<uni-section title="设置最小值和最大值" subTitle="使用 min \ max 属性设置最大最小值" type="line" padding>
|
||||
<uni-number-box :min="1" :max="9" />
|
||||
</uni-section>
|
||||
</view>
|
||||
<!-- 退货方式 -->
|
||||
<view class="block info-box">
|
||||
<view class="info-item">
|
||||
<view class="label">申请原因</view>
|
||||
<view class="nowrap info-item-title" @click="changeReason">请选择申请原因
|
||||
<uni-icons class="icons" type="more-filled" color="grey" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<view class="label">商品状态</view>
|
||||
<view class="nowrap">
|
||||
<label class="radio ">
|
||||
<radio value="r1" color="#34CE98" checked="true" style="transform:scale(0.7)" />已破损
|
||||
</label>
|
||||
<label class="radio " style="padding-left: 20rpx;">
|
||||
<radio value="r2" color="#34CE98" style="transform:scale(0.7)" />未破损
|
||||
</label>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<view class="label">备注</view>
|
||||
<textarea class="info-textarea" v-model="remark" placeholder="请描述申请售后服务的具体原因"></textarea>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class=" applyBtn">申请{{this.type === 'refund'?'退货':'换货'}}</view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
remark: '',
|
||||
type: '',
|
||||
goodsInfo: {
|
||||
"goods_id": 56,
|
||||
"shop": {
|
||||
"shop_id": 1,
|
||||
"name": "平台自营店铺",
|
||||
"cover": "",
|
||||
"is_self": true
|
||||
},
|
||||
"is_self": true,
|
||||
"name": "铜锣烧蛋糕铜锣烧蛋糕铜锣烧蛋糕",
|
||||
"description": "口感丰富,悠闲小食",
|
||||
"cover": "https://gl-ecological.oss-cn-zhangjiakou.aliyuncs.com/images/2022/06/08/0dcb67738c93b2e1c8a489d8ac39266e.png",
|
||||
"tags": [],
|
||||
"original_price": 155,
|
||||
"price": {
|
||||
"show": "100",
|
||||
"score": 1,
|
||||
"price_min": 100,
|
||||
"price_max": 100
|
||||
},
|
||||
"clicks": 0,
|
||||
"sales": 7394
|
||||
},
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let type = this.$Route.query.type;
|
||||
let title = '';
|
||||
if(type === 'refund'){
|
||||
title = '退货申请'
|
||||
} else{
|
||||
title = '换货申请'
|
||||
}
|
||||
uni.setNavigationBarTitle({
|
||||
title:title
|
||||
})
|
||||
this.type = this.$Route.query.type;
|
||||
},
|
||||
methods: {
|
||||
changeReason() {
|
||||
uni.showActionSheet({
|
||||
title: '选择'+this.type === 'refund'?' 退货':'换货'+'原因',
|
||||
itemList: ['A', 'B', 'C'],
|
||||
success: function(res) {
|
||||
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
||||
},
|
||||
fail: function(res) {
|
||||
console.log(res.errMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.applyBtn {
|
||||
width: 70%;
|
||||
background-color: $main-color;
|
||||
border-radius: 50rpx;
|
||||
text-align: center;
|
||||
padding: 20rpx $padding;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
left: 10%;
|
||||
font-size: 32rpx;
|
||||
margin-top: $margin * 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.afterSales {
|
||||
background-color: #f9f9f9;
|
||||
min-height: 100vh;
|
||||
|
||||
.service-content {
|
||||
background-color: #Fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service {
|
||||
font-size: 24rpx;
|
||||
margin: $margin;
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #f9f9f9;
|
||||
display: inline-;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
|
||||
span {
|
||||
color: $text-price;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item {
|
||||
background-color: #Fff;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
// border-bottom: solid 1rpx #eee;
|
||||
|
||||
// padding: $padding;
|
||||
padding-left: $padding;
|
||||
padding-top: $padding;
|
||||
padding-bottom: $padding - 15;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
|
||||
.good-img {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.item--content {
|
||||
flex: 1;
|
||||
padding: $padding - 10;
|
||||
|
||||
&>.title {
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.sub_title {
|
||||
color: #a05f0c;
|
||||
font-size: 26rpx;
|
||||
padding-top: 6rpx;
|
||||
// @extend .ellipsis-1;
|
||||
}
|
||||
|
||||
&>.price {
|
||||
padding-top: 10rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: $text-price;
|
||||
|
||||
// @extend .ellipsis-1;
|
||||
.price-type {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
|
||||
text {
|
||||
margin-right: $margin/2;
|
||||
padding-left: 10rpx;
|
||||
font-size: 60%;
|
||||
padding-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.kucun {
|
||||
color: $text-gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.apply-number {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
padding: $padding;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
|
||||
.apply-number-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
|
||||
text {
|
||||
font-size: 26rpx;
|
||||
color: grey;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block {
|
||||
background: white;
|
||||
margin: $margin;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
// 订单信息
|
||||
.info-box {
|
||||
.info-item {
|
||||
position: relative;
|
||||
padding: 40rpx $padding 40rpx 200rpx;
|
||||
font-size: $title-size-m;
|
||||
min-height: 40rpx;
|
||||
text-align: right;
|
||||
|
||||
.radio {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
left: 40rpx;
|
||||
top: 40rpx;
|
||||
color: $text-gray;
|
||||
}
|
||||
|
||||
.info-textarea {
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
font-size: $title-size-m;
|
||||
}
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
left: $margin;
|
||||
right: $margin;
|
||||
content: " ";
|
||||
height: 1rpx;
|
||||
bottom: 0;
|
||||
background: $border-color;
|
||||
}
|
||||
|
||||
&:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.info-item-title {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
|
||||
.icons {
|
||||
padding-top: 2rpx;
|
||||
font-weight: normal;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -120,12 +120,14 @@
|
||||
address_id : this.address.address_id,
|
||||
remark : this.remark || ''
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
this.$store.commit('setAddress', {})
|
||||
this.$Router.replace({
|
||||
name: 'Pay',
|
||||
params: {
|
||||
orderNo: res.order_no,
|
||||
price : res.total
|
||||
price : res.total,
|
||||
coins : res.coins,
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -268,7 +270,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// footer
|
||||
|
||||
// footer
|
||||
.order-footer{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
<view class="sub-title">{{goods.description}}</view>
|
||||
<view class="box-flex">
|
||||
<view class="price">
|
||||
<text>¥</text>{{goods.price.show}}
|
||||
{{goods.price.show}}<text>DT积分</text>
|
||||
</view>
|
||||
<view class="sales">库存量{{goods.sales}}</view>
|
||||
<view class="sales" v-if="goods.skus">库存量{{goods.skus[0].stock}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 店铺信息 -->
|
||||
@@ -33,7 +33,7 @@
|
||||
<view> 商品质量:<span class='no'>5.0</span> <text style="padding-left: 20rpx;">服务态度:<span class='no'>5.0</span></text> </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shopInfo-title-right" >全部商品 {{goods.shop.count || 0}} <uni-icons type="right" color="grey"/></view>
|
||||
<view class="shopInfo-title-right" >全部商品 {{goods.shop.goods_count || 0}} <uni-icons type="right" color="grey"/></view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -193,8 +193,8 @@
|
||||
color: $text-price;
|
||||
font-size: $title-size + 10;
|
||||
text{
|
||||
font-size: 80%;
|
||||
margin-right: 10rpx;
|
||||
font-size: 60%;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
}
|
||||
.sales{
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<image :src="item.cover" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="news-title nowrap">{{item.name}}</view>
|
||||
<view class="news-price nowrap">¥{{item.price.price_min}}</view>
|
||||
<view class="news-price nowrap">{{item.price.price_min}} <text>DT积分</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -258,6 +258,10 @@
|
||||
font-weight: bold;
|
||||
color: $text-price;
|
||||
line-height: 40rpx;
|
||||
text{
|
||||
margin-left: 6rpx;
|
||||
font-size: 70%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user