设置页面增加投诉举报入口,支持登录验证
parent
05dfb9d256
commit
15ca9d5deb
|
|
@ -71,6 +71,7 @@
|
|||
business: null,
|
||||
editor_path_type: '',
|
||||
form_submit_loading: false,
|
||||
is_complaint_app_login: false,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
|
|
@ -97,6 +98,9 @@
|
|||
// 调用公共事件方法
|
||||
app.globalData.page_event_onshow_handle();
|
||||
|
||||
// 初始化配置
|
||||
app.globalData.init_config(0, this, 'init_config');
|
||||
|
||||
// 公共onshow事件
|
||||
if ((this.$refs.common || null) != null) {
|
||||
this.$refs.common.on_show();
|
||||
|
|
@ -113,6 +117,19 @@
|
|||
onUnload: function () {},
|
||||
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
var complaint_config = app.globalData.get_config('plugins_base.complaint.data') || {};
|
||||
this.setData({
|
||||
is_complaint_app_login: parseInt(complaint_config.is_complaint_app_login || 0) == 1,
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, 'init_config');
|
||||
}
|
||||
},
|
||||
|
||||
// 获取数据
|
||||
get_data() {
|
||||
this.setData({
|
||||
data_list_loding_status: 1,
|
||||
|
|
@ -160,6 +177,13 @@
|
|||
|
||||
// 表单提交
|
||||
form_submit(e) {
|
||||
// 是否需要登录
|
||||
if(this.is_complaint_app_login) {
|
||||
var user = app.globalData.get_user_info(this, 'form_submit', e);
|
||||
if (user == false) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 数据验证
|
||||
var validation = [
|
||||
{ fields: 'describe', msg: this.$t('user-orderaftersale-detail.user-orderaftersale-detail.6uygft') },
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
</view>
|
||||
<!-- 列表 -->
|
||||
<scroll-view :scroll-y="true" class="scroll-box scroll-box-ece-nav" @scrolltolower="scroll_lower" lower-threshold="60">
|
||||
<view v-if="data_list.length > 0" class="page-bottom-fixed padding-horizontal-main padding-top-main">
|
||||
<view v-if="data_list.length > 0" class="padding-horizontal-main padding-top-main" :class="is_complaint_app ? 'page-bottom-fixed' : ''">
|
||||
<view v-for="(item, index) in data_list" :key="index" class="item padding-main border-radius-main oh bg-white spacing-mb">
|
||||
<view class="base oh br-b padding-bottom-main">
|
||||
<text>{{item.add_time}}</text>
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
</scroll-view>
|
||||
|
||||
<!-- 底部操作 -->
|
||||
<view class="bottom-fixed" :style="bottom_fixed_style">
|
||||
<view v-if="is_complaint_app" class="bottom-fixed" :style="bottom_fixed_style">
|
||||
<view class="bottom-line-exclude">
|
||||
<button class="item cr-main bg-white br-main round text-size wh-auto flex-row align-c jc-c" type="default" hover-class="none" data-value="/pages/plugins/complaint/form/form?is_list=0" @tap="url_event">
|
||||
<view class="add-icon">
|
||||
|
|
@ -71,9 +71,11 @@
|
|||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
data_bottom_line_status: false,
|
||||
data_is_loading: 0,
|
||||
data_is_loading: 0,
|
||||
bottom_fixed_style: '',
|
||||
params: {},
|
||||
field_list: [],
|
||||
field_list: [],
|
||||
is_complaint_app: false,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
|
|
@ -107,7 +109,10 @@
|
|||
},
|
||||
onShow() {
|
||||
// 调用公共事件方法
|
||||
app.globalData.page_event_onshow_handle();
|
||||
app.globalData.page_event_onshow_handle();
|
||||
|
||||
// 初始化配置
|
||||
app.globalData.init_config(0, this, 'init_config');
|
||||
|
||||
// 公共onshow事件
|
||||
if ((this.$refs.common || null) != null) {
|
||||
|
|
@ -124,7 +129,20 @@
|
|||
});
|
||||
this.get_data_list(1);
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
var complaint_config = app.globalData.get_config('plugins_base.complaint.data') || {};
|
||||
this.setData({
|
||||
is_complaint_app: parseInt(complaint_config.is_complaint_app || 0) == 1,
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, 'init_config');
|
||||
}
|
||||
},
|
||||
|
||||
// 初始化
|
||||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
if (user != false) {
|
||||
|
|
|
|||
|
|
@ -85,6 +85,9 @@
|
|||
<text>{{ $t('setup.setup.11k15d') }}</text>
|
||||
<text class="fr cr-grey">{{ $t('setup.setup.48r261') }}</text>
|
||||
</view>
|
||||
<view v-if="plugins_complaint_is_complaint_app && (plugins_complaint_run_name || null) != null" class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/plugins/complaint/form/form" @tap="url_event">
|
||||
<text>{{plugins_complaint_run_name}}</text>
|
||||
</view>
|
||||
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/about/about" @tap="url_event">
|
||||
<text>{{ $t('setup.setup.tghrf2') }}</text>
|
||||
</view>
|
||||
|
|
@ -112,13 +115,14 @@
|
|||
plugins_invoice: null,
|
||||
home_user_login_type: [],
|
||||
common_user_is_mandatory_bind_mobile: 0,
|
||||
|
||||
home_use_multilingual_status: 0,
|
||||
// 实际提交的语言字段
|
||||
language: '',
|
||||
|
||||
// 第三方登录插件
|
||||
plugins_thirdpartylogin_data: null,
|
||||
// 投诉举报插件
|
||||
plugins_complaint_is_complaint_app: false,
|
||||
plugins_complaint_run_name: '',
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -157,7 +161,8 @@
|
|||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
if ((status || false) == true) {
|
||||
var complaint_config = app.globalData.get_config('plugins_base.complaint.data') || {};
|
||||
this.setData({
|
||||
common_app_customer_service_tel: app.globalData.get_config('config.common_app_customer_service_tel'),
|
||||
home_use_multilingual_status: app.globalData.get_config('config.home_use_multilingual_status'),
|
||||
|
|
@ -165,6 +170,8 @@
|
|||
home_user_login_type: app.globalData.get_config('config.home_user_login_type'),
|
||||
common_user_is_mandatory_bind_mobile: app.globalData.get_config('config.common_user_is_mandatory_bind_mobile'),
|
||||
plugins_thirdpartylogin_data: app.globalData.get_config('plugins_thirdpartylogin_data') || null,
|
||||
plugins_complaint_is_complaint_app: parseInt(complaint_config.is_complaint_app || 0) == 1,
|
||||
plugins_complaint_run_name: complaint_config.run_name || this.$t('pages.plugins-complaint-form'),
|
||||
});
|
||||
|
||||
// 第三方登录
|
||||
|
|
|
|||
Loading…
Reference in New Issue