细节优化
parent
a6a4312c73
commit
26e4df8dae
7
App.vue
7
App.vue
|
|
@ -7,11 +7,11 @@
|
|||
data: {
|
||||
// 基础配置
|
||||
// 数据接口请求地址
|
||||
request_url: 'http://shopxo.com/',
|
||||
request_url: 'https://d1.shopxo.vip/',
|
||||
// request_url: 'https://new.shopxo.vip/',
|
||||
|
||||
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/)
|
||||
static_url: 'http://shopxo.com/',
|
||||
static_url: 'https://d1.shopxo.vip/',
|
||||
// static_url: 'https://new.shopxo.vip/',
|
||||
|
||||
// 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
|
|
@ -112,6 +112,9 @@
|
|||
// 钱包插件货币符号使用当前 currency_symbol 数据的固定值(0否, 1是)
|
||||
is_wallet_use_fixed_currency_symbol: 0,
|
||||
|
||||
// 加载动画类型(0logo, 1名称)
|
||||
loading_content_type: 0,
|
||||
|
||||
// 数据缓存key
|
||||
// 场景值
|
||||
cache_scene_key: 'cache_scene_key',
|
||||
|
|
|
|||
|
|
@ -6,9 +6,15 @@
|
|||
<view class="cr-grey margin-top-sm">{{$t('no-data.no-data.imw8f1')}}{{title}}{{$t('no-data.no-data.q87572')}}</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 1 加载中 -->
|
||||
<view v-if="propStatus == 1" class="no-data-box tc no-data-loading loading-animation">
|
||||
<text>{{title}}</text>
|
||||
<!-- 1 加载中(0loog, 1名称) -->
|
||||
<view v-if="propStatus == 1" class="no-data-box tc no-data-loading">
|
||||
<view v-if="loading_content_type == 1" class="loading-title-animation">
|
||||
<text>{{title}}</text>
|
||||
</view>
|
||||
<view v-else class="loading-logo-content">
|
||||
<view class="loading-logo" :style="'background-image: url('+loading_logo+')'"></view>
|
||||
<view class="loading-border" :style="'background-image: url('+loading_logo_border+')'"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 2 处理错误 -->
|
||||
|
|
@ -34,7 +40,10 @@
|
|||
data() {
|
||||
return {
|
||||
theme_view: app.globalData.get_theme_value_view(),
|
||||
static_dir: '/static/images/common/',
|
||||
static_dir: '/static/images/common/',
|
||||
loading_logo_border: app.globalData.data.static_url+'static/common/svg/loading-border.svg',
|
||||
loading_logo: app.globalData.data.static_url+'favicon.ico',
|
||||
loading_content_type: app.globalData.data.loading_content_type,
|
||||
title: app.globalData.get_application_title(),
|
||||
network_type_value: '',
|
||||
not_network_await_status: 0,
|
||||
|
|
@ -146,22 +155,26 @@
|
|||
}
|
||||
.no-data-loading text {
|
||||
color: #999;
|
||||
}
|
||||
.loading-animation,
|
||||
}
|
||||
|
||||
/**
|
||||
* 名称加载
|
||||
*/
|
||||
.loading-title-animation,
|
||||
.network-type-tips {
|
||||
padding-top: 25%;
|
||||
}
|
||||
.loading-animation {
|
||||
.loading-title-animation {
|
||||
background: #e7e7e7 -webkit-linear-gradient(left, #c6c6c6 0%, #c6c6c6 90%) no-repeat 0 0;
|
||||
background-size: 20% 100%;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: 60rpx;
|
||||
font-weight: bold;
|
||||
-webkit-animation: loading-animation 2s linear infinite;
|
||||
animation: loading-animation 2s linear infinite;
|
||||
-webkit-animation: loading-text-animation 2s linear infinite;
|
||||
animation: loading-text-animation 2s linear infinite;
|
||||
}
|
||||
@-webkit-keyframes loading-animation {
|
||||
@-webkit-keyframes loading-text-animation {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
|
@ -169,12 +182,53 @@
|
|||
background-position: 100% 100%;
|
||||
}
|
||||
}
|
||||
@keyframes loading-animation {
|
||||
@keyframes loading-text-animation {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* logo加载
|
||||
*/
|
||||
.loading-logo-content {
|
||||
position: absolute;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
left: calc(50% - 2rem);
|
||||
top: 0;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
margin-top: 50%;
|
||||
}
|
||||
.loading-logo-content .loading-logo {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0.7rem;
|
||||
top: 0.7rem;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
opacity: 0.8;
|
||||
background-size: contain;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.loading-logo-content .loading-border {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 4.8rem;
|
||||
height: 4.8rem;
|
||||
left: -0.4rem;
|
||||
top: -0.4rem;
|
||||
opacity: 0.8;
|
||||
background-size: contain;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@
|
|||
<view class="padding-top-sm">
|
||||
<view class="text-size-md spacing-mb">{{$t('user-base.user-base.g5663y')}}</view>
|
||||
<view class="padding-bottom-main cr-grey-9 br-b">{{$t('user-base.user-base.913g4e')}}</view>
|
||||
<view v-if="(user.avatar || null) == null" class="form-gorup oh flex-row align-c br-b">
|
||||
<view v-if="(user || null) == null || (user.avatar || null) == null" class="form-gorup oh flex-row align-c br-b">
|
||||
<view class="form-gorup-title text-size-md">{{$t('personal.personal.cw1d8p')}}<text class="form-group-tips-must">*</text></view>
|
||||
<button class="bg-white br-0 padding-0 margin-left-xxl flex-row jc-sb align-c flex-1" hover-class="none" open-type="chooseAvatar" @chooseavatar="choose_avatar_event" @tap="choose_avatar_event">
|
||||
<image :src="user_avatar || default_avatar" mode="widthFix" class="circle br user-base-avatar"></image>
|
||||
<iconfont name="icon-arrow-right" size="24rpx" color="#ccc"></iconfont>
|
||||
</button>
|
||||
</view>
|
||||
<view v-if="(user.nickname || null) == null" class="form-gorup oh flex-row align-c br-b">
|
||||
<view v-if="(user || null) == null || (user.nickname || null) == null" class="form-gorup oh flex-row align-c br-b">
|
||||
<view class="form-gorup-title text-size-md">{{$t('personal.personal.gw8br3')}}<text class="form-group-tips-must">*</text></view>
|
||||
<view class="user-nickname-container padding-left-xxl">
|
||||
<input :type="application_client_type == 'weixin' ? 'nickname' : 'text'" name="nickname" maxlength="16" placeholder-class="cr-grey-c" class="cr-base" :placeholder="$t('user-base.user-base.o19lj3')" @input="on_input_name" />
|
||||
|
|
@ -177,12 +177,13 @@
|
|||
form_submit(e) {
|
||||
// 表单数据
|
||||
var form_data = e.detail.value;
|
||||
var user = this.user || {};
|
||||
// 头像
|
||||
form_data['avatar'] = this.user_avatar || '';
|
||||
|
||||
// 验证数据项
|
||||
var validation = [];
|
||||
if ((this.user.avatar || null) == null) {
|
||||
if ((user.avatar || null) == null) {
|
||||
validation.push({
|
||||
fields: 'avatar',
|
||||
msg: this.$t('user-base.user-base.gzc3y4'),
|
||||
|
|
@ -190,7 +191,7 @@
|
|||
} else {
|
||||
delete form_data['avatar'];
|
||||
}
|
||||
if ((this.user.nickname || null) == null) {
|
||||
if ((user.nickname || null) == null) {
|
||||
validation.push({
|
||||
fields: 'nickname',
|
||||
msg: this.$t('user-base.user-base.lro9u7'),
|
||||
|
|
@ -236,7 +237,7 @@
|
|||
if (event.detail.value != '') {
|
||||
this.setData({
|
||||
nickname: event.detail.value,
|
||||
form_submit_disabled_status: ((this.user.avatar || null) == null && (this.user_avatar || null) == null)
|
||||
form_submit_disabled_status: (((this.user || null) == null || (this.user.avatar || null) == null) && (this.user_avatar || null) == null)
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
"plugins-distribution-recommend-list": "My Recommended Treasure",
|
||||
"plugins-distribution-recommend-detail": "Recommended Treasure Details",
|
||||
"plugins-distribution-recommend-form": "Recommended Treasure Add/Edit",
|
||||
"plugins-distribution-poster-poster": "Promotion rebate",
|
||||
"plugins-distribution-poster": "Promotion rebate",
|
||||
"plugins-distribution-extraction": "Pickup point",
|
||||
"plugins-distribution-extraction-apply": "Pickup point information",
|
||||
"plugins-distribution-extraction-order": "Pickup order",
|
||||
|
|
@ -750,7 +750,7 @@
|
|||
"29f6n5": "Transfer",
|
||||
"8752a4": "Withdrawal",
|
||||
"91h03v": "Payment code",
|
||||
"ki1nor": "Service",
|
||||
"ki1nor": "Tel Service",
|
||||
"2k0227": "Exit",
|
||||
"3q4p8k": "Collection",
|
||||
"57xw84": "Tracks",
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
"plugins-distribution-recommend-list": "我的推荐宝",
|
||||
"plugins-distribution-recommend-detail": "推荐宝详情",
|
||||
"plugins-distribution-recommend-form": "推荐宝添加/编辑",
|
||||
"plugins-distribution-poster-poster": "推广返利",
|
||||
"plugins-distribution-poster": "推广返利",
|
||||
"plugins-distribution-extraction": "取货点",
|
||||
"plugins-distribution-extraction-apply": "取货点信息",
|
||||
"plugins-distribution-extraction-order": "取货订单",
|
||||
|
|
@ -746,7 +746,7 @@
|
|||
"29f6n5": "转账",
|
||||
"8752a4": "提现",
|
||||
"91h03v": "付款码",
|
||||
"ki1nor": "联系客服",
|
||||
"ki1nor": "电话客服",
|
||||
"2k0227": "退出账号",
|
||||
"3q4p8k": "商品收藏",
|
||||
"57xw84": "我的足迹",
|
||||
|
|
@ -920,7 +920,7 @@
|
|||
"rbdj4b": "海报分享",
|
||||
"m54q3e": "保存海报后,发送给微信好友/群、QQ好友/群,分享到分朋友圈,微博等进行推广,轻轻松松赚返利!",
|
||||
"b5i123": "查看长按保存",
|
||||
"hk8c9p": "重新生成",
|
||||
"hk8c9p": "生成",
|
||||
"9y4bwq": "二维码分享",
|
||||
"h212v8": "保存二维码后,发送给微信好友/群、QQ好友/群,分享到分朋友圈,微博等进行推广,轻轻松松赚返利!",
|
||||
"j3qv45": "查看二维码长按保存",
|
||||
|
|
|
|||
|
|
@ -40,9 +40,6 @@
|
|||
/**
|
||||
* 左侧导航
|
||||
*/
|
||||
.left-content-actual {
|
||||
padding-right: 12rpx;
|
||||
}
|
||||
.left-content-actual-list {
|
||||
padding-bottom: 120rpx;
|
||||
background-color: #f5f5f5;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
border-style: solid;
|
||||
border-width: 0 0 0 3px;
|
||||
}
|
||||
.submit-double button {
|
||||
.submit-double .item {
|
||||
width: 48%;
|
||||
}
|
||||
.submit-double .item button {
|
||||
width: 46%;
|
||||
}
|
||||
|
|
@ -9,8 +9,11 @@
|
|||
<image :src="user_share_poster" class="wh-auto dis-block radius" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="submit-double oh margin-top-lg">
|
||||
<button class="fl bg-white cr-green br-green round" type="default" hover-class="none" size="mini" :data-value="user_share_poster" @tap="images_show_event">{{$t('poster.poster.b5i123')}}</button>
|
||||
<button class="fr bg-white cr-main br-main round" type="default" hover-class="none" size="mini" @tap="poster_refresh_event">{{$t('poster.poster.hk8c9p')}}</button>
|
||||
<button class="fl item bg-white cr-green br-green round" type="default" hover-class="none" size="mini" :data-value="user_share_poster" @tap="images_show_event">{{$t('poster.poster.b5i123')}}</button>
|
||||
<view class="fr item">
|
||||
<button class="bg-white cr-main br-main round" type="default" hover-class="none" size="mini" @tap="poster_refresh_event">{{$t('poster.poster.hk8c9p')}}</button>
|
||||
<button class="fr bg-white cr-base br-base round" type="default" hover-class="none" size="mini" @tap="share_event">{{$t('common.share')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
@ -37,7 +40,10 @@
|
|||
</view>
|
||||
|
||||
<!-- 结尾 -->
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
|
||||
<!-- 分享弹窗 -->
|
||||
<component-share-popup ref="share"></component-share-popup>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
|
|
@ -48,7 +54,8 @@
|
|||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from "@/components/no-data/no-data";
|
||||
import componentBottomLine from "@/components/bottom-line/bottom-line";
|
||||
import componentBottomLine from "@/components/bottom-line/bottom-line";
|
||||
import componentSharePopup from "@/components/share-popup/share-popup";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
@ -65,7 +72,8 @@ export default {
|
|||
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentBottomLine,
|
||||
componentSharePopup
|
||||
},
|
||||
props: {},
|
||||
|
||||
|
|
@ -194,7 +202,17 @@ export default {
|
|||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.text_copy_event(e);
|
||||
},
|
||||
},
|
||||
|
||||
// 分享事件
|
||||
share_event(e) {
|
||||
if ((this.$refs.share || null) != null) {
|
||||
this.$refs.share.init({
|
||||
type: 2,
|
||||
images: this.user_share_poster || this.user_share_qrode
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -246,6 +246,7 @@
|
|||
methods: {
|
||||
// 资源设置
|
||||
set_resources_data() {
|
||||
// 导航名称处理
|
||||
var old_nav = this.head_nav_list;
|
||||
var head_nav_list = [
|
||||
{
|
||||
|
|
@ -273,11 +274,17 @@
|
|||
name: client_value == 'mp' ? this.$t('setup.setup.5493ui') : this.$t('user.user.2k0227'),
|
||||
icon: client_value == 'mp' ? 'cache' : 'logout',
|
||||
};
|
||||
var nickname = this.$t('login.login.6yfr9g');
|
||||
// #ifdef APP || H5
|
||||
// app和h5模式下未登录则不展示退出
|
||||
if(app.globalData.get_user_cache_info() == null) {
|
||||
nav_logout_data = null;
|
||||
}
|
||||
// #endif
|
||||
|
||||
this.setData({
|
||||
head_nav_list: head_nav_list,
|
||||
nav_logout_data: nav_logout_data,
|
||||
nickname: nickname,
|
||||
nickname: this.$t('login.login.6yfr9g'),
|
||||
});
|
||||
},
|
||||
|
||||
|
|
@ -498,7 +505,10 @@
|
|||
main_navigation_data: [],
|
||||
user: null,
|
||||
avatar: app.globalData.data.default_user_head_src,
|
||||
nickname: this.$t('login.login.6yfr9g')
|
||||
nickname: this.$t('login.login.6yfr9g'),
|
||||
// #ifdef APP || H5
|
||||
nav_logout_data: null,
|
||||
// #endif
|
||||
});
|
||||
|
||||
// 调用公共方法处理
|
||||
|
|
|
|||
Loading…
Reference in New Issue