作者 lihongjuan

1

... ... @@ -2,6 +2,7 @@
App({
onLaunch: function () {
// 展示本地存储能力
wx.hideTabBar()
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
... ...
{
"pages": [
"pages/homepage/homepage",
"pages/pubu/pubu",
"pages/examine/examine",
"pages/index/index",
"pages/personziliao/personziliao",
"pages/comment/comment",
"pages/passPhotos/passPhotos",
"pages/collectlist/collectlist",
"pages/commentdetail/commentdetail",
"pages/usecenter/usecenter",
"pages/shopdetail/shopdetail",
"pages/morephoto/morephoto",
"pages/morecomment/morecomment",
"pages/searchresult/searchresult",
"pages/searchcity/searchcity",
"pages/logs/logs",
"pages/login/login",
"pages/recommond/recommond",
"pages/canting/canting",
"pages/mycomment/mycomment",
"pages/personpage/personpage",
"pages/rank/rankpage",
"pages/morepic/morepic"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
"pages": [
"pages/homepage/homepage",
"pages/pubu/pubu",
"pages/examine/examine",
"pages/index/index",
"pages/personziliao/personziliao",
"pages/comment/comment",
"pages/passPhotos/passPhotos",
"pages/collectlist/collectlist",
"pages/commentdetail/commentdetail",
"pages/usecenter/usecenter",
"pages/shopdetail/shopdetail",
"pages/morephoto/morephoto",
"pages/morecomment/morecomment",
"pages/searchresult/searchresult",
"pages/searchcity/searchcity",
"pages/logs/logs",
"pages/login/login",
"pages/recommond/recommond",
"pages/canting/canting",
"pages/mycomment/mycomment",
"pages/personpage/personpage",
"pages/rank/rankpage",
"pages/morepic/morepic",
"custom-tab-bar/custom-tab-bar"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
},
"tabBar": {
"custom": true,
"color": "#666666",
"selectedColor": "#FCB952",
"borderStyle": "black",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/homepage/homepage",
"text": "首页",
"iconPath": "img/index.png",
"selectedIconPath": "img/indexactive.png"
},
{
"pagePath": "pages/usecenter/usecenter",
"text": "关于",
"iconPath": "img/person.png",
"selectedIconPath": "img/personactive.png"
}
]
},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
... ...
Component({
data: {
selected: 0,
color: "#7A7E83",
selectedColor: "#FCB952",
list: [{
pagePath: "/pages/homepage/homepage",
iconPath: "/img/index.png",
selectedIconPath: "/img/indexactive.png",
text: "首页"
},
{
pagePath: "",
iconPath: "/img/kefu.png",
selectedIconPath: "/img/kefu.png",
text: "美味君"
},
{
pagePath: "/pages/usecenter/usecenter",
iconPath: "/img/person.png",
selectedIconPath: "/img/personactive.png",
text: "我的"
}]
},
properties: {
selected: {
type: Number, // 接收父组件传过来的值
value: ''
}
},
attached() {
},
methods: {
switchTab(e) {
console.log(e)
const data = e.currentTarget.dataset
const url = data.path
wx.switchTab({url})
}
}
})
... ...
{
"component": true
}
\ No newline at end of file
... ...
<view class="tab-bar">
<view class="tab-bar-border"></view>
<view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
<image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
<view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
<button open-type="contact" class="connect" wx:if="{{index==1}}"></button>
</view>
</view>
... ...
.tab-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 48px;
background: white;
display: flex;
padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar-border {
background-color: rgba(0, 0, 0, 0.33);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 1px;
transform: scaleY(0.5);
}
.tab-bar-item {
flex: 1;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}
.tab-bar-item image {
width: 27px;
height: 27px;
}
.tab-bar-item view {
font-size: 10px;
}
.connect{
width:240rpx!important;
height:100rpx;
position: absolute;
top:0;
left:0;
background: transparent;
padding: none!important;
}
... ...
... ... @@ -142,27 +142,27 @@ Page({
})
return false
}
if (that.data.servicestar == 0) {
wx.showToast({
title: '请选择服务评分',
icon: "none"
})
return false
}
if (that.data.taststar == 0) {
wx.showToast({
title: '请选择口味评分',
icon: "none"
})
return false
}
if (that.data.environmentstar == 0) {
wx.showToast({
title: '请选择环境评分',
icon: "none"
})
return false
}
// if (that.data.servicestar == 0) {
// wx.showToast({
// title: '请选择服务评分',
// icon: "none"
// })
// return false
// }
// if (that.data.taststar == 0) {
// wx.showToast({
// title: '请选择口味评分',
// icon: "none"
// })
// return false
// }
// if (that.data.environmentstar == 0) {
// wx.showToast({
// title: '请选择环境评分',
// icon: "none"
// })
// return false
// }
if (that.data.mark == '') {
wx.showToast({
title: '请输入评论内容',
... ... @@ -195,10 +195,10 @@ Page({
content:that.data.mark,
images:that.data.image.join(","),
score1:that.data.totalstar,
score2:that.data.servicestar,
score3:that.data.taststar,
score4:that.data.environmentstar,
score5:that.data.foodstar,
// score2:that.data.servicestar,
// score3:that.data.taststar,
// score4:that.data.environmentstar,
// score5:that.data.foodstar,
type:1
}
... ...
{
"navigationBarTitleText": "写点评"
"navigationBarTitleText": "评价"
}
\ No newline at end of file
... ...
... ... @@ -27,7 +27,7 @@
</view>
</view>
<view class="evaluateItem">
<!-- <view class="evaluateItem">
<view class="tltle">服务</view>
<view class="starbox" bindtap="service" data-id="1">
<image class="starItem" src="/img/pingfenshi.png" wx:if="{{servicestar>=1}}" />
... ... @@ -102,7 +102,6 @@
</view>
</view>
<view class="evaluateItem">
<view class="tltle">食材</view>
<view class="starbox" bindtap="food" data-id="1">
... ... @@ -127,9 +126,9 @@
<image class="starItem" src="/img/lingfen_icon.png" wx:else/>
</view>
</view>
</view> -->
</view>
<textarea placeholder="说说此刻的感受吧…" class="wordArea" bindinput="entermark" />
<textarea placeholder="说说您的用餐体验…" class="wordArea" bindinput="entermark" placeholder-class="word"/>
<!-- <view class="labelbox">
<view class="labelItem">
<text>+</text>标题
... ...
... ... @@ -44,9 +44,12 @@ page {
font-family: PingFang SC;
font-weight: 400;
line-height: 40rpx;
color: rgba(189, 196, 206, 1);
color: rgba(0, 0, 0, 1);
margin-top: 32rpx;
}
.word{
color: rgba(0, 0, 0, 1);
}
.labelbox {
margin-top: 32rpx;
... ...
... ... @@ -14,7 +14,7 @@
<view wx:else>
<view class="photo">
<view class="photobox">
<view class="commentbox">
<view class="comtop flextwo">
<view class="comleft">
<image src="{{commentdetail.avatar}}"></image>
... ...
... ... @@ -119,4 +119,8 @@
}
.commentleftactive{
width:560rpx;
}
\ No newline at end of file
}
.commentbox{
padding: 40rpx;
box-sizing: border-box;
}
... ...
... ... @@ -7,6 +7,7 @@ Page({
* 页面的初始数据
*/
data: {
selected: 0,
imgUrls: [],
indicatorDots: false,
autoplay: true,
... ... @@ -33,7 +34,8 @@ Page({
grade_id: '',
composite_id: '',
city_id:'',
footersel:1
footersel:1,
show:false
},
/**
... ... @@ -51,11 +53,11 @@ Page({
console.log(e)
let id = e.currentTarget.dataset.id;
if(id==1){
wx.navigateTo({
wx.redirectTo({
url: '/pages/homepage/homepage',
})
}else if(id==2){
wx.navigateTo({
wx.redirectTo({
url: '/pages/usecenter/usecenter',
})
}
... ... @@ -378,6 +380,11 @@ Page({
that.setData({
goodlist:newArr
})
if(that.data.goodlist.lenfth==0){
that.setData({
show:true
})
}
console.log('2222',that.data.goodlist)
}
... ...
{
"navigationBarTitleText": "美味星球"
"navigationBarTitleText": "美味星球",
"usingComponents": {
"v-tab-bar": "/custom-tab-bar/custom-tab-bar"
}
}
\ No newline at end of file
... ...
... ... @@ -47,7 +47,7 @@
</view>
</view>
<view class="nodata" wx:if="{{goodlist.length==0}}">暂无数据</view>
<view class="nodata" wx:if="{{show}}">暂无数据</view>
<view class='case-page' wx:else>
<view class='list-masonry'>
... ... @@ -57,28 +57,38 @@
</view>
<view class="goodbot">
<view class="goodname">{{item.name}}</view>
<view class="goodname riname" wx:if="{{item.name_jap!=null}}">{{item.name_jap}}</view>
<view class="intro flextwo">
<!-- <view class="space"></view> -->
<view class="introleft">
{{item.series_name}}
</view>
<view class="introright">
<view class="ping flexone">
<view class="pingleft">
<image src='/img/kuaizi.png'></image>
<view class="hualist flexone" wx:if="{{item.score!=false}}">
<view class="huaitem" wx:if="{{item.score>=1}}">
<image src="/img/flower.png"></image>
</view>
<view class="pingfen">{{item.synthetical_score}}</view>
</view>
<view class="hualist flexone">
<view class="huaitem">
<view class="huaitem" wx:if="{{item.score>=2}}">
<image src="/img/flower.png"></image>
</view>
<view class="huaitem" wx:if="{{item.score>=3}}">
<image src="/img/flower.png"></image>
</view>
<view class="huaitem">
<view class="huaitem" wx:if="{{item.score>=4}}">
<image src="/img/flower.png"></image>
</view>
<view class="huaitem">
<view class="huaitem" wx:if="{{item.score>=5}}">
<image src="/img/flower.png"></image>
</view>
<!-- <view class="pingfen" wx:if="{{item.score!=false}}">{{item.score}}</view> -->
</view>
<view class="ping flexone">
<view class="pingleft">
<image src='/img/kuaizi.png'></image>
</view>
<view class="pingfen">{{item.synthetical_score}}</view>
</view>
</view>
</view>
<view class="shou">
... ... @@ -289,7 +299,8 @@
</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<v-tab-bar selected="{{selected}}" ></v-tab-bar>
<!-- <view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop">
<image src="{{footersel==1?'/img/indexactive.png':'/img/index.png'}}"></image>
... ... @@ -309,7 +320,7 @@
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">我的</view>
</view>
</view>
</view> -->
<view class="register" wx:if="{{wrap}}" bindtap="hidewrap">
<view class="topwrap" catchtap="go">
<view class="flextwo">
... ...
... ... @@ -9,15 +9,15 @@ image {
}
/* 轮播图 */
.swiper_image {
width: 686rpx;
width: 750rpx;
height: 308rpx;
font-size: 0;
margin: 32rpx auto 0;
margin: 0 auto;
position: relative;
}
swiper {
width: 686rpx;
width:750rpx;
height: 308rpx;
}
... ... @@ -27,7 +27,7 @@ swiper {
}
.swiper_item_img swiper-item {
width: 686rpx;
width: 750rpx;
height: 308rpx;
}
... ... @@ -173,6 +173,10 @@ swiper-item {
width: 296rpx;
margin-bottom:10rpx;
}
.riname{
font-size: 24rpx;
margin-top:0
}
.hualist {
margin-top: 4rpx;
... ... @@ -180,15 +184,15 @@ swiper-item {
}
.huaitem {
width: 20rpx;
height: 20rpx;
width: 24rpx;
height: 24rpx;
font-size: 0;
margin-right: 6rpx;
}
.pingleft {
width: 28rpx;
height: 28rpx;
width: 36rpx;
height:40rpx;
font-size: 0;
}
... ... @@ -209,7 +213,7 @@ swiper-item {
box-sizing: border-box;
height: 42rpx;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(112, 112, 112, 1);
border:1px solid rgba(112, 112, 112, 1);
opacity: 1;
border-radius: 180rpx;
color: #3d444d;
... ... @@ -288,3 +292,8 @@ page {
.wrapactive{
color:#FDAA2A;
}
.space{
width: 1rpx;
height: 100%;
float: left;
}
\ No newline at end of file
... ...
... ... @@ -32,6 +32,7 @@ Page({
page:1,
commentlist:[]
})
console.log(this.data.coment)
this.getmorecomment()
},
... ... @@ -44,7 +45,7 @@ Page({
page: that.data.page,
shop_id:that.data.shopid,
limit:15,
type:that.data.comment
type:that.data.coment
}
app.post(url, params,"post").then((res) => {
... ...
<view class="commenttop flexone">
<view class="commenttopitem {{coment==index?'comactive':''}}" wx:for="{{comentarr}}" wx:key="" bindtap="selitem" data-index="{{index}}">{{item}}</view>
</view>
<view class="bodybox">
<view class="nodata" wx:if="{{commentlist.length==0}}">暂无评论</view>
<view class="bodybox" wx:else>
<view class="photo" wx:for="{{commentlist}}" wx:key="">
<view class="jianintro photobox" bindtap="comentdetail" data-id="{{item.id}}">
<view class="jianintro commentbox" bindtap="comentdetail" data-id="{{item.id}}">
<view class="comtop flextwo">
<view class="comleft">
<image src="{{item.avatar}}"></image>
... ...
... ... @@ -21,3 +21,6 @@
font-size: #FDAA2A;
border:1rpx solid #FDAA2A;
}
.commentbox{
margin-top:0
}
\ No newline at end of file
... ...
... ... @@ -13,7 +13,7 @@
<view class="bodybox" wx:else>
<view class="photo" wx:for="{{commentlist}}" wx:key="">
<view class="jianintro photobox" bindtap="comentdetail" data-id="{{item.id}}" data-shopid="{{item.shop_id}}">
<view class="jianintro commentitem" bindtap="comentdetail" data-id="{{item.id}}" data-shopid="{{item.shop_id}}">
<view class="comtop flextwo">
<view class="comleft">
<image src="{{item.avatar}}"></image>
... ... @@ -26,14 +26,12 @@
</view>
<view class="flexone">
<view class="shenstatus" wx:if="{{item.status==1}}">审核中</view>
<view class="shenstatus" wx:if="{{item.status==3}}">审核未通过</view>
<!-- <view class="shenstatus" wx:if="{{item.status==1}}">审核中</view>
<view class="shenstatus" wx:if="{{item.status==3}}">审核未通过</view> -->
<view class="delimg" catchtap="delcomment" data-id="{{item.id}}">
<image src="/img/delimg.png"></image>
</view>
</view>
</view>
<view class="comdate">{{item.createtime}}</view>
... ...
... ... @@ -145,4 +145,7 @@
font-size: 22rpx;
text-align: center;
margin-right:26rpx;
}
.commentitem{
margin-top:0
}
\ No newline at end of file
... ...
... ... @@ -32,7 +32,8 @@
<view class="entertext">
<view class="textyop">用户简介</view>
<view class="textarea">
<textarea placeholder='这个人什么都没写…' value="{{brief}}" bindinput="entermark"/>
<input placeholder='这个人什么都没写…' value="{{brief}}" bindinput="entermark" maxlength="50"/>
</view>
... ...
... ... @@ -51,7 +51,7 @@ page {
.textarea {
color: #bdc4ce;
font-size: 24rpx;
font-size:30rpx;
margin-top: 16rpx;
}
... ... @@ -60,7 +60,7 @@ page {
padding: 32rpx;
box-sizing: border-box;
margin-top: 16rpx;
height: 316rpx;
/* height: 316rpx; */
}
.headitemleft input {
... ...
... ... @@ -8,15 +8,15 @@ Page({
data: {
word: '',
recommend: [],
search:true,
goodlist:[]
search: true,
goodlist: [],
historylist:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
onLoad: function (options) {
this.getrecommend()
},
enterword(e) {
... ... @@ -24,21 +24,42 @@ Page({
this.setData({
word: e.detail.value
})
console.log(this.data.word)
},
// 获取历史搜索
// 获取搜索内容
searchtext() {
let that = this;
if(that.data.word==''){
if (that.data.word == '') {
wx.showToast({
title: '请输入关键字',
icon: "none"
})
return false
}
that.searchlist()
},
searchtextk(){
if(this.data.word==''){
wx.showToast({
title:'请输入搜索内容',
icon:"none"
})
return false
}
this.searchlist()
},
// 点击搜索
searchtext(e){
this.setData({
word:e.currentTarget.dataset.name
})
this.searchlist()
},
searchlist(){
let that=this;
console.log(that.data.word)
var url = 'index/searchShopList';
var params = {
keyword: that.data.word,
... ... @@ -51,71 +72,107 @@ Page({
}
app.post(url, params).then((res) => {
console.log(res);
if(res.data.length!=0){
if (res.data.length != 0) {
that.setData({
search:false,
page:1,
goodlist:[],
search: false,
page: 1,
goodlist: [],
})
that.setData({
goodlist: that.data.goodlist.concat(res.data)
})
var arr = that.data.goodlist;
console.log('666',arr)
console.log('666', arr)
let one = [];
let two = [];
let newArr = [];
arr.forEach((el,i)=>{
arr.forEach((el, i) => {
console.log(i)
if(i%2 == 0){
one.push(el)
}else{
two.push(el)
}
if (i % 2 == 0) {
one.push(el)
} else {
two.push(el)
}
})
newArr = [...newArr,...one,...two];
newArr = [...newArr, ...one, ...two];
that.setData({
goodlist:newArr
goodlist: newArr
})
console.log('2222',that.data.goodlist)
console.log('2222', that.data.goodlist)
}
}).catch((err) => {
})
},
// 获取历史搜索
gethistory(){
let that = this;
var url = 'sundry/get_keyword_log';
var params = {
}
app.post(url, params).then((res) => {
console.log(res);
that.setData({
historylist:res
})
}).catch((err) => {
})
},
// 删除历史搜索
delete(){
let that = this;
wx.showModal({
title: '提示',
content: '是否要删除历史搜索',
success (res) {
if (res.confirm) {
var url = 'sundry/delete_keyword_log';
var params = {
}
app.post(url, params).then((res) => {
console.log(res);
wx.showToast({
title: '删除成功',
icon:"none"
})
that.setData({
historylist:[]
})
console.log(that.data.historylist)
}).catch((err) => {
console.log(err)
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}})
},
goodtail(e) {
let id = e.currentTarget.dataset.id;
wx.navigateTo({
url: '/pages/shopdetail/shopdetail?id=' + id,
})
},
// 获取推荐店铺
getrecommend() {
let that = this;
var url = 'shop/selectShopRecommend';
var params = {
limit: 10
}
app.post(url, params).then((res) => {
console.log(res);
that.setData({
recommend: res
})
}).catch((err) => {
})
let that = this;
var url = 'shop/selectShopRecommend';
var params = {
limit: 10
}
app.post(url, params).then((res) => {
console.log(res);
that.setData({
recommend: res
})
}).catch((err) => {})
},
goodtail(e) {
... ... @@ -128,49 +185,49 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
onShow: function () {
this.gethistory()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
... ... @@ -9,41 +9,42 @@
<input type="text" placeholder="请输入搜索内容" placeholder-class="shuru" bindinput="enterword" />
</view>
</view>
<view class="search" bindtap="searchtext">搜索</view>
<view class="search" bindtap="searchtextk">搜索</view>
</view>
</view>
<view wx:if="{{search}}">
<!-- 店推推荐 -->
<view class="city">
<view class="citytop">店铺推荐</view>
<view class="citybox flexone">
<view class="nodata" wx:if="{{recommend.length==0}}"></view>
<view class="citybox flexone" wx:else>
<view class="tuiitem flexone" wx:for="{{recommend}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">
<view class="tuimg" wx:if="{{index<=2}}">
<image src="/img/huori.png"></image>
</view>
{{item.name}}
</view>
</view>
</view>
<!-- 店推推荐 -->
<view class="city">
<view class="citytop">历史搜索</view>
<view class="citybox flexone">
<view class="tuiitem flexone" wx:for='{{shoplist}}' wx:key="" bindtap="goodtail" data-id="{{item.id}}">
{{item.name}}
<view class="flextwo">
<view class="citytop">历史搜索</view>
<view class="deleteimg" bindtap="delete">
<image src="/img/delete.png"></image>
</view>
</view>
<view class="nodata" wx:if="{{historylist.length==0}}">暂无数据</view>
<view class="citybox flexone" wx:else>
<view class="tuiitem flexone" wx:for='{{historylist}}' wx:key="" bindtap="searchtext" data-name="{{item.content}}">
{{item.content}}
</view>
</view>
</view>
</view>
<!--搜索结果 -->
<view class="search" wx:else>
<view class="nodata" wx:if="{{goodlist.length==0}}">暂无数据</view>
... ...
@import '../searchcity/searchcity.wxss';
@import '../homepage/homepage.wxss';
.tuiitem{
padding: 12rpx 22rpx;
box-sizing: border-box;
background: #eee;
color:#06121E;
font-size: 24rpx;
text-align: center;
margin-bottom:24rpx;
margin-right:22rpx;
padding: 12rpx 22rpx;
box-sizing: border-box;
background: #eee;
color:#06121E;
font-size: 24rpx;
text-align: center;
margin-bottom:24rpx;
margin-right:22rpx;
}
.tuimg{
width:26rpx;
height:26rpx;
font-size: 0;
margin-right:10rpx;
width:26rpx;
height:26rpx;
font-size: 0;
margin-right:10rpx;
}
.deleteimg{
width:32rpx;
height:32rpx;
font-size:0;
margin-top:44rpx;
}
\ No newline at end of file
... ...
... ... @@ -24,6 +24,30 @@ Page({
this.setData({
currentSwiper: e.detail.current
})
wx.previewImage({
current: that.data.explain_pic[index],
urls: that.data.explain_pic,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
// wx.previewImage({
// urls: [],
// })
},
// 评论图片预览
previewimgk(e){
console.log(e)
let pindex=e.currentTarget.dataset.pindex;
let index=e.currentTarget.dataset.index;
wx.previewImage({
current: this.data.shopdetail.remarks[pindex].images[index],
urls:this.data.shopdetail.remarks[pindex].images,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
},
morecomment() {
... ... @@ -32,6 +56,7 @@ Page({
})
},
xiangce() {
console.log(33443)
wx.navigateTo({
url: '/pages/morepic/morepic',
})
... ...
... ... @@ -46,23 +46,30 @@
</view>
<view class="cai flex">
<view class="flower flexone">
<view class="floweritem">
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=1}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem">
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=2}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem">
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=3}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=4}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=5}}">
<image src="/img/hua.png"></image>
</view>
</view>
<!-- <view class="fen" wx:if="{{shopdetail.miqilin_score!=false}}">{{shopdetail.miqilin_score}} 分</view> -->
<view class="huaname">{{shopdetail.series_name}}</view>
</view>
<view class="comment flexone">
<view class="sanleft">
<image src="/img/sanxing.png"></image>
</view>
<view class="star flexone">
<!-- <view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=1}}"></image>
... ... @@ -91,15 +98,15 @@
</view>
</view>
<view class="fen">{{shopdetail.miqilin_score}}分</view>
</view> -->
<view class="fen">{{shopdetail.synthetical_score}}分</view>
<view class="tiao">({{shopdetail.remark_num}}条)</view>
</view>
<view class="commentone flexone">
<view class="sanleft">
<image src="/img/kuai.png"></image>
</view>
<view class="star flexone">
<!-- <view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=1}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<0.5}}"></image>
... ... @@ -126,8 +133,8 @@
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=4.5&&shopdetail.synthetical_score<5}}"></image>
</view>
</view>
<view class="fen">{{shopdetail.synthetical_score}}分</view>
</view> -->
<view class="fen">{{shopdetail.tabelog}}分</view>
</view>
</view>
</view>
... ... @@ -141,9 +148,9 @@
</view>
</view>
<view class="photo {{shopdetail.content==''?'photoact':''}}" wx:if="{{images[0]!=''}}">
<view class="flextwo" bindtap="{{pic.length!=0?'xiangce':''}}">
<view class="flextwo">
<view class="xiang" >相册</view>
<view class="photoright flexone">
<view class="photoright flexone" bindtap="{{pic.length!=0?'xiangce':''}}" wx:if="{{pic.length!=0}}">
<view class="morename">更多</view>
<view class="yourow">
<image src="/img/leftrow.png"></image>
... ... @@ -174,7 +181,7 @@
<view class="dianbox">
<!-- wx:for='{{shopdetail.remarks}}' wx:key="" -->
<view class="jianintro photobox" bindtap="comentdetail" data-id="{{item.id}}" wx:for='{{shopdetail.remarks}}' wx:key="">
<view class="jianintro commentitem " bindtap="comentdetail" data-id="{{item.id}}" wx:for='{{shopdetail.remarks}}' wx:key="" wx:for-index="cellindex">
<view class="comtop flextwo" catchtap="personpage" data-userid="{{item.user_id}}">
<view class="comleft">
<image src="{{item.avatar}}"></image>
... ... @@ -257,7 +264,7 @@
<view class="textboximg flexone">
<view class="boxitem" wx:for='{{item.images}}' wx:key="">
<image src="{{item}}"></image>
<image src="{{item}}" catchtap="previewimgk" data-index="{{index}}" data-pindex="{{cellindex}}"></image>
</view>
</view>
... ... @@ -340,10 +347,10 @@
</view>
</view>
<view class="yuyuelsit flexone" wx:if="{{shopdetail.label!=''}}">
<!-- <view class="yuyuelsit flexone" wx:if="{{shopdetail.label!=''}}">
<view class="yuyueitem" wx:for="{{shopdetail.label}}" wx:key="">{{item}}</view>
</view>
</view> -->
</view>
... ...
... ... @@ -22,7 +22,7 @@ page {
text-align: center;
position: absolute;
right: 32rpx;
bottom: 54rpx;
bottom:120rpx;
}
/* 轮播图 */
... ... @@ -140,7 +140,7 @@ swiper {
.huaname {
height: 40rpx;
border: 1rpx solid rgba(140, 145, 152, 1);
border:2rpx solid rgba(140, 145, 152, 1);
opacity: 1;
border-radius: 8rpx;
color: #8c9198;
... ... @@ -196,6 +196,9 @@ swiper {
padding: 40rpx;
box-sizing: border-box;
}
.commentitem{
margin-top:0
}
page {
background: #fbf8fb;
... ... @@ -209,7 +212,7 @@ page {
.jiantext {
color: #707070;
font-size: 24rpx;
}
.bodybox {
... ... @@ -238,7 +241,7 @@ page {
}
.photoitem {
width: 188rpx;
width: 223rpx;
height: 188rpx;
font-size: 0;
padding-right: 42rpx;
... ... @@ -551,4 +554,7 @@ button::after {
.yuyuelsit {
margin-top: 26rpx;
}
.dianbox{
margin-top:24rpx;
}
\ No newline at end of file
... ...
... ... @@ -8,17 +8,18 @@ Page({
data: {
userinfo: '',
token: '',
footersel:2
footersel:2,
selected: 2,
},
footersel(e) {
console.log(e)
let id = e.currentTarget.dataset.id;
if(id==1){
wx.navigateTo({
wx.redirectTo({
url: '/pages/homepage/homepage',
})
}else if(id==2){
wx.navigateTo({
wx.redirectTo({
url: '/pages/usecenter/usecenter',
})
}
... ...
{
"navigationBarTitleText": "我的",
"navigationBarBackgroundColor": "#FDAA2A",
"navigationBarTextStyle": "white"
"navigationBarTextStyle": "white",
"usingComponents": {
"v-tab-bar": "/custom-tab-bar/custom-tab-bar"
}
}
\ No newline at end of file
... ...
... ... @@ -117,9 +117,10 @@
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<v-tab-bar selected="{{selected}}" ></v-tab-bar>
<!-- 底部导航 -->
<!-- <view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop">
<image src="{{footersel==1?'/img/indexactive.png':'/img/index.png'}}"></image>
... ... @@ -139,4 +140,4 @@
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">我的</view>
</view>
</view>
\ No newline at end of file
</view> -->
\ No newline at end of file
... ...