|
|
@@ -0,0 +1,203 @@
|
|
|
+<config>
|
|
|
+{
|
|
|
+ "navigationBarTitleText": "申请退款",
|
|
|
+ "navigationBarBackgroundColor": "#ffffff",
|
|
|
+}
|
|
|
+</config>
|
|
|
+<template>
|
|
|
+ <div class="apply">
|
|
|
+ <van-cell-group :border="false">
|
|
|
+ <van-field
|
|
|
+ label="退款原因"
|
|
|
+ :value="reason"
|
|
|
+ placeholder="请选择退款原因"
|
|
|
+ custom-style="padding-top:23px;height:88px;"
|
|
|
+ is-link
|
|
|
+ readonly
|
|
|
+ @click="show = true"
|
|
|
+ >
|
|
|
+ </van-field>
|
|
|
+ <van-field
|
|
|
+ label="退款金额"
|
|
|
+ :value="price"
|
|
|
+ @input="price = $event.detail"
|
|
|
+ custom-style="height:75px;"
|
|
|
+ placeholder="¥970"
|
|
|
+ >
|
|
|
+ </van-field>
|
|
|
+ <van-field
|
|
|
+ class="textarea"
|
|
|
+ label="补充说明"
|
|
|
+ :value="message"
|
|
|
+ @input="message = $event.detail"
|
|
|
+ custom-style="height:70px;"
|
|
|
+ rows="1"
|
|
|
+ autosize
|
|
|
+ type="textarea"
|
|
|
+ placeholder="选填"
|
|
|
+ />
|
|
|
+ <div class="field">
|
|
|
+ <p>退款说明</p>
|
|
|
+ <span>申请成功后,退款将在72小时内按照原支付渠道返回,请注意查收</span>
|
|
|
+ </div>
|
|
|
+ </van-cell-group>
|
|
|
+
|
|
|
+ <div class="btn-list">
|
|
|
+ <van-button :color="$colors.prim" :disabled="!canSubmit" block @click="submit">提交</van-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <van-action-sheet
|
|
|
+ :show="show"
|
|
|
+ description="退款原因"
|
|
|
+ cancel-text="取消"
|
|
|
+ @overlay="overlay = false"
|
|
|
+ @click="cancel"
|
|
|
+ :actions="actions"
|
|
|
+ @select="select"
|
|
|
+ >
|
|
|
+ </van-action-sheet>
|
|
|
+ <van-dialog
|
|
|
+ use-slot
|
|
|
+ :show="showdialog"
|
|
|
+ show-cancel-button
|
|
|
+ custom-style="width:260px;height:270px;"
|
|
|
+ :message-Align="center"
|
|
|
+ confirm-button-open-type="getUserInfo"
|
|
|
+ >
|
|
|
+ <div class="box">
|
|
|
+ <img
|
|
|
+ style="width:60px;height:60px;margin-left:47px;"
|
|
|
+ src="../static/imgs/popup_icon_fail_colour@3x.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div class="box-size">商品已开箱,暂无法取消 申请退款请联系客服</div>
|
|
|
+ <div class="box-butm">
|
|
|
+ <p>客服电话:</p>
|
|
|
+ <span>025-5644356</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'apply',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ reason: '',
|
|
|
+ message: '',
|
|
|
+ price: '',
|
|
|
+ show: false,
|
|
|
+ max: 100,
|
|
|
+ showdialog: false,
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ name: '地址/电话等信息填写错误'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '多拍/错拍/不想要'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '未按约定时间发货'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '其他'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ canSubmit() {
|
|
|
+ if (this.reason && this.price) {
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {
|
|
|
+ select(action) {
|
|
|
+ this.reason = action.detail.name;
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
+ submit() {
|
|
|
+ if (!this.reason) {
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: '退货原因不能为空'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.price) {
|
|
|
+ wx.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: '退货价格不能为空'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log(this.reason);
|
|
|
+ console.log(this.price);
|
|
|
+ console.log(this.message);
|
|
|
+ wx.showToast({
|
|
|
+ title: '提交成功'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ cancel() {
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
+ dialog() {
|
|
|
+ console.log(333);
|
|
|
+ this.showdialog = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="less" scoped>
|
|
|
+.field {
|
|
|
+ .flex();
|
|
|
+ padding: 17px 17px;
|
|
|
+ background: #f5f7fa;
|
|
|
+ height: 36px;
|
|
|
+ p {
|
|
|
+ width: 146px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #646566;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #939599;
|
|
|
+ line-height: 18px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.box {
|
|
|
+ margin: 30px 53px;
|
|
|
+ .box-size {
|
|
|
+ width: 154px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 20px;
|
|
|
+ margin: 20px 0 15px 0;
|
|
|
+ }
|
|
|
+ .box-butm {
|
|
|
+ .flex();
|
|
|
+ p {
|
|
|
+ font-size: 13px;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ font-size: 13px;
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.van-cell {
|
|
|
+ line-height: 40px;
|
|
|
+}
|
|
|
+.btn-list {
|
|
|
+ margin: 40px;
|
|
|
+}
|
|
|
+</style>
|