解决了已知问题
This commit is contained in:
parent
cd390fbb08
commit
3c4da4c638
|
@ -87,10 +87,9 @@ height: 20px;
|
|||
.Box2
|
||||
{
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
height: 130px;
|
||||
background-color: white;
|
||||
position: relative;
|
||||
top:30px;
|
||||
margin-top: 50rpx;
|
||||
border-radius: 15px;
|
||||
}
|
||||
/* 店铺名 */
|
||||
|
@ -107,33 +106,31 @@ height: 20px;
|
|||
}
|
||||
.z3{
|
||||
position: relative;
|
||||
left: 30rpx;
|
||||
bottom: 8rpx;
|
||||
left: 20rpx;
|
||||
color: rgb(194, 53, 53);
|
||||
}
|
||||
.z4{
|
||||
position: relative;
|
||||
left: 80rpx;
|
||||
bottom:10rpx;
|
||||
left: 50rpx;
|
||||
}
|
||||
/* 营业时间 */
|
||||
.z6{
|
||||
color: #4095E5;
|
||||
font-weight: bolder;
|
||||
top:20px;
|
||||
left: 10px;
|
||||
position: relative;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.z7{
|
||||
position: relative;
|
||||
top:38rpx;
|
||||
left: 30rpx;
|
||||
display: flex;
|
||||
width: 300px;
|
||||
margin-left: 10rpx;
|
||||
font-size: 13px;
|
||||
margin-top: 3rpx;
|
||||
}
|
||||
.box3{
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: darkgrey;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
/* 地址 */
|
||||
.z8{
|
||||
|
@ -223,4 +220,8 @@ height: 20px;
|
|||
position: absolute;
|
||||
right: 0rpx;
|
||||
top: -40rpx;
|
||||
}
|
||||
.time{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
|
@ -5,9 +5,9 @@
|
|||
<text class="z2">{{businessName}}</text>
|
||||
<view style="margin-top:10rpx">
|
||||
<ant-rate
|
||||
defaultValue="{{level}}"
|
||||
readonly
|
||||
></ant-rate>
|
||||
defaultValue="{{level}}"
|
||||
readonly
|
||||
></ant-rate>
|
||||
<text class="z3">{{level}}.0</text>
|
||||
<text class="z4">500条</text>
|
||||
</view>
|
||||
|
@ -20,23 +20,21 @@
|
|||
</view>
|
||||
</view>
|
||||
<!-- 营业时间 -->
|
||||
<view style="width:100%;height:90px">
|
||||
<view style="height:50px">
|
||||
<text class="z6" a:if="{{storeStatus === '0'}}">已休息</text>
|
||||
<text class="z6" a:if="{{storeStatus === '1'}}">营业中</text>
|
||||
<text class="z7">营业时间:{{startBusiness}}-{{endBusiness}}</text>
|
||||
<view style="margin-bottom:20rpx">
|
||||
<view class="time">
|
||||
<text class="z6" a:if="{{storeStatus == 0}}">已休息</text>
|
||||
<text class="z6" a:if="{{storeStatus == 1}}">营业中</text>
|
||||
<view class="z7">
|
||||
<text>营业时间:{{startBusiness}}-{{endBusiness}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="box3"></view>
|
||||
</view>
|
||||
<!-- 地址 -->
|
||||
<view style="width:100%;height:50px">
|
||||
<image class="image3" mode="scaleToFill" src="../image/didian.png" />
|
||||
<text class="z8">{{address}}</text>
|
||||
<!-- 地址 -->
|
||||
<view>
|
||||
<view class="box4"></view>
|
||||
<image class="image3" mode="scaleToFill" src="../image/didian.png" />
|
||||
<text class="z8">{{address}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box4"></view>
|
||||
</view>
|
||||
<view class="tiaobox">
|
||||
<view class="tiao" a:for="{{ names }}" onTap="chaxunzhuangtai" data-id={{item.id}}>
|
||||
|
|
|
@ -43,7 +43,7 @@ Page({
|
|||
showComments: false, // 控制评论部分是否显示
|
||||
showBusinessInfo: false, // 控制商家信息是否显示
|
||||
pingjia:[],
|
||||
level:''
|
||||
level:'',
|
||||
},
|
||||
onLoad(options) {
|
||||
// Extract userId and address from options
|
||||
|
@ -57,7 +57,7 @@ Page({
|
|||
const id = options.id
|
||||
const businessPhone = options.businessPhone
|
||||
const level = options.level
|
||||
console.log(id,'这是店铺id吗');
|
||||
console.log(id,storeStatus,'这是店铺id吗');
|
||||
// Set them in data for use in the page
|
||||
this.setData({
|
||||
userId: userId,
|
||||
|
|
|
@ -84,11 +84,10 @@ height: 20px;
|
|||
.Box2
|
||||
{
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
height: 130px;
|
||||
background-color: white;
|
||||
position: relative;
|
||||
top:30px;
|
||||
border-radius: 15px;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
/* 店铺名 */
|
||||
.z2{
|
||||
|
@ -117,20 +116,17 @@ height: 20px;
|
|||
.z6{
|
||||
color: #4095E5;
|
||||
font-weight: bolder;
|
||||
top:20px;
|
||||
left: 10px;
|
||||
position: relative;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.z7{
|
||||
position: relative;
|
||||
top:38rpx;
|
||||
left: 30rpx;
|
||||
margin-left: 10rpx;
|
||||
font-size: 13px;
|
||||
}
|
||||
.box3{
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: darkgrey;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
/* 地址 */
|
||||
.z8{
|
||||
|
@ -219,4 +215,8 @@ height: 20px;
|
|||
position: absolute;
|
||||
right: 0rpx;
|
||||
top: -40rpx;
|
||||
}
|
||||
.time{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
|
@ -20,23 +20,21 @@
|
|||
</view>
|
||||
</view>
|
||||
<!-- 营业时间 -->
|
||||
<view style="width:100%;height:90px">
|
||||
<view style="height:50px">
|
||||
<text class="z6" a:if="{{storeStatus === '0'}}">已休息</text>
|
||||
<text class="z6" a:if="{{storeStatus === '1'}}">营业中</text>
|
||||
<text class="z7">营业时间:{{startBusiness}}-{{endBusiness}}</text>
|
||||
<view style="margin-bottom:20rpx">
|
||||
<view class="time">
|
||||
<text class="z6" a:if="{{storeStatus == 0}}">已休息</text>
|
||||
<text class="z6" a:if="{{storeStatus == 1}}">营业中</text>
|
||||
<view>
|
||||
<text class="z7">营业时间:{{startBusiness}}-{{endBusiness}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="box3"></view>
|
||||
</view>
|
||||
<!-- 地址 -->
|
||||
<view style="width:100%;height:50px">
|
||||
<image class="image3" mode="scaleToFill" src="../image/didian.png" />
|
||||
<text class="z8">{{address}}</text>
|
||||
<!-- 地址 -->
|
||||
<view>
|
||||
<view class="box4"></view>
|
||||
<image class="image3" mode="scaleToFill" src="../image/didian.png" />
|
||||
<text class="z8">{{address}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box4"></view>
|
||||
</view>
|
||||
<view class="tiaobox">
|
||||
<view class="tiao" a:for="{{ names }}" onTap="chaxunzhuangtai" data-id={{item.id}}>
|
||||
|
|
|
@ -58,7 +58,7 @@ Page({
|
|||
const id = options.id
|
||||
const businessPhone = options.businessPhone
|
||||
const level = options.level
|
||||
console.log(id,'这是店铺id吗');
|
||||
console.log(storeStatus,id,'这是店铺id吗');
|
||||
// Set them in data for use in the page
|
||||
this.setData({
|
||||
userId: userId,
|
||||
|
|
|
@ -211,10 +211,15 @@ Page({
|
|||
const startBusiness = id.data.startBusiness
|
||||
const storeStatus = id.data.storeStatus
|
||||
const businessPhone =id.data.businessPhone
|
||||
console.log('Address being passed: ', ID,address,businessName,businessAvatar,endBusiness,startBusiness,businessPhone);
|
||||
const level = id.data.level
|
||||
console.log('Address being passed: ', level,ID,address,businessName,businessAvatar,endBusiness,startBusiness,businessPhone);
|
||||
|
||||
my.navigateTo({
|
||||
url: `/pages/dianpuzhuye/dianpuzhuye?userId=${userId}&&address=${address}&&businessName=${businessName}&&businessAvatar=${businessAvatar}&&startBusiness=${startBusiness}&&endBusiness=${endBusiness}&&storeStatus=${storeStatus}&&id=${ID}&&businessPhone=${businessPhone}`,
|
||||
url: `/pages/dianpuzhuye/dianpuzhuye?userId=${userId}
|
||||
&&address=${address}&&businessName=${businessName}
|
||||
&&businessAvatar=${businessAvatar}&&startBusiness=${startBusiness}
|
||||
&&endBusiness=${endBusiness}&&storeStatus=${storeStatus}
|
||||
&&id=${ID}&&businessPhone=${businessPhone}&&level=${level}`,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -15,6 +15,16 @@ Page({
|
|||
this.setData({
|
||||
chatMessages: [initialMessage]
|
||||
});
|
||||
my.getStorage({
|
||||
key: 'userInfo',
|
||||
success: (res) => {
|
||||
const userInfo = res.data;
|
||||
this.setData({
|
||||
id: userInfo.id, // 获取 id
|
||||
avatarUrl:userInfo.avatarUrl
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
onMessageInput(e) {
|
||||
|
@ -28,16 +38,6 @@ Page({
|
|||
},
|
||||
|
||||
onSubmit() {
|
||||
my.getStorage({
|
||||
key: 'userInfo',
|
||||
success: (res) => {
|
||||
const userInfo = res.data;
|
||||
this.setData({
|
||||
id: userInfo.id, // 获取 id
|
||||
avatarUrl:userInfo.avatarUrl
|
||||
});
|
||||
}
|
||||
});
|
||||
let that = this;
|
||||
let currentMessage = this.data.message;
|
||||
let userAvatar = this.data.avatarUrl; // 用户头像URL
|
||||
|
|
Loading…
Reference in New Issue
Block a user