修改首页下拉

This commit is contained in:
魏啾
2024-05-30 14:07:19 +08:00
parent 63d85521eb
commit a4d0bc8177
6 changed files with 30 additions and 40 deletions

View File

@@ -6,8 +6,8 @@ const proxyApi = "/api"
// const proxyApi = 'http://192.168.2.42:9889/cashierService' // 王伟
// const proxyApi = 'http://192.168.2.74:9888/cashierService' // 帆哥
// const proxyApiwws = 'ws://192.168.2.74:9888/cashierService' // 测试
const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// #endif
@@ -16,10 +16,9 @@ const baseUrl = debug ? proxyApi : "https://wxcashiertest.sxczgkj.cn/cashierServ
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
// #endif
// #ifdef APP || MP-WEIXIN
const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService'// 线上
const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/cashierService' // 线上
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
// #endif
// import VConsole from "./vConsole.js"

View File

@@ -121,7 +121,6 @@
"style": {
"navigationBarTitleText": "个人中心",
"navigationBarBackgroundColor": "#FFD158",
"navigationBarTextStyle": "white",
"navigationStyle": "custom"
}
}, {

View File

@@ -50,7 +50,7 @@
<!-- 今日上线 -->
<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"
@click="viewHistory(item,index)"
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
@@ -60,7 +60,7 @@
</view>
</view>
<view class="fivecontent">
<view class="fivecontent flex-colum">
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
scroll-with-animation> -->
@@ -258,7 +258,7 @@
quilt: ''
}, //下拉点击的数据
form: {
address: '西安市', //地址
address: '', //地址
type: '', //品类
orderBy: '', //1.理我最近 2.销量优先 3.价格优先
other: '', //附近1KM 1选中 0不选中
@@ -388,7 +388,7 @@
this.seighT = data.windowHeight;
this.$u.getRect('.fourcontent').then(res => {
console.log(res.top)
this.Topdistance = res.top - res.height - 22 //滚动距离
this.Topdistance = res.top - res.height //滚动距离
})
}
})

View File

@@ -283,7 +283,7 @@
text-align: center;
background: #FFFFFF;
border-radius: 8rpx;
border: 1rpx solid #333333;
// border: 1rpx solid #333333;
font-size: 28rpx;
font-family: Roboto-Medium, Roboto;
font-weight: 500;

View File

@@ -141,27 +141,11 @@
{{listdata.purchaseNotice.refundPolicy || '无'}}
</view>
</view>
<view class="fivecontenitem">
<view class="fivecontenitem" v-if="listdata.purchaseNotice.usageRules">
<view class="fivecontenitemone">
使用规则
</view>
<view class="fivecontenitemtow">
不可使用包间
本单发票由商家提供详情请咨询商家
堂食外带均可
1.购买本券购买后无需复制券码进入书亦烧仙草小APP/
程序我的-兑换卡券点击获取美团券即可
2.使用请登录书亦烧仙草APP/小程序,选择对应商品结算时
券会自动抵扣
3.限1件商品使用不可抵扣配送费奶油等附加费用如遇门
店原料不足无法供应时或售罄您可视情况更换核销门店或
退款处理
4.适用范围部分门店不可用最终已下单时系统结算为准
5.售后服务如有疑问请致电400-888-1717
团购用户可享受店内其他所有优惠
使用优惠券购买团单有效期以优惠券规则为准
每人每天最多购买2张美团券
无需预约消费高峰期可能需要等位
<view class="fivecontenitemtow" v-html="listdata.purchaseNotice.usageRules">
</view>
</view>
</view>
@@ -403,7 +387,7 @@
// 通用门店
productgeneralstore(name) {
uni.navigateTo({
url:'/pages/product/generalstore?name=' + encodeURIComponent(JSON.stringify(name))
url: '/pages/product/generalstore?name=' + encodeURIComponent(JSON.stringify(name))
})
},
goMap(d) {
@@ -1119,9 +1103,8 @@
}
.classshowpopupitem {
margin-top: 32rpx;
.classshowpopupitemone {
margin-top: 32rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 32rpx;
@@ -1129,6 +1112,7 @@
}
.classshowpopupitemtow {
margin-top: 16rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;

View File

@@ -37,8 +37,8 @@
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/kf.png" mode="aspectFill">
</view>
<image @click="memberlist" class="boxtop_botton" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/member.png"
mode="aspectFit"></image>
<image @click="memberlist" class="boxtop_botton"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/user/member.png" mode="aspectFit"></image>
</view>
<view class="userinfoone" v-if="teblist.length!=0">
<view class="userinfoonebox">
@@ -72,11 +72,10 @@
userInfo: {},
teblist: [],
list: [],
Topdistance: ''
Topdistance: '',
};
},
onLoad() {
},
onLoad() {},
computed: {
HeighT() { //手机类型的尺寸
return this.$store.getters.is_BarHeight
@@ -90,6 +89,14 @@
}, 1000)
// 当组件挂载完成后获取距离
},
onPageScroll(e) {
if (e.scrollTop <= 44) { //搜索导航栏
this.opacity = false
} else {
this.opacity = true
}
},
onShow() {
if (uni.cache.get('token')) {
@@ -114,10 +121,10 @@
this.Topdistance = res.height //滚动距离
})
},
memberlist(){
memberlist() {
if (uni.cache.get('token')) {
uni.pro.navigateTo('member/list')
}else{
} else {
this.loginClick()
}
},
@@ -312,6 +319,7 @@
.boxtop_top {
padding: 0 32rpx;
margin-top: 52rpx;
.boxtop_topleft {
.flex-start {
text {