首页修改
This commit is contained in:
@@ -3,10 +3,10 @@ const debug = process.env.NODE_ENV == 'development' ? true : false;
|
|||||||
const proxyApi = "/api"
|
const proxyApi = "/api"
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-WEIXIN || APP
|
// #ifdef MP-WEIXIN || APP
|
||||||
const proxyApi = 'http://192.168.2.42:9889/cashierService' // 王伟
|
// const proxyApi = 'http://192.168.2.42:9889/cashierService' // 王伟
|
||||||
// const proxyApi = 'http://192.168.2.74:9888/cashierService' // 帆哥
|
// const proxyApi = 'http://192.168.2.74:9888/cashierService' // 帆哥
|
||||||
// const proxyApiwws = 'ws://192.168.2.74:9888/cashierService' // 测试
|
// const proxyApiwws = 'ws://192.168.2.74:9888/cashierService' // 测试
|
||||||
// const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
||||||
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
@@ -16,10 +16,10 @@ const baseUrl = debug ? proxyApi : "https://wxcashiertest.sxczgkj.cn/cashierServ
|
|||||||
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
|
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP || MP-WEIXIN
|
// #ifdef APP || MP-WEIXIN
|
||||||
// const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService'// 线上
|
const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService'// 线上
|
||||||
// const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
||||||
const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
||||||
const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// import VConsole from "./vConsole.js"
|
// import VConsole from "./vConsole.js"
|
||||||
|
|||||||
@@ -92,8 +92,11 @@
|
|||||||
<view class="fivecontent_item_boxitem flex-between">
|
<view class="fivecontent_item_boxitem flex-between">
|
||||||
<image :src="item.image" mode=""></image>
|
<image :src="item.image" mode=""></image>
|
||||||
<view class="fivecontent_item_boxitemleft flex-colum-start">
|
<view class="fivecontent_item_boxitemleft flex-colum-start">
|
||||||
<view class="fivecontent_item_boxitemleftone flex-between" style="display: flex;justify-content: space-between;align-items: center;">
|
<view class="fivecontent_item_boxitemleftone flex-between"
|
||||||
<view>{{item.productName.length>7?item.productName.substring(0,7)+'...':item.productName}}</view>
|
style="display: flex;justify-content: space-between;align-items: center;">
|
||||||
|
<view>
|
||||||
|
{{item.productName.length>7?item.productName.substring(0,7)+'...':item.productName}}
|
||||||
|
</view>
|
||||||
<text>已抢{{item.realSalesNumber}}份</text>
|
<text>已抢{{item.realSalesNumber}}份</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-start flexstartboxfttow">
|
<view class="flex-start flexstartboxfttow">
|
||||||
@@ -385,7 +388,7 @@
|
|||||||
this.seighT = data.windowHeight;
|
this.seighT = data.windowHeight;
|
||||||
this.$u.getRect('.fourcontent').then(res => {
|
this.$u.getRect('.fourcontent').then(res => {
|
||||||
console.log(res.top)
|
console.log(res.top)
|
||||||
this.Topdistance = res.top - res.height - 20 //滚动距离
|
this.Topdistance = res.top - res.height - 18 //滚动距离
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -487,14 +490,16 @@
|
|||||||
async viewHistory(item, index) {
|
async viewHistory(item, index) {
|
||||||
this.viewHistoryindex = index
|
this.viewHistoryindex = index
|
||||||
if (item.dictName == 'allCity') {
|
if (item.dictName == 'allCity') {
|
||||||
|
console.log(item, 111)
|
||||||
let res = await this.api.locationdistrict({
|
let res = await this.api.locationdistrict({
|
||||||
keywords: uni.cache.get('getLocationstorage').address
|
keywords: uni.cache.get('getLocationstorage').address
|
||||||
})
|
})
|
||||||
this.clickhometoplistmenulist.detail = res.data
|
this.clickhometoplistmenulist.detail = res.data
|
||||||
this.clickhometoplistmenulist.quilt = '1'
|
this.clickhometoplistmenulist.quilt = '1'
|
||||||
} else {
|
} else {
|
||||||
|
console.log(item, 222)
|
||||||
|
this.clickhometoplistmenulist.detail = item.detail
|
||||||
this.clickhometoplistmenulist.quilt = ''
|
this.clickhometoplistmenulist.quilt = ''
|
||||||
this.clickhometoplistmenulist = item
|
|
||||||
}
|
}
|
||||||
uni.pageScrollTo({
|
uni.pageScrollTo({
|
||||||
scrollTop: this.Topdistance,
|
scrollTop: this.Topdistance,
|
||||||
@@ -503,7 +508,7 @@
|
|||||||
if (item.isChild) {
|
if (item.isChild) {
|
||||||
this.showproductlist = true
|
this.showproductlist = true
|
||||||
} else {
|
} else {
|
||||||
this.form.other = item.description //附近1KM 1选中 0不选中
|
this.form.type = item.value //附近1KM 1选中 0不选中
|
||||||
this.form.page = 1
|
this.form.page = 1
|
||||||
this.form.size = 10
|
this.form.size = 10
|
||||||
this.form.status = 'loadmore'
|
this.form.status = 'loadmore'
|
||||||
@@ -549,7 +554,6 @@
|
|||||||
this.onLoadhome()
|
this.onLoadhome()
|
||||||
this.hometoplist.menu[this.viewHistoryindex].name = uni.cache.get('getLocationstorage').address
|
this.hometoplist.menu[this.viewHistoryindex].name = uni.cache.get('getLocationstorage').address
|
||||||
this.subCategoryList = []
|
this.subCategoryList = []
|
||||||
this.clickhometoplistmenulist.quilt = '' //用于判断是否显示全成的数据 1为显示 不为1不显示
|
|
||||||
} else {
|
} else {
|
||||||
this.subCategoryList = category.category.districts;
|
this.subCategoryList = category.category.districts;
|
||||||
}
|
}
|
||||||
@@ -569,7 +573,6 @@
|
|||||||
this.form.status = 'loadmore'
|
this.form.status = 'loadmore'
|
||||||
this.homelist = []
|
this.homelist = []
|
||||||
this.onLoadhome()
|
this.onLoadhome()
|
||||||
this.clickhometoplistmenulist.quilt = '' //用于判断是否显示全成的数据 1为显示 不为1不显示
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -698,6 +701,7 @@
|
|||||||
padding: 32rpx 28rpx;
|
padding: 32rpx 28rpx;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
.fourcontent_item {
|
.fourcontent_item {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
margin-left: 22rpx;
|
margin-left: 22rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user