feat: 优化
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
}
|
||||
|
||||
.data_msg {
|
||||
|
||||
@@ -1,43 +1,20 @@
|
||||
<template>
|
||||
<view class="choiceness_warp">
|
||||
<view class="choiceness_title">
|
||||
<up-image
|
||||
src="/static/common/jingxuan_left.png"
|
||||
width="24"
|
||||
height="8"
|
||||
bgColor="#f1f6ff00"
|
||||
></up-image>
|
||||
<up-image src="/static/common/jingxuan_left.png" width="24" height="8" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="choiceness_title_msg">为您精选</view>
|
||||
<up-image
|
||||
src="/static/common/jingxuan_right.png"
|
||||
width="24"
|
||||
height="8"
|
||||
bgColor="#f1f6ff00"
|
||||
></up-image>
|
||||
<up-image src="/static/common/jingxuan_right.png" width="24" height="8" bgColor="#f1f6ff00"></up-image>
|
||||
</view>
|
||||
<view
|
||||
class="choiceness_product"
|
||||
:class="platformType ? '' : 'iosplatformType'"
|
||||
>
|
||||
<view
|
||||
v-for="item in productList"
|
||||
:key="item.id"
|
||||
class="choiceness_product_item"
|
||||
@click="jumpInfo(item)"
|
||||
>
|
||||
<up-image
|
||||
:src="item.url"
|
||||
width="100%"
|
||||
height="140"
|
||||
bgColor="#f1f6ff00"
|
||||
></up-image>
|
||||
<view class="choiceness_product" :class="platformType ? '' : 'iosplatformType'">
|
||||
<view v-for="item in productList" :key="item.id" class="choiceness_product_item" @click="jumpInfo(item)">
|
||||
<up-image :src="item.url" width="100%" height="140" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="product_item_name">{{ item.title }}</view>
|
||||
<view class="product_item_price">
|
||||
<view class="price_">
|
||||
<text>¥</text>
|
||||
<text style="color: 36rpx">{{ item.price }}</text>
|
||||
</view>
|
||||
<view class="price_sell">已售{{ item.sales }}件</view>
|
||||
<view class="price_sell">全网销量{{ limit999(item.sales) }}件</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -63,6 +40,13 @@ export default {
|
||||
this.getSearchList();
|
||||
},
|
||||
methods: {
|
||||
limit999(n) {
|
||||
const num = Number(n);
|
||||
if (isNaN(num) || num < 10000) {
|
||||
return n != null && n !== '' ? String(n) : '0';
|
||||
}
|
||||
return `${Math.floor(num / 10000)}万+`;
|
||||
},
|
||||
//
|
||||
jumpInfo(item) {
|
||||
uni.navigateTo({
|
||||
@@ -104,6 +88,7 @@ export default {
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) + 100rpx);
|
||||
|
||||
&.iosplatformType {
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
<scroll-view :scroll-y="true" class="address-bottom-list" :scroll-into-view="scrollId">
|
||||
<scroll-view :scroll-y="true" class="address-bottom-list" :scroll-into-view="scrollId"
|
||||
:scroll-top="scrollTop">
|
||||
<view class="address-data-view" v-for="(item, index) in dataList" :key="index" :id="item.zi">
|
||||
<text class="text-32 text-gray text-bold">{{ item.zi }}</text>
|
||||
<view class="address-data-data" @click="onItem(item, xItem)" v-for="(xItem, xIndex) in item.data"
|
||||
@@ -45,6 +46,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
scrollId: '',
|
||||
scrollTop: 0,
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@@ -68,10 +70,23 @@ export default {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
watch: {
|
||||
dataList() {
|
||||
this.resetScroll();
|
||||
},
|
||||
curSelect() {
|
||||
this.resetScroll();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
resetScroll() {
|
||||
this.scrollId = '';
|
||||
this.scrollTop = this.scrollTop === 0 ? 0.01 : 0;
|
||||
this.$nextTick(() => {
|
||||
this.scrollTop = 0;
|
||||
});
|
||||
},
|
||||
onClose() {
|
||||
this.$emit('close')
|
||||
},
|
||||
@@ -83,6 +98,7 @@ export default {
|
||||
},
|
||||
onSelectItrm(item, index) {
|
||||
if (index != this.curSelect) {
|
||||
this.resetScroll();
|
||||
this.$emit('select', item, index);
|
||||
}
|
||||
},
|
||||
@@ -91,6 +107,7 @@ export default {
|
||||
Func.debounce(() => this.onItemOne(item, xItem), 150);
|
||||
},
|
||||
onItemOne(item, xItem) {
|
||||
this.resetScroll();
|
||||
this.$emit('itemSelect', item, xItem);
|
||||
}
|
||||
}
|
||||
@@ -127,8 +144,8 @@ export default {
|
||||
|
||||
.address-bottom-list {
|
||||
width: 100%;
|
||||
height: calc(100% - 88rpx - 88rpx - 32rpx);
|
||||
margin-top: 32rpx;
|
||||
height: calc(100% - 60rpx - 88rpx - 32rpx);
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
@@ -153,8 +170,8 @@ export default {
|
||||
|
||||
.address-select-view {
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
min-height: 88rpx;
|
||||
height: 60rpx;
|
||||
min-height: 60rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
<view class="templ_img_item" v-for="item in uploadTemplList" :key="item.id">
|
||||
<up-image :src="item.url" width="100%" height="50" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="templ_img_item_msg">
|
||||
<up-image :src="item.isOk ? '/static/common/ID_ok_1.png' : '/static/common/ID_error.png'" width="10"
|
||||
height="10" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="templ_img_item_msg_title">{{ item.title }}</view>
|
||||
<up-image :src="item.isOk ? '/static/common/ID_ok_1.png' : '/static/common/ID_error.png'"
|
||||
width="10" height="10" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="templ_img_item_msg_title">{{ item.title }}111</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
id: 2,
|
||||
title: "边框缺失",
|
||||
isOk: false,
|
||||
url: "https://static.tbmall.xin/static/ID_error_1.png",
|
||||
url: "https://static.tbmall.xin/static/ID_gq.png",
|
||||
}, {
|
||||
id: 3,
|
||||
title: "照片模糊",
|
||||
@@ -176,4 +176,15 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style scoped lang="scss">
|
||||
.data_common_warp {
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 92rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -16,7 +16,7 @@
|
||||
<!-- 无优惠券 -->
|
||||
<view class="flex-r-lr price-line" v-else>
|
||||
<text class="text-28 text-zi text-bold">¥{{ obj.price }}</text>
|
||||
<text class="text-24 sold">已售{{ obj.sales }}件</text>
|
||||
<text class="text-24 sold">全网销量{{ limit999(obj.sales) }}件</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -32,6 +32,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
limit999(n) {
|
||||
const num = Number(n);
|
||||
if (isNaN(num) || num < 10000) {
|
||||
return n != null && n !== '' ? String(n) : '0';
|
||||
}
|
||||
return `${Math.floor(num / 10000)}万+`;
|
||||
},
|
||||
onClick() {
|
||||
this.$emit('ok', this.obj.id);
|
||||
}
|
||||
|
||||
@@ -24,32 +24,18 @@
|
||||
<text class="tab-text">{{ item.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 限时秒杀标签 -->
|
||||
<!-- <view class="tab-list-container">
|
||||
<view class="tab-list" @click="onTab(index)" v-for="(item, index) in tabList" :key="index">
|
||||
<text class="text-28 text-space" :style="{
|
||||
color: curTab == index ? '#7A35F6' : '#666'
|
||||
}">
|
||||
{{ item.name }}
|
||||
</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<mescroll-uni ref="mescrollRef" top="710rpx" @down="downCallback" @up="upCallback" :up="upOption"
|
||||
:down="downOption" @init="mescrollInit">
|
||||
<view class="setting-view">
|
||||
<view class="name-box">
|
||||
<mescroll-uni ref="mescrollRef" @down="downCallback" @up="upCallback" :up="upOption" :down="downOption"
|
||||
@init="mescrollInit" :fixed="false">
|
||||
<!-- 原来单个 v-for 替换成两列 -->
|
||||
<view class="mescrollUniView" v-for="item in dataList" :key="item.id">
|
||||
<productSeckillCard :item="item" :actived-type="activedScekillType" :attributes="attributes" />
|
||||
<view class="mescrollUniView">
|
||||
<productSeckillCard v-for="item in dataList" :key="item.id" :item="item" :actived-type="activedScekillType" :attributes="attributes" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #ifndef H5 || MP-WEIXIN-->
|
||||
<CustomTabBar :tabIndex="2" />
|
||||
<!-- #endif -->
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
</template>
|
||||
@@ -238,14 +224,18 @@ export default {
|
||||
.content-two {
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product_info_header_warp {
|
||||
position: relative;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 660rpx;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
|
||||
.product_info_header_swiper {
|
||||
height: 660rpx !important;
|
||||
@@ -379,9 +369,10 @@ export default {
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
overflow-x: auto;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 600rpx;
|
||||
left: 0;
|
||||
z-index: 11;
|
||||
|
||||
.tab-list-container {
|
||||
width: 100%;
|
||||
@@ -406,28 +397,14 @@ export default {
|
||||
}
|
||||
|
||||
.setting-view {
|
||||
margin-top: 0;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow-y: auto;
|
||||
padding: 0 32rpx;
|
||||
padding: 0 32rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
margin-top: 126rpx;
|
||||
|
||||
/* #ifndef H5 || MP-WEIXIN */
|
||||
margin-bottom: calc(100rpx + env(safe-area-inset-bottom));
|
||||
/* #endif */
|
||||
margin-top: 0;
|
||||
|
||||
.name-box {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
</view>
|
||||
|
||||
<mescroll-uni ref="mescrollRef" top="660rpx" @down="downCallback" @up="upCallback" :up="upOption" :down="downOption"
|
||||
@init="mescrollInit">
|
||||
<view class="tab-view">
|
||||
<view class="tab-list" @click="onTab(index)" v-for="(item, index) in tabList" :key="index">
|
||||
<text class="text-28 text-space" :style="{
|
||||
@@ -28,15 +30,12 @@
|
||||
|
||||
<view class="setting-view">
|
||||
<view class="name-box">
|
||||
<mescroll-uni ref="mescrollRef" @down="downCallback" @up="upCallback" :up="upOption" :down="downOption"
|
||||
@init="mescrollInit" :fixed="false">
|
||||
<!-- 原来单个 v-for 替换成两列 -->
|
||||
<view class="mescrollUniView" v-for="item in dataList" :key="item.id">
|
||||
<productSeckillCard :item="item" actived-type="newcomer" />
|
||||
<view class="mescrollUniView">
|
||||
<productSeckillCard v-for="item in dataList" :key="item.id" :item="item" actived-type="newcomer" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #ifndef H5 || MP-WEIXIN-->
|
||||
<CustomTabBar :tabIndex="2" />
|
||||
<!-- #endif -->
|
||||
@@ -193,14 +192,18 @@ export default {
|
||||
.content-two {
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product_info_header_warp {
|
||||
position: relative;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 660rpx;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
|
||||
.product_info_header_swiper {
|
||||
height: 660rpx !important;
|
||||
@@ -323,25 +326,12 @@ export default {
|
||||
.setting-view {
|
||||
margin-top: 40rpx;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow-y: auto;
|
||||
padding: 0 32rpx;
|
||||
padding: 0 32rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
/* #ifndef H5 || MP-WEIXIN */
|
||||
margin-bottom: calc(100rpx + env(safe-area-inset-bottom));
|
||||
/* #endif */
|
||||
|
||||
.name-box {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -17,29 +17,16 @@
|
||||
|
||||
</view>
|
||||
|
||||
<!-- <view class="tab-view">
|
||||
<view class="tab-list" @click="onTab(index)" v-for="(item, index) in tabList" :key="index">
|
||||
<text class="text-28 text-space" :style="{
|
||||
color: curTab == index ? '#7A35F6' : '#666',
|
||||
}">{{ item.name }}</text>
|
||||
<view class="line" v-if="curTab == index"></view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<mescroll-uni ref="mescrollRef" top="660rpx" @down="downCallback" @up="upCallback" :up="upOption"
|
||||
:down="downOption" @init="mescrollInit">
|
||||
<view class="setting-view">
|
||||
<view class="name-box">
|
||||
<mescroll-uni ref="mescrollRef" @down="downCallback" @up="upCallback" :up="upOption" :down="downOption"
|
||||
@init="mescrollInit" :fixed="false">
|
||||
<!-- 原来单个 v-for 替换成两列 -->
|
||||
<view class="mescrollUniView" v-for="item in dataList" :key="item.id">
|
||||
<productSeckillCard :item="item" actived-type="super" />
|
||||
<view class="mescrollUniView">
|
||||
<productSeckillCard v-for="item in dataList" :key="item.id" :item="item" actived-type="super" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #ifndef H5 || MP-WEIXIN-->
|
||||
<CustomTabBar :tabIndex="2" />
|
||||
<!-- #endif -->
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
</template>
|
||||
@@ -175,14 +162,18 @@ export default {
|
||||
.content-two {
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product_info_header_warp {
|
||||
position: relative;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 660rpx;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
|
||||
.product_info_header_swiper {
|
||||
height: 660rpx !important;
|
||||
@@ -305,25 +296,12 @@ export default {
|
||||
.setting-view {
|
||||
margin-top: 40rpx;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow-y: auto;
|
||||
padding: 0 32rpx;
|
||||
padding: 0 32rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
/* #ifndef H5 || MP-WEIXIN */
|
||||
margin-bottom: calc(100rpx + env(safe-area-inset-bottom));
|
||||
/* #endif */
|
||||
|
||||
.name-box {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
+54
-6
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="mine_warp" :class="platformType ? '' : 'iosplatformType'">
|
||||
<view class="mine_header">
|
||||
<view class="mine_header" :style="headerStyle">
|
||||
<view class="mine_login_data" v-if="currentUserData && Object.keys(currentUserData).length !== 0">
|
||||
<view class="mine_data">
|
||||
<up-image
|
||||
@@ -11,9 +11,8 @@
|
||||
<text style="margin-right: 20rpx">{{ currentUserData.nickname || '信任桥用户' }}</text>
|
||||
|
||||
<view class="level level-grade" @click="jumpToTrustBridge" v-if="currentUserData.agentName">
|
||||
<up-image src="/static/common/rz.png"
|
||||
style="margin-right: 8rpx; margin-top: 6rpx" shape="circle" width="13" height="13"
|
||||
bgColor="#f1f6ff00"></up-image>
|
||||
<up-image src="/static/common/rz.png" style="margin-right: 8rpx; margin-top: 6rpx"
|
||||
shape="circle" width="13" height="13" bgColor="#f1f6ff00"></up-image>
|
||||
<view>{{ currentUserData.agentName }}</view>
|
||||
</view>
|
||||
|
||||
@@ -84,7 +83,9 @@
|
||||
@click="jumpOrder(item)">
|
||||
<up-image :src="item.url" width="28" height="28" bgColor="#f1f6ff00"></up-image>
|
||||
<view>{{ item.title }}</view>
|
||||
<up-badge :absolute="true" :offset="[-9, 9]" max="99" :customStyle="{ width: '40rpx', height: '32rpx', borderRadius: '45% 45% 45% 0', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 0 }" :value="statisticsObj[item.note]"></up-badge>
|
||||
<up-badge :absolute="true" :offset="[-9, 9]" max="99"
|
||||
:customStyle="{ width: '40rpx', height: '32rpx', borderRadius: '45% 45% 45% 0', display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 0 }"
|
||||
:value="statisticsObj[item.note]"></up-badge>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -413,9 +414,14 @@ export default {
|
||||
platformType: true,
|
||||
kefuUnreadCount: 0,
|
||||
kefuUnreadTimer: null,
|
||||
headerStyle: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.headerStyle = this.calcHeaderStyle();
|
||||
},
|
||||
onShow() {
|
||||
this.headerStyle = this.calcHeaderStyle();
|
||||
this.userData = getStorageFun(USER_DATA);
|
||||
/*#ifdef APP-PLUS*/
|
||||
uni.hideTabBar({
|
||||
@@ -435,8 +441,50 @@ export default {
|
||||
onUnload() {
|
||||
this.stopKefuUnreadPolling();
|
||||
},
|
||||
mounted() { },
|
||||
mounted() {
|
||||
this.headerStyle = this.calcHeaderStyle();
|
||||
},
|
||||
methods: {
|
||||
calcHeaderStyle() {
|
||||
let paddingTop = '90rpx';
|
||||
let paddingRight = '30rpx';
|
||||
|
||||
// #ifdef MP-WEIXIN || MP
|
||||
try {
|
||||
const menuButton = uni.getMenuButtonBoundingClientRect();
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
if (menuButton && menuButton.top && menuButton.top > 0) {
|
||||
paddingTop = (menuButton.top + 2) + 'px';
|
||||
if (sysInfo && sysInfo.windowWidth && menuButton.left) {
|
||||
paddingRight = (sysInfo.windowWidth - menuButton.left + 10) + 'px';
|
||||
}
|
||||
} else {
|
||||
const statusBarHeight = (sysInfo && sysInfo.statusBarHeight) || 20;
|
||||
paddingTop = (statusBarHeight + 10) + 'px';
|
||||
paddingRight = '96px';
|
||||
}
|
||||
} catch (e) {
|
||||
paddingTop = '90rpx';
|
||||
paddingRight = '96px';
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
try {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
if (sysInfo && sysInfo.statusBarHeight) {
|
||||
paddingTop = (sysInfo.statusBarHeight + 10) + 'px';
|
||||
}
|
||||
} catch (e) {
|
||||
paddingTop = '90rpx';
|
||||
}
|
||||
// #endif
|
||||
|
||||
return {
|
||||
paddingTop,
|
||||
paddingRight
|
||||
};
|
||||
},
|
||||
copyData,
|
||||
async refreshKefuUnreadCount() {
|
||||
const userId = this.currentUserData && this.currentUserData.id;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<view class="authentication_warp">
|
||||
<Header :leftTitle="$t('authentication.title')" left-path-type="switchTab" left-path="/pages/mine/mine">
|
||||
</Header>
|
||||
<view class="content_warp">
|
||||
<view class="data_common_warp">
|
||||
<view class="data_msg">请填写用户本人得相关信息</view>
|
||||
<view class="'add_form_item add_form_item_but'" v-for="item in formList" :key="item.id">
|
||||
@@ -19,6 +20,7 @@
|
||||
</view>
|
||||
<!-- 证件照 -->
|
||||
<CommonCard @valueFunc="getValue" :Fimg="form.certFimg" :Bimg="form.certBimg" />
|
||||
</view>
|
||||
<view class="add_but" @click="addAuthentication">
|
||||
{{ userInfo && userInfo.certStatus ? '重新提交' : '提交' }}
|
||||
</view>
|
||||
@@ -208,9 +210,17 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.authentication_warp {
|
||||
height: calc(100vh - 58rpx);
|
||||
height: 100%;
|
||||
// height: calc(100vh - 158rpx);
|
||||
background-color: $app-bj;
|
||||
padding: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.content_warp {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
.cert_ {
|
||||
@@ -223,4 +233,9 @@ export default {
|
||||
color: #9e9e9ec7
|
||||
}
|
||||
}
|
||||
|
||||
.add_but {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -3,38 +3,22 @@
|
||||
<view class="eval-header">
|
||||
<view class="title">商品评价 ({{ totalCount }})</view>
|
||||
<view class="more" @click="goMore">
|
||||
<view class="rate"
|
||||
>查看全部
|
||||
<up-image
|
||||
src="/static/common/right.png"
|
||||
width="14"
|
||||
height="14"
|
||||
bgColor="#f1f6ff00"
|
||||
class="arrow"
|
||||
></up-image
|
||||
></view>
|
||||
<view class="rate">查看全部
|
||||
<up-image src="/static/common/right.png" width="14" height="14" bgColor="#f1f6ff00" class="arrow"></up-image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="eval-list">
|
||||
<view class="eval-item" v-for="(item, index) in list" :key="index">
|
||||
<view class="user-info">
|
||||
<view class="user-left">
|
||||
<image
|
||||
class="avatar"
|
||||
:src="item.userImage"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image class="avatar" :src="item.userImage" mode="aspectFill"></image>
|
||||
<text class="username">{{ item.userName }}</text>
|
||||
</view>
|
||||
<view class="user-right">
|
||||
<view class="stars">
|
||||
<text
|
||||
v-for="s in item.rating"
|
||||
:key="s"
|
||||
class="star-icon"
|
||||
:style="{ color: s <= item.rating ? '#7934F6' : '#e5e5e5' }"
|
||||
>★</text
|
||||
>
|
||||
<text v-for="s in item.rating" :key="s" class="star-icon"
|
||||
:style="{ color: s <= item.rating ? '#7934F6' : '#e5e5e5' }">★</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -109,6 +93,7 @@ export default {
|
||||
/* 自适应父级宽度,可根据页面情况调整 margin */
|
||||
margin: 20rpx auto;
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
|
||||
/* 头部样式 */
|
||||
@@ -133,10 +118,12 @@ export default {
|
||||
|
||||
.rate {
|
||||
color: #999999;
|
||||
margin-right: 4rpx;
|
||||
display: flex;
|
||||
|
||||
.arrow {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,6 +172,7 @@ export default {
|
||||
.user-right {
|
||||
.stars {
|
||||
display: flex;
|
||||
|
||||
.star-icon {
|
||||
font-size: 26rpx;
|
||||
margin-left: 6rpx;
|
||||
@@ -196,6 +184,7 @@ export default {
|
||||
/* 评价文字 */
|
||||
.eval-content {
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
.text-desc {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
下单送{{ orderInfo.contribution }}贡献值
|
||||
</view>
|
||||
<!-- 销量还需要改 -->
|
||||
<view>销量{{ limit999(orderInfo.sales) }}件</view>
|
||||
<view>全网销量{{ limit999(orderInfo.sales) }}件</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -497,7 +497,11 @@ export default {
|
||||
methods: {
|
||||
assembleAddress,
|
||||
limit999(n) {
|
||||
return n > 999 ? '999+' : String(n);
|
||||
const num = Number(n);
|
||||
if (isNaN(num) || num < 10000) {
|
||||
return n != null && n !== '' ? String(n) : '0';
|
||||
}
|
||||
return `${Math.floor(num / 10000)}万+`;
|
||||
},
|
||||
|
||||
onOpenApp() {
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
</u-radio-group>
|
||||
</view>
|
||||
<view class="right-icon-view" v-else>
|
||||
<text class="text-32 text-gray" style="margin-right:12rpx" v-if="selectVal && curSelect == '0'">{{selectVal.name + '/' + selectVal.account}}</text>
|
||||
<text class="text-32 text-gray" style="margin-right:12rpx"
|
||||
v-if="selectVal && curSelect == '0'">{{ selectVal.name + '/' + selectVal.account }}</text>
|
||||
<u-icon size="14" name="arrow-right" color="#333"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@@ -42,7 +43,8 @@
|
||||
</u-radio-group>
|
||||
</view>
|
||||
<view class="right-icon-view" v-else>
|
||||
<text class="text-32 text-gray" style="margin-right:12rpx" v-if="selectVal && curSelect == '1'">{{selectVal.name + '/' + selectVal.account}}</text>
|
||||
<text class="text-32 text-gray" style="margin-right:12rpx"
|
||||
v-if="selectVal && curSelect == '1'">{{ selectVal.name + '/' + selectVal.account }}</text>
|
||||
<u-icon size="14" name="arrow-right" color="#333"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
@@ -57,14 +59,15 @@
|
||||
<text class="text-52 text-zu text-bold">¥</text>
|
||||
<input style="background: #fff;margin-top:10rpx;"
|
||||
:placeholder="type == 0 ? '请输入提现金额(0.3-2000)' : '输入充值金额'"
|
||||
placeholder-style="color:#999;font-weight:400"
|
||||
@input="onInput"
|
||||
border="0" v-model="money" :customStyle="inputCss"></input>
|
||||
placeholder-style="color:#999;font-weight:400" @input="onInput" border="0" v-model="money"
|
||||
:customStyle="inputCss"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zhu-view" v-if="selectVal">
|
||||
<u-icon size="12" style="margin-top:5rpx;margin-right:12rpx" name="error-circle" color="#7934F6"></u-icon>
|
||||
<text class="text-24 text-zi" style="font-weight: 400;">通过支付宝或微信提现时,将由支付宝/微信官方收取0.6%的费用,本平台不收取任何费用。</text>
|
||||
<u-icon size="12" style="margin-top:5rpx;margin-right:12rpx" name="error-circle"
|
||||
color="#7934F6"></u-icon>
|
||||
<text class="text-24 text-zi"
|
||||
style="font-weight: 400;">通过支付宝或微信提现时,将由支付宝/微信官方收取0.6%的费用,本平台不收取任何费用。</text>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -72,8 +75,8 @@
|
||||
<view class="bottom-btn">
|
||||
<MyBtn :text="bottomText" @ok="onAdd"></MyBtn>
|
||||
</view>
|
||||
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk" @add="onAddBack"
|
||||
:type="curSelect" :itemShow="selectShow"></SelectItem>
|
||||
<SelectItem :itemData="dataList" @close="onClose" @ok="onOk" @add="onAddBack" :type="curSelect"
|
||||
:itemShow="selectShow"></SelectItem>
|
||||
<CodeItem @ti="onTi" @close="onClose" :codeShow="codeShow" :phone="userInfo ? userInfo.mobile : ''"></CodeItem>
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
@@ -396,6 +399,7 @@ export default {
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.setting-view {
|
||||
width: 100%;
|
||||
height: calc(100% - 88rpx - 92rpx - 88rpx - var(--status-bar-height));
|
||||
@@ -406,6 +410,7 @@ export default {
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
|
||||
.top-view {
|
||||
width: 100%;
|
||||
margin-top: 40rpx;
|
||||
@@ -419,6 +424,7 @@ export default {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-radius: 16rpx;
|
||||
|
||||
.top-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -427,6 +433,7 @@ export default {
|
||||
|
||||
|
||||
}
|
||||
|
||||
.top-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -435,6 +442,7 @@ export default {
|
||||
height: 108rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.zhu-view {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@@ -447,6 +455,7 @@ export default {
|
||||
background: rgba(121, 52, 246, 0.05);
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.mid-view {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@@ -458,6 +467,7 @@ export default {
|
||||
padding: 32rpx;
|
||||
padding-bottom: 0;
|
||||
margin-top: 24rpx;
|
||||
|
||||
.item-view {
|
||||
width: 100%;
|
||||
height: 110rpx;
|
||||
@@ -467,6 +477,7 @@ export default {
|
||||
position: relative;
|
||||
align-items: center;
|
||||
border-bottom: 2rpx solid #ececec;
|
||||
|
||||
.right-icon-view {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
@@ -480,6 +491,7 @@ export default {
|
||||
height: 48rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.input-view {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
|
||||
Reference in New Issue
Block a user