Commit 1779663e authored by 王建威's avatar 王建威

bug fi

parent 9fdb6781
...@@ -15,4 +15,8 @@ ...@@ -15,4 +15,8 @@
<style> <style>
@import './static/iconfont.css'; @import './static/iconfont.css';
.uni-input-input {
overflow: hidden;
text-overflow: ellipsis;
}
</style> </style>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
"disableHostCheck": true, "disableHostCheck": true,
"proxy": { "proxy": {
"/uni/api": { "/uni/api": {
"target": "http://39.96.85.45:9093/", "target": "http://192.168.50.133:6564/",
"changeOrigin": true, "changeOrigin": true,
"secure": false, "secure": false,
"pathRewrite": { "pathRewrite": {
......
This diff is collapsed.
...@@ -62,6 +62,9 @@ ...@@ -62,6 +62,9 @@
} }
}, },
onLoad(option) { onLoad(option) {
uni.showLoading({
title: '加载中'
});
this.firsr_cate_id = option.cate_id_1; this.firsr_cate_id = option.cate_id_1;
option.current = Number(option.current); option.current = Number(option.current);
option.page_size = Number(option.page_size); option.page_size = Number(option.page_size);
...@@ -108,6 +111,7 @@ ...@@ -108,6 +111,7 @@
this.page = page; this.page = page;
this.isLogin = res.data.login_flg; this.isLogin = res.data.login_flg;
this.is_city = res.data.city_flg; this.is_city = res.data.city_flg;
uni.hideLoading();
} }
}); });
}, },
......
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
} }
}, },
onLoad(option) { onLoad(option) {
uni.showLoading({
title: '加载中'
});
this.getData({ this.getData({
current: 1, current: 1,
page_size: 10 page_size: 10
...@@ -108,6 +111,7 @@ ...@@ -108,6 +111,7 @@
this.page = page; this.page = page;
this.isLogin = res.data.login_flg; this.isLogin = res.data.login_flg;
this.is_city = res.data.city_flg; this.is_city = res.data.city_flg;
uni.hideLoading();
} }
}); });
}, },
......
...@@ -79,7 +79,8 @@ ...@@ -79,7 +79,8 @@
if(goods_data_type === 3) { if(goods_data_type === 3) {
list = goods_list; list = goods_list;
} else if (goods_data_type === 1) { } else if (goods_data_type === 1) {
list = additional_goods_show ? cate_goods_list.concat(goods_list).slice(0,goods_num) : cate_goods_list let cgl = buy_goods_list || [];
list = additional_goods_show ? cgl.concat(goods_list).slice(0,goods_num) : cgl
} else { } else {
let bgl = buy_goods_list || []; let bgl = buy_goods_list || [];
list = additional_goods_show ? bgl.concat(goods_list).slice(0,goods_num) : bgl list = additional_goods_show ? bgl.concat(goods_list).slice(0,goods_num) : bgl
...@@ -113,6 +114,7 @@ ...@@ -113,6 +114,7 @@
} }
.goods_content, .swiper_content { .goods_content, .swiper_content {
border-radius: 0 0 16rpx 16rpx; border-radius: 0 0 16rpx 16rpx;
margin-bottom: 20rpx;
} }
.goods_box, .goods_box2 { .goods_box, .goods_box2 {
display: flex; display: flex;
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
</view> </view>
</view> </view>
<view class="hot_cate_list"> <view class="hot_cate_list">
<text class="hot_cate_item" v-for="(item, key) in cate_list" :key="key" @click="changeCate(key)" :class="key === hotIndex ? 'act' : ''" >{{item.cate_name}}</text> <text class="hot_cate_item" v-for="(item, key) in cate_list" :key="key" @click="changeCate(key)" :class="key === hotIndex ? 'act' : ''" v-if="item.goods_list instanceof Array">{{item.cate_name}}</text>
</view> </view>
</view> </view>
<view v-for="(val, key) in cate_list" :key="key" v-if="key === hotIndex"> <view v-for="(val, key) in cate_list" :key="key" v-if="key === hotIndex">
<view v-if="val.goods_list" class="flex_goods"> <view v-if="val.goods_list" class="flex_goods">
<view class="hot_goods_item" v-for="(item, index) in val.goods_list" :key="index"> <view class="hot_goods_item" v-for="(item, index) in val.goods_list" :key="index">
<image class="hot_goods_icon" :src="style_setting.angle_sign_url"></image> <image class="hot_goods_icon" v-if="style_setting.angle_sign" :src="style_setting.angle_sign_url"></image>
<image class="hot_goods_img" :src="item.default_image || $noGoodsImg" @click="$jumpGoodDetail(item.goods_id)"></image> <image class="hot_goods_img" :src="item.default_image || $noGoodsImg" @click="$jumpGoodDetail(item.goods_id)"></image>
<text class="hot_goods_name" v-if="style_setting.title_show">{{item.goods_name}}</text> <text class="hot_goods_name" v-if="style_setting.title_show">{{item.goods_name}}</text>
<text class="hot_goods_subname" v-if="style_setting.sub_title_show">{{item.goods_subname || ' '}}</text> <text class="hot_goods_subname" v-if="style_setting.sub_title_show">{{item.goods_subname || ' '}}</text>
......
...@@ -86,9 +86,6 @@ ...@@ -86,9 +86,6 @@
.search_input { .search_input {
height: 60rpx; height: 60rpx;
font-size: 28rpx; font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.login_btn { .login_btn {
width: 92rpx; width: 92rpx;
......
...@@ -113,6 +113,9 @@ ...@@ -113,6 +113,9 @@
} }
}, },
onLoad() { onLoad() {
uni.showLoading({
title: '加载中'
});
this.getData(); this.getData();
// #ifdef H5 // #ifdef H5
//默认请求微信分享 //默认请求微信分享
...@@ -163,6 +166,7 @@ ...@@ -163,6 +166,7 @@
if(res.data.data.portrait) { if(res.data.data.portrait) {
this.portrait = res.data.data.portrait; this.portrait = res.data.data.portrait;
} }
uni.hideLoading();
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment