app端新增关于我们

master
gongfuxiang 2024-05-16 18:44:06 +08:00
parent 22179ce734
commit 0d2c482402
8 changed files with 122 additions and 19 deletions

View File

@ -22,9 +22,12 @@
// logo /static/images/common/logo.png
application_logo: '',
//
// : v1.0.0
version: 'v6.1',
// app: v1.0.0 20180118
app_version_info: 'v6.1 20240516',
//
currency_symbol: '¥',
@ -1884,6 +1887,10 @@
if (type !== null) {
value = this.get_config('config.common_app_mini_' + type + '_describe') || null;
}
//
if (type !== null) {
value = this.get_config('config.common_customer_store_describe') || null;
}
//
if (value === null) {
value = this.data.application_describe;

View File

@ -80,6 +80,7 @@
"password": "password modify",
"personal": "personal data",
"logout": "Account cancellation",
"about": "About Us",
"plugins-seckill-index": "Limited time flash sale",
"plugins-coupon-index": "Coupon Collection Center",
"plugins-coupon-shop": "Shop Coupon Collection Center",
@ -348,6 +349,7 @@
"f25wcx": "Click to call",
"11k15d": "Account cancel",
"48r261": "Logout and can't recover.",
"tghrf2": "About Us",
"07o10b": "Please bind your phone first",
"nwt4o1": "Please log in first",
"utnr7g": "Service phone",

View File

@ -83,6 +83,7 @@
"personal": "个人资料",
"password": "密码修改",
"logout": "账号注销",
"about": "关于我们",
"plugins-seckill-index": "限时秒杀",
"plugins-coupon-index": "领券中心",
"plugins-coupon-shop": "店铺领券中心",
@ -339,6 +340,7 @@
"f25wcx": "点击拨打",
"11k15d": "账号注销",
"48r261": "注销后无法恢复",
"tghrf2": "关于我们",
"07o10b": "请先绑定手机",
"nwt4o1": "请先登录",
"utnr7g": "客服电话有误",

View File

@ -481,6 +481,18 @@
}
]
},
{
"root": "pages/about",
"pages": [
{
"path": "about",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/plugins/seckill",
"pages": [

4
pages/about/about.css Normal file
View File

@ -0,0 +1,4 @@
.logo {
width: 160rpx;
height: 160rpx;
}

68
pages/about/about.vue Normal file
View File

@ -0,0 +1,68 @@
<template>
<view :class="theme_view">
<view class="padding-main tc">
<view class="bg-white border-radius-main padding-main">
<view class="padding-vertical-xxl">
<image class="logo circle br-f5 padding-sm dis-block auto margin-top-xl" :src="logo" mode="aspectFill"></image>
<view class="margin-top-sm text-size">{{title}}</view>
<view class="margin-top-sm cr-grey-9">{{app_version_info}}</view>
<view class="margin-top-xxl cr-base text-size-sm">{{describe}}</view>
<view class="margin-top-xxxxl padding-vertical-xxxxl">
<text class="cp cr-blue margin-right" data-value="userregister" @tap="agreement_event">{{ $t('login.login.2v11we') }}</text>
<text class="cp cr-blue margin-left" data-value="userprivacy" @tap="agreement_event">{{ $t('login.login.myno2x') }}</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
const app = getApp();
export default {
data() {
return {
theme_view: app.globalData.get_theme_value_view(),
logo: app.globalData.get_application_logo_square(),
title: app.globalData.get_application_title(),
describe: app.globalData.get_application_describe(),
app_version_info: app.globalData.data.app_version_info
};
},
components: {},
onLoad(params) {
//
app.globalData.page_event_onload_handle(params);
},
onShow() {
//
app.globalData.page_event_onshow_handle();
},
methods: {
//
agreement_event(e) {
var value = e.currentTarget.dataset.value || null;
if (value == null) {
app.globalData.showToast(this.$t('login.login.4wc3hr'));
return false;
}
// url
var key = 'agreement_' + value + '_url';
var url = app.globalData.get_config('config.' + key) || null;
if (url == null) {
app.globalData.showToast(this.$t('login.login.x0nxxf'));
return false;
}
// webview
app.globalData.open_web_view(url);
},
}
};
</script>
<style>
@import './about.css';
</style>

View File

@ -1,3 +1,6 @@
.panel-item .item:not(:first-child) {
border-top: 1px solid #f5f5f5 !important;
}
.user-avatar {
width: 80rpx;
height: 80rpx !important;

View File

@ -2,8 +2,8 @@
<view :class="theme_view">
<view class="page padding-main">
<block v-if="(user || null) != null">
<view class="padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right oh" data-value="/pages/personal/personal" @tap="url_event">
<view class="panel-item padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right oh" data-value="/pages/personal/personal" @tap="url_event">
<image :src="user.avatar || default_avatar" mode="widthFix" class="circle br fl user-avatar"></image>
<view class="fl margin-left margin-top">
<view>{{ user.user_name_view || $t('login.login.6yfr9g') }}</view>
@ -11,15 +11,15 @@
</view>
<!-- 手机邮箱密码-->
<view v-if="common_user_is_mandatory_bind_mobile == 1 || ((home_user_login_type || null) != null && home_user_login_type.length > 0 && home_user_login_type.indexOf('sms') != -1)" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" data-value="/pages/login/login?opt_form=bind_verify" @tap="url_event">
<view v-if="common_user_is_mandatory_bind_mobile == 1 || ((home_user_login_type || null) != null && home_user_login_type.length > 0 && home_user_login_type.indexOf('sms') != -1)" class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/login/login?opt_form=bind_verify" @tap="url_event">
<text>{{ $t('setup.setup.x81v6d') }}</text>
<text class="fr cr-grey">{{ user.mobile_security || '' }} {{ (user.mobile_security || null) == null ? $t('setup.setup.dfg4wf') : $t('setup.setup.j6skqh') }}</text>
</view>
<view v-if="(home_user_login_type || null) != null && home_user_login_type.length > 0 && home_user_login_type.indexOf('email') != -1" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" data-value="/pages/login/login?opt_type=bind_email&opt_form=bind_email" @tap="url_event">
<view v-if="(home_user_login_type || null) != null && home_user_login_type.length > 0 && home_user_login_type.indexOf('email') != -1" class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/login/login?opt_type=bind_email&opt_form=bind_email" @tap="url_event">
<text>{{$t('setup.setup.5u59b1')}}</text>
<text class="fr cr-grey">{{ user.email_security || '' }} {{ (user.email_security || null) == null ? $t('setup.setup.dfg4wf') : $t('setup.setup.j6skqh') }}</text>
</view>
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" data-value="/pages/password/password" @tap="url_event">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/password/password" @tap="url_event">
<text>{{$t('setup.setup.v8438r')}}</text>
<text class="fr cr-grey">{{ $t('setup.setup.j6skqh') }}</text>
</view>
@ -27,15 +27,15 @@
<!-- 第三方账户绑定-->
<!-- #ifdef APP || H5 -->
<block v-if="(plugins_thirdpartylogin_data || null) != null">
<view v-for="(item, index) in plugins_thirdpartylogin_data" :key="index">
<block v-for="(item, index) in plugins_thirdpartylogin_data" :key="index">
<block v-if="(item.bind_user_id || 0) == 0">
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" :data-value="'/pages/login/login?opt_type=bind_platform&opt_form=bind_platform&platform_type='+index" @tap="url_event">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" :data-value="'/pages/login/login?opt_type=bind_platform&opt_form=bind_platform&platform_type='+index" @tap="url_event">
<text>{{item.name}}</text>
<text class="fr cr-grey">{{ $t('setup.setup.dfg4wf') }}</text>
</view>
</block>
<block v-else>
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" :data-value="item.bind_id" @tap="unbind_event">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" :data-value="item.bind_id" @tap="unbind_event">
<text>{{item.name}}</text>
<view class="fr">
<text class="cr-grey">{{item.bind_nickname}}</text>
@ -43,22 +43,22 @@
</view>
</view>
</block>
</view>
</block>
</block>
<!-- #endif -->
<view v-if="home_use_multilingual_status == 1" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" @tap="open_language_event">
<view v-if="home_use_multilingual_status == 1" class="item padding-vertical-xxl padding-right-xxxl arrow-right" @tap="open_language_event">
<text>{{ $t('setup.setup.r7jz13') }}</text>
<text class="fr cr-grey">{{ language }}</text>
</view>
</view>
<!-- 地址发票-->
<view class="padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right" data-value="/pages/user-address/user-address" @tap="url_event">
<view class="panel-item padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/user-address/user-address" @tap="url_event">
<text>{{ $t('setup.setup.42mba7') }}</text>
<text class="fr cr-grey">{{ $t('setup.setup.5eltza') }}</text>
</view>
<view v-if="(plugins_invoice || null) != null" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" data-value="/pages/plugins/invoice/invoice/invoice" @tap="url_event">
<view v-if="(plugins_invoice || null) != null" class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/plugins/invoice/invoice/invoice" @tap="url_event">
<text>{{ $t('setup.setup.t60222') }}</text>
<text class="fr cr-grey">{{ $t('setup.setup.izg78g') }}</text>
</view>
@ -66,25 +66,30 @@
</block>
<!-- 权限管理清除缓存客服电话账号注销 -->
<view class="padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<view class="panel-item padding-horizontal-main border-radius-main bg-white oh spacing-mb">
<!-- #ifdef MP || APP -->
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-b" @tap="open_setting_event">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" @tap="open_setting_event">
<text>{{ $t('setup.setup.377uwg') }}</text>
<text class="fr cr-grey">{{ $t('setup.setup.5eltza') }}</text>
</view>
<!-- #endif -->
<view class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-b" @tap="remove_user_cache_event">
<view class="item padding-vertical-xxl padding-right-xxxl arrow-right" @tap="remove_user_cache_event">
<text>{{ $t('setup.setup.5493ui') }}</text>
<text class="fr cr-grey">{{ $t('setup.setup.f53166') }}</text>
</view>
<view v-if="(common_app_customer_service_tel || null) != null" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-b" @tap="call_event">
<view v-if="(common_app_customer_service_tel || null) != null" class="item padding-vertical-xxl padding-right-xxxl arrow-right" @tap="call_event">
<text>{{ $t('setup.setup.656fv1') }}</text>
<text class="fr cr-grey">{{ common_app_customer_service_tel || '' }} {{ $t('setup.setup.f25wcx') }}</text>
</view>
<view v-if="(user || null) != null" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right" data-value="/pages/logout/logout" @tap="url_event">
<view v-if="(user || null) != null" class="item padding-vertical-xxl padding-right-xxxl arrow-right" data-value="/pages/logout/logout" @tap="url_event">
<text>{{ $t('setup.setup.11k15d') }}</text>
<text class="fr cr-grey">{{ $t('setup.setup.48r261') }}</text>
</view>
<!-- #ifdef APP -->
<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>
<!-- #endif -->
</view>
<!-- 打开语言选择弹层-->