1.优化
parent
db6beb33ad
commit
fd3da01dc6
|
|
@ -30,7 +30,9 @@ iframe,
|
|||
.bottom-fixed,
|
||||
.buy-nav,
|
||||
.plugins-popupscreen .content,
|
||||
.cart-buy-nav {
|
||||
.cart-buy-nav,
|
||||
.bg-img,
|
||||
.pa-w {
|
||||
max-width: 800px !important;
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -731,6 +731,9 @@
|
|||
"pages": [{
|
||||
"path": "index/index",
|
||||
"style": {
|
||||
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU || H5 || APP
|
||||
"navigationStyle": "custom",
|
||||
// #endif
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "积分商城"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<view :class="(plugins_mourning_data_is_app ? ' grayscale' : '') + (is_single_page == 1 ? ' single-page-top' : '')">
|
||||
<!-- 顶部内容 -->
|
||||
<view v-if="load_status == 1" class="home-top-nav-content" :style="banner_list.length > 0 ? slider_bg : top_content_style">
|
||||
<image class="wh-auto pa top-0 left-0 right-0" mode="widthFix" :src="static_url + 'nav-top.png'"></image>
|
||||
<image class="pa top-0 bg-img wh-auto" mode="widthFix" :src="static_url + 'nav-top.png'"></image>
|
||||
<!-- logo/标题 -->
|
||||
<!-- #ifndef MP-TOUTIAO -->
|
||||
<view class="home-top-nav-logo">
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<view class="flex-row align-c">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back margin-right-main round va-m" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back margin-right-main round va-m">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<view class="flex-row align-c spacing-mb">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back margin-right-main round va-m" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back margin-right-main round va-m">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view :class="status_bar_height > 0 ? 'top-search-width' : 'flex-1 flex-width'">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="pr">
|
||||
<view v-if="(data_base || null) != null && (data_base.banner_images || null) != null" class="pa top-0 left-0 right-0">
|
||||
<view v-if="(data_base || null) != null && (data_base.banner_images || null) != null" class="pa top-0 bg-img wh-auto">
|
||||
<image class="wh-auto dis-block border-radius-main" :src="data_base.banner_images" mode="widthFix" :data-value="data_base.url || ''" @tap="url_event"></image>
|
||||
</view>
|
||||
<view class="plugins-coupon-container">
|
||||
|
|
@ -28,210 +28,210 @@
|
|||
</view>
|
||||
</template>
|
||||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from "../../../../components/no-data/no-data";
|
||||
import componentBottomLine from "../../../../components/bottom-line/bottom-line";
|
||||
import componentPouponCard from "@/components/coupon-card/coupon-card.vue";
|
||||
const app = getApp();
|
||||
import componentNoData from '../../../../components/no-data/no-data';
|
||||
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
||||
import componentPouponCard from '@/components/coupon-card/coupon-card.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: "",
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
data_list: [],
|
||||
data_base: null,
|
||||
// 优惠劵领取
|
||||
temp_coupon_receive_index: null,
|
||||
temp_coupon_receive_value: null,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
};
|
||||
},
|
||||
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentPouponCard,
|
||||
},
|
||||
props: {},
|
||||
|
||||
onShow() {
|
||||
// 数据加载
|
||||
this.init();
|
||||
|
||||
// 初始化配置
|
||||
this.init_config();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data_list();
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
this.setData({
|
||||
currency_symbol: app.globalData.get_config("currency_symbol"),
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, "init_config");
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
data_list: [],
|
||||
data_base: null,
|
||||
// 优惠劵领取
|
||||
temp_coupon_receive_index: null,
|
||||
temp_coupon_receive_value: null,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
};
|
||||
},
|
||||
|
||||
// 获取数据
|
||||
init() {
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentPouponCard,
|
||||
},
|
||||
props: {},
|
||||
|
||||
onShow() {
|
||||
// 数据加载
|
||||
this.init();
|
||||
|
||||
// 初始化配置
|
||||
this.init_config();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data_list();
|
||||
},
|
||||
|
||||
// 获取数据
|
||||
get_data_list() {
|
||||
var self = this;
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
});
|
||||
if (self.data_list.length <= 0) {
|
||||
self.setData({
|
||||
data_list_loding_status: 1,
|
||||
});
|
||||
}
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("index", "index", "coupon"),
|
||||
method: "POST",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
var status = (data.data || []).length > 0;
|
||||
console.log(data.data);
|
||||
this.setData({
|
||||
data_base: data.base || null,
|
||||
data_list: data.data || [],
|
||||
data_list_loding_msg: "",
|
||||
data_list_loding_status: status ? 3 : 0,
|
||||
data_bottom_line_status: status,
|
||||
});
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
this.setData({
|
||||
currency_symbol: app.globalData.get_config('currency_symbol'),
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, 'init_config');
|
||||
}
|
||||
},
|
||||
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
// 获取数据
|
||||
init() {
|
||||
this.get_data_list();
|
||||
},
|
||||
|
||||
// 获取数据
|
||||
get_data_list() {
|
||||
var self = this;
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
});
|
||||
if (self.data_list.length <= 0) {
|
||||
self.setData({
|
||||
data_list_loding_status: 1,
|
||||
});
|
||||
}
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'index', 'coupon'),
|
||||
method: 'POST',
|
||||
data: {},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
var status = (data.data || []).length > 0;
|
||||
console.log(data.data);
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: "/pages/plugins/coupon/index/index",
|
||||
},
|
||||
data_base: data.base || null,
|
||||
data_list: data.data || [],
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: status ? 3 : 0,
|
||||
data_bottom_line_status: status,
|
||||
});
|
||||
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: '/pages/plugins/coupon/index/index',
|
||||
},
|
||||
});
|
||||
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
} else {
|
||||
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
self.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
data_list_loding_msg: '服务器请求出错',
|
||||
});
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
self.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: "服务器请求出错",
|
||||
});
|
||||
app.globalData.showToast("服务器请求出错");
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
// 优惠劵领取事件
|
||||
coupon_receive_event(index, value) {
|
||||
if (!app.globalData.is_single_page_check()) {
|
||||
return false;
|
||||
}
|
||||
// 参数处理
|
||||
if ((index || null) == null && (value || null) == null) {
|
||||
var index = this.temp_coupon_receive_index;
|
||||
var value = this.temp_coupon_receive_value;
|
||||
} else {
|
||||
this.setData({
|
||||
temp_coupon_receive_index: index,
|
||||
temp_coupon_receive_value: value,
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 登录校验
|
||||
var user = app.globalData.get_user_info(this, "coupon_receive_event");
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login?event_callback=coupon_receive_event",
|
||||
});
|
||||
// 优惠劵领取事件
|
||||
coupon_receive_event(index, value) {
|
||||
if (!app.globalData.is_single_page_check()) {
|
||||
return false;
|
||||
}
|
||||
// 参数处理
|
||||
if ((index || null) == null && (value || null) == null) {
|
||||
var index = this.temp_coupon_receive_index;
|
||||
var value = this.temp_coupon_receive_value;
|
||||
} else {
|
||||
var temp_list = this.data_list;
|
||||
if (temp_list[index]["is_operable"] != 0) {
|
||||
uni.showLoading({
|
||||
title: "处理中...",
|
||||
this.setData({
|
||||
temp_coupon_receive_index: index,
|
||||
temp_coupon_receive_value: value,
|
||||
});
|
||||
}
|
||||
|
||||
// 登录校验
|
||||
var user = app.globalData.get_user_info(this, 'coupon_receive_event');
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login?event_callback=coupon_receive_event',
|
||||
});
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("receive", "coupon", "coupon"),
|
||||
method: "POST",
|
||||
data: {
|
||||
coupon_id: value,
|
||||
},
|
||||
dataType: "json",
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.data.code == 0) {
|
||||
app.globalData.showToast(res.data.msg, "success");
|
||||
if (this.data_base != null && this.data_base.is_repeat_receive != 1) {
|
||||
temp_list[index]["is_operable"] = 0;
|
||||
temp_list[index]["is_operable_name"] = "已领取";
|
||||
this.setData({
|
||||
data_list: temp_list,
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
var temp_list = this.data_list;
|
||||
if (temp_list[index]['is_operable'] != 0) {
|
||||
uni.showLoading({
|
||||
title: '处理中...',
|
||||
});
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('receive', 'coupon', 'coupon'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
coupon_id: value,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.data.code == 0) {
|
||||
app.globalData.showToast(res.data.msg, 'success');
|
||||
if (this.data_base != null && this.data_base.is_repeat_receive != 1) {
|
||||
temp_list[index]['is_operable'] = 0;
|
||||
temp_list[index]['is_operable_name'] = '已领取';
|
||||
this.setData({
|
||||
data_list: temp_list,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (app.globalData.is_login_check(res.data, this, 'coupon_receive_event')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (app.globalData.is_login_check(res.data, this, "coupon_receive_event")) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
app.globalData.showToast("服务器请求出错");
|
||||
},
|
||||
});
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.url_event(e);
|
||||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.url_event(e);
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
@import "./index.css";
|
||||
@import './index.css';
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
<view>
|
||||
<view v-if="(data_base || null) != null" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 10) + 'px;'">
|
||||
<!-- 头部背景 -->
|
||||
<image :src="distribution_static_url + 'distribution-bg.png'" mode="widthFix" class="wh-auto pa top-0 left-0 right-0" />
|
||||
<image :src="distribution_static_url + 'distribution-bg.png'" mode="widthFix" class="pa top-0 bg-img wh-auto" />
|
||||
<view class="pr z-i">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m cr-white" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m cr-white">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view class="padding-top-xxxl oh">
|
||||
|
|
|
|||
|
|
@ -2,16 +2,14 @@
|
|||
<view class="bg-white">
|
||||
<view v-if="(data_base || null) != null">
|
||||
<image :src="membership_level_vip + 'bg.png'" mode="widthFix" class="wh-auto"></image>
|
||||
<view class="banner tc oh pa top-0 wh-auto">
|
||||
<view class="banner tc oh pa top-0 pa-w wh-auto">
|
||||
<image :src="membership_level_vip + 'title.png'" mode="widthFix" class="title-img"></image>
|
||||
<!-- 标题 -->
|
||||
<view v-if="(data_base.banner_top_title || null) != null" class="banner-title single-text text-size-lg margin-top-xxxl">
|
||||
{{data_base.banner_top_title}}123
|
||||
</view>
|
||||
<view v-if="(data_base.banner_top_title || null) != null" class="banner-title single-text text-size-lg margin-top-xxxl"> {{ data_base.banner_top_title }}123 </view>
|
||||
<!-- 购买按钮 -->
|
||||
<navigator url="/pages/plugins/membershiplevelvip/buy/buy" hover-class="none" class="dis-inline">
|
||||
<button class="banner-buy fw-b round margin-top-xxxl" type="default" size="mini" hover-class="none" :style="join_vip_btn">
|
||||
{{data_base.banner_middle_name || '加入会员'}}
|
||||
{{ data_base.banner_middle_name || '加入会员' }}
|
||||
</button>
|
||||
</navigator>
|
||||
</view>
|
||||
|
|
@ -20,8 +18,8 @@
|
|||
<block v-for="(item, index) in introduce_data" :key="index">
|
||||
<view class="item tc bg-white">
|
||||
<image class="dis-block auto" :src="item.images_url" mode="scaleToFill"></image>
|
||||
<view class="single-text text-size margin-top-main">{{item.name}}</view>
|
||||
<view class="multi-text cr-grey-c text-size-xs margin-top-xs">{{item.desc}}</view>
|
||||
<view class="single-text text-size margin-top-main">{{ item.name }}</view>
|
||||
<view class="multi-text cr-grey-c text-size-xs margin-top-xs">{{ item.desc }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
|
@ -42,8 +40,8 @@
|
|||
</template>
|
||||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from "../../../../components/no-data/no-data";
|
||||
import componentBottomLine from "../../../../components/bottom-line/bottom-line";
|
||||
import componentNoData from '../../../../components/no-data/no-data';
|
||||
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
||||
let membership_level_vip = app.globalData.get_static_url('membershiplevelvip', true);
|
||||
export default {
|
||||
data() {
|
||||
|
|
@ -57,12 +55,12 @@
|
|||
default_images_data: null,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
join_vip_btn: 'background-image: url(' + membership_level_vip + 'app/join-vip-btn.png) !important;'
|
||||
join_vip_btn: 'background-image: url(' + membership_level_vip + 'app/join-vip-btn.png) !important;',
|
||||
};
|
||||
},
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine
|
||||
componentBottomLine,
|
||||
},
|
||||
props: {},
|
||||
onLoad(params) {
|
||||
|
|
@ -81,19 +79,19 @@
|
|||
// 获取数据
|
||||
get_data_list() {
|
||||
uni.showLoading({
|
||||
title: '加载中...'
|
||||
title: '加载中...',
|
||||
});
|
||||
if (this.introduce_data.length <= 0) {
|
||||
this.setData({
|
||||
data_list_loding_status: 1
|
||||
data_list_loding_status: 1,
|
||||
});
|
||||
}
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("index", "index", "membershiplevelvip"),
|
||||
url: app.globalData.get_request_url('index', 'index', 'membershiplevelvip'),
|
||||
method: 'POST',
|
||||
data: {},
|
||||
dataType: 'json',
|
||||
success: res => {
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
|
|
@ -104,7 +102,7 @@
|
|||
introduce_data: data.introduce_data || [],
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: true
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
|
|
@ -113,13 +111,13 @@
|
|||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: '/pages/plugins/membershiplevelvip/index/index',
|
||||
img: this.default_images_data.default_bg_images || this.default_images_data.default_logo || ''
|
||||
}
|
||||
img: this.default_images_data.default_bg_images || this.default_images_data.default_logo || '',
|
||||
},
|
||||
});
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name
|
||||
title: this.data_base.application_name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -127,7 +125,7 @@
|
|||
this.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
if (app.globalData.is_login_check(res.data, this, 'get_data_list')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
|
|
@ -142,15 +140,15 @@
|
|||
this.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: '服务器请求出错'
|
||||
data_list_loding_msg: '服务器请求出错',
|
||||
});
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
@import './index.css';
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
<view>
|
||||
<view v-if="(data_base || null) != null" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 10) + 'px;'">
|
||||
<!-- 头部背景 -->
|
||||
<image :src="membershiplevelvip_static_url + 'title-bg.png'" mode="widthFix" class="wh-auto pa top-0 left-0 right-0" />
|
||||
<image :src="membershiplevelvip_static_url + 'title-bg.png'" mode="widthFix" class="pa top-0 bg-img wh-auto" />
|
||||
<view class="pr z-i">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view class="padding-top-xxxl oh">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 顶部
|
||||
*/
|
||||
.points-content {
|
||||
padding-top: 448rpx;
|
||||
padding-top: 350rpx;
|
||||
}
|
||||
|
||||
.points-user {
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
* 积分规则
|
||||
*/
|
||||
.rule-btn {
|
||||
top: 242rpx;
|
||||
top: 140rpx;
|
||||
width: 148rpx;
|
||||
height: 52rpx;
|
||||
padding: 0;
|
||||
|
|
@ -65,4 +65,17 @@
|
|||
margin: 20rpx 70rpx 42rpx 70rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
/**
|
||||
* 媒体查询
|
||||
*/
|
||||
@media only screen and (min-width:960px) {
|
||||
.points-content {
|
||||
padding-top: 51%;
|
||||
}
|
||||
|
||||
.rule-btn {
|
||||
top: 11%;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<view>
|
||||
<view v-if="(data_base || null) != null">
|
||||
<view v-if="(data_base || null) != null" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 10) + 'px;'">
|
||||
<!-- 广告图片 -->
|
||||
<view class="pa top-0 left-0 right-0">
|
||||
<view class="pa top-0 bg-img wh-auto">
|
||||
<block v-if="(data_base.right_images || null) != null">
|
||||
<!-- <image class="wh-auto advertisement" :src="data_base.right_images" mode="widthFix" :data-value="data_base.right_images_url || ''" @tap="url_event"></image> -->
|
||||
<image class="wh-auto advertisement" :src="points_static_url + 'integral-bg.png'" mode="widthFix" :data-value="data_base.right_images_url || ''" @tap="url_event"></image>
|
||||
|
|
@ -11,93 +11,101 @@
|
|||
<image class="wh-auto advertisement" :src="points_static_url + 'integral-bg.png'" mode="widthFix" :data-value="data_base.right_images_url || ''" @tap="url_event"></image>
|
||||
</block>
|
||||
</view>
|
||||
<view class="padding-horizontal-main points-content">
|
||||
<!-- 顶部 -->
|
||||
<view class="border-radius-main bg-white pr spacing-mb">
|
||||
<view class="points-user">
|
||||
<view class="flex-row">
|
||||
<block v-if="(user || null) == null">
|
||||
<image class="avatar dis-block circle" @tap="preview_event" :src="avatar_default" mode="widthFix"></image>
|
||||
<view class="padding-left-main">
|
||||
<view class="login-submit text-size fw-b" type="default" size="mini" @tap="login_event">立即登录</view>
|
||||
<view class="desc margin-top-sm cr-grey-9">获知会员积分详情</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<image class="avatar dis-block circle" @tap="preview_event" :src="user.avatar || avatar_default" mode="widthFix"></image>
|
||||
<view class="padding-left-main">
|
||||
<view class="text-size fw-b">{{ user.user_name_view }}</view>
|
||||
<view class="desc margin-top-sm cr-grey"
|
||||
>当前可用
|
||||
<text class="cr-black fw-b padding-horizontal-xs">
|
||||
{{ user_integral.integral || 0 }}
|
||||
</text>
|
||||
积分
|
||||
<view class="pr z-i">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m cr-white flex-row">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
<text class="text-size flex-1 tc">积分</text>
|
||||
</view>
|
||||
<view class="padding-horizontal-main points-content pr">
|
||||
<!-- 顶部 -->
|
||||
<view class="border-radius-main bg-white pr spacing-mb">
|
||||
<view class="points-user">
|
||||
<view class="flex-row">
|
||||
<block v-if="(user || null) == null">
|
||||
<image class="avatar dis-block circle" @tap="preview_event" :src="avatar_default" mode="widthFix"></image>
|
||||
<view class="padding-left-main">
|
||||
<view class="login-submit text-size fw-b" type="default" size="mini" @tap="login_event">立即登录</view>
|
||||
<view class="desc margin-top-sm cr-grey-9">获知会员积分详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 分享 -->
|
||||
<button class="share-submit pa tc cr-white" type="default" size="mini" open-type="share">分享</button>
|
||||
</view>
|
||||
<view v-if="(user || null) !== null" class="points-integral br-t-dashed">
|
||||
<component-title prop-title="积分明细" prop-more-url="/pages/user-integral/user-integral"></component-title>
|
||||
<view v-if="integral_list.length > 0">
|
||||
<view class="item">
|
||||
<view v-for="(item, index) in integral_list" class="list" :key="index">
|
||||
<view class="flex-row jc-sb align-c">
|
||||
<view class="cr-grey-9">
|
||||
原始
|
||||
<text class="cr-black fw-b padding-left-sm">{{ item.original_integral }}</text>
|
||||
<text class="padding-horizontal-sm">/</text>
|
||||
最新
|
||||
<text class="cr-black fw-b padding-left-sm">{{ item.new_integral }}</text>
|
||||
</block>
|
||||
<block v-else>
|
||||
<image class="avatar dis-block circle" @tap="preview_event" :src="user.avatar || avatar_default" mode="widthFix"></image>
|
||||
<view class="padding-left-main">
|
||||
<view class="text-size fw-b">{{ user.user_name_view }}</view>
|
||||
<view class="desc margin-top-sm cr-grey"
|
||||
>当前可用
|
||||
<text class="cr-black fw-b padding-horizontal-xs">
|
||||
{{ user_integral.integral || 0 }}
|
||||
</text>
|
||||
积分
|
||||
</view>
|
||||
<view class="cr-grey-9">{{ item.add_time_time }}</view>
|
||||
</view>
|
||||
<view class="flex-row jc-sb align-c margin-top-main">
|
||||
<view>{{ item.msg }}</view>
|
||||
<view class="cr-main text-size fw-b" :class="item.type == 1 ? 'cr-green' : 'cr-red'">{{ item.type == 1 ? "+" : "-" }} {{ item.operation_integral }}</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 分享 -->
|
||||
<button class="share-submit pa tc cr-white text-size-md" type="default" size="mini" open-type="share">分享</button>
|
||||
</view>
|
||||
<view v-if="(user || null) !== null" class="points-integral br-t-dashed">
|
||||
<component-title prop-title="积分明细" prop-more-url="/pages/user-integral/user-integral"></component-title>
|
||||
<view v-if="integral_list.length > 0">
|
||||
<view class="item">
|
||||
<view v-for="(item, index) in integral_list" class="list" :key="index">
|
||||
<view class="flex-row jc-sb align-c">
|
||||
<view class="cr-grey-9">
|
||||
原始
|
||||
<text class="cr-black fw-b padding-left-sm">{{ item.original_integral }}</text>
|
||||
<text class="padding-horizontal-sm">/</text>
|
||||
最新
|
||||
<text class="cr-black fw-b padding-left-sm">{{ item.new_integral }}</text>
|
||||
</view>
|
||||
<view class="cr-grey-9">{{ item.add_time_time }}</view>
|
||||
</view>
|
||||
<view class="flex-row jc-sb align-c margin-top-main">
|
||||
<view>{{ item.msg }}</view>
|
||||
<view class="cr-main text-size fw-b" :class="item.type == 1 ? 'cr-green' : 'cr-red'">{{ item.type == 1 ? '+' : '-' }} {{ item.operation_integral }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 公告信息 -->
|
||||
<button v-if="(data_base.points_desc || null) != null && data_base.points_desc.length > 0" class="rule-btn pa right-0 tc cr-white text-size-md" @tap="quick_open_event">积分规则</button>
|
||||
|
||||
<!-- 商品兑换 -->
|
||||
<view v-if="(data_base.goods_exchange_data || null) != null && data_base.goods_exchange_data.length > 0">
|
||||
<component-goods-list
|
||||
:propData="{ style_type: 1, title: '商品兑换', url: '/pages/goods-search/goods-search', goods_list: data_base.goods_exchange_data }"
|
||||
prop-more-url-key="url"
|
||||
:propCurrencySymbol="currency_symbol"
|
||||
:prop-grid-btn-config="gridBtnConfig"
|
||||
:prop-is-open-grid-btn-set="isOpenGridBtnSet"
|
||||
propPriceField="price"
|
||||
propIntegral
|
||||
></component-goods-list>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 公告信息 -->
|
||||
<button v-if="(data_base.points_desc || null) != null && data_base.points_desc.length > 0" class="rule-btn pa right-0 tc cr-white text-size-md" @tap="quick_open_event">积分规则</button>
|
||||
|
||||
<!-- 商品兑换 -->
|
||||
<view v-if="(data_base.goods_exchange_data || null) != null && data_base.goods_exchange_data.length > 0">
|
||||
<component-goods-list
|
||||
:propData="{ style_type: 1, title: '商品兑换', url: '/pages/goods-search/goods-search', goods_list: data_base.goods_exchange_data }"
|
||||
prop-more-url-key="url"
|
||||
:propCurrencySymbol="currency_symbol"
|
||||
:prop-grid-btn-config="gridBtnConfig"
|
||||
:prop-is-open-grid-btn-set="isOpenGridBtnSet"
|
||||
propPriceField="price"
|
||||
propIntegral
|
||||
></component-goods-list>
|
||||
</view>
|
||||
<!-- 结尾 -->
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
<!-- 积分规则弹窗 -->
|
||||
<component-popup v-if="(data_base.points_desc || null) != null && data_base.points_desc.length > 0" :propShow="popup_status" :propIsBar="propIsBar" propPosition="bottom" @onclose="quick_close_event">
|
||||
<view class="rule">
|
||||
<view class="cr-black text-size-md fw-b margin-bottom-main tc">积分规则</view>
|
||||
<scroll-view :scroll-y="true" class="item">
|
||||
<view v-for="(item, index) in data_base.points_desc" :key="index" class="cr-grey text-size-md">{{ item }}</view>
|
||||
</scroll-view>
|
||||
<button type="default" class="bg-main cr-white round text-size-md pa bottom-0 left-0 right-0" @tap="quick_close_event">知道了</button>
|
||||
</view>
|
||||
</component-popup>
|
||||
</view>
|
||||
|
||||
<!-- 结尾 -->
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
<!-- 积分规则弹窗 -->
|
||||
<component-popup v-if="(data_base.points_desc || null) != null && data_base.points_desc.length > 0" :propShow="popup_status" :propIsBar="propIsBar" propPosition="bottom" @onclose="quick_close_event">
|
||||
<view class="rule">
|
||||
<view class="cr-black text-size-md fw-b margin-bottom-main tc">积分规则</view>
|
||||
<scroll-view :scroll-y="true" class="item">
|
||||
<view v-for="(item, index) in data_base.points_desc" :key="index" class="cr-grey text-size-md">{{ item }}</view>
|
||||
</scroll-view>
|
||||
<button type="default" class="bg-main cr-white round text-size-md pa bottom-0 left-0 right-0" @tap="quick_close_event">知道了</button>
|
||||
</view>
|
||||
</component-popup>
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- 提示信息 -->
|
||||
|
|
@ -106,253 +114,267 @@
|
|||
</view>
|
||||
</template>
|
||||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from "../../../../components/no-data/no-data";
|
||||
import componentBottomLine from "../../../../components/bottom-line/bottom-line";
|
||||
import componentGoodsList from "../../../../components/goods-list/goods-list";
|
||||
import componentPopup from "../../../../components/popup/popup";
|
||||
import componentTitle from "../../../../components/title/title";
|
||||
var points_static_url = app.globalData.get_static_url("points", true);
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
points_static_url: points_static_url,
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: "",
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
params: null,
|
||||
user: null,
|
||||
data_base: null,
|
||||
user_integral: null,
|
||||
avatar_default: app.globalData.data.default_user_head_src,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
// 配置商品列表按钮
|
||||
isOpenGridBtnSet: true,
|
||||
gridBtnConfig: {
|
||||
name: "兑换",
|
||||
bg_color: app.globalData.get_theme_color(),
|
||||
padding: "8rpx 16rpx",
|
||||
border_radius: "8rpx",
|
||||
},
|
||||
// 规则弹窗
|
||||
popup_status: false,
|
||||
propIsBar: false,
|
||||
// 积分
|
||||
integral_list: [],
|
||||
integral_list_loding_status: 1,
|
||||
integral_list_loding_msg: "",
|
||||
integral_page: 1,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentGoodsList,
|
||||
componentPopup,
|
||||
componentTitle,
|
||||
},
|
||||
props: {},
|
||||
onLoad(params) {
|
||||
this.setData({
|
||||
params: params,
|
||||
});
|
||||
},
|
||||
onShow() {
|
||||
// 用户信息
|
||||
this.setData({
|
||||
user: app.globalData.get_user_cache_info(),
|
||||
});
|
||||
// 初始化配置
|
||||
this.init_config();
|
||||
// 获取数据
|
||||
this.get_data();
|
||||
this.get_integral_data_list();
|
||||
},
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data();
|
||||
},
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
this.setData({
|
||||
currency_symbol: app.globalData.get_config("currency_symbol"),
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, "init_config");
|
||||
}
|
||||
const app = getApp();
|
||||
import componentNoData from '../../../../components/no-data/no-data';
|
||||
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
||||
import componentGoodsList from '../../../../components/goods-list/goods-list';
|
||||
import componentPopup from '../../../../components/popup/popup';
|
||||
import componentTitle from '../../../../components/title/title';
|
||||
var points_static_url = app.globalData.get_static_url('points', true);
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
points_static_url: points_static_url,
|
||||
status_bar_height: parseInt(app.globalData.get_system_info('statusBarHeight', 0)),
|
||||
// 顶部导航返回按钮
|
||||
is_realstore_top_nav_back: app.globalData.data.is_realstore_top_nav_back || 0,
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
currency_symbol: app.globalData.data.currency_symbol,
|
||||
params: null,
|
||||
user: null,
|
||||
data_base: null,
|
||||
user_integral: null,
|
||||
avatar_default: app.globalData.data.default_user_head_src,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
// 配置商品列表按钮
|
||||
isOpenGridBtnSet: true,
|
||||
gridBtnConfig: {
|
||||
name: '兑换',
|
||||
bg_color: app.globalData.get_theme_color(),
|
||||
padding: '8rpx 16rpx',
|
||||
border_radius: '8rpx',
|
||||
},
|
||||
// 规则弹窗
|
||||
popup_status: false,
|
||||
propIsBar: false,
|
||||
// 积分
|
||||
integral_list: [],
|
||||
integral_list_loding_status: 1,
|
||||
integral_list_loding_msg: '',
|
||||
integral_page: 1,
|
||||
};
|
||||
},
|
||||
// 获取数据
|
||||
get_data() {
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("index", "index", "points"),
|
||||
method: "POST",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
success: (res) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
this.setData({
|
||||
data_base: data.base || null,
|
||||
user_integral: data.user_integral || null,
|
||||
data_list_loding_msg: "",
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentGoodsList,
|
||||
componentPopup,
|
||||
componentTitle,
|
||||
},
|
||||
props: {},
|
||||
onLoad(params) {
|
||||
this.setData({
|
||||
params: params,
|
||||
});
|
||||
},
|
||||
onShow() {
|
||||
// 用户信息
|
||||
this.setData({
|
||||
user: app.globalData.get_user_cache_info(),
|
||||
});
|
||||
// 初始化配置
|
||||
this.init_config();
|
||||
// 获取数据
|
||||
this.get_data();
|
||||
this.get_integral_data_list();
|
||||
},
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data();
|
||||
},
|
||||
methods: {
|
||||
// 初始化配置
|
||||
init_config(status) {
|
||||
if ((status || false) == true) {
|
||||
this.setData({
|
||||
currency_symbol: app.globalData.get_config('currency_symbol'),
|
||||
});
|
||||
} else {
|
||||
app.globalData.is_config(this, 'init_config');
|
||||
}
|
||||
},
|
||||
// 获取数据
|
||||
get_data() {
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'index', 'points'),
|
||||
method: 'POST',
|
||||
data: {},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: "/pages/plugins/points/index/index",
|
||||
img: this.data_base.right_images,
|
||||
},
|
||||
data_base: data.base || null,
|
||||
user_integral: data.user_integral || null,
|
||||
data_list_loding_msg: '',
|
||||
data_list_loding_status: 0,
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: '/pages/plugins/points/index/index',
|
||||
img: this.data_base.right_images,
|
||||
},
|
||||
});
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
data_list_loding_msg: '服务器请求出错',
|
||||
});
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
},
|
||||
// 立即登录
|
||||
login_event() {
|
||||
var user = app.globalData.get_user_info(this, 'login_event');
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '绑定手机号码',
|
||||
confirmText: '确认',
|
||||
cancelText: '暂不',
|
||||
success: (result) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (result.confirm) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login?event_callback=init',
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_bottom_line_status: false,
|
||||
data_list_loding_status: 2,
|
||||
data_list_loding_msg: "服务器请求出错",
|
||||
});
|
||||
app.globalData.showToast("服务器请求出错");
|
||||
},
|
||||
});
|
||||
},
|
||||
// 立即登录
|
||||
login_event() {
|
||||
var user = app.globalData.get_user_info(this, "login_event");
|
||||
if (user != false) {
|
||||
// 用户未绑定用户则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "绑定手机号码",
|
||||
confirmText: "确认",
|
||||
cancelText: "暂不",
|
||||
success: (result) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (result.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login?event_callback=init",
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
this.setData({
|
||||
user: user || null,
|
||||
});
|
||||
},
|
||||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.url_event(e);
|
||||
},
|
||||
// 头像查看
|
||||
preview_event() {
|
||||
if (app.globalData.data.default_user_head_src != this.user.avatar) {
|
||||
uni.previewImage({
|
||||
current: this.user.avatar,
|
||||
urls: [this.user.avatar],
|
||||
});
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
user: user || null,
|
||||
});
|
||||
},
|
||||
// url事件
|
||||
url_event(e) {
|
||||
app.globalData.url_event(e);
|
||||
},
|
||||
// 头像查看
|
||||
preview_event() {
|
||||
if (app.globalData.data.default_user_head_src != this.user.avatar) {
|
||||
uni.previewImage({
|
||||
current: this.user.avatar,
|
||||
urls: [this.user.avatar],
|
||||
},
|
||||
get_integral_data_list(is_mandatory) {
|
||||
// 是否加载中
|
||||
if (this.integral_is_loading == 1) {
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
integral_is_loading: 1,
|
||||
integral_list_loding_status: 1,
|
||||
});
|
||||
}
|
||||
},
|
||||
get_integral_data_list(is_mandatory) {
|
||||
// 是否加载中
|
||||
if (this.integral_is_loading == 1) {
|
||||
return false;
|
||||
}
|
||||
this.setData({
|
||||
integral_is_loading: 1,
|
||||
integral_list_loding_status: 1,
|
||||
});
|
||||
// 加载loding
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
});
|
||||
// 获取数据
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("index", "userintegral"),
|
||||
method: "POST",
|
||||
data: {
|
||||
page: this.integral_page,
|
||||
},
|
||||
dataType: "json",
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
if (res.data.data.data.length > 0) {
|
||||
this.setData({
|
||||
integral_list: res.data.data.data.length > 4 ? res.data.data.data.splice(0, 4) : res.data.data.data,
|
||||
integral_list_loding_status: 3,
|
||||
integral_is_loading: 0,
|
||||
});
|
||||
// 加载loding
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
});
|
||||
// 获取数据
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'userintegral'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
page: this.integral_page,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
if (res.data.data.data.length > 0) {
|
||||
this.setData({
|
||||
integral_list: res.data.data.data.length > 4 ? res.data.data.data.splice(0, 4) : res.data.data.data,
|
||||
integral_list_loding_status: 3,
|
||||
integral_is_loading: 0,
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
integral_list_loding_status: 0,
|
||||
integral_is_loading: 0,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
integral_list_loding_status: 0,
|
||||
integral_is_loading: 0,
|
||||
});
|
||||
if (app.globalData.is_login_check(res.data, this, 'get_integral_data_list')) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
integral_list_loding_status: 0,
|
||||
integral_is_loading: 0,
|
||||
data_list_loding_status: 2,
|
||||
data_is_loading: 0,
|
||||
});
|
||||
if (app.globalData.is_login_check(res.data, this, "get_integral_data_list")) {
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading();
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
data_is_loading: 0,
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
},
|
||||
// 弹层开启
|
||||
quick_open_event(e) {
|
||||
this.setData({
|
||||
popup_status: true,
|
||||
});
|
||||
},
|
||||
// 弹层关闭
|
||||
quick_close_event(e) {
|
||||
this.setData({
|
||||
popup_status: false,
|
||||
});
|
||||
},
|
||||
// 顶部返回操作
|
||||
top_nav_left_back_event(e) {
|
||||
var pages = getCurrentPages();
|
||||
if (pages.length <= 1) {
|
||||
uni.switchTab({
|
||||
url: app.globalData.data.tabbar_pages[0],
|
||||
});
|
||||
app.globalData.showToast("服务器请求出错");
|
||||
},
|
||||
});
|
||||
} else {
|
||||
uni.navigateBack();
|
||||
}
|
||||
},
|
||||
},
|
||||
// 弹层开启
|
||||
quick_open_event(e) {
|
||||
this.setData({
|
||||
popup_status: true,
|
||||
});
|
||||
},
|
||||
// 弹层关闭
|
||||
quick_close_event(e) {
|
||||
this.setData({
|
||||
popup_status: false,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
@import "./index.css";
|
||||
@import './index.css';
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
<view v-if="is_single_page == 0" class="header-top padding-horizontal-main flex-row align-c" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 10) + 'px;'">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back dis-inline-block round tc va-m" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" color="#333"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back dis-inline-block round tc va-m">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" color="#333" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- 搜索 -->
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
background-color: #F7EDE1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 位置和搜索
|
||||
*/
|
||||
|
|
@ -39,11 +40,27 @@
|
|||
}
|
||||
|
||||
.choice-location-tips .content {
|
||||
margin-top: 42%;
|
||||
margin-top: 30%;
|
||||
width: 520rpx;
|
||||
}
|
||||
|
||||
.choice-location-tips .content .close {
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 媒体查询
|
||||
*/
|
||||
@media only screen and (min-width:960px) {
|
||||
.realstore-nav-bg {
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:960px) {
|
||||
.realstore-nav-bg {
|
||||
background-size: auto 100%;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,12 @@
|
|||
<template>
|
||||
<view class="realstore">
|
||||
<view v-if="(data_base || null) != null">
|
||||
<image :src="realstore_static_url + 'title-bg.png'" mode="widthFix" class="wh-auto pa" />
|
||||
<view v-if="(data_base || null) != null" class="realstore-nav-bg">
|
||||
<block v-if="screenWidth > 960">
|
||||
<image :src="realstore_static_url + 'title-bg-pc.png'" mode="widthFix" class="wh-auto pa bg-img" />
|
||||
</block>
|
||||
<block v-else>
|
||||
<image :src="realstore_static_url + 'title-bg.png'" mode="widthFix" class="wh-auto pa bg-img" />
|
||||
</block>
|
||||
<!-- 顶部 -->
|
||||
<view class="spacing-mb pr z-i cr-white">
|
||||
<!-- 位置 -->
|
||||
|
|
@ -10,7 +15,7 @@
|
|||
<iconfont name="icon-mendian-dingwei" size="28rpx" class="pr top-xs"></iconfont>
|
||||
</view>
|
||||
<text class="va-m margin-left-xs">
|
||||
<block v-if="(user_location || null) != null">{{ user_location.name || user_location.address || "" }}</block>
|
||||
<block v-if="(user_location || null) != null">{{ user_location.name || user_location.address || '' }}</block>
|
||||
<block v-else>未选择位置</block>
|
||||
</text>
|
||||
</view>
|
||||
|
|
@ -67,187 +72,201 @@
|
|||
</view>
|
||||
</template>
|
||||
<script>
|
||||
const app = getApp();
|
||||
import componentNoData from "../../../../components/no-data/no-data";
|
||||
import componentBottomLine from "../../../../components/bottom-line/bottom-line";
|
||||
import componentSearch from "../../../../components/search/search";
|
||||
import componentBanner from "../../../../components/slider/slider";
|
||||
import componentIconNav from "../../../../components/icon-nav/icon-nav";
|
||||
import componentRealstoreList from "../../../../components/realstore-list/realstore-list";
|
||||
import componentTitle from "../../../../components/title/title";
|
||||
const app = getApp();
|
||||
import componentNoData from '../../../../components/no-data/no-data';
|
||||
import componentBottomLine from '../../../../components/bottom-line/bottom-line';
|
||||
import componentSearch from '../../../../components/search/search';
|
||||
import componentBanner from '../../../../components/slider/slider';
|
||||
import componentIconNav from '../../../../components/icon-nav/icon-nav';
|
||||
import componentRealstoreList from '../../../../components/realstore-list/realstore-list';
|
||||
import componentTitle from '../../../../components/title/title';
|
||||
|
||||
let realstore_static_url = app.globalData.get_static_url("realstore", true);
|
||||
let realstore_static_url = app.globalData.get_static_url('realstore', true);
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
realstore_static_url: realstore_static_url,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: "",
|
||||
data_bottom_line_status: false,
|
||||
params: null,
|
||||
is_first: 1,
|
||||
data_base: null,
|
||||
search_keywords_value: "",
|
||||
favor_user: [],
|
||||
slider_list: [],
|
||||
icon_list: [],
|
||||
data_list: [],
|
||||
// 用户位置信息
|
||||
user_location: null,
|
||||
location_tips_close_status: false,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
};
|
||||
},
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
realstore_static_url: realstore_static_url,
|
||||
// 屏幕宽度
|
||||
screenWidth: window.innerWidth,
|
||||
data_list_loding_status: 1,
|
||||
data_list_loding_msg: '',
|
||||
data_bottom_line_status: false,
|
||||
params: null,
|
||||
is_first: 1,
|
||||
data_base: null,
|
||||
search_keywords_value: '',
|
||||
favor_user: [],
|
||||
slider_list: [],
|
||||
icon_list: [],
|
||||
data_list: [],
|
||||
// 用户位置信息
|
||||
user_location: null,
|
||||
location_tips_close_status: false,
|
||||
// 自定义分享信息
|
||||
share_info: {},
|
||||
};
|
||||
},
|
||||
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentSearch,
|
||||
componentBanner,
|
||||
componentIconNav,
|
||||
componentRealstoreList,
|
||||
componentTitle,
|
||||
},
|
||||
props: {},
|
||||
components: {
|
||||
componentNoData,
|
||||
componentBottomLine,
|
||||
componentSearch,
|
||||
componentBanner,
|
||||
componentIconNav,
|
||||
componentRealstoreList,
|
||||
componentTitle,
|
||||
},
|
||||
props: {},
|
||||
|
||||
onLoad(params) {
|
||||
this.setData({
|
||||
params: params,
|
||||
});
|
||||
},
|
||||
onLoad(params) {
|
||||
this.setData({
|
||||
params: params,
|
||||
});
|
||||
// 监听屏幕宽度和高度变化
|
||||
window.addEventListener('resize', this.handleResize, true);
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 用户位置初始化
|
||||
this.user_location_init();
|
||||
onShow() {
|
||||
// 用户位置初始化
|
||||
this.user_location_init();
|
||||
|
||||
// 数据加载
|
||||
this.get_data();
|
||||
},
|
||||
// 数据加载
|
||||
this.get_data();
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data();
|
||||
},
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
this.get_data();
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 初始化
|
||||
get_data() {
|
||||
// 用户位置
|
||||
var lng = 0;
|
||||
var lat = 0;
|
||||
if ((this.user_location || null) != null) {
|
||||
lng = this.user_location.lng || 0;
|
||||
lat = this.user_location.lat || 0;
|
||||
}
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url("index", "index", "realstore"),
|
||||
method: "POST",
|
||||
data: {
|
||||
lng: lng,
|
||||
lat: lat,
|
||||
},
|
||||
dataType: "json",
|
||||
success: (res) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
var data_list = data.data_list || [];
|
||||
this.setData({
|
||||
data_base: data.base || null,
|
||||
favor_user: data.favor_user || [],
|
||||
slider_list: data.slider_list || [],
|
||||
icon_list: data.icon_list || [],
|
||||
data_list: data_list,
|
||||
is_first: 0,
|
||||
data_list_loding_status: data_list.length > 0 ? 3 : 0,
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
// 页面销毁时执行
|
||||
onUnload: function () {
|
||||
window.removeEventListener('resize', this.handleResize);
|
||||
},
|
||||
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
methods: {
|
||||
// 初始化
|
||||
get_data() {
|
||||
// 用户位置
|
||||
var lng = 0;
|
||||
var lat = 0;
|
||||
if ((this.user_location || null) != null) {
|
||||
lng = this.user_location.lng || 0;
|
||||
lat = this.user_location.lat || 0;
|
||||
}
|
||||
uni.request({
|
||||
url: app.globalData.get_request_url('index', 'index', 'realstore'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
lng: lng,
|
||||
lat: lat,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: (res) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
var data_list = data.data_list || [];
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: "/pages/plugins/realstore/index/index",
|
||||
},
|
||||
data_base: data.base || null,
|
||||
favor_user: data.favor_user || [],
|
||||
slider_list: data.slider_list || [],
|
||||
icon_list: data.icon_list || [],
|
||||
data_list: data_list,
|
||||
is_first: 0,
|
||||
data_list_loding_status: data_list.length > 0 ? 3 : 0,
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
if ((this.data_base || null) != null) {
|
||||
// 基础自定义分享
|
||||
this.setData({
|
||||
share_info: {
|
||||
title: this.data_base.seo_title || this.data_base.application_name,
|
||||
desc: this.data_base.seo_desc,
|
||||
path: '/pages/plugins/realstore/index/index',
|
||||
},
|
||||
});
|
||||
|
||||
// 导航名称
|
||||
if ((this.data_base.application_name || null) != null) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.data_base.application_name,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
});
|
||||
app.globalData.showToast(res.data.msg);
|
||||
}
|
||||
} else {
|
||||
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_list_loding_status: 0,
|
||||
data_list_loding_msg: res.data.msg,
|
||||
data_list_loding_status: 2,
|
||||
});
|
||||
app.globalData.showToast(res.data.msg);
|
||||
app.globalData.showToast('服务器请求出错');
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
// 搜索事件
|
||||
search_button_event(e) {
|
||||
var params = (e || null) == null ? '' : '?keywords=' + e;
|
||||
uni.navigateTo({
|
||||
url: '/pages/plugins/realstore/search/search' + params,
|
||||
});
|
||||
},
|
||||
|
||||
// 选择地理位置
|
||||
choose_location_event(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/open-setting-location/open-setting-location',
|
||||
});
|
||||
},
|
||||
|
||||
// 地址信息初始化
|
||||
user_location_init() {
|
||||
var result = uni.getStorageSync(app.globalData.data.cache_userlocation_key) || null;
|
||||
var upd_data = {};
|
||||
if (result != null) {
|
||||
upd_data['user_location'] = {
|
||||
name: result.name || null,
|
||||
address: result.address || null,
|
||||
lat: result.latitude || null,
|
||||
lng: result.longitude || null,
|
||||
};
|
||||
upd_data['location_tips_close_status'] = false;
|
||||
} else {
|
||||
upd_data['user_location'] = null;
|
||||
if (this.is_first == 1) {
|
||||
upd_data['location_tips_close_status'] = true;
|
||||
}
|
||||
|
||||
// 分享菜单处理
|
||||
app.globalData.page_share_handle(this.share_info);
|
||||
},
|
||||
fail: () => {
|
||||
uni.stopPullDownRefresh();
|
||||
this.setData({
|
||||
data_list_loding_status: 2,
|
||||
});
|
||||
app.globalData.showToast("服务器请求出错");
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
// 搜索事件
|
||||
search_button_event(e) {
|
||||
var params = (e || null) == null ? "" : "?keywords=" + e;
|
||||
uni.navigateTo({
|
||||
url: "/pages/plugins/realstore/search/search" + params,
|
||||
});
|
||||
},
|
||||
|
||||
// 选择地理位置
|
||||
choose_location_event(e) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/common/open-setting-location/open-setting-location",
|
||||
});
|
||||
},
|
||||
|
||||
// 地址信息初始化
|
||||
user_location_init() {
|
||||
var result = uni.getStorageSync(app.globalData.data.cache_userlocation_key) || null;
|
||||
var upd_data = {};
|
||||
if (result != null) {
|
||||
upd_data["user_location"] = {
|
||||
name: result.name || null,
|
||||
address: result.address || null,
|
||||
lat: result.latitude || null,
|
||||
lng: result.longitude || null,
|
||||
};
|
||||
upd_data["location_tips_close_status"] = false;
|
||||
} else {
|
||||
upd_data["user_location"] = null;
|
||||
if (this.is_first == 1) {
|
||||
upd_data["location_tips_close_status"] = true;
|
||||
}
|
||||
}
|
||||
this.setData(upd_data);
|
||||
},
|
||||
this.setData(upd_data);
|
||||
},
|
||||
|
||||
// 地址选择提示关闭事件
|
||||
location_tips_close_event(e) {
|
||||
this.setData({
|
||||
location_tips_close_status: false,
|
||||
});
|
||||
// 地址选择提示关闭事件
|
||||
location_tips_close_event(e) {
|
||||
this.setData({
|
||||
location_tips_close_status: false,
|
||||
});
|
||||
},
|
||||
handleResize() {
|
||||
this.setData({
|
||||
screenWidth: window.innerWidth,
|
||||
});
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
@import "./index.css";
|
||||
@import './index.css';
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
<scroll-view :scroll-y="true" class="scroll-box scroll-wallet" @scrolltolower="scroll_lower" lower-threshold="60">
|
||||
<view v-if="(data_base || null) != null" :style="'padding-top:' + (status_bar_height > 0 ? status_bar_height + 5 : 10) + 'px;'">
|
||||
<!-- 头部背景 -->
|
||||
<image :src="wallet_static_url + 'title-bg.png'" mode="widthFix" class="wh-auto pa top-0 left-0 right-0 wallet-bg" />
|
||||
<image :src="wallet_static_url + 'title-bg.png'" mode="widthFix" class="pa top-0 bg-img wh-auto wallet-bg" />
|
||||
<view class="pr z-i">
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m cr-white" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-horizontal-main padding-top-sm round va-m cr-white">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
</view>
|
||||
<!-- 返回 -->
|
||||
<!-- #ifdef MP-WEIXIN || MP-QQ || MP-KUAISHOU || H5 || APP -->
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-left-main round va-m cr-white pr z-i" @tap="top_nav_left_back_event">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx"></iconfont>
|
||||
<view v-if="is_realstore_top_nav_back == 1" class="nav-back padding-left-main round va-m cr-white pr z-i">
|
||||
<iconfont name="icon-tongyong-fanhui" size="40rpx" @tap="top_nav_left_back_event"></iconfont>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view v-if="Object.keys(detail_data.length !== 0)" class="padding-main pr z-i margin-top-main">
|
||||
|
|
|
|||
Loading…
Reference in New Issue