更新
This commit is contained in:
parent
15265e8f87
commit
b0e2e385d0
@ -11,8 +11,8 @@ let httpApiFive
|
|||||||
let wsApi
|
let wsApi
|
||||||
|
|
||||||
// 在打包之前请检查当前环境是否正确
|
// 在打包之前请检查当前环境是否正确
|
||||||
// const env = 'dev'; // 开发
|
const env = 'dev'; // 开发
|
||||||
const env = 'prod'; // 生产
|
// const env = 'prod'; // 生产
|
||||||
// const env = 'prew'; // 预上线
|
// const env = 'prew'; // 预上线
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
|
@ -642,8 +642,8 @@
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.$bus.$emit('value-updated', e.street.name + ',' + e.street.code);
|
this.$bus.$emit('value-updated', e.street.name + ',' + e.street.code);
|
||||||
|
@ -3,24 +3,13 @@
|
|||||||
<view class="circle_friends_wrapper">
|
<view class="circle_friends_wrapper">
|
||||||
<view v-if="isFshow">
|
<view v-if="isFshow">
|
||||||
<view class="site-box flex_a_c_j_sb" :style="{ opacity: backColor }">
|
<view class="site-box flex_a_c_j_sb" :style="{ opacity: backColor }">
|
||||||
<view
|
<view :class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']" @click="changeMap">
|
||||||
:class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']"
|
<view :class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']" style="margin-left: 20rpx">
|
||||||
@click="changeMap"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
:class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']"
|
|
||||||
style="margin-left: 20rpx"
|
|
||||||
>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="town_name">{{ street||'定位中' }}</view>
|
<view class="town_name">{{ street||'定位中' }}</view>
|
||||||
</view>
|
</view>
|
||||||
<navigator
|
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none">
|
||||||
url="/pages/chat/customer_list/index?type=0"
|
<view :class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"></view>
|
||||||
hover-class="none"
|
|
||||||
>
|
|
||||||
<view
|
|
||||||
:class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"
|
|
||||||
></view>
|
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
<!--<view class="site-box ','flex_a_c_j_sb'" v-if="ishshow">
|
<!--<view class="site-box ','flex_a_c_j_sb'" v-if="ishshow">
|
||||||
@ -34,7 +23,8 @@
|
|||||||
<view class="place_wrapper flex_a_c" @click="changeMap">
|
<view class="place_wrapper flex_a_c" @click="changeMap">
|
||||||
<view class="iconfont icon-weizhi"></view>
|
<view class="iconfont icon-weizhi"></view>
|
||||||
<view class="town_name">{{ street||'定位中' }}</view>
|
<view class="town_name">{{ street||'定位中' }}</view>
|
||||||
<view class="town_name rotate-box" @click.stop="getPositionFn()"><uni-icons type="loop" color="#fff"></uni-icons></view>
|
<view class="town_name rotate-box" @click.stop="getPositionFn()"><uni-icons type="loop"
|
||||||
|
color="#fff"></uni-icons></view>
|
||||||
<!-- <view class="" v-if="!street">
|
<!-- <view class="" v-if="!street">
|
||||||
获取定位失败,请手动选择
|
获取定位失败,请手动选择
|
||||||
</view> -->
|
</view> -->
|
||||||
@ -42,23 +32,14 @@
|
|||||||
<!-- <view class="" @click="getPositionFn">
|
<!-- <view class="" @click="getPositionFn">
|
||||||
获取定位失败,点击允许
|
获取定位失败,点击允许
|
||||||
</view> -->
|
</view> -->
|
||||||
<navigator
|
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none">
|
||||||
url="/pages/chat/customer_list/index?type=0"
|
|
||||||
hover-class="none"
|
|
||||||
>
|
|
||||||
<view class="iconfont icon-xiaoxi" style="color: #fff"> </view>
|
<view class="iconfont icon-xiaoxi" style="color: #fff"> </view>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<zbpSwiper
|
<zbpSwiper ref="list" :isSelectPlace="true" :town="street" :show="show" :location_Arr="locationArr"
|
||||||
ref="list"
|
@change="dchange">
|
||||||
:isSelectPlace="true"
|
|
||||||
:town="street"
|
|
||||||
:show="show"
|
|
||||||
:location_Arr="locationArr"
|
|
||||||
@change="dchange"
|
|
||||||
>
|
|
||||||
</zbpSwiper>
|
</zbpSwiper>
|
||||||
|
|
||||||
<!-- <view class="zhibo" @click="zhibo">
|
<!-- <view class="zhibo" @click="zhibo">
|
||||||
@ -73,15 +54,8 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="" style="width: 670rpx">
|
<view class="" style="width: 670rpx">
|
||||||
<u-tabs
|
<u-tabs :list="tabsData.list" @click="tabsChange" itemStyle=" height: 33px;" lineColor="#F84221"
|
||||||
:list="tabsData.list"
|
:current="current" keyName="cate_name" :activeStyle="activeStyle"></u-tabs>
|
||||||
@click="tabsChange"
|
|
||||||
itemStyle=" height: 33px;"
|
|
||||||
lineColor="#F84221"
|
|
||||||
:current="current"
|
|
||||||
keyName="cate_name"
|
|
||||||
:activeStyle="activeStyle"
|
|
||||||
></u-tabs>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="tabs_wrapper-img" @click="open">
|
<view class="tabs_wrapper-img" @click="open">
|
||||||
<image src="@/static/images/zk.png" mode=""></image>
|
<image src="@/static/images/zk.png" mode=""></image>
|
||||||
@ -91,35 +65,16 @@
|
|||||||
<view class="goodslist">
|
<view class="goodslist">
|
||||||
<WaterfallsFlow :wfList="productList" @itemTap="itemTap" :type="1" />
|
<WaterfallsFlow :wfList="productList" @itemTap="itemTap" :type="1" />
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view class="loadingicon acea-row row-center-wrapper" v-if="productList.length > 0">
|
||||||
class="loadingicon acea-row row-center-wrapper"
|
<text class="loading iconfont icon-jiazai" :hidden="loading == false"></text>{{ loadTitle }}
|
||||||
v-if="productList.length > 0"
|
|
||||||
>
|
|
||||||
<text
|
|
||||||
class="loading iconfont icon-jiazai"
|
|
||||||
:hidden="loading == false"
|
|
||||||
></text
|
|
||||||
>{{ loadTitle }}
|
|
||||||
</view>
|
</view>
|
||||||
<view class="empty_wrapper" v-if="emptyShow">
|
<view class="empty_wrapper" v-if="emptyShow">
|
||||||
<u-empty
|
<u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty>
|
||||||
:show="emptyShow"
|
|
||||||
mode="list"
|
|
||||||
icon="http://cdn.uviewui.com/uview/empty/list.png"
|
|
||||||
></u-empty>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-picker
|
<u-picker :defaultIndex="[0, 0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
:defaultIndex="[0, 0]"
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
:show="showPicker"
|
|
||||||
ref="uPicker"
|
|
||||||
:columns="columnData"
|
|
||||||
@confirm="confirm"
|
|
||||||
@cancel="showPicker = false"
|
|
||||||
@change="changeHandler"
|
|
||||||
keyName="name"
|
|
||||||
></u-picker>
|
|
||||||
|
|
||||||
<!-- <view class="bg_color"></view> -->
|
<!-- <view class="bg_color"></view> -->
|
||||||
|
|
||||||
@ -142,24 +97,14 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="classpage-two"> 点击进入分类 </view>
|
<view class="classpage-two"> 点击进入分类 </view>
|
||||||
<view class="classpage-three">
|
<view class="classpage-three">
|
||||||
<view
|
<view class="" v-for="(item, i) in tabsData.list" :key="i" @click="tabsChange2(item, i)">
|
||||||
class=""
|
|
||||||
v-for="(item, i) in tabsData.list"
|
|
||||||
:key="i"
|
|
||||||
@click="tabsChange2(item, i)"
|
|
||||||
>
|
|
||||||
{{ item.cate_name }}
|
{{ item.cate_name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
<authorize
|
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"
|
||||||
@onLoadFun="onLoadFun"
|
:isGoIndex="false"></authorize>
|
||||||
:isAuto="isAuto"
|
|
||||||
:isShowAuth="isShowAuth"
|
|
||||||
@authColse="authColse"
|
|
||||||
:isGoIndex="false"
|
|
||||||
></authorize>
|
|
||||||
<view class="location" v-if="isshow">
|
<view class="location" v-if="isshow">
|
||||||
<view class="locationa"> 位置权限使用说明 </view>
|
<view class="locationa"> 位置权限使用说明 </view>
|
||||||
<view class="locationb"> 用于向你推荐最近门店 </view>
|
<view class="locationb"> 用于向你推荐最近门店 </view>
|
||||||
@ -713,8 +658,7 @@ export default {
|
|||||||
// })
|
// })
|
||||||
this.uniLocation();
|
this.uniLocation();
|
||||||
})
|
})
|
||||||
}
|
} else this.uniLocation();
|
||||||
else this.uniLocation();
|
|
||||||
},
|
},
|
||||||
uniLocation() {
|
uniLocation() {
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
@ -864,8 +808,8 @@ export default {
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.$bus.$emit('value-updated', e.street.name + ',' + e.street.code);
|
this.$bus.$emit('value-updated', e.street.name + ',' + e.street.code);
|
||||||
@ -1454,6 +1398,7 @@ page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotate-box {
|
.rotate-box {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
transition: transform .5s ease-out;
|
transition: transform .5s ease-out;
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
<view class='pictrue' style="margin: 0 auto;">
|
<view class='pictrue' style="margin: 0 auto;">
|
||||||
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
||||||
<image src='@/static/images/no_short.png'></image>
|
<image src='@/static/images/no_short.png'></image>
|
||||||
<text>暂无商品,切换其他分类或地区试试</text>
|
<text>暂无商品, 试试其他分类/位置</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<block>
|
<block>
|
||||||
@ -398,6 +398,12 @@
|
|||||||
type: 2
|
type: 2
|
||||||
})
|
})
|
||||||
this.cloudList = data;
|
this.cloudList = data;
|
||||||
|
this.cloudList.unshift({
|
||||||
|
cate_name: '全部',
|
||||||
|
children: [],
|
||||||
|
pic: "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/de2be202312151001024597.png",
|
||||||
|
store_category_id: -1
|
||||||
|
})
|
||||||
this.cloudList.forEach((item)=>{
|
this.cloudList.forEach((item)=>{
|
||||||
item.children.unshift({
|
item.children.unshift({
|
||||||
cate_name: '全部',
|
cate_name: '全部',
|
||||||
@ -732,7 +738,8 @@
|
|||||||
page: this.storeParam.page,
|
page: this.storeParam.page,
|
||||||
location: this.latitude+','+this.longitude,
|
location: this.latitude+','+this.longitude,
|
||||||
}
|
}
|
||||||
if(!this.merchantTow.pid) query.cate_pid = this.storeParam.category_id; // 全部是查询一级分类pid
|
if(this.storeParam.category_id==-1) null;
|
||||||
|
else if(!this.merchantTow.pid) query.cate_pid = this.storeParam.category_id; // 全部是查询一级分类pid
|
||||||
else query.category_id = this.storeParam.category_id; // 否则查询二级分类
|
else query.category_id = this.storeParam.category_id; // 否则查询二级分类
|
||||||
townCloud(query).then(res => {
|
townCloud(query).then(res => {
|
||||||
this.goodsList = [...this.goodsList, ...res.data.list]
|
this.goodsList = [...this.goodsList, ...res.data.list]
|
||||||
@ -821,8 +828,8 @@
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.getStoreList(true);
|
this.getStoreList(true);
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
<view class='pictrue' style="margin: 0 auto;">
|
<view class='pictrue' style="margin: 0 auto;">
|
||||||
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
||||||
<image src='@/static/images/no_short.png'></image>
|
<image src='@/static/images/no_short.png'></image>
|
||||||
<text>暂无商品,切换其他分类或地区试试</text>
|
<text>暂无商品, 试试其他分类/位置</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<block>
|
<block>
|
||||||
@ -395,6 +395,18 @@
|
|||||||
type: 2
|
type: 2
|
||||||
})
|
})
|
||||||
this.cloudList = data;
|
this.cloudList = data;
|
||||||
|
this.cloudList.unshift({
|
||||||
|
cate_name: '全部',
|
||||||
|
children: [],
|
||||||
|
pic: "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/de2be202312151001024597.png",
|
||||||
|
store_category_id: -1
|
||||||
|
})
|
||||||
|
this.cloudList.forEach((item)=>{
|
||||||
|
item.children.unshift({
|
||||||
|
cate_name: '全部',
|
||||||
|
store_category_id: item.store_category_id,
|
||||||
|
});
|
||||||
|
})
|
||||||
this.merchant = this.cloudList[0];
|
this.merchant = this.cloudList[0];
|
||||||
this.merchantTow = this.merchant?.children[0];
|
this.merchantTow = this.merchant?.children[0];
|
||||||
this.storeParam.category_id = this.merchantTow.store_category_id;
|
this.storeParam.category_id = this.merchantTow.store_category_id;
|
||||||
@ -716,14 +728,20 @@
|
|||||||
this.storeParam.page = 1;
|
this.storeParam.page = 1;
|
||||||
this.goodsList = [];
|
this.goodsList = [];
|
||||||
}
|
}
|
||||||
cloudWarehouse({
|
let query = {
|
||||||
street_code: this.street_id,
|
street_code: this.street_id,
|
||||||
category_id: this.storeParam.category_id,
|
// category_id: this.storeParam.category_id,
|
||||||
order: this.storeParam.order,
|
order: this.storeParam.order,
|
||||||
keyword: this.storeParam.keyword,
|
keyword: this.storeParam.keyword,
|
||||||
page: this.storeParam.page,
|
page: this.storeParam.page,
|
||||||
location: this.latitude+','+this.longitude,
|
location: this.latitude+','+this.longitude,
|
||||||
}).then(res => {
|
}
|
||||||
|
if(this.storeParam.category_id==-1){
|
||||||
|
delete query.category_id;
|
||||||
|
}
|
||||||
|
else if(!this.merchantTow.pid) query.cate_pid = this.storeParam.category_id; // 全部是查询一级分类pid
|
||||||
|
else query.category_id = this.storeParam.category_id; // 否则查询二级分类
|
||||||
|
cloudWarehouse(query).then(res => {
|
||||||
// res.data.list = res.data.list.map(item=>{
|
// res.data.list = res.data.list.map(item=>{
|
||||||
// item.product = item;
|
// item.product = item;
|
||||||
// return item;
|
// return item;
|
||||||
@ -815,8 +833,8 @@
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.getStoreList(true);
|
this.getStoreList(true);
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
<view class='pictrue' style="margin: 0 auto;background-color: #F5F5F5;">
|
<view class='pictrue' style="margin: 0 auto;background-color: #F5F5F5;">
|
||||||
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
<!-- <image src='../../../static/images/noCart.png'></image> -->
|
||||||
<image src='@/static/images/no_short.png'></image>
|
<image src='@/static/images/no_short.png'></image>
|
||||||
<text>暂无店铺,切换其他位置试试</text>
|
<text>暂无店铺,试试其他分类/位置</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="storeParam.is_recommend">
|
<block v-if="storeParam.is_recommend">
|
||||||
@ -354,6 +354,11 @@
|
|||||||
this.storeList = [];
|
this.storeList = [];
|
||||||
merClassifly().then(res => {
|
merClassifly().then(res => {
|
||||||
this.menuList = res.data;
|
this.menuList = res.data;
|
||||||
|
this.menuList.unshift({
|
||||||
|
merchant_category_id: -1,
|
||||||
|
category_name: '全部',
|
||||||
|
background: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/de2be202312151001024597.png'
|
||||||
|
})
|
||||||
this.merchant_category_id = this.menuList[0].merchant_category_id;
|
this.merchant_category_id = this.menuList[0].merchant_category_id;
|
||||||
this.storeParam.merchant_category_id = this.merchant_category_id;
|
this.storeParam.merchant_category_id = this.merchant_category_id;
|
||||||
if (this.mer_location == 1) {
|
if (this.mer_location == 1) {
|
||||||
@ -713,7 +718,8 @@
|
|||||||
type_id: this.storeParam.type_id,
|
type_id: this.storeParam.type_id,
|
||||||
credit_buy: this.credit_buy,
|
credit_buy: this.credit_buy,
|
||||||
}
|
}
|
||||||
rqData.street_id = this.storeParam.street_id
|
rqData.street_id = this.storeParam.street_id;
|
||||||
|
if(rqData.merchant_category_id==-1) delete rqData.merchant_category_id;
|
||||||
if (this.latitude) {
|
if (this.latitude) {
|
||||||
rqData.location = this.latitude + ',' + this.longitude
|
rqData.location = this.latitude + ',' + this.longitude
|
||||||
}
|
}
|
||||||
@ -877,8 +883,8 @@
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.storeMerchantList();
|
this.storeMerchantList();
|
||||||
|
@ -248,6 +248,7 @@
|
|||||||
latitude: this.latitude,
|
latitude: this.latitude,
|
||||||
longitude: this.longitude
|
longitude: this.longitude
|
||||||
}
|
}
|
||||||
|
console.log({...obj});
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.$emit('changeAddress', obj)
|
uni.$emit('changeAddress', obj)
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
<block v-else>
|
<block v-else>
|
||||||
<view style="display: flex;flex-direction: column;align-items: center;">
|
<view style="display: flex;flex-direction: column;align-items: center;">
|
||||||
<image src='@/static/images/no_short.png' style="width: 500rpx; height: 180rpx;"></image>
|
<image src='@/static/images/no_short.png' style="width: 500rpx; height: 180rpx;"></image>
|
||||||
<text class="pictrue_tips">暂无商品,切换其他位置试试</text>
|
<text class="pictrue_tips">暂无商品,试试其他位置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="common-hd">
|
<view class="common-hd">
|
||||||
<view class="title">为你推荐</view>
|
<view class="title">为你推荐</view>
|
||||||
@ -708,8 +708,8 @@ import { data } from '../../uni_modules/uview-ui/libs/mixin/mixin';
|
|||||||
this.longitude = e.longitude;
|
this.longitude = e.longitude;
|
||||||
this.latitude = e.latitude;
|
this.latitude = e.latitude;
|
||||||
this.$store.commit('setLocation', {
|
this.$store.commit('setLocation', {
|
||||||
lat: e.longitude,
|
lat: e.latitude,
|
||||||
long: e.latitude,
|
long: e.longitude,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.loadend = false;
|
this.loadend = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user