修改首页下拉
This commit is contained in:
@@ -6,8 +6,8 @@ const proxyApi = "/api"
|
|||||||
// 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 baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
||||||
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
@@ -16,10 +16,9 @@ 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 = 'https://cashier.sxczgkj.cn/cashierService'// 线上
|
||||||
const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
||||||
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
|
||||||
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// import VConsole from "./vConsole.js"
|
// import VConsole from "./vConsole.js"
|
||||||
|
|||||||
@@ -121,7 +121,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人中心",
|
"navigationBarTitleText": "个人中心",
|
||||||
"navigationBarBackgroundColor": "#FFD158",
|
"navigationBarBackgroundColor": "#FFD158",
|
||||||
"navigationBarTextStyle": "white",
|
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<!-- 今日上线 -->
|
<!-- 今日上线 -->
|
||||||
<todaylist :todayList='hometoplist.todayList' :salesList='hometoplist.salesList'></todaylist>
|
<todaylist :todayList='hometoplist.todayList' :salesList='hometoplist.salesList'></todaylist>
|
||||||
<!-- 类目 -->
|
<!-- 类目 -->
|
||||||
<view class="fourcontent flex-between">
|
<view class="fourcontent flex-between" v-if="!isFixedTop">
|
||||||
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
|
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
|
||||||
@click="viewHistory(item,index)"
|
@click="viewHistory(item,index)"
|
||||||
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
|
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="fivecontent">
|
<view class="fivecontent flex-colum">
|
||||||
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
|
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
|
||||||
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
|
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
|
||||||
scroll-with-animation> -->
|
scroll-with-animation> -->
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
quilt: ''
|
quilt: ''
|
||||||
}, //下拉点击的数据
|
}, //下拉点击的数据
|
||||||
form: {
|
form: {
|
||||||
address: '西安市', //地址
|
address: '', //地址
|
||||||
type: '', //品类
|
type: '', //品类
|
||||||
orderBy: '', //1.理我最近 2.销量优先 3.价格优先
|
orderBy: '', //1.理我最近 2.销量优先 3.价格优先
|
||||||
other: '', //附近1KM 1选中 0不选中
|
other: '', //附近1KM 1选中 0不选中
|
||||||
@@ -388,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 - 22 //滚动距离
|
this.Topdistance = res.top - res.height //滚动距离
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: 1rpx solid #333333;
|
// border: 1rpx solid #333333;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-family: Roboto-Medium, Roboto;
|
font-family: Roboto-Medium, Roboto;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -141,27 +141,11 @@
|
|||||||
{{listdata.purchaseNotice.refundPolicy || '无'}}
|
{{listdata.purchaseNotice.refundPolicy || '无'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fivecontenitem">
|
<view class="fivecontenitem" v-if="listdata.purchaseNotice.usageRules">
|
||||||
<view class="fivecontenitemone">
|
<view class="fivecontenitemone">
|
||||||
使用规则
|
使用规则
|
||||||
</view>
|
</view>
|
||||||
<view class="fivecontenitemtow">
|
<view class="fivecontenitemtow" v-html="listdata.purchaseNotice.usageRules">
|
||||||
不可使用包间
|
|
||||||
本单发票由商家提供,详情请咨询商家
|
|
||||||
堂食外带均可
|
|
||||||
1.购买:本券购买后,无需复制券码,进入书亦烧仙草小APP/
|
|
||||||
程序【我的-兑换卡券】点击【获取美团券】即可。
|
|
||||||
2.使用:请登录书亦烧仙草APP/小程序,选择对应商品,结算时
|
|
||||||
券会自动抵扣。
|
|
||||||
3.限1件商品使用,不可抵扣配送费、奶油等附加费用,如遇门
|
|
||||||
店原料不足无法供应时,或售罄,您可视情况更换核销门店或
|
|
||||||
退款处理。
|
|
||||||
4.适用范围:部分门店不可用,最终已下单时系统结算为准。
|
|
||||||
5.售后服务:如有疑问请致电400-888-1717。
|
|
||||||
团购用户可享受店内其他所有优惠
|
|
||||||
使用优惠券购买团单,有效期以优惠券规则为准
|
|
||||||
每人每天最多购买2张美团券
|
|
||||||
无需预约,消费高峰期可能需要等位
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -403,7 +387,7 @@
|
|||||||
// 通用门店
|
// 通用门店
|
||||||
productgeneralstore(name) {
|
productgeneralstore(name) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/product/generalstore?name=' + encodeURIComponent(JSON.stringify(name))
|
url: '/pages/product/generalstore?name=' + encodeURIComponent(JSON.stringify(name))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goMap(d) {
|
goMap(d) {
|
||||||
@@ -1119,9 +1103,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.classshowpopupitem {
|
.classshowpopupitem {
|
||||||
margin-top: 32rpx;
|
|
||||||
|
|
||||||
.classshowpopupitemone {
|
.classshowpopupitemone {
|
||||||
|
margin-top: 32rpx;
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
@@ -1129,6 +1112,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.classshowpopupitemtow {
|
.classshowpopupitemtow {
|
||||||
|
margin-top: 16rpx;
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|||||||
@@ -37,8 +37,8 @@
|
|||||||
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/kf.png" mode="aspectFill">
|
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/kf.png" mode="aspectFill">
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<image @click="memberlist" class="boxtop_botton" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/member.png"
|
<image @click="memberlist" class="boxtop_botton"
|
||||||
mode="aspectFit"></image>
|
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/member.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="userinfoone" v-if="teblist.length!=0">
|
<view class="userinfoone" v-if="teblist.length!=0">
|
||||||
<view class="userinfoonebox">
|
<view class="userinfoonebox">
|
||||||
@@ -72,11 +72,10 @@
|
|||||||
userInfo: {},
|
userInfo: {},
|
||||||
teblist: [],
|
teblist: [],
|
||||||
list: [],
|
list: [],
|
||||||
Topdistance: ''
|
Topdistance: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {},
|
||||||
},
|
|
||||||
computed: {
|
computed: {
|
||||||
HeighT() { //手机类型的尺寸
|
HeighT() { //手机类型的尺寸
|
||||||
return this.$store.getters.is_BarHeight
|
return this.$store.getters.is_BarHeight
|
||||||
@@ -90,6 +89,14 @@
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
// 当组件挂载完成后获取距离
|
// 当组件挂载完成后获取距离
|
||||||
|
|
||||||
|
},
|
||||||
|
onPageScroll(e) {
|
||||||
|
if (e.scrollTop <= 44) { //搜索导航栏
|
||||||
|
this.opacity = false
|
||||||
|
} else {
|
||||||
|
this.opacity = true
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (uni.cache.get('token')) {
|
if (uni.cache.get('token')) {
|
||||||
@@ -114,10 +121,10 @@
|
|||||||
this.Topdistance = res.height //滚动距离
|
this.Topdistance = res.height //滚动距离
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
memberlist(){
|
memberlist() {
|
||||||
if (uni.cache.get('token')) {
|
if (uni.cache.get('token')) {
|
||||||
uni.pro.navigateTo('member/list')
|
uni.pro.navigateTo('member/list')
|
||||||
}else{
|
} else {
|
||||||
this.loginClick()
|
this.loginClick()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -312,6 +319,7 @@
|
|||||||
.boxtop_top {
|
.boxtop_top {
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
margin-top: 52rpx;
|
margin-top: 52rpx;
|
||||||
|
|
||||||
.boxtop_topleft {
|
.boxtop_topleft {
|
||||||
.flex-start {
|
.flex-start {
|
||||||
text {
|
text {
|
||||||
|
|||||||
Reference in New Issue
Block a user