feat: 优化
This commit is contained in:
@@ -17,6 +17,15 @@
|
|||||||
|
|
||||||
</view>
|
</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"
|
<mescroll-uni ref="mescrollRef" top="660rpx" @down="downCallback" @up="upCallback" :up="upOption"
|
||||||
:down="downOption" @init="mescrollInit">
|
:down="downOption" @init="mescrollInit">
|
||||||
<view class="setting-view">
|
<view class="setting-view">
|
||||||
@@ -52,7 +61,8 @@ export default {
|
|||||||
swiperList: [],
|
swiperList: [],
|
||||||
currentNum: 0,
|
currentNum: 0,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
tabList: [{ name: "推荐" }],
|
tabList: [],
|
||||||
|
// tabList: [{ name: "推荐" }],
|
||||||
curTab: 0,
|
curTab: 0,
|
||||||
upOption: {
|
upOption: {
|
||||||
auto: false,
|
auto: false,
|
||||||
@@ -75,7 +85,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.cascadeCategory();
|
// this.cascadeCategory();
|
||||||
this.getCarouselImage()
|
this.getCarouselImage()
|
||||||
this.upCallback({ num: 1, size: 10 });
|
this.upCallback({ num: 1, size: 10 });
|
||||||
},
|
},
|
||||||
@@ -274,6 +284,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 600rpx;
|
top: 600rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
z-index: 99;
|
||||||
|
|
||||||
.tab-list {
|
.tab-list {
|
||||||
margin-right: 24rpx;
|
margin-right: 24rpx;
|
||||||
|
|||||||
@@ -64,11 +64,11 @@
|
|||||||
<view class="content_data_series">
|
<view class="content_data_series">
|
||||||
<!-- 暂时隐藏 -->
|
<!-- 暂时隐藏 -->
|
||||||
<view class="content_data_series_tag" v-if="orderInfo.contribution">
|
<view class="content_data_series_tag" v-if="orderInfo.contribution">
|
||||||
<image class="uni-image" src="https://static.tbmall.xin/static/new-home/home_3.png"></image>
|
<image class="uni-image" src="https://static.tbmall.xin/static/mine-purse/vcoin.png"></image>
|
||||||
下单送{{ orderInfo.contribution }}贡献值
|
下单送{{ orderInfo.contribution }}贡献值
|
||||||
</view>
|
</view>
|
||||||
<!-- 销量还需要改 -->
|
<!-- 销量还需要改 -->
|
||||||
<view>全网销量{{ limit999(orderInfo.sales) }}件</view>
|
<view class="sales_count">全网销量{{ limit999(orderInfo.sales) }}件</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -113,11 +113,13 @@
|
|||||||
<view class="concrete_item_title">购物保障</view>
|
<view class="concrete_item_title">购物保障</view>
|
||||||
<view class="concrete_item_value concrete_item_bz">
|
<view class="concrete_item_value concrete_item_bz">
|
||||||
<view class="concrete_item_bz concrete_item_bz_item">
|
<view class="concrete_item_bz concrete_item_bz_item">
|
||||||
<up-image src="/pages/other_package/static/product/product_b.png" width="10" height="12" bgColor="#f1f6ff00"></up-image>
|
<up-image src="/pages/other_package/static/product/product_b.png" width="10" height="12"
|
||||||
|
bgColor="#f1f6ff00"></up-image>
|
||||||
<view class="concrete_item_bz_item_left">品质严保</view>
|
<view class="concrete_item_bz_item_left">品质严保</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="concrete_item_bz">
|
<view class="concrete_item_bz">
|
||||||
<up-image src="/pages/other_package/static/product/product_js.png" width="10" height="10" bgColor="#f1f6ff00"></up-image>
|
<up-image src="/pages/other_package/static/product/product_js.png" width="10" height="10"
|
||||||
|
bgColor="#f1f6ff00"></up-image>
|
||||||
<view class="concrete_item_bz_item_left">极速退款</view>
|
<view class="concrete_item_bz_item_left">极速退款</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -1520,10 +1522,15 @@ export default {
|
|||||||
background: rgba(121, 52, 246, 0.1);
|
background: rgba(121, 52, 246, 0.1);
|
||||||
|
|
||||||
.uni-image {
|
.uni-image {
|
||||||
width: 40rpx;
|
width: 28rpx;
|
||||||
height: 28rpx;
|
height: 28rpx;
|
||||||
|
margin-right: 5rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sales_count {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tui-view {
|
.tui-view {
|
||||||
|
|||||||
+6
-6
@@ -1,11 +1,11 @@
|
|||||||
// export const BASE_URL = "https://api.tbmall.xin"; //生产
|
export const BASE_URL = "https://api.tbmall.xin"; //生产
|
||||||
// export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
||||||
// export const kefuBaseUrl = "https://admin.tbmall.xin/api";
|
export const kefuBaseUrl = "https://admin.tbmall.xin/api";
|
||||||
|
|
||||||
|
|
||||||
export const BASE_URL = baseUrl; // 本地测试
|
// export const BASE_URL = baseUrl; // 本地测试
|
||||||
export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
// export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
||||||
export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
|
// export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
|
||||||
|
|
||||||
|
|
||||||
// H5 环境且开发模式下使用 '/proxy-api' 代理解决浏览器跨域(注意不能用 '/api',否则会与本地 /api 源码目录冲突)
|
// H5 环境且开发模式下使用 '/proxy-api' 代理解决浏览器跨域(注意不能用 '/api',否则会与本地 /api 源码目录冲突)
|
||||||
|
|||||||
Reference in New Issue
Block a user