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