订单详情支持操作并支持使用指南,订单售后客服展示优化

master
gongfuxiang 2026-01-13 21:09:45 +08:00
parent e10d95002d
commit 5e029d3c8d
7 changed files with 457 additions and 74 deletions

View File

@ -1607,7 +1607,8 @@
"ld10pm": "Please fill in the courier tracking number",
"87tuff": "Describe the reason",
"6uygft": "Describe the reason in a format of 1-230 characters",
"t67iug": "You have applied for platform intervention in mediation!"
"t67iug": "You have applied for platform intervention in mediation!",
"sdsfgg": "Apply for platform intervention"
}
},
"ask-comments": {

View File

@ -1597,7 +1597,8 @@
"ld10pm": "请填写快递单号",
"87tuff": "描述原因",
"6uygft": "描述原因格式1~230个字符",
"t67iug": "您已申请平台介入调解!"
"t67iug": "您已申请平台介入调解!",
"sdsfgg": "申请平台介入"
}
},
"ask-comments": {

View File

@ -3,7 +3,7 @@
<view class="padding-main">
<view v-if="detail != null">
<form @submit="form_submit" class="form-container">
<view v-for="(item, index) in detail.items" :key="index" class="form-gorup oh">
<view v-for="(item, index) in detail.items" :key="index" class="form-gorup oh border-radius-main spacing-mb">
<view class="oh">
<view :data-value="item.goods_url" @tap="url_event" class="cp">
<image class="goods-image fl radius br margin-right-sm" :src="item.images" mode="aspectFill"></image>
@ -31,7 +31,7 @@
</view>
</view>
<view class="form-gorup anonymous">
<view class="form-gorup border-radius-main spacing-mb">
<switch class="va-m" name="is_anonymous" @change="anonymous_event"></switch>
<text class="cr-base va-m">{{$t('user-order-comments.user-order-comments.uboc44')}}</text>
<text class="fr cr-grey margin-top-sm">{{ anonymous_msg_list[anonymous_value] }}</text>

View File

@ -34,6 +34,18 @@
.goods-image {
width: 160rpx;
height: 160rpx;
}
/**
* 使
*/
.use-guide-switch-scroll .item {
width: 240rpx;
}
.use-guide-switch-scroll .item .icon-content,
.use-guide-switch-scroll .item .icon {
width: 60rpx;
height: 60rpx;
}
/*
@ -73,11 +85,4 @@
}
.order-item-goods-info-container .scroll-content {
height: 70vh;
}
/**
* 使
*/
.order-item-goods-use-guide-container .scroll-content {
max-height: 70vh;
}
}

View File

@ -2,8 +2,62 @@
<view :class="theme_view">
<block v-if="detail != null">
<view class="padding-horizontal-main padding-top-main">
<!-- 基础状态和操作 -->
<view class="bg-white padding-main border-radius-main tc spacing-mb">
<view class="padding-vertical-xl">
<!-- 订单状态0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭 -->
<block v-if="detail.status == 5 || detail.status == 6">
<view class="dis-inline-block va-m">
<iconfont name="icon-sigh-o" size="68rpx" propClass="cr-red"></iconfont>
</view>
<text class="text-size-xl margin-top-sm va-m margin-left-sm cr-red">{{detail.status_name}}</text>
</block>
<block v-else-if="detail.status == 4">
<view class="dis-inline-block va-m">
<iconfont name="icon-enable" size="68rpx" propClass="cr-green"></iconfont>
</view>
<text class="text-size-xl margin-top-sm va-m margin-left-sm cr-green">{{detail.status_name}}</text>
</block>
<block v-else-if="detail.status == 3">
<view class="dis-inline-block va-m">
<iconfont name="icon-inventroy-manage" size="68rpx" propClass="cr-blue"></iconfont>
</view>
<text class="text-size-xl margin-top-sm va-m margin-left-sm cr-blue">{{detail.status_name}}</text>
</block>
<block v-else-if="detail.status == 2">
<view class="dis-inline-block va-m">
<iconfont name="icon-wait-receive-delivery" size="68rpx" propClass="cr-yellow"></iconfont>
</view>
<text class="text-size-xl margin-top-sm va-m margin-left-sm cr-yellow">{{detail.status_name}}</text>
</block>
<block v-else>
<view class="dis-inline-block va-m">
<iconfont name="icon-wait-payment" size="68rpx"></iconfont>
</view>
<text class="text-size-xl margin-top-sm va-m margin-left-sm">{{detail.status_name}}</text>
</block>
</view>
<view class="item-operation margin-top-sm">
<button v-if="detail.operate_data.is_cancel == 1" class="round bg-white cr-yellow br-yellow margin-bottom-main" type="default" size="mini" @tap="cancel_event" hover-class="none">{{$t('common.cancel')}}</button>
<button v-if="detail.operate_data.is_pay == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="pay_event" hover-class="none">{{$t('order.order.1i873j')}}</button>
<button v-if="detail.operate_data.is_collect == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="collect_event" hover-class="none">{{$t('orderallot-list.orderallot-list.w2w2w4')}}</button>
<button v-if="(detail.plugins_express_data || 0) == 1 && (detail.express_data || null) != null" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/express/detail/detail?oid=' + detail.id" hover-class="none">{{$t('orderallot-list.orderallot-list.w2t242')}}</button>
<button v-if="(detail.plugins_delivery_data || 0) > 0" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/delivery/logistics/logistics?id=' + detail.plugins_delivery_data" hover-class="none">{{$t('orderallot-list.orderallot-list.w2t242')}}</button>
<button v-if="detail.operate_data.is_comments == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/user-order-comments/user-order-comments?id='+detail.id" hover-class="none">{{$t('user-order.user-order.twc3r7')}}</button>
<button v-if="detail.status == 2 && detail.order_model != 2" class="round cr-base br margin-bottom-main" type="default" size="mini" @tap="rush_event" hover-class="none">{{$t('user-order.user-order.lp1v28')}}</button>
<button v-if="detail.operate_data.is_delete == 1" class="round bg-white cr-red br-red margin-bottom-main" type="default" size="mini" @tap="delete_event" hover-class="none">{{$t('common.del')}}</button>
<button v-if="(detail.plugins_is_order_allot_button || 0) == 1" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/realstore/orderallot-list/orderallot-list?oid=' + detail.id" hover-class="none">{{$t('user-order.user-order.ht65c9')}}</button>
<button v-if="(detail.plugins_is_order_batch_button || 0) == 1" class="round bg-white cr-blue br-blue margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/realstore/batchorder-list/batchorder-list?oid=' + detail.id" hover-class="none">{{$t('orderallot-list.orderallot-list.6m73j2')}}</button>
<button v-if="(detail.plugins_is_order_frequencycard_button || 0) == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/realstore/frequencycard-list/frequencycard-list?oid=' + detail.id" hover-class="none">{{$t('orderallot-list.orderallot-list.b13k5r')}}</button>
<button v-if="(detail.plugins_ordergoodsform_data || 0) == 1" class="round bg-white cr-blue br-blue margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/ordergoodsform/order/order?id=' + detail.id" hover-class="none">{{$t('user-order.user-order.9l47b6')}}</button>
<button v-if="(detail.plugins_orderresources_data || 0) == 1" class="round bg-white cr-blue br-blue margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/orderresources/orderannex/orderannex?oid=' + detail.id" hover-class="none">{{$t('user-order.user-order.fyuikn')}}</button>
<button v-if="(detail.plugins_is_orderfeed_button || 0) == 1" class="round bg-white cr-blue br-blue margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/orderfeed/form/form?oid=' + detail.id" hover-class="none">{{$t('common.feed_text')}}</button>
<button v-if="(detail.plugins_intellectstools_data || null) != null && (detail.plugins_intellectstools_data.continue_buy_data || null) != null && detail.plugins_intellectstools_data.continue_buy_data.length > 0" class="round bg-white cr-base br-base margin-bottom-main" type="default" size="mini" @tap="continue_buy_event" hover-class="none">{{$t('user-order.user-order.3l2jr5')}}</button>
</view>
</view>
<!-- 自提信息 -->
<view v-if="(detail.extraction_data || null) != null" class="site-extraction panel-item padding-main border-radius-main bg-white spacing-mb">
<view v-if="(detail.extraction_data || null) != null" class="site-extraction padding-main border-radius-main bg-white spacing-mb">
<view class="br-b padding-bottom-main fw-b text-size">{{$t('user-order-detail.user-order-detail.o38952')}}</view>
<view class="panel-content oh tc padding-top-main">
<view :data-value="detail.extraction_data.code" @tap="text_copy_event">
@ -64,11 +118,6 @@
</view>
</view>
</view>
</view>
<view v-if="(use_guide_config || null) != null && (item.goods_use_guide || null) != null" class="margin-top-sm text-size-xs">
<text class="cr-red">{{use_guide_config.title}}</text>
<text v-if="(use_guide_config.desc || null) != null" class="cr-grey margin-right-lg">{{use_guide_config.desc}}</text>
<text class="cr-blue" :data-index="index" @tap="goods_use_guide_event">{{use_guide_config.tap}}</text>
</view>
</view>
<view class="padding-top-main tr cr-base text-size">
@ -76,6 +125,32 @@
</view>
</view>
<!-- 使用指南 -->
<view v-if="(detail.use_guide_data || null) != null && (detail.use_guide_data.data || null) != null && detail.use_guide_data.data.length > 0" class="panel-item padding-main border-radius-main bg-white spacing-mb">
<view class="br-b padding-bottom-main fw-b text-size">{{detail.use_guide_data.title}}</view>
<view class="scroll-view-horizontal margin-top">
<scroll-view :scroll-x="true" :show-scrollbar="false" :scroll-with-animation="true" :scroll-into-view="'use-guide-switch-item-' + goods_use_guide_data_active_index" class="use-guide-switch-scroll">
<block v-for="(item, index) in detail.use_guide_data.data" :key="index">
<view :class="'item tc cp dis-inline-block'+(index > 0 ? ' margin-left' : '')" :id="'use-guide-switch-item-' + index" :data-index="index" @tap="goods_use_guide_data_switch_event">
<view :class="'icon-content circle br auto ' + (goods_use_guide_data_active_index == index ? 'border-color-main' : '')">
<image :src="item.images" mode="aspectFit" class="icon dis-block circle"></image>
</view>
<view class="single-text margin-top-xs" :class="goods_use_guide_data_active_index == index ? 'cr-main' : 'cr-base'">{{ item.title }} </view>
</view>
</block>
</scroll-view>
</view>
<view v-if="(detail.use_guide_data.desc || null) != null" class="margin-top-xs text-size-xs cr-grey">{{detail.use_guide_data.desc}}</view>
<view class="br radius padding-main margin-top-sm">
<view v-if="(detail.use_guide_data.data[goods_use_guide_data_active_index]['goods_use_guide'] || null) != null" class="web-html-content">
<mp-html :content="detail.use_guide_data.data[goods_use_guide_data_active_index]['goods_use_guide']" />
</view>
<block v-else>
<component-no-data propStatus="0"></component-no-data>
</block>
</view>
</view>
<!-- 服务信息 -->
<view v-if="(detail.service_data || null) != null" class="service-data panel-item padding-main border-radius-main bg-white spacing-mb">
<view class="br-b padding-bottom-main fw-b text-size">{{$t('user-order-detail.user-order-detail.567ygf')}}</view>
@ -264,37 +339,35 @@
</view>
</component-popup>
<!-- 订单商品使用指南弹层 -->
<component-popup :propShow="popup_order_item_goods_use_guide_status" propPosition="bottom" @onclose="popup_order_item_goods_use_guide_close_event">
<view class="padding-main bg-white">
<view class="close oh pa top-0 right-0 z-i-deep">
<view class="fr padding-top padding-right padding-left-sm padding-bottom-sm" @tap.stop="popup_order_item_goods_use_guide_close_event">
<iconfont name="icon-close-line" size="28rpx" color="#999"></iconfont>
</view>
</view>
<view class="order-item-goods-use-guide-container padding-top-xxl">
<scroll-view v-if="(order_item_goods_info_data || null) != null && (order_item_goods_info_data.goods_use_guide || null) != null" :scroll-y="true" class="scroll-content margin-top-sm">
<view class="web-html-content">
<mp-html :content="order_item_goods_info_data.goods_use_guide" />
</view>
</scroll-view>
<block v-else>
<component-no-data propStatus="0"></component-no-data>
</block>
</view>
</view>
</component-popup>
<!-- 支付组件 -->
<component-payment
ref="payment"
:propCurrencySymbol="payment_currency_symbol"
:propPayUrl="pay_url"
:propQrcodeUrl="qrcode_url"
:propPaymentList="payment_list"
propPayDataKey="ids"
:propTempPayValue="pay_value"
:propPaymentId="payment_id"
:propDefaultPaymentId="default_payment_id"
:propPayPrice="pay_price"
:propIsShowPayment="is_show_payment_popup"
@close-payment-popup="payment_popup_event_close"
@pay-success="order_item_pay_success_handle"
></component-payment>
<!-- 公共 -->
<component-common ref="common"></component-common>
</view>
</template>
<script>
const app = getApp();
const app = getApp();
import base64 from '@/common/js/lib/base64.js';
import componentCommon from '@/components/common/common';
import componentNoData from '@/components/no-data/no-data';
import componentBottomLine from '@/components/bottom-line/bottom-line';
import componentPopup from '@/components/popup/popup';
import componentPayment from '@/components/payment/payment';
import componentHospitalOrderDetail from '@/pages/plugins/hospital/components/order-detail/order-detail';
var common_static_url = app.globalData.get_static_url('common');
export default {
@ -310,8 +383,7 @@
detail_list: [],
extension_data: [],
site_fictitious: null,
use_guide_config: null,
popup_order_item_goods_use_guide_status: false,
goods_use_guide_data_active_index: 0,
//
order_item_goods_info_data: null,
popup_order_item_goods_info_status: false,
@ -321,7 +393,20 @@
'params': this.$t('common.params'),
'detail-web': this.$t('common.detail_text')+'('+this.$t('common.web_client')+')',
'detail-app': this.$t('common.detail_text')+'('+this.$t('common.app_client')+')',
},
},
//
payment_currency_symbol: app.globalData.currency_symbol(),
pay_url: '',
qrcode_url: '',
payment_list: [],
pay_value: '',
pay_price: 0,
payment_id: 0,
default_payment_id: 0,
is_show_payment_popup: false,
//
is_order_pay_only_can_buy_payment: 0,
original_payment_list: [],
};
},
@ -330,6 +415,7 @@
componentNoData,
componentBottomLine,
componentPopup,
componentPayment,
componentHospitalOrderDetail,
},
@ -340,16 +426,19 @@
//
this.setData({
params: params,
});
});
//
this.init_config();
//
this.init();
},
onShow() {
//
app.globalData.page_event_onshow_handle();
//
this.init();
// onshow
if ((this.$refs.common || null) != null) {
this.$refs.common.on_show();
@ -364,8 +453,19 @@
this.init();
},
methods: {
//
methods: {
//
init_config(status) {
if ((status || false) == true) {
this.setData({
is_order_pay_only_can_buy_payment: parseInt(app.globalData.get_config('plugins_base.intellectstools.data.is_order_pay_only_can_buy_payment', 0)),
});
} else {
app.globalData.is_config(this, 'init_config');
}
},
//
init() {
this.setData({
data_list_loding_status: 1,
@ -378,7 +478,8 @@
success: (res) => {
uni.stopPullDownRefresh();
if (res.data.code == 0) {
var data = res.data.data;
var data = res.data.data;
var detail = data.data || null;
this.setData({
detail: data.data,
detail_list: [
@ -403,11 +504,20 @@
{ name: this.$t('user-order-detail.user-order-detail.8o2of3'), value: data.data.close_time || '' },
],
extension_data: data.data.extension_data || [],
site_fictitious: data.site_fictitious || null,
use_guide_config: data.use_guide_config || null,
site_fictitious: data.site_fictitious || null,
data_list_loding_status: 3,
data_bottom_line_status: true,
data_list_loding_msg: '',
data_list_loding_msg: '',
//
original_payment_list: data.payment_list || [],
payment_list: data.payment_list || [],
default_payment_id: data.default_payment_id || 0,
payment_id: (detail == null) ? 0 : detail.payment_id,
pay_url: app.globalData.get_request_url('pay', 'order'),
qrcode_url: app.globalData.get_request_url('paycheck', 'order'),
payment_currency_symbol: (detail == null ? '' : detail.currency_data.currency_symbol) || this.payment_currency_symbol,
pay_value: (detail == null) ? '' : detail.id,
pay_price: (detail == null) ? '0.00' : detail.price,
});
} else {
this.setData({
@ -473,21 +583,6 @@
popup_order_item_goods_info_status: false,
});
},
// 使
goods_use_guide_event(e) {
this.setData({
order_item_goods_info_data: this.detail.items[e.currentTarget.dataset.index] || null,
popup_order_item_goods_use_guide_status: true,
});
},
// 使
popup_order_item_goods_use_guide_close_event(e) {
this.setData({
popup_order_item_goods_use_guide_status: false,
});
},
//
order_item_goods_info_nav_event(e) {
@ -496,6 +591,277 @@
});
},
// 使
goods_use_guide_data_switch_event(e) {
this.setData({
goods_use_guide_data_active_index: e.currentTarget.dataset.index
});
},
//
pay_event(e) {
//
if(this.is_order_pay_only_can_buy_payment == 1) {
var payment_list = [];
this.original_payment_list.forEach(function(v, k) {
if(v.id == this.payment_id) {
payment_list.push(v);
}
});
} else {
var payment_list = this.original_payment_list;
}
//
this.setData({
is_show_payment_popup: true,
payment_list: payment_list,
});
},
//
payment_popup_event_close(e) {
this.setData({
is_show_payment_popup: false,
});
},
//
//
order_item_pay_success_handle(data) {
this.init();
},
//
cancel_event(e) {
uni.showModal({
title: this.$t('common.warm_tips'),
content: this.$t('common.cancel_confirm_tips'),
confirmText: this.$t('common.confirm'),
cancelText: this.$t('common.no'),
success: (result) => {
if (result.confirm) {
uni.showLoading({
title: this.$t('common.processing_in_text'),
});
uni.request({
url: app.globalData.get_request_url('cancel', 'order'),
method: 'POST',
data: {
id: this.detail.id,
},
dataType: 'json',
success: (res) => {
uni.hideLoading();
if (res.data.code == 0) {
this.init();
app.globalData.showToast(res.data.msg, 'success');
} else {
app.globalData.showToast(res.data.msg);
}
},
fail: () => {
uni.hideLoading();
app.globalData.showToast(this.$t('common.internet_error_tips'));
},
});
}
},
});
},
//
collect_event(e) {
var transactionid = this.detail.weixin_collect_data || null;
if(transactionid == null || !uni.openBusinessView) {
this.collect_hand_handle(e);
} else {
//
var self = this;
uni.openBusinessView({
businessType: 'weappOrderConfirm',
extraData: {
transaction_id: transactionid
},
success(res) {
self.collect_handle(e);
},
fail(res) {
if((res.status || null) == 'fail') {
self.collect_hand_handle(e);
}
}
});
}
},
//
collect_hand_handle(e) {
uni.showModal({
title: this.$t('common.warm_tips'),
content: this.$t('orderallot-list.orderallot-list.o3ouqv'),
confirmText: this.$t('common.confirm'),
cancelText: this.$t('common.no'),
success: (result) => {
if (result.confirm) {
this.collect_handle(e);
}
},
});
},
//
collect_handle(e) {
uni.showLoading({
title: this.$t('common.processing_in_text'),
});
uni.request({
url: app.globalData.get_request_url('collect', 'order'),
method: 'POST',
data: {
id: this.detail.id,
},
dataType: 'json',
success: (res) => {
uni.hideLoading();
if (res.data.code == 0) {
this.init();
app.globalData.showToast(res.data.msg, 'success');
} else {
app.globalData.showToast(res.data.msg);
}
},
fail: () => {
uni.hideLoading();
app.globalData.showToast(this.$t('common.internet_error_tips'));
},
});
},
//
delete_event(e) {
uni.showModal({
title: this.$t('common.warm_tips'),
content: this.$t('common.delete_confirm_tips'),
confirmText: this.$t('common.confirm'),
cancelText: this.$t('common.no'),
success: (result) => {
if (result.confirm) {
uni.showLoading({
title: this.$t('common.processing_in_text'),
});
uni.request({
url: app.globalData.get_request_url('delete', 'order'),
method: 'POST',
data: {
id: this.detail.id,
},
dataType: 'json',
success: (res) => {
uni.hideLoading();
if (res.data.code == 0) {
app.globalData.showToast(res.data.msg, 'success');
this.setData({
detail: null,
data_list_loding_status: 0,
});
} else {
app.globalData.showToast(res.data.msg);
}
},
fail: () => {
uni.hideLoading();
app.globalData.showToast(this.$t('common.internet_error_tips'));
},
});
}
},
});
},
//
rush_event(e) {
app.globalData.showToast(this.$t('user-order.user-order.f5qqhu'), 'success');
},
//
continue_buy_event(e) {
var item = this.detail;
if ((item.plugins_intellectstools_data || null) != null) {
var plugins_intellectstools_data = item.plugins_intellectstools_data;
var continue_buy_data = plugins_intellectstools_data.continue_buy_data || null;
//
if(continue_buy_data != null && continue_buy_data.length > 0) {
//
var is_buy_again_buy = parseInt(plugins_intellectstools_data.is_buy_again_buy || 0);
//
var is_buy_again_cart = parseInt(plugins_intellectstools_data.is_buy_again_cart || 0);
//
if(is_buy_again_buy == 1 && is_buy_again_cart == 1) {
var self = this;
uni.showActionSheet({
itemList: [this.$t('user-order.user-order.a3c81d'), this.$t('user-order.user-order.5o756f')],
success: function (res) {
if(res.tapIndex == 0) {
//
self.continue_order_goods_cart_handle(continue_buy_data, self);
} else {
//
self.continue_order_goods_buy_handle(continue_buy_data);
}
}
});
} else if(is_buy_again_cart == 1) {
//
this.continue_order_goods_cart_handle(continue_buy_data, this);
} else if(is_buy_again_buy == 1) {
//
this.continue_order_goods_buy_handle(continue_buy_data);
}
}
}
},
//
continue_order_goods_buy_handle(goods_data) {
//
var data = {
buy_type: 'goods',
goods_data: encodeURIComponent(base64.encode(JSON.stringify(goods_data))),
};
app.globalData.url_open('/pages/buy/buy?data=' + encodeURIComponent(base64.encode(JSON.stringify(data))));
},
//
continue_order_goods_cart_handle(goods_data, self) {
uni.showLoading({
title: this.$t('common.processing_in_text'),
});
uni.request({
url: app.globalData.get_request_url("save", "cart"),
method: "POST",
data: { goods_data: goods_data },
dataType: "json",
success: (res) => {
uni.hideLoading();
if (res.data.code == 0) {
app.globalData.showToast(res.data.msg, "success");
setTimeout(function() {
app.globalData.url_open('/pages/cart-page/cart-page');
}, 1000);
} else {
if (app.globalData.is_login_check(res.data, self, "continue_order_goods_cart_handle", goods_data)) {
app.globalData.showToast(res.data.msg);
}
}
},
fail: () => {
uni.hideLoading();
app.globalData.showToast(this.$t('common.internet_error_tips'));
},
});
},
//
images_view_event(e) {
var value = e.currentTarget.dataset.value || null;

View File

@ -82,7 +82,7 @@
<button v-if="item.operate_data.is_collect == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="collect_event" :data-transactionid="item.weixin_collect_data || ''" :data-value="item.id" :data-index="index" hover-class="none">{{$t('orderallot-list.orderallot-list.w2w2w4')}}</button>
<button v-if="(item.plugins_express_data || 0) == 1 && (item.express_data || null) != null" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/express/detail/detail?oid=' + item.id" hover-class="none">{{$t('orderallot-list.orderallot-list.w2t242')}}</button>
<button v-if="(item.plugins_delivery_data || 0) > 0" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/delivery/logistics/logistics?id=' + item.plugins_delivery_data" hover-class="none">{{$t('orderallot-list.orderallot-list.w2t242')}}</button>
<button v-if="item.operate_data.is_comments == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="comments_event" :data-value="item.id" :data-index="index" hover-class="none">{{$t('user-order.user-order.twc3r7')}}</button>
<button v-if="item.operate_data.is_comments == 1" class="round bg-white cr-green br-green margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/user-order-comments/user-order-comments?id='+item.id" hover-class="none">{{$t('user-order.user-order.twc3r7')}}</button>
<button v-if="item.status == 2 && item.order_model != 2" class="round cr-base br margin-bottom-main" type="default" size="mini" @tap="rush_event" :data-value="item.id" :data-index="index" hover-class="none">{{$t('user-order.user-order.lp1v28')}}</button>
<button v-if="item.operate_data.is_delete == 1" class="round bg-white cr-red br-red margin-bottom-main" type="default" size="mini" @tap="delete_event" :data-value="item.id" :data-index="index" hover-class="none">{{$t('common.del')}}</button>
<button v-if="(item.plugins_is_order_allot_button || 0) == 1" class="round bg-white cr-main br-main margin-bottom-main" type="default" size="mini" @tap="url_event" :data-value="'/pages/plugins/realstore/orderallot-list/orderallot-list?oid=' + item.id" hover-class="none">{{$t('user-order.user-order.ht65c9')}}</button>
@ -710,11 +710,6 @@
app.globalData.url_open('/pages/user-orderaftersale-detail/user-orderaftersale-detail?oid=' + oid + '&did=' + did);
},
//
comments_event(e) {
app.globalData.url_open('/pages/user-order-comments/user-order-comments?id=' + e.currentTarget.dataset.value);
},
//
selected_event(e) {
var oid = e.currentTarget.dataset.oid || 0;

View File

@ -55,7 +55,7 @@
<iconfont name="icon-chat" size="28rpx" class="cr-main"></iconfont>
<text class="margin-left-xs">{{plugins_intellectstools_data.platform_chat.title}}</text>
</button>
<button v-if="(plugins_shop_data || null) != null && (plugins_shop_data.status || 0) == 1 && (plugins_shop_data.dispute_data || null) == null" type="default" size="mini" class="bg-main br-main cr-white round" @tap="plugins_shop_dispute_interfere_open_event" hover-class="none"></button>
<button v-if="(plugins_shop_data || null) != null && (plugins_shop_data.status || 0) == 1 && (plugins_shop_data.dispute_data || null) == null" type="default" size="mini" class="bg-main br-main cr-white round" @tap="plugins_shop_dispute_interfere_open_event" hover-class="none">{{$t('user-orderaftersale-detail.user-orderaftersale-detail.sdsfgg')}}</button>
</view>
<view v-if="(plugins_shop_data || null) != null && (plugins_shop_data.status || 0) == 1 && (plugins_shop_data.dispute_data || null) != null" class="margin-top-lg">
<view>
@ -211,6 +211,21 @@
<!-- 没有售后数据/售后数据为已取消则可以重新申请售后 -->
<view v-if="is_create_aftersale == 1">
<!-- 智能工具箱插件客服信息 -->
<view v-if="((plugins_intellectstools_data || null) != null)" class="bg-white padding-main border-radius-main spacing-mb">
<view v-if="(plugins_intellectstools_data.service_msg || null) != null" class="cr-grey margin-top-sm">{{ plugins_intellectstools_data.service_msg }}</view>
<view v-if="(plugins_intellectstools_data.base_chat || null) != null || (plugins_intellectstools_data.platform_chat || null) != null" class="margin-top-sm oh">
<button v-if="(plugins_intellectstools_data.base_chat || null) != null" type="default" size="mini" class="bg-green br-green cr-white round margin-right" data-value="base_chat" @tap="plugins_intellectstools_service_open_event" hover-class="none">
<iconfont name="icon-chat" size="28rpx" class="cr-white"></iconfont>
<text class="margin-left-xs">{{plugins_intellectstools_data.base_chat.title}}</text>
</button>
<button v-if="(plugins_intellectstools_data.platform_chat || null) != null" type="default" size="mini" class="bg-white br-main cr-main round margin-right" data-value="platform_chat" @tap="plugins_intellectstools_service_open_event" hover-class="none">
<iconfont name="icon-chat" size="28rpx" class="cr-main"></iconfont>
<text class="margin-left-xs">{{plugins_intellectstools_data.platform_chat.title}}</text>
</button>
</view>
</view>
<!-- 类型选择 -->
<view v-if="aftersale_type_list.length > 0" class="choose-type padding-main border-radius-main bg-white oh spacing-mb">
<block v-for="(item, index) in aftersale_type_list" :key="index">