diff --git a/api/community.js b/api/community.js
index 53e01e5..fe9ec77 100644
--- a/api/community.js
+++ b/api/community.js
@@ -82,11 +82,16 @@ export function videoList(data) {
});
}
/**自己的视频列表*/
+export function deoList(id) {
+ return request.get(`community/show/${id}`);
+}
+
export function myVideoList(id,data) {
return request.get(`community/user/community_video/${id}`, data, {
noAuth: true
});
}
+
/**文章点赞*/
export function graphicStartApi(id, status) {
return request.post(`community/start/${id}`, status);
diff --git a/api/product.js b/api/product.js
index 002e2d7..547c66e 100644
--- a/api/product.js
+++ b/api/product.js
@@ -13,6 +13,13 @@ import request from "@/utils/request.js";
* 获取商品详情
*/
export const getProductDetailsAPI = (data) => request.get('micro/product_details', data)
+
+/**
+ *商品列表
+ */
+export const spuInfo = (id,data) => request.get('product/spu/street/'+id, data)
+
+
/**
* 线下导入
*/
diff --git a/components/WaterfallsFlow/WaterfallsFlow.vue b/components/WaterfallsFlow/WaterfallsFlow.vue
index 9068f74..103fcdf 100644
--- a/components/WaterfallsFlow/WaterfallsFlow.vue
+++ b/components/WaterfallsFlow/WaterfallsFlow.vue
@@ -160,7 +160,7 @@ export default {
},
// item点击
itemTap(item) {
- // this.$emit('itemTap', item)
+ this.$emit('itemTap', item)
},
// item点击
goShop(item) {
diff --git a/components/WaterfallsFlow/WaterfallsFlowo.vue b/components/WaterfallsFlow/WaterfallsFlowo.vue
index 5de9191..561592e 100644
--- a/components/WaterfallsFlow/WaterfallsFlowo.vue
+++ b/components/WaterfallsFlow/WaterfallsFlowo.vue
@@ -101,7 +101,7 @@ export default {
if(this.mark < this.allList.length){
this.waterFall()
}
- console.log(this.rightList,this.leftList)
+
}
},
immediate: true,
@@ -169,7 +169,7 @@ export default {
},
// item点击
itemTap(item) {
- this.$emit('itemTap', item)
+ // this.$emit('itemTap', item)
},
// item点击
goShop(item) {
diff --git a/components/WaterfallsFlow/WaterfallsFlows.vue b/components/WaterfallsFlow/WaterfallsFlows.vue
index 17e1e39..91429d2 100644
--- a/components/WaterfallsFlow/WaterfallsFlows.vue
+++ b/components/WaterfallsFlow/WaterfallsFlows.vue
@@ -26,7 +26,9 @@
@@ -83,7 +93,7 @@
margin-left: 21rpx;
.tag-one {
-
+
text-align: center;
padding: 2rpx 9rpx;
border-radius: 11rpx 11rpx 11rpx 11rpx;
@@ -120,7 +130,8 @@
}
}
}
-.relase {
+
+ .relase {
display: flex;
margin-left: 21rpx;
@@ -163,7 +174,7 @@
margin-left: 21rpx;
margin-bottom: 25rpx;
display: flex;
- justify-content: space-between;
+
width: 280rpx;
height: 39rpx;
line-height: 39rpx;
diff --git a/components/WaterfallsFlowItem/WaterfallsFlowItems.vue b/components/WaterfallsFlowItem/WaterfallsFlowItems.vue
index 610937e..7e8b621 100644
--- a/components/WaterfallsFlowItem/WaterfallsFlowItems.vue
+++ b/components/WaterfallsFlowItem/WaterfallsFlowItems.vue
@@ -18,6 +18,9 @@
+
\ No newline at end of file
diff --git a/components/zbpSwiper.vue b/components/zbpSwiper.vue
index 1737ea9..29c799f 100644
--- a/components/zbpSwiper.vue
+++ b/components/zbpSwiper.vue
@@ -5,7 +5,8 @@
-
+
+
{{street}}
@@ -69,12 +70,17 @@
location_Arr: {
type: Object,
default: () => ({})
- }
+ },
+ show: {
+ type: Boolean,
+ default: false
+ },
},
data() {
return {
defaInd: [0, 0],
street: '',
+ streeta: '',
showPicker: false,
styleConfig: [],
columnData: [],
@@ -91,26 +97,37 @@
interval: 2000, // 自动切换时间间隔
duration: 400 // 滑动动画时长
},
+
}
},
watch: {
- street: {
- handler(newVal, oldVal) {
- this.street = newVal
- },
+ street(newval, val) {
+ // console.log(newval, val)
+ this.street = newval
+ // console.log(newval, val)
}
+
},
created() {
-
this.getBanner()
this.Area()
},
mounted() {
- this.appLocation()
+ uni.$on('init', function(data) {
+ console.log('init data ', data);
+ });
+ let arr = uni.getStorageSync('ADRESS_LOCATION')
+
+ if (arr.length > 0) {
+
+ this.street = arr.split(',')[0]
+ } else {
+ this.appLocation()
+ }
},
methods: {
@@ -138,8 +155,12 @@
lat: latitude,
long: longitude
}).then(res => {
+
+ let town = res.data.address_reference.town.title
+ let street_id = res.data.address_reference.town.id
this.street = res.data.address_component.street
- Cache.set('ADRESS_LOCATION', this.street)
+
+
}).catch(err => {
uni.showToast({
title: err,
@@ -148,7 +169,6 @@
})
},
fail: (err) => {
-
uni.showToast({
title: "获取定位超时",
icon: 'none',
@@ -158,10 +178,17 @@
});
},
confirm(e) {
- this.street = e.value[1].name
+
this.showPicker = false
this.$emit('selectPlce', e)
- Cache.set('ADRESS_LOCATION', e.value[1].name)
+ this.$emit('change', e)
+ this.street = e.value[1].name
+
+ uni.setStorageSync('ADRESS_LOCATION',
+ e.value[1].name + ',' +
+
+ e.value[1].code
+ )
},
changeHandler(e) {
const {
@@ -282,6 +309,8 @@
height: 66.67rpx;
margin-bottom: 26.32rpx;
position: relative;
+ z-index: 9999;
+
// 位置
.place_wrapper {
diff --git a/config/app.js b/config/app.js
index d731782..4fe8295 100644
--- a/config/app.js
+++ b/config/app.js
@@ -9,8 +9,8 @@ let httpApiThree
// 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.31.110:8324' // 测试
if (process.env.NODE_ENV === "development") {
- httpApi = 'https://shop.lihaink.cn' // 生产
- // httpApi = "https://crmeb-test.shop.lihaink.cn"
+ // httpApi = 'https://shop.lihaink.cn' // 生产
+ httpApi = "https://crmeb-test.shop.lihaink.cn"
// httpApi = "http://192.168.0.222"
// httpApi = "http://192.168.0.108:8325"
// httpApi = 'http://192.168.0.108:8325'
@@ -24,8 +24,8 @@ if (process.env.NODE_ENV === "development") {
// httpApiThree = 'baseUrlTest' // h5跨域配置
// #endif
} else if (process.env.NODE_ENV === 'production') {
- httpApi = 'https://shop.lihaink.cn' // 生产
- // httpApi = "https://crmeb-test.shop.lihaink.cn"
+ // httpApi = 'https://shop.lihaink.cn' // 生产
+ httpApi = "https://crmeb-test.shop.lihaink.cn"
httpApiTwo = 'https://nk.lihaink.cn' // 生产
httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
}
diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue
index 24d18c3..314e6be 100644
--- a/pages/gather/gather.vue
+++ b/pages/gather/gather.vue
@@ -14,7 +14,7 @@
-->
-
+
@@ -339,20 +339,7 @@
this.getUserInfo()
this.appLocation()
},
- watch: {
- street: {
- handler(newVal, oldVal) {
- this.street = newVal
- let arr = Cache.get('ADRESS_LOCATION')
- console.log(arr,'2')
- if (arr.length > 0) {
- this.street=arr.split(',')[0]
-
-
- }
- },
- }
- },
+
onPullDownRefresh() {
this.getUserInfo()
uni.stopPullDownRefresh()
@@ -416,7 +403,7 @@
},
confirm(e) {
this.street = e.value[1].name
- Cache.set('ADRESS_LOCATION',
+ uni.setStorageSync('ADRESS_LOCATION',
e.value[1].name + ',' + e.value[1].name + ',' +
e.value[1].code
@@ -437,8 +424,12 @@
lat: latitude,
long: longitude
}).then(res => {
- this.street = res.data.address_component.street
- Cache.set('ADRESS_LOCATION', this.street)
+ this.town = res.data.address_reference.town.title
+ this.street_id = res.data.address_reference.town.id
+ this.street = res.data.address_component.street
+ uni.setStorageSync('ADRESS_LOCATION',
+ this.town + ',' + this.town + ',' +
+ this.street_id)
}).catch(err => {
uni.showToast({
title: err,
@@ -465,7 +456,7 @@
document.body.scrollTop;
// 滚动条滚动的距离
let scrollStep = scrollTop - this.oldScrollTop;
- console.log("header 滚动距离 ", scrollTop);
+ // console.log("header 滚动距离 ", scrollTop);
// 更新——滚动前,滚动条距文档顶部的距离
this.oldScrollTop = scrollTop;
@@ -479,19 +470,19 @@
//滚动条到底部的条件
if (scrollTop + windowHeight == scrollHeight) {
//你想做的事情
- console.log("header 你已经到底部了");
+ // console.log("header 你已经到底部了");
}
if (scrollStep < 0) {
this.isFshow = false
- console.log("header 滚动条向上滚动了!");
+ // console.log("header 滚动条向上滚动了!");
} else {
this.isFshow = true
- console.log("header 滚动条向下滚动了!");
+ // console.log("header 滚动条向下滚动了!");
}
// 判断是否到了最顶部
if (scrollTop <= 0) {
this.isFshow = false
- console.log("header 到了最顶部")
+ // console.log("header 到了最顶部")
}
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 090216f..a5fc834 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,18 +1,16 @@
-
-
-
-
+
+
+
+
+
{{street}}
-
-
+
+
+
+
-
+
+
@@ -214,26 +215,13 @@
streeta_id: '',
street: '',
bgColor: '',
- ishshow: true,
+ backColor: 'rgba(248, 66, 33, 0)',
isFshow: false,
scrollTop: 0,
+ show: true
}
},
- watch: {
- street: {
- handler(newVal, oldVal) {
- this.street = newVal
- let arr = Cache.get('ADRESS_LOCATION')
- // console.log(arr, '1')
- if (arr.length > 0) {
- this.street = arr.split(',')[0]
-
- }
- },
- },
-
- },
onPullDownRefresh() {
this.getCateList()
this.cateGoods = []
@@ -284,19 +272,24 @@
// #ifdef APP-PLUS
onPageScroll(e) {
- if (e.scrollTop > 0) {
- this.ishshow = true
- this.isFshow = true
+ const scrollTop = e.scrollTop;
- } else if (e.scrollTop == 0) {
- this.ishshow = false
- this.isFshow = false
- } else {
- this.ishshow = false
+ // 导航条颜色透明渐变
+
+ if (scrollTop <= 20) {
+ this.backColor = 'rgba(248, 66, 33, 0)'
this.isFshow = false
+ this.show = true
+ } else if (20 < scrollTop && scrollTop <= 100) {
+ this.backColor = 'rgba(248, 66, 33, .5)'
+ this.isFshow = true
+ this.show = false
+ } else if (scrollTop > 100) {
+ this.backColor = 'rgba(248, 66, 33, 1)'
+ this.isFshow = true
+ this.show = false
}
-
-
+
},
// #endif
@@ -327,18 +320,21 @@
//你想做的事情
// console.log("header 你已经到底部了");
}
- if (scrollStep < 0) {
+
+ if (scrollTop <= 20) {
+ this.backColor = 'rgba(248, 66, 33, 0)'
this.isFshow = false
- // console.log("header 滚动条向上滚动了!");
- } else {
+ } else if (20 < scrollTop && scrollTop <= 100) {
+ this.backColor = 'rgba(248, 66, 33, .5)'
this.isFshow = true
- // console.log("header 滚动条向下滚动了!");
- }
- // 判断是否到了最顶部
- if (scrollTop <= 0) {
- this.isFshow = false
- // console.log("header 到了最顶部")
+ } else if (scrollTop > 100) {
+ this.backColor = 'rgba(248, 66, 33, 1)'
+ this.isFshow = true
+
+
}
+
+
},
kkchange(e) {
@@ -398,12 +394,13 @@
this.showPicker = true
},
confirm(e) {
+
this.street = e.value[1].name
- Cache.set('ADRESS_LOCATION',
- e.value[1].name + ',' + e.value[1].name + ',' +
-
+ uni.setStorageSync('ADRESS_LOCATION',
+ e.value[1].name + ',' +
e.value[1].code
)
+ uni.$emit('init', 1);
this.showPicker = false
},
changeHandler(e) {
@@ -437,6 +434,11 @@
this.$refs.uPicker.setColumnValues(1, res.data);
});
},
+ dchange(e) {
+
+ this.$refs.list.street= e.value[1].name
+ this.street = e.value[1].name
+ },
gogogo(item) {
if (item.video_link.length > 0) {
@@ -535,11 +537,7 @@
lat: latitude,
long: longitude
}).then(res => {
- uni.setStorageSync('adress_location', res.data.address)
- // that.$store.dispatch('setLocation', res.data)
-
this.street = res.data.address_component.street
- Cache.set('ADRESS_LOCATION', this.street)
}).catch(err => {
uni.showToast({
title: err,
@@ -588,15 +586,18 @@
var Build = plus.android.importClass("android.os.Build");
//android 8.0引导
if (Build.VERSION.SDK_INT >= 26) {
- var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS');
+ var intent = new Intent(
+ 'android.settings.APP_NOTIFICATION_SETTINGS');
intent.putExtra('android.provider.extra.APP_PACKAGE', pkName);
} else if (Build.VERSION.SDK_INT >= 21) { //android 5.0-7.0
- var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS');
+ var intent = new Intent(
+ 'android.settings.APP_NOTIFICATION_SETTINGS');
intent.putExtra("app_package", pkName);
intent.putExtra("app_uid", uid);
} else { //(<21)其他--跳转到该应用管理的详情页
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
- var uri = Uri.fromParts("package", mainActivity.getPackageName(),
+ var uri = Uri.fromParts("package", mainActivity
+ .getPackageName(),
null);
intent.setData(uri);
}
@@ -628,7 +629,8 @@
success: function(res) {
if (res.confirm) {
var app = plus.ios.invoke('UIApplication', 'sharedApplication');
- var setting = plus.ios.invoke('NSURL', 'URLWithString:', 'app-settings:');
+ var setting = plus.ios.invoke('NSURL', 'URLWithString:',
+ 'app-settings:');
plus.ios.invoke(app, 'openURL:', setting);
plus.ios.deleteObject(setting);
plus.ios.deleteObject(app);
@@ -685,23 +687,6 @@
}
- .sistbox {
- transition: fadenum 3s;
- }
-
- @keyframes fadenum {
- 0% {
- opacity: 0;
- }
-
- 50% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
- }
// .bg-img {
// position: absolute;
@@ -728,12 +713,21 @@
// }
// }
- .sitbox {
- opacity: 1 !important;
- // background: #F84221 !important;
- background: linear-gradient(to bottom, #F84221, #F84221);
- background-color: #F84221;
+ .sitebox {
+ animation-name: fadeIn;
+ animation-duration: 3s;
+ animation-fill-mode: forwards;
+ }
+
+ @keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+
+ to {
+ opacity: 1;
+ }
}
@@ -757,12 +751,7 @@
padding-top: 25rpx;
/* #endif */
// background-color: #e5e5e5;
- // opacity: 0;
- /* 初始时设置元素不透明 */
- backdrop-filter: blur(5px) opacity(0);
- transition: opacity 0.2s ease-in-out;
- transition-delay: 1.5s;
- transition: background 0.2s ease-in-out;
+
padding-right: 20rpx;
// 位置
@@ -770,9 +759,8 @@
color: #fff;
margin-right: 24.56rpx;
font-size: 30rpx;
+
opacity: 0;
- transition: opacity 1s ease-in-out;
- transition-delay: 1.5s;
.town_name {
margin-left: 21rpx;
@@ -780,12 +768,14 @@
}
.iconfont {
-
+ opacity: 0;
font-size: 30rpx;
font-size: 35.09rpx;
}
}
+
+
.circle_friends_wrapper {
position: relative;
diff --git a/pages/nongKe/supply_chain/supplier.vue b/pages/nongKe/supply_chain/supplier.vue
index 2a574ea..dff372f 100644
--- a/pages/nongKe/supply_chain/supplier.vue
+++ b/pages/nongKe/supply_chain/supplier.vue
@@ -1,99 +1,27 @@
-
-
+
+
-
-
-
-
-
-
-
- 供销综合云市场
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
- 热搜: 热a搜商品 热搜商品
- 热搜sasas商品
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{item.mer_name}}
- {{item.type_name}}
-
-
-
- 5.0
- 月销2000+
-
-
-
- {{item.service_phone}}
-
-
-
- {{item.mer_take_time[0]}}-{{item.mer_take_time[1]}}
-
-
-
- {{item.mer_address}}
-
-
-
+
-
-
-
-
+
@@ -103,14 +31,10 @@
-
+
-
- -->
-
-
-
-
-
+
暂无店铺,快去搜索其他店铺吧
@@ -262,15 +183,14 @@
-
+