作者 lihongjuan

tijiao

正在显示 140 个修改的文件 包含 5871 行增加0 行删除
  1 +//app.js
  2 +App({
  3 + onLaunch: function () {
  4 + // 展示本地存储能力
  5 + var logs = wx.getStorageSync('logs') || []
  6 + logs.unshift(Date.now())
  7 + wx.setStorageSync('logs', logs)
  8 +
  9 + // 登录
  10 + wx.login({
  11 + success: res => {
  12 + // 发送 res.code 到后台换取 openId, sessionKey, unionId
  13 + }
  14 + })
  15 + // 获取用户信息
  16 + wx.getSetting({
  17 + success: res => {
  18 + if (res.authSetting['scope.userInfo']) {
  19 + // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
  20 + wx.getUserInfo({
  21 + success: res => {
  22 + // 可以将 res 发送给后台解码出 unionId
  23 + this.globalData.userInfo = res.userInfo
  24 +
  25 + // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
  26 + // 所以此处加入 callback 以防止这种情况
  27 + if (this.userInfoReadyCallback) {
  28 + this.userInfoReadyCallback(res)
  29 + }
  30 + }
  31 + })
  32 + }
  33 + }
  34 + })
  35 + },
  36 + globalData: {
  37 + userInfo: null
  38 + }
  39 +})
  1 +{
  2 + "pages": [
  3 + "pages/homepage/homepage",
  4 + "pages/personziliao/personziliao",
  5 +
  6 + "pages/examine/examine",
  7 + "pages/comment/comment",
  8 + "pages/passPhotos/passPhotos",
  9 + "pages/collectlist/collectlist",
  10 + "pages/commentdetail/commentdetail",
  11 + "pages/usecenter/usecenter",
  12 + "pages/shopdetail/shopdetail",
  13 + "pages/morephoto/morephoto",
  14 + "pages/morecomment/morecomment",
  15 + "pages/searchresult/searchresult",
  16 + "pages/searchcity/searchcity",
  17 + "pages/index/index",
  18 + "pages/logs/logs",
  19 + "pages/login/login",
  20 + "pages/recommond/recommond",
  21 + "pages/canting/canting",
  22 + "pages/mycomment/mycomment"
  23 +
  24 + ],
  25 + "window": {
  26 + "backgroundTextStyle": "light",
  27 + "navigationBarBackgroundColor": "#fff",
  28 + "navigationBarTitleText": "WeChat",
  29 + "navigationBarTextStyle": "black"
  30 + },
  31 + "tabBar": {
  32 + "selectedColor": "#FCB952",
  33 + "list": [
  34 + {
  35 + "pagePath": "pages/homepage/homepage",
  36 + "text": "首页",
  37 + "selectedColor": "#FCB952",
  38 + "iconPath": "img/index.png",
  39 + "selectedIconPath": "img/indexactive.png"
  40 + },
  41 + {
  42 + "pagePath": "pages/usecenter/usecenter",
  43 + "text": "我的",
  44 + "selectedColor": "#FCB952",
  45 + "iconPath": "img/person.png",
  46 + "selectedIconPath": "img/personactive.png"
  47 + }
  48 + ]
  49 + },
  50 + "style": "v2",
  51 + "sitemapLocation": "sitemap.json"
  52 +}
  1 +
  2 +/* 输入框搜索 */
  3 +image{
  4 + width:100%;
  5 + height:100%;
  6 +}
  7 +.head {
  8 + width: 750rpx;
  9 + display: flex;
  10 + align-items: center;
  11 + justify-content: space-between;
  12 + padding: 24rpx 32rpx;
  13 + box-sizing: border-box;
  14 + }
  15 +
  16 + .headleft {
  17 + display: flex;
  18 +
  19 + align-items: center;
  20 + justify-content: center
  21 + }
  22 +
  23 + .headleftimg {
  24 + width: 31rpx;
  25 + height: 31rpx;
  26 + font-size: 0;
  27 + }
  28 +
  29 + .headmiddle {
  30 + width: 542rpx;
  31 + height: 60rpx;
  32 + background: rgba(249, 249, 249, 1);
  33 + border-radius: 32rpx;
  34 + display: flex;
  35 + align-items: center;
  36 + padding: 16rpx 20rpx;
  37 + box-sizing: border-box;
  38 + }
  39 +
  40 + .headmiddleleft {
  41 + width: 32rpx;
  42 + height: 32rpx;
  43 + font-size: 0;
  44 + }
  45 +
  46 + .headmiddleleft image {
  47 + width: 100%;
  48 + height: 100%;
  49 + }
  50 +
  51 + .headright {
  52 + width: 48rpx;
  53 + height: 48rpx;
  54 + font-size: 0;
  55 + position: relative;
  56 + }
  57 +
  58 + .sizenum {
  59 + width: 32rpx;
  60 + height: 32rpx;
  61 + color: #FF4E14;
  62 + font-size: 20rpx;
  63 + text-align: center;
  64 + line-height: 30rpx;
  65 + position: absolute;
  66 + right: -15rpx;
  67 + top: -5rpx;
  68 + background: #fff;
  69 + border-radius: 50%;
  70 + border: 1rpx solid #FF4E14;
  71 + }
  72 + .headmiddleright{
  73 + width:400rx;
  74 + margin-left:16rpx;
  75 +
  76 + }
  77 +
  78 + .headmiddleright input {
  79 + width: 100%;
  80 + height: 100%;
  81 + color: #BDC4CE;
  82 + font-size: 24rpx;
  83 + padding: 12rpx 0;
  84 + box-sizing: border-box
  85 + }
  86 +
  87 + .cityname {
  88 + color: #fff;
  89 + font-size: 22rpx;
  90 + margin-top: 5rpx;
  91 + }
  92 +
  93 + .headbot {
  94 + height: 256rpx;
  95 + width: 750rpx;
  96 + background: #C29445;
  97 + position: relative;
  98 + }
  99 +.shuru{
  100 + color:#BDC4CE;
  101 + font-size: 28rpx;
  102 +}
  103 +
  104 +
  105 +.commonname{
  106 + color:#06121E;
  107 + font-size: 32rpx
  108 +}
  109 +.commnameone{
  110 + color:#06121E;
  111 + font-size: 28rpx;
  112 +}
  113 +
  114 +.flex {
  115 + display: flex;
  116 +}
  117 +
  118 +.flexone {
  119 + display: flex;
  120 + align-items: center;
  121 +}
  122 +
  123 +.flextwo {
  124 + display: flex;
  125 + align-items: center;
  126 + justify-content: space-between;
  127 +}
  128 +
  129 +.flexthree {
  130 + display: flex;
  131 + align-items: center;
  132 + justify-content: center;
  133 +}
  134 +.commonpadding{
  135 + padding: 32rpx;
  136 + box-sizing: border-box;
  137 + background: #fff;
  138 +}
  139 +.yourow {
  140 + width: 15rpx;
  141 + height: 20rpx;
  142 + font-size: 0;
  143 +}
  144 +
  145 +/* 五角星 */
  146 +.staritem{
  147 + width:32rpx;
  148 + height:32rpx;
  149 + font-size: 0;
  150 + margin-right:4rpx;
  151 +}
  152 +.register {
  153 + width: 100%;
  154 + height: 100%;
  155 + background-color: rgba(0, 0, 0, 0.5);
  156 + position: fixed;
  157 + top: 0;
  158 + left: 0;
  159 + right: 0;
  160 + z-index: 999;
  161 +}
  162 +.nomoer{
  163 + color:#8C9198;
  164 + font-size:24rpx;
  165 + text-align: center;
  166 + margin-top:26rpx;
  167 + padding-bottom:20rpx;
  168 +}

995 字节

573 字节

1000 字节

909 字节

869 字节

925 字节

862 字节

636 字节

239 字节

512 字节

994 字节

  1 +// pages/canting/canting.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "去过的餐厅"
  3 +}
  1 +<view class="colecttop flextwo">
  2 + <view class="comt">(20/34)</view>
  3 +</view>
  4 +<view class="collectbox">
  5 + <view class="colectbitem flex">
  6 + <view class="collectbitemleft">
  7 + <image src="/img/photo.png"></image>
  8 + </view>
  9 + <view class="collectbtitemr">
  10 + <view class='goodname'>海贼王寿司店</view>
  11 +
  12 + <view class="flexone starbox">
  13 + <view class="star flexone">
  14 + <view class="staritem">
  15 + <image src="/img/pingfenshi.png"></image>
  16 + </view>
  17 + <view class="staritem">
  18 + <image src="/img/pingfenshi.png"></image>
  19 + </view>
  20 + <view class="staritem">
  21 + <image src="/img/pingfenshi.png"></image>
  22 + </view>
  23 + <view class="staritem">
  24 + <image src="/img/pingfenshi.png"></image>
  25 + </view>
  26 + <view class="staritem">
  27 + <image src="/img/pingfenshi.png"></image>
  28 + </view>
  29 + </view>
  30 + <view class="shouprice">¥88</view>
  31 + </view>
  32 + <view class="addressbox flexone">
  33 + <view class='asddressitem'>东京街</view>
  34 + <view class='asddressitem'>东京街</view>
  35 + <view class='asddressitem'>东京街</view>
  36 + </view>
  37 + </view>
  38 +
  39 + </view>
  40 + <view class="colectbitem flex">
  41 + <view class="collectbitemleft">
  42 + <image src="/img/photo.png"></image>
  43 + </view>
  44 + <view class="collectbtitemr">
  45 + <view class='goodname'>海贼王寿司店</view>
  46 +
  47 + <view class="flexone starbox">
  48 + <view class="star flexone">
  49 + <view class="staritem">
  50 + <image src="/img/pingfenshi.png"></image>
  51 + </view>
  52 + <view class="staritem">
  53 + <image src="/img/pingfenshi.png"></image>
  54 + </view>
  55 + <view class="staritem">
  56 + <image src="/img/pingfenshi.png"></image>
  57 + </view>
  58 + <view class="staritem">
  59 + <image src="/img/pingfenshi.png"></image>
  60 + </view>
  61 + <view class="staritem">
  62 + <image src="/img/pingfenshi.png"></image>
  63 + </view>
  64 + </view>
  65 + <view class="shouprice">¥88</view>
  66 + </view>
  67 + <view class="addressbox flexone">
  68 + <view class='asddressitem'>东京街</view>
  69 + <view class='asddressitem'>东京街</view>
  70 + <view class='asddressitem'>东京街</view>
  71 + </view>
  72 + </view>
  73 +
  74 + </view>
  75 +</view>
  76 +
  77 +<view class="nomoer">没有更多了哦~</view>
  1 +@import '../collectlist/collectlist.wxss';
  2 +.comt{
  3 + color:#06121E;
  4 + font-size: 28rpx;
  5 +}
  6 +.colecttop{
  7 + padding: 10rpx 32rpx;
  8 + box-sizing: border-box
  9 +}
  1 +// pages/collectlist/collectlist.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + nav: 1,
  9 + delBtnWidth: 160,
  10 + data: [{ content: "1", right: 0 }, { content: "2", right: 0 }, { content: "3", right: 0 }, { content: "4", right: 0 }, { content: "5", right: 0 }, { content: "6", right: 0 }, { content: "7", right: 0 }, { content: "8", right: 0 }, { content: "9", right: 0 }, { content: "10", right: 0 }],
  11 + isScroll: true,
  12 + windowHeight: 0,
  13 + },
  14 + sel(e) {
  15 + this.setData({
  16 + nav: e.currentTarget.dataset.id
  17 + })
  18 + },
  19 + /**
  20 + * 生命周期函数--监听页面加载
  21 + */
  22 + onLoad: function(options) {
  23 + var that = this;
  24 + wx.getSystemInfo({
  25 + success: function (res) {
  26 + that.setData({
  27 + windowHeight: res.windowHeight
  28 + });
  29 + }
  30 + });
  31 + },
  32 + drawStart: function (e) {
  33 + // console.log("drawStart");
  34 + var touch = e.touches[0]
  35 +
  36 + for (var index in this.data.data) {
  37 + var item = this.data.data[index]
  38 + item.right = 0
  39 + }
  40 + this.setData({
  41 + data: this.data.data,
  42 + startX: touch.clientX,
  43 + })
  44 +
  45 + },
  46 + drawMove: function (e) {
  47 + var touch = e.touches[0]
  48 + var item = this.data.data[e.currentTarget.dataset.index]
  49 + var disX = this.data.startX - touch.clientX
  50 +
  51 + if (disX >= 20) {
  52 + if (disX > this.data.delBtnWidth) {
  53 + disX = this.data.delBtnWidth
  54 + }
  55 + item.right = disX
  56 + this.setData({
  57 + isScroll: false,
  58 + data: this.data.data
  59 + })
  60 + } else {
  61 + item.right = 0
  62 + this.setData({
  63 + isScroll: true,
  64 + data: this.data.data
  65 + })
  66 + }
  67 + },
  68 + drawEnd: function (e) {
  69 + var item = this.data.data[e.currentTarget.dataset.index]
  70 + if (item.right >= this.data.delBtnWidth / 2) {
  71 + item.right = this.data.delBtnWidth
  72 + this.setData({
  73 + isScroll: true,
  74 + data: this.data.data,
  75 + })
  76 + } else {
  77 + item.right = 0
  78 + this.setData({
  79 + isScroll: true,
  80 + data: this.data.data,
  81 + })
  82 + }
  83 + },
  84 +
  85 + delItem: function (e) {
  86 +
  87 + },
  88 + /**
  89 + * 生命周期函数--监听页面初次渲染完成
  90 + */
  91 + onReady: function() {
  92 +
  93 + },
  94 +
  95 + /**
  96 + * 生命周期函数--监听页面显示
  97 + */
  98 + onShow: function() {
  99 +
  100 + },
  101 +
  102 + /**
  103 + * 生命周期函数--监听页面隐藏
  104 + */
  105 + onHide: function() {
  106 +
  107 + },
  108 +
  109 + /**
  110 + * 生命周期函数--监听页面卸载
  111 + */
  112 + onUnload: function() {
  113 +
  114 + },
  115 +
  116 + /**
  117 + * 页面相关事件处理函数--监听用户下拉动作
  118 + */
  119 + onPullDownRefresh: function() {
  120 +
  121 + },
  122 +
  123 + /**
  124 + * 页面上拉触底事件的处理函数
  125 + */
  126 + onReachBottom: function() {
  127 +
  128 + },
  129 +
  130 + /**
  131 + * 用户点击右上角分享
  132 + */
  133 + onShareAppMessage: function() {
  134 +
  135 + }
  136 +})
  1 +{
  2 + "navigationBarTitleText": "收藏"
  3 +}
  1 +<view class="colecttop flextwo">
  2 + <view class="collectitem {{nav==1?'collectactive':''}}" bindtap="sel" data-id="1">商户</view>
  3 + <view class="collectitem {{nav==2?'collectactive':''}}" bindtap="sel" data-id="2">点评</view>
  4 +</view>
  5 +<view class="collectbox" wx:if="{{nav==1}}">
  6 + <view class="colectbitem flex">
  7 + <view class="collectbitemleft">
  8 + <image src="/img/photo.png"></image>
  9 + </view>
  10 + <view class="collectbtitemr">
  11 + <view class='goodname'>海贼王寿司店</view>
  12 +
  13 + <view class="flexone starbox">
  14 + <view class="star flexone">
  15 + <view class="staritem">
  16 + <image src="/img/pingfenshi.png"></image>
  17 + </view>
  18 + <view class="staritem">
  19 + <image src="/img/pingfenshi.png"></image>
  20 + </view>
  21 + <view class="staritem">
  22 + <image src="/img/pingfenshi.png"></image>
  23 + </view>
  24 + <view class="staritem">
  25 + <image src="/img/pingfenshi.png"></image>
  26 + </view>
  27 + <view class="staritem">
  28 + <image src="/img/pingfenshi.png"></image>
  29 + </view>
  30 + </view>
  31 + <view class="shouprice">¥88</view>
  32 + </view>
  33 + <view class="addressbox flexone">
  34 + <view class='asddressitem'>东京街</view>
  35 + <view class='asddressitem'>东京街</view>
  36 + <view class='asddressitem'>东京街</view>
  37 + </view>
  38 + </view>
  39 +
  40 + </view>
  41 + <view class="colectbitem flex">
  42 + <view class="collectbitemleft">
  43 + <image src="/img/photo.png"></image>
  44 + </view>
  45 + <view class="collectbtitemr">
  46 + <view class='goodname'>海贼王寿司店</view>
  47 +
  48 + <view class="flexone starbox">
  49 + <view class="star flexone">
  50 + <view class="staritem">
  51 + <image src="/img/pingfenshi.png"></image>
  52 + </view>
  53 + <view class="staritem">
  54 + <image src="/img/pingfenshi.png"></image>
  55 + </view>
  56 + <view class="staritem">
  57 + <image src="/img/pingfenshi.png"></image>
  58 + </view>
  59 + <view class="staritem">
  60 + <image src="/img/pingfenshi.png"></image>
  61 + </view>
  62 + <view class="staritem">
  63 + <image src="/img/pingfenshi.png"></image>
  64 + </view>
  65 + </view>
  66 + <view class="shouprice">¥88</view>
  67 + </view>
  68 + <view class="addressbox flexone">
  69 + <view class='asddressitem'>东京街</view>
  70 + <view class='asddressitem'>东京街</view>
  71 + <view class='asddressitem'>东京街</view>
  72 + </view>
  73 + </view>
  74 +
  75 + </view>
  76 +</view>
  77 +
  78 +<scroll-view scroll-y="{{isScroll}}" style='height:{{windowHeight}}px' wx:else>
  79 + <block wx:key="item" wx:for="{{data}}">
  80 + <view data-index='{{index}}' class="order-item" bindtouchstart="drawStart" bindtouchmove="drawMove" bindtouchend="drawEnd" style="right:{{item.right}}rpx">
  81 + <view class="colectbitem flex">
  82 + <view class="collectbitemleft">
  83 + <image src="/img/photo.png"></image>
  84 + </view>
  85 + <view class="collectbtitemr">
  86 +
  87 + <view class="userbox flexone">
  88 + <view class="userimg">
  89 + <image src="/img/kele.png"></image>
  90 + </view>
  91 + <view class="username">用户名称</view>
  92 + <view class="userlevel">Lv 20</view>
  93 + </view>
  94 + <view class='goodname goodtext'>海贼王寿司店海贼王寿司店海贼王寿司店海贼王寿司店海贼王寿司店</view>
  95 + <view class="addressbox flexone">
  96 + <view class='asddressitem'>东京街</view>
  97 + <view class='asddressitem'>东京街</view>
  98 + <view class='asddressitem'>东京街</view>
  99 + </view>
  100 + </view>
  101 +
  102 + </view>
  103 + <view class="remove" bindtap="delItem">
  104 +
  105 + <view class="delimg">
  106 + <image src="/img/delimg.png"></image>
  107 + </view>
  108 + </view>
  109 + </view>
  110 + </block>
  111 +</scroll-view>
  112 +
  113 +<view class="nomoer">没有更多了哦~</view>
  114 +
  1 +.colecttop {
  2 + width: 750rpx;
  3 + height: 100rpx;
  4 + background: #fff;
  5 + padding: 0 162rpx;
  6 + box-sizing: border-box;
  7 +}
  8 +
  9 +.collectitem {
  10 + color: #06121e;
  11 + font-size: 28rpx;
  12 +}
  13 +
  14 +.collectactive {
  15 + color: #fdaa2a;
  16 + font-size: 32rpx;
  17 + position: relative;
  18 +}
  19 +
  20 +.collectactive::after {
  21 + display: block;
  22 + content: '';
  23 + width: 160rpx;
  24 + height: 1rpx;
  25 + background: #fdaa2a;
  26 + position: absolute;
  27 + left: 50%;
  28 + transform: translateX(-50%);
  29 + bottom: -20rpx;
  30 +}
  31 +
  32 +page {
  33 + background: #fbf8fb;
  34 +}
  35 +
  36 +.shouprice {
  37 + color: #06121e;
  38 + font-size: 28rpx;
  39 + font-weight: bold;
  40 + margin-left: 4rpx;
  41 +}
  42 +
  43 +.colectbitem {
  44 + width: 686rpx;
  45 +
  46 + background: rgba(255, 255, 255, 1);
  47 + opacity: 1;
  48 + border-radius: 8rpx;
  49 + padding: 24rpx 28rpx;
  50 + box-sizing: border-box;
  51 + margin: 0 auto 16rpx;
  52 +}
  53 +
  54 +.collectbitemleft {
  55 + width: 122rpx;
  56 + height: 122rpx;
  57 + font-size: 0;
  58 +}
  59 +
  60 +.collectbtitemr {
  61 + width:420rpx;
  62 + margin-left: 28rpx;
  63 +}
  64 +
  65 +.goodname {
  66 + color: #06121e;
  67 + font-size: 28rpx;
  68 + font-weight: bold;
  69 +}
  70 +
  71 +.starbox {
  72 + margin-top: 6rpx;
  73 +}
  74 +
  75 +.addressbox {
  76 + margin-top: 10rpx;
  77 +}
  78 +
  79 +.asddressitem {
  80 + color: #8c9198;
  81 + font-size: 22rpx;
  82 + margin-right: 12rpx;
  83 +}
  84 +
  85 +.userimg {
  86 + width: 48rpx;
  87 + height: 48rpx;
  88 + font-size: 0;
  89 +}
  90 +
  91 +.username {
  92 + color: #06121e;
  93 + font-size: 24rpx;
  94 + margin-left: 10rpx;
  95 +}
  96 +
  97 +.userlevel {
  98 + width: 58rpx;
  99 + height: 30rpx;
  100 + background: rgba(253, 170, 42, 1);
  101 + opacity: 1;
  102 + border-radius: 12rpx;
  103 + color:#fff;
  104 + font-size: 16rpx;
  105 + text-align: center;
  106 + line-height: 30rpx;
  107 + margin-left:22rpx;
  108 +
  109 +}
  110 +.goodtext{
  111 + margin-top:16rpx;
  112 +}
  113 +
  114 +.order-item {
  115 + height: 240rpx;
  116 + width: 100%;
  117 + display: flex;
  118 + position: relative;
  119 +}
  120 +
  121 +.remove{
  122 + width: 160rpx;
  123 + height: 95%;
  124 + background:rgba(189,196,206,1);
  125 + color: white;
  126 + position: absolute;
  127 + top: 0;
  128 + right: -160rpx;
  129 + display: flex;
  130 + justify-content: center;
  131 + align-items: center;
  132 +}
  133 +.delimg{
  134 + width:36rpx;
  135 + height:36rpx;
  136 + font-size: 0
  137 +}
  1 +// pages/comment/comment.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "写点评"
  3 +}
  1 +<view class="infobox">
  2 + <view class="infoTitle">海贼王寿司店</view>
  3 + <view class="evaluateItem">
  4 + <view class="tltle">评价</view>
  5 + <view class="starbox">
  6 + <image class="starItem" src="/img/star.png" />
  7 + <image class="starItem" src="/img/star.png" />
  8 + <image class="starItem" src="/img/star.png" />
  9 + <image class="starItem" src="/img/star.png" />
  10 + <image class="starItem" src="/img/banke.png" />
  11 + </view>
  12 + </view>
  13 + <textarea placeholder="说说此刻的感受吧…" class="wordArea" />
  14 + <view class="labelbox">
  15 + <view class="labelItem">
  16 + <text>+</text>标题
  17 + </view>
  18 + </view>
  19 + <view class="imgarr">
  20 + <image class="imgItem" mode="aspectFill" src="/img/jiang.png" />
  21 + </view>
  22 +</view>
  23 +
  24 +
  25 + <view class="costbox">
  26 + <view class="costTitle">人均</view>
  27 + <view class="fillbox">
  28 + <text>¥</text>
  29 + <input placeholder="请输入消费金额" class="fillCost" type="number"/>
  30 + </view>
  31 + </view>
  32 +
  33 + <view class="submit btnActive">发表</view>
  1 +page {
  2 + background: #F9F9F9;
  3 + padding: 0 32rpx 32rpx;
  4 + box-sizing: border-box;
  5 +}
  6 +
  7 +.infobox {
  8 + width: 686rpx;
  9 + background: rgba(255, 255, 255, 1);
  10 + margin: 16rpx 0;
  11 + padding: 38rpx 32rpx 26rpx;
  12 + box-sizing: border-box;
  13 +}
  14 +
  15 +.imgarr {
  16 + width: 100%;
  17 + margin-top: 36rpx;
  18 +}
  19 +
  20 +.imgItem {
  21 + width: 176rpx;
  22 + height: 176rpx;
  23 + margin-right: 24rpx;
  24 + margin-bottom: 32rpx;
  25 +}
  26 +
  27 +.imgItem:nth-child(3n) {
  28 + margin-right: 0;
  29 +}
  30 +
  31 +.wordArea {
  32 + min-height: 150rpx;
  33 + font-size: 28rpx;
  34 + font-family: PingFang SC;
  35 + font-weight: 400;
  36 + line-height: 40rpx;
  37 + color: rgba(189, 196, 206, 1);
  38 + margin-top: 32rpx;
  39 +}
  40 +
  41 +.labelbox {
  42 + margin-top: 32rpx;
  43 +}
  44 +
  45 +.labelItem {
  46 + display: inline-block;
  47 + padding: 8rpx 22rpx;
  48 + background: rgba(255, 255, 255, 1);
  49 + border: 1px solid rgba(189, 196, 206, 1);
  50 + opacity: 1;
  51 + border-radius: 24rpx;
  52 + font-size: 24rpx;
  53 + font-family: PingFang SC;
  54 + font-weight: 400;
  55 + color: rgba(6, 18, 30, 1);
  56 +}
  57 +
  58 +.infoTitle {
  59 + font-size: 32rpx;
  60 + font-family: PingFang SC;
  61 + font-weight: 400;
  62 + line-height: 44rpx;
  63 + color: rgba(0, 0, 0, 1);
  64 + margin-bottom: 20rpx;
  65 +}
  66 +
  67 +.evaluateItem {
  68 + margin-bottom: 8px;
  69 + display: flex;
  70 + align-items: center;
  71 +}
  72 +
  73 +.tltle {
  74 + font-size: 28rpx;
  75 + font-family: PingFang SC;
  76 + font-weight: 400;
  77 + color: rgba(140, 145, 152, 1);
  78 +}
  79 +
  80 +.evaluateItem .infoboxtltle {
  81 + font-size: 28rpx;
  82 + font-family: PingFang SC;
  83 + font-weight: 400;
  84 + line-height: 40rpx;
  85 + color: rgba(0, 0, 0, 1);
  86 +}
  87 +
  88 +.starbox {
  89 + margin-left: 16rpx;
  90 + display: flex;
  91 + align-items: center;
  92 +}
  93 +
  94 +.starItem {
  95 + width: 24rpx;
  96 + height: 24rpx;
  97 + margin-right: 8rpx;
  98 +}
  99 +
  100 +.costbox {
  101 + width: 686rpx;
  102 + height: 100rpx;
  103 + background: rgba(255, 255, 255, 1);
  104 + padding: 0 32rpx;
  105 + box-sizing: border-box;
  106 + display: flex;
  107 + align-items: center;
  108 +}
  109 +
  110 +.costTitle {
  111 + font-size: 32rpx;
  112 + font-family: PingFang SC;
  113 + font-weight: 400;
  114 + line-height: 44rpx;
  115 + color: rgba(0, 0, 0, 1);
  116 + margin-right: 48rpx;
  117 +}
  118 +
  119 +.fillbox {
  120 + display: flex;
  121 + align-items: center;
  122 +}
  123 +
  124 +.fillbox text {
  125 + font-size: 28rpx;
  126 + font-family: PingFang SC;
  127 + font-weight: 400;
  128 + line-height: 40rpx;
  129 + color: rgba(0, 0, 0, 1);
  130 +}
  131 +
  132 +.fillCost {
  133 + width: 196rpx;
  134 + font-size: 28rpx;
  135 + font-family: PingFang SC;
  136 + font-weight: 400;
  137 + color: rgba(189, 196, 206, 1);
  138 + margin-left: 20rpx;
  139 +}
  140 +
  141 +.submit {
  142 + width: 686rpx;
  143 + height: 88rpx;
  144 + background: rgba(189, 196, 206, 1);
  145 + opacity: 1;
  146 + border-radius: 8rpx;
  147 + font-size: 28rpx;
  148 + font-family: PingFang SC;
  149 + font-weight: 500;
  150 + color: rgba(249, 249, 249, 1);
  151 + display: flex;
  152 + justify-content: center;
  153 + align-items: center;
  154 + margin-top: 56rpx;
  155 +}
  156 +
  157 +.btnActive {
  158 + background: #FDAA2A;
  159 +}
  1 +// pages/commentdetail/commentdetail.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "点评详情"
  3 +}
  1 +<view class="photo">
  2 + <view class="photobox">
  3 + <view class="comtop flextwo">
  4 + <view class="comleft">
  5 + <image src="/img/kele.png"></image>
  6 + </view>
  7 + <view class="comright">
  8 +
  9 + <view class="comrtop flexone">
  10 + <view class="comrname">一心只想撤撤撤</view>
  11 + <view class="star starone flexone">
  12 + <view class="staritem">
  13 + <image src="/img/fenxing.png"></image>
  14 + </view>
  15 + <view class="staritem">
  16 + <image src="/img/fenxing.png"></image>
  17 + </view>
  18 + <view class="staritem">
  19 + <image src="/img/fenxing.png"></image>
  20 + </view>
  21 + <view class="staritem">
  22 + <image src="/img/fenxing.png"></image>
  23 + </view>
  24 + <view class="staritem">
  25 + <image src="/img/stfenxingr.png"></image>
  26 + </view>
  27 + </view>
  28 + </view>
  29 + <view class="comdate">2019年10月12日</view>
  30 +
  31 + </view>
  32 + </view>
  33 + <view class="comtext flexone">
  34 + <view class="comleft"></view>
  35 +
  36 + <view class="comright">
  37 + <view class="flexone fenxia">
  38 + <view class="star starone flexone">
  39 + <view class="staritem">
  40 + <image src="/img/pingfenshi.png"></image>
  41 + </view>
  42 + <view class="staritem">
  43 + <image src="/img/pingfenshi.png"></image>
  44 + </view>
  45 + <view class="staritem">
  46 + <image src="/img/pingfenshi.png"></image>
  47 + </view>
  48 + <view class="staritem">
  49 + <image src="/img/pingfenshi.png"></image>
  50 + </view>
  51 + <view class="staritem">
  52 + <image src="/img/banke.png"></image>
  53 + </view>
  54 +
  55 + </view>
  56 + <view class="fen">8.5分</view>
  57 + </view>
  58 + <view class="text">
  59 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  60 + </view>
  61 + <view class="textboximg flexone">
  62 + <view class="boxitem">
  63 + <image src="/img/photo.png"></image>
  64 + </view>
  65 + <view class="boxitem">
  66 + <image src="/img/photo.png"></image>
  67 + </view>
  68 + <view class="boxitem">
  69 + <image src="/img/photo.png"></image>
  70 + </view>
  71 + </view>
  72 + </view>
  73 + </view>
  74 + </view>
  75 +</view>
  76 +
  77 +<view class="detailcommentbox">
  78 + <view class="phototopleft flexone">
  79 + <view class="xiang">点评 </view>
  80 + <view class="tiao">(800条)</view>
  81 + </view>
  82 + <view class="commentlist">
  83 +
  84 + <view class="commentitem">
  85 + <view class="comtop flextwo">
  86 + <view class="comleft">
  87 + <image src="/img/kele.png"></image>
  88 + </view>
  89 + <view class="comright">
  90 + <view class="listtop flextwo">
  91 + <view class="comrtop">
  92 + <view class="comrname">一心只想撤撤撤</view>
  93 + <view class="comdate">2019年10月12日</view>
  94 + </view>
  95 + <view class="listzan flexone">
  96 + <view class="lsitzanleft">
  97 + <image src="/img/xiaozan.png"></image>
  98 + </view>
  99 + <view class="zannumber">35</view>
  100 + </view>
  101 + </view>
  102 +
  103 +
  104 + </view>
  105 + </view>
  106 +
  107 + <view class="comtext flexone">
  108 + <view class="comleft"></view>
  109 + <view class="comright">
  110 + <view class="text">
  111 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  112 + </view>
  113 + </view>
  114 + </view>
  115 + </view>
  116 + <view class="commentitem">
  117 + <view class="comtop flextwo">
  118 + <view class="comleft">
  119 + <image src="/img/kele.png"></image>
  120 + </view>
  121 + <view class="comright">
  122 + <view class="listtop flextwo">
  123 + <view class="comrtop">
  124 + <view class="comrname">一心只想撤撤撤</view>
  125 + <view class="comdate">2019年10月12日</view>
  126 + </view>
  127 + <view class="listzan flexone">
  128 + <view class="lsitzanleft">
  129 + <image src="/img/xiaozan.png"></image>
  130 + </view>
  131 + <view class="zannumber">35</view>
  132 + </view>
  133 + </view>
  134 +
  135 +
  136 + </view>
  137 + </view>
  138 +
  139 + <view class="comtext flexone">
  140 + <view class="comleft"></view>
  141 + <view class="comright">
  142 + <view class="text">
  143 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  144 + </view>
  145 + </view>
  146 + </view>
  147 + </view>
  148 + </view>
  149 +
  150 +
  151 +</view>
  152 +
  153 +<!-- 底部评论 -->
  154 +<view class="commentbototm flextwo">
  155 + <view class="commbotleft">
  156 + <input placeholder="写点什么..." placeholder-class="enter"/>
  157 + </view>
  158 + <view class="combotright flexone">
  159 + <view class="combotitem flexone itemleft">
  160 + <view class="combotitemleft ">
  161 + <image src="/img/dazan.png"></image>
  162 + </view>
  163 + <view class="combotzannumber">23</view>
  164 + </view>
  165 + <view class="combotitem flexone">
  166 + <view class="combotitemleft">
  167 + <image src="/img/collect.png"></image>
  168 + </view>
  169 + <view class="combotzannumber">23</view>
  170 + </view>
  171 + </view>
  172 +</view>
  1 +@import '../morecomment/morecomment.wxss';
  2 +
  3 +.photo {
  4 + margin-top: 0;
  5 + background: #fff;
  6 +}
  7 +
  8 +.comright {
  9 + width: 575rpx;
  10 +}
  11 +
  12 +.boxitem {
  13 + width: 186rpx;
  14 + height: 186rpx;
  15 +}
  16 +
  17 +.star {
  18 + margin-left: 12rpx;
  19 +}
  20 +
  21 +.detailcommentbox {
  22 + padding: 0 32rpx 150rpx;
  23 + box-sizing: border-box;
  24 +}
  25 +
  26 +.phototopleft {
  27 + margin-top: 36rpx;
  28 +}
  29 +
  30 +.commentitem {
  31 + width: 686rpx;
  32 + background: rgba(255, 255, 255, 1);
  33 + opacity: 1;
  34 + border-radius: 8rpx;
  35 + padding: 36rpx 32rpx;
  36 + box-sizing: border-box;
  37 + margin-top: 20rpx;
  38 +}
  39 +
  40 +.lsitzanleft {
  41 + width: 24rpx;
  42 + height: 24rpx;
  43 + font-size: 0;
  44 +}
  45 +
  46 +.zannumber {
  47 + color: #8c9198;
  48 + font-size: 22rpx;
  49 + margin-left: 12rpx;
  50 +}
  51 +
  52 +/* 底部评论 */
  53 +
  54 +.commentbototm {
  55 + width: 750rpx;
  56 + padding: 24rpx 32rpx;
  57 + box-sizing: border-box;
  58 + background: #fff;
  59 + position: fixed;
  60 + bottom: 0;
  61 + left: 0;
  62 +}
  63 +
  64 +.commbotleft {
  65 + width: 382rpx;
  66 + height: 56rpx;
  67 + background: rgba(238, 238, 238, 1);
  68 + opacity: 1;
  69 + border-radius: 8rpx;
  70 + color: #bdc4ce;
  71 + font-size: 24rpx;
  72 +}
  73 +.commbotleft input{
  74 +
  75 + width:100%;
  76 + height:100%;
  77 + padding: 12rpx 38rpx;
  78 + box-sizing: border-box;
  79 +}
  80 +
  81 +
  82 +.enter {
  83 + color: #bdc4ce;
  84 + font-size: 24rpx;
  85 +}
  86 +.combotitemleft{
  87 + width:44rpx;
  88 + height:44rpx;
  89 + font-size: 0
  90 +}
  91 +.combotzannumber{
  92 + color:#06121E;
  93 + font-size: 24rpx;
  94 + margin-left:6rpx;
  95 +}
  96 +.itemleft{
  97 + margin-right:40rpx;
  98 +}
  1 +// pages/examine/examine.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 + // 查看详情
  18 + detail(){
  19 + wx.navigateTo({
  20 + url: '/pages/commentdetail/commentdetail',
  21 + })
  22 + },
  23 +// 我的点评
  24 + mycomment(){
  25 + wx.navigateTo({
  26 + url: '/pages/morecomment/morecomment',
  27 + })
  28 + },
  29 + /**
  30 + * 生命周期函数--监听页面初次渲染完成
  31 + */
  32 + onReady: function () {
  33 +
  34 + },
  35 +
  36 + /**
  37 + * 生命周期函数--监听页面显示
  38 + */
  39 + onShow: function () {
  40 +
  41 + },
  42 +
  43 + /**
  44 + * 生命周期函数--监听页面隐藏
  45 + */
  46 + onHide: function () {
  47 +
  48 + },
  49 +
  50 + /**
  51 + * 生命周期函数--监听页面卸载
  52 + */
  53 + onUnload: function () {
  54 +
  55 + },
  56 +
  57 + /**
  58 + * 页面相关事件处理函数--监听用户下拉动作
  59 + */
  60 + onPullDownRefresh: function () {
  61 +
  62 + },
  63 +
  64 + /**
  65 + * 页面上拉触底事件的处理函数
  66 + */
  67 + onReachBottom: function () {
  68 +
  69 + },
  70 +
  71 + /**
  72 + * 用户点击右上角分享
  73 + */
  74 + onShareAppMessage: function () {
  75 +
  76 + }
  77 +})
  1 +{
  2 + "navigationBarTitleText": "审核"
  3 +}
  1 +
  2 +<view class="box">
  3 + <view class="iconbox">
  4 + <image src="/img/chenggong_img.png" class="icon" mode="widthFix"/>
  5 + </view>
  6 + <view class="tipsword">
  7 + <view>点评正在审核中</view>
  8 + <view>可在我的评论中查看审核状态</view>
  9 + </view>
  10 + <view class="btnbox">
  11 + <view class="btnItem" bindtap="detail">查看点评详情</view>
  12 + <view class="btnItem" bindtap="mycomment">我的评论</view>
  13 + </view>
  14 +</view>
  1 +page {
  2 + background: #F9F9F9;
  3 +}
  4 +
  5 +.box {
  6 + width: 454rpx;
  7 + display: flex;
  8 + flex-wrap: wrap;
  9 + justify-content: center;
  10 + margin: 0 auto;
  11 + padding: 200rpx 0;
  12 +}
  13 +
  14 +.iconbox {
  15 + width: 100%;
  16 +}
  17 +
  18 +.icon {
  19 + width: 100%;
  20 +}
  21 +
  22 +.tipsword {
  23 + width: 364rpx;
  24 + margin-top: 60rpx;
  25 +}
  26 +
  27 +.tipsword view {
  28 + font-size: 28rpx;
  29 + font-family: PingFang SC;
  30 + font-weight: 400;
  31 + line-height: 44rpx;
  32 + color: rgba(6, 18, 30, 1);
  33 + text-align: center;
  34 +}
  35 +.btnbox{
  36 + margin-top: 86rpx;
  37 +}
  38 +.btnItem {
  39 + width: 232rpx;
  40 + height: 72rpx;
  41 + background: rgba(253, 170, 42, 1);
  42 + border-radius: 8rpx;
  43 + font-size: 28rpx;
  44 + font-family: PingFang SC;
  45 + font-weight: 400;
  46 + line-height: 72rpx;
  47 + text-align: center;
  48 + color: rgba(255, 255, 255, 1);
  49 + margin-bottom: 40rpx;
  50 +}
  51 +.btnItem:last-child{
  52 + color: #8C9198;
  53 + background: #F9F9F9;
  54 + border:2rpx solid rgba(140,145,152,1);
  55 +}
  1 +// pages/homepage/homepage.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + imgUrls: [
  9 + '../../img/bannerimg.png',
  10 + '../../img/bannerimg.png',
  11 + '../../img/bannerimg.png'
  12 + ],
  13 + indicatorDots: false,
  14 + autoplay: false,
  15 + interval: 2000,
  16 + duration: 1000,
  17 + currentSwiper: 0,
  18 + // 主页导航头部
  19 + navarr: ['商圈', '菜系', '评级', '综合'],
  20 + sel: 0,
  21 +
  22 + selk: 0,
  23 + index: 0,
  24 +
  25 + selarray: ['全部', '银座', '金座'],
  26 + toparr: ['商圈', '菜系', '评级', '综合'],
  27 + topindex: 0,
  28 + wrap:false,
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面加载
  34 + */
  35 + onLoad: function(options) {
  36 + console.log(this.data.navindex)
  37 + },
  38 + goodtail(){
  39 + wx.navigateTo({
  40 + url: '/pages/shopdetail/shopdetail',
  41 + })
  42 + },
  43 + // 页面头部切换
  44 + selnav(e){
  45 + this.setData({
  46 + sel:e.currentTarget.dataset.index,
  47 + wrap:true
  48 + })
  49 + if(this.data.sel==0){
  50 + this.setData({
  51 + selarray: ['全部', '银座', '金座'],
  52 + selt:0,
  53 + selk: ''
  54 + })
  55 + }else if(this.data.sel==1){
  56 + this.setData({
  57 + selarray: ['东京菜(234)', '神户菜(23)', '大阪菜(45)'],
  58 + selt: 1,
  59 + selk: ''
  60 + })
  61 + }else if(this.data.sel==2){
  62 + this.setData({
  63 + selarray: ['米其林三星级(123)', '米其林二星级(123)', '米其林一星级(123)'],
  64 + selt: 2,
  65 + selk: ''
  66 + })
  67 + } else if (this.data.sel == 3) {
  68 + this.setData({
  69 + selarray: ['好评优先', '距离优先', '高价优先','低价优先'],
  70 + selt: 3,
  71 + selk: ''
  72 + })
  73 + }
  74 +
  75 + },
  76 + // 遮罩层头部切换
  77 + selnavk(e) {
  78 + this.setData({
  79 + selt: e.currentTarget.dataset.index
  80 + })
  81 + if (this.data.selt == 0) {
  82 + this.setData({
  83 + selarray: ['全部', '银座', '金座'],
  84 +
  85 + })
  86 + } else if (this.data.selt == 1) {
  87 + this.setData({
  88 + selarray: ['东京菜(234)', '神户菜(23)', '大阪菜(45)'],
  89 +
  90 + })
  91 + } else if (this.data.selt == 2) {
  92 + this.setData({
  93 + selarray: ['米其林三星级(123)', '米其林二星级(123)', '米其林一星级(123)'],
  94 +
  95 + })
  96 + } else if (this.data.selt == 3) {
  97 + this.setData({
  98 + selarray: ['好评优先', '距离优先', '高价优先', '低价优先'],
  99 +
  100 + })
  101 + }
  102 +
  103 + },
  104 + go(){
  105 +
  106 + },
  107 + selwrap(e) {
  108 + this.setData({
  109 + selk: e.currentTarget.dataset.index
  110 + })
  111 + console.log(this.data.selk)
  112 + },
  113 + selctcity() {
  114 + wx.navigateTo({
  115 + url: '/pages/searchcity/searchcity',
  116 + })
  117 + },
  118 +
  119 + swiperChange: function(e) {
  120 + this.setData({
  121 + currentSwiper: e.detail.current
  122 + })
  123 + },
  124 + // 搜索框
  125 + search() {
  126 + wx.navigateTo({
  127 + url: '/pages/searchresult/searchresult',
  128 + })
  129 + },
  130 +// 隐藏遮罩层
  131 + hidewrap(){
  132 + this.setData({
  133 + wrap:false
  134 + })
  135 + },
  136 + /**
  137 + * 生命周期函数--监听页面初次渲染完成
  138 + */
  139 + onReady: function() {
  140 +
  141 + },
  142 +
  143 + /**
  144 + * 生命周期函数--监听页面显示
  145 + */
  146 + onShow: function() {
  147 +
  148 + },
  149 +
  150 + /**
  151 + * 生命周期函数--监听页面隐藏
  152 + */
  153 + onHide: function() {
  154 +
  155 + },
  156 +
  157 + /**
  158 + * 生命周期函数--监听页面卸载
  159 + */
  160 + onUnload: function() {
  161 +
  162 + },
  163 +
  164 + /**
  165 + * 页面相关事件处理函数--监听用户下拉动作
  166 + */
  167 + onPullDownRefresh: function() {
  168 +
  169 + },
  170 +
  171 + /**
  172 + * 页面上拉触底事件的处理函数
  173 + */
  174 + onReachBottom: function() {
  175 +
  176 + },
  177 +
  178 + /**
  179 + * 用户点击右上角分享
  180 + */
  181 + onShareAppMessage: function() {
  182 +
  183 + }
  184 +})
  1 +{
  2 + "navigationBarTitleText": "美味日本"
  3 +}
  1 +<view class="tou">
  2 + <view class="head">
  3 + <view class="headleft flexone" bindtap="selctcity">
  4 + <view class="headleftimg">
  5 + <image src="/img/address.png" mode=""></image>
  6 + </view>
  7 + <view class="cityname commonname">日本</view>
  8 + </view>
  9 + <view class="headmiddle" bindtap="search">
  10 + <view class="headmiddleleft">
  11 + <image src="/img/search.png" mode=""></image>
  12 + </view>
  13 + <view class="headmiddleright">
  14 + <input type="text" placeholder="请输入搜索内容" placeholder-class="shuru" />
  15 + </view>
  16 + </view>
  17 +
  18 +
  19 + </view>
  20 +
  21 + <view class="swiper_image">
  22 + <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
  23 + <block wx:for="{{imgUrls}}" wx:key="doct">
  24 + <swiper-item>
  25 + <image src="{{item}}" class="slide-image" />
  26 + <view class="picimg">
  27 + <image src="/img/meitu.png"></image>
  28 + </view>
  29 + </swiper-item>
  30 + </block>
  31 + </swiper>
  32 +
  33 + <view class="dots">
  34 + <block wx:for="{{imgUrls}}" wx:key="d">
  35 + <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
  36 + </block>
  37 + </view>
  38 +
  39 + </view>
  40 +
  41 + <view class="navhead flextwo">
  42 + <view class="navitem commontwo flexone" data-id="1" bindtap="selnav" data-index="{{index}}" wx:for="{{navarr}}" wx:key="">
  43 + <view class="itemname {{sel==index?'navactive':''}}">{{item}}</view>
  44 + <view class="itemimg">
  45 + <image src="/img/heixiala.png" wx:if="{{sel==index}}"></image>
  46 + <image src="/img/xiala.png" wx:else></image>
  47 + </view>
  48 + </view>
  49 + </view>
  50 +</view>
  51 +
  52 +<view class='case-page'>
  53 + <view class='list-masonry'>
  54 + <view class='item-masonry' bindtap="goodtail">
  55 + <image src='/img/deng.png' mode='widthFix'></image>
  56 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  57 + <view class="intro flexone">
  58 + <view class="introleft">
  59 + 魚介?海鮮料理
  60 + </view>
  61 + <view class="introright">
  62 + <view class="ping flexone">
  63 + <view class="pingleft">
  64 + <image src='/img/kuaizi.png'></image>
  65 + </view>
  66 + <view class="pingfen">4.7</view>
  67 + </view>
  68 + <view class="hualist flexone">
  69 + <view class="huaitem">
  70 + <image src="/img/flower.png"></image>
  71 + </view>
  72 + <view class="huaitem">
  73 + <image src="/img/flower.png"></image>
  74 + </view>
  75 + <view class="huaitem">
  76 + <image src="/img/flower.png"></image>
  77 + </view>
  78 + </view>
  79 + </view>
  80 + </view>
  81 + <view class="shou">
  82 + <text class="shoumoney">¥50</text>
  83 + <text class="shouren">/人</text>
  84 + </view>
  85 + <view class="addname flexone">
  86 + <view class="addimg">
  87 + <image src="/img/huangweizhi.png"></image>
  88 + </view>
  89 + <view class="dizhi commnameone">银厦</view>
  90 + </view>
  91 + </view>
  92 + <view class='item-masonry'>
  93 + <image src='/img/deng.png' mode='widthFix'></image>
  94 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  95 + <view class="intro flexone">
  96 + <view class="introleft">
  97 + 魚介?海鮮料理
  98 + </view>
  99 + <view class="introright">
  100 + <view class="ping flexone">
  101 + <view class="pingleft">
  102 + <image src='/img/kuaizi.png'></image>
  103 + </view>
  104 + <view class="pingfen">4.7</view>
  105 + </view>
  106 + <view class="hualist flexone">
  107 + <view class="huaitem">
  108 + <image src="/img/flower.png"></image>
  109 + </view>
  110 + <view class="huaitem">
  111 + <image src="/img/flower.png"></image>
  112 + </view>
  113 + <view class="huaitem">
  114 + <image src="/img/flower.png"></image>
  115 + </view>
  116 + </view>
  117 + </view>
  118 + </view>
  119 + <view class="shou">
  120 + <text class="shoumoney">¥50</text>
  121 + <text class="shouren">/人</text>
  122 + </view>
  123 + <view class="addname flexone">
  124 + <view class="addimg">
  125 + <image src="/img/huangweizhi.png"></image>
  126 + </view>
  127 + <view class="dizhi commnameone">银厦</view>
  128 + </view>
  129 + </view>
  130 + <view class='item-masonry'>
  131 + <image src='/img/juxia.png' mode='widthFix'></image>
  132 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  133 + <view class="intro flexone">
  134 + <view class="introleft">
  135 + 魚介?海鮮料理
  136 + </view>
  137 + <view class="introright">
  138 + <view class="ping flexone">
  139 + <view class="pingleft">
  140 + <image src='/img/kuaizi.png'></image>
  141 + </view>
  142 + <view class="pingfen">4.7</view>
  143 + </view>
  144 + <view class="hualist flexone">
  145 + <view class="huaitem">
  146 + <image src="/img/flower.png"></image>
  147 + </view>
  148 + <view class="huaitem">
  149 + <image src="/img/flower.png"></image>
  150 + </view>
  151 + <view class="huaitem">
  152 + <image src="/img/flower.png"></image>
  153 + </view>
  154 + </view>
  155 + </view>
  156 + </view>
  157 + <view class="shou">
  158 + <text class="shoumoney">¥50</text>
  159 + <text class="shouren">/人</text>
  160 + </view>
  161 + <view class="addname flexone">
  162 + <view class="addimg">
  163 + <image src="/img/huangweizhi.png"></image>
  164 + </view>
  165 + <view class="dizhi commnameone">银厦</view>
  166 + </view>
  167 + </view>
  168 + <view class='item-masonry'>
  169 + <image src='/img/fenxia.png' mode='widthFix'></image>
  170 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  171 + <view class="intro flexone">
  172 + <view class="introleft">
  173 + 魚介?海鮮料理
  174 + </view>
  175 + <view class="introright">
  176 + <view class="ping flexone">
  177 + <view class="pingleft">
  178 + <image src='/img/kuaizi.png'></image>
  179 + </view>
  180 + <view class="pingfen">4.7</view>
  181 + </view>
  182 + <view class="hualist flexone">
  183 + <view class="huaitem">
  184 + <image src="/img/flower.png"></image>
  185 + </view>
  186 + <view class="huaitem">
  187 + <image src="/img/flower.png"></image>
  188 + </view>
  189 + <view class="huaitem">
  190 + <image src="/img/flower.png"></image>
  191 + </view>
  192 + </view>
  193 + </view>
  194 + </view>
  195 + <view class="shou">
  196 + <text class="shoumoney">¥50</text>
  197 + <text class="shouren">/人</text>
  198 + </view>
  199 + <view class="addname flexone">
  200 + <view class="addimg">
  201 + <image src="/img/huangweizhi.png"></image>
  202 + </view>
  203 + <view class="dizhi commnameone">银厦</view>
  204 + </view>
  205 + </view>
  206 + <view class='item-masonry'>
  207 + <image src='/img/juxia.png' mode='widthFix'></image>
  208 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  209 + <view class="intro flexone">
  210 + <view class="introleft">
  211 + 魚介?海鮮料理
  212 + </view>
  213 + <view class="introright">
  214 + <view class="ping flexone">
  215 + <view class="pingleft">
  216 + <image src='/img/kuaizi.png'></image>
  217 + </view>
  218 + <view class="pingfen">4.7</view>
  219 + </view>
  220 + <view class="hualist flexone">
  221 + <view class="huaitem">
  222 + <image src="/img/flower.png"></image>
  223 + </view>
  224 + <view class="huaitem">
  225 + <image src="/img/flower.png"></image>
  226 + </view>
  227 + <view class="huaitem">
  228 + <image src="/img/flower.png"></image>
  229 + </view>
  230 + </view>
  231 + </view>
  232 + </view>
  233 + <view class="shou">
  234 + <text class="shoumoney">¥50</text>
  235 + <text class="shouren">/人</text>
  236 + </view>
  237 + <view class="addname flexone">
  238 + <view class="addimg">
  239 + <image src="/img/huangweizhi.png"></image>
  240 + </view>
  241 + <view class="dizhi commnameone">银厦</view>
  242 + </view>
  243 + </view>
  244 + <view class='item-masonry'>
  245 + <image src='/img/deng.png' mode='widthFix'></image>
  246 + <view class="goodname">基值支义们京候么眼革下使叫南石很少去构。</view>
  247 + <view class="intro flexone">
  248 + <view class="introleft">
  249 + 魚介?海鮮料理
  250 + </view>
  251 + <view class="introright">
  252 + <view class="ping flexone">
  253 + <view class="pingleft">
  254 + <image src='/img/kuaizi.png'></image>
  255 + </view>
  256 + <view class="pingfen">4.7</view>
  257 + </view>
  258 + <view class="hualist flexone">
  259 + <view class="huaitem">
  260 + <image src="/img/flower.png"></image>
  261 + </view>
  262 + <view class="huaitem">
  263 + <image src="/img/flower.png"></image>
  264 + </view>
  265 + <view class="huaitem">
  266 + <image src="/img/flower.png"></image>
  267 + </view>
  268 + </view>
  269 + </view>
  270 + </view>
  271 + <view class="shou">
  272 + <text class="shoumoney">¥50</text>
  273 + <text class="shouren">/人</text>
  274 + </view>
  275 + <view class="addname flexone">
  276 + <view class="addimg">
  277 + <image src="/img/huangweizhi.png"></image>
  278 + </view>
  279 + <view class="dizhi commnameone">银厦</view>
  280 + </view>
  281 + </view>
  282 +
  283 + </view>
  284 +</view>
  285 +
  286 +<view class="register" wx:if="{{wrap}}" bindtap="hidewrap">
  287 + <view class="topwrap" catchtap="go">
  288 + <view class="flextwo">
  289 + <view class="navitem commontwo flexone" catchtap="selnavk" wx:for="{{toparr}}" wx:key='' data-index="{{index}}">
  290 + <view class="itemname {{selt==index?'navactivek':''}}">{{item}}</view>
  291 + <view class="itemimg">
  292 + <image src="/img/heixiala.png" wx:if="{{sel==1}}"></image>
  293 + <image src="/img/xiala.png" wx:else></image>
  294 + </view>
  295 + </view>
  296 + </view>
  297 + <view class="wrappage">
  298 + <view class="wrapitem {{selk==index?'wrapactive':''}}" wx:for="{{selarray}}" wx:key="" catchtap="selwrap" data-index="{{index}}">
  299 + {{item}}
  300 + </view>
  301 +
  302 +
  303 + </view>
  304 + </view>
  305 +
  306 +
  307 +
  308 + </view>
  1 +image {
  2 + width: 100%;
  3 + height: 100%;
  4 +}
  5 +
  6 +.cityname {
  7 + font-weight: bold;
  8 + margin-left: 16rpx;
  9 +}
  10 +
  11 +/* 轮播图 */
  12 +
  13 +.swiper_image {
  14 + width: 686rpx;
  15 + height: 308rpx;
  16 + font-size: 0;
  17 + margin: 32rpx auto 0;
  18 + position: relative;
  19 +}
  20 +
  21 +swiper {
  22 + width: 686rpx;
  23 + height: 308rpx;
  24 +}
  25 +
  26 +.swiper_image image {
  27 + width: 100%;
  28 + height: 100%;
  29 +}
  30 +
  31 +.swiper_item_img swiper-item {
  32 + width: 686rpx;
  33 + height: 308rpx;
  34 +}
  35 +
  36 +.swiper_item_img swiper-item image {
  37 + width: 100%;
  38 + height: 100%;
  39 +}
  40 +
  41 +swiper-item {
  42 + position: relative;
  43 +}
  44 +
  45 +.picimg {
  46 + width: 156rpx;
  47 + height: 76rpx;
  48 + position: absolute;
  49 + right: 36rpx;
  50 + bottom: 30rpx;
  51 +}
  52 +
  53 +.dots {
  54 + height: 36rpx;
  55 + display: flex;
  56 + flex-direction: row;
  57 + position: absolute;
  58 + left: 50%;
  59 + transform: translateX(-50%);
  60 + bottom: 10rpx;
  61 +}
  62 +
  63 +/*未选中时的小圆点样式 */
  64 +
  65 +.dot {
  66 + width: 12rpx;
  67 + height: 12rpx;
  68 + border-radius: 50%;
  69 + margin-right: 16rpx;
  70 + background-color: #b9c0f7;
  71 +}
  72 +
  73 +/*选中以后的小圆点样式 */
  74 +
  75 +.active {
  76 + width: 16rpx;
  77 + height: 16rpx;
  78 + border-radius: 50%;
  79 + background-color: #fff;
  80 +}
  81 +
  82 +.navhead {
  83 + padding: 24rpx 32rpx;
  84 + box-sizing: border-box;
  85 +}
  86 +
  87 +.navitem {
  88 + width: 170rpx;
  89 + display: flex;
  90 + justify-content: center;
  91 + align-items: center;
  92 +}
  93 +
  94 +.itemname {
  95 + color: #8c9198;
  96 + font-size: 28rpx;
  97 +}
  98 +
  99 +.itemimg {
  100 + width: 10rpx;
  101 + height: 8rpx;
  102 + font-size: 0;
  103 + margin-left: 10rpx;
  104 +}
  105 +
  106 +.navactive {
  107 + color: #06121e;
  108 + position: relative;
  109 + font-weight: bold;
  110 +}
  111 +
  112 +.navactive:after {
  113 + display: block;
  114 + content: '';
  115 + width: 170rpx;
  116 + height: 4rpx;
  117 + background: #fcb952;
  118 + position: absolute;
  119 + bottom: -20rpx;
  120 + left: 50%;
  121 + transform: translateX(-50%);
  122 +}
  123 +
  124 +.case-page {
  125 + padding: 20rpx;
  126 +}
  127 +
  128 +.list-masonry {
  129 + column-count: 2;
  130 + column-gap: 20rpx;
  131 +}
  132 +
  133 +.tou {
  134 + background: #fff;
  135 +}
  136 +
  137 +.item-masonry {
  138 + background-color: #fff;
  139 + break-inside: avoid;
  140 + box-sizing: border-box;
  141 + padding: 20rpx;
  142 + margin-bottom: 28rpx;
  143 + box-shadow: 0rpx 8rpx 16rpx rgba(0, 0, 0, 0.08);
  144 + border-radius: 8rpx;
  145 +}
  146 +
  147 +.item-masonry image {
  148 + width: 100%;
  149 +}
  150 +
  151 +.goodname {
  152 + color: #3d444d;
  153 + font-size: 24rpx;
  154 + font-weight: bold;
  155 + margin-top: 20rpx;
  156 + width: 296rpx;
  157 +}
  158 +
  159 +.hualist {
  160 + margin-top: 4rpx;
  161 +}
  162 +
  163 +.huaitem {
  164 + width: 20rpx;
  165 + height: 20rpx;
  166 + font-size: 0;
  167 + margin-right: 6rpx;
  168 +}
  169 +
  170 +.pingleft {
  171 + width: 28rpx;
  172 + height: 28rpx;
  173 + font-size: 0;
  174 +}
  175 +
  176 +.pingfen {
  177 + color: #fca052;
  178 + font-size: 22rpx;
  179 + margin-left: 6rpx;
  180 +}
  181 +
  182 +.introleft {
  183 + width: 188rpx;
  184 + height: 42rpx;
  185 + background: rgba(255, 255, 255, 1);
  186 + border: 1rpx solid rgba(112, 112, 112, 1);
  187 + opacity: 1;
  188 + border-radius: 180rpx;
  189 + color: #3d444d;
  190 + font-size: 22rpx;
  191 + text-align: center;
  192 + line-height: 42rpx;
  193 +}
  194 +
  195 +.introright {
  196 + margin-left: 40rpx;
  197 +}
  198 +
  199 +.shou {
  200 + margin-top: 16rpx;
  201 +}
  202 +
  203 +.shoumoney {
  204 + color: #fe484c;
  205 + font-size: 28rpx;
  206 +}
  207 +
  208 +.shouren {
  209 + color: #3d444d;
  210 + font-size: 22rpx;
  211 +}
  212 +
  213 +.addimg {
  214 + width: 28rpx;
  215 + height: 28rpx;
  216 + font-size: 0;
  217 +}
  218 +
  219 +.dizhi {
  220 + margin-left: 2rpx;
  221 +}
  222 +
  223 +.addname {
  224 + margin-top: 5rpx;
  225 +}
  226 +
  227 +page {
  228 + background: #f9f9f9;
  229 +}
  230 +
  231 +
  232 +
  233 +.topwrap{
  234 + width: 750rpx;
  235 +
  236 + background: rgba(255, 255, 255, 1);
  237 + opacity: 1;
  238 + border-radius: 0rpx 0rpx 20rpx 20rpx;
  239 + background: #fff;
  240 + position: fixed;
  241 +
  242 +}
  243 +.navactivek{
  244 + color: #06121e;
  245 + position: relative;
  246 + font-weight: bold;
  247 +}
  248 +.wrapitem{
  249 + color:#06121E;
  250 + font-size: 24rpx;
  251 + font-weight: bold;
  252 + padding: 16rpx 52rpx;
  253 + box-sizing: border-box;
  254 + border-bottom:1rpx solid #f5f5f5;
  255 +}
  256 +.wrappage{
  257 + margin-top:26rpx;
  258 +}
  259 +.wrapactive{
  260 + color:#FDAA2A;
  261 +
  262 +}
  1 +//index.js
  2 +//获取应用实例
  3 +const app = getApp()
  4 +
  5 +Page({
  6 + data: {
  7 + motto: 'Hello World',
  8 + userInfo: {},
  9 + hasUserInfo: false,
  10 + canIUse: wx.canIUse('button.open-type.getUserInfo')
  11 + },
  12 + //事件处理函数
  13 + bindViewTap: function() {
  14 + wx.navigateTo({
  15 + url: '../logs/logs'
  16 + })
  17 + },
  18 + onLoad: function () {
  19 + if (app.globalData.userInfo) {
  20 + this.setData({
  21 + userInfo: app.globalData.userInfo,
  22 + hasUserInfo: true
  23 + })
  24 + } else if (this.data.canIUse){
  25 + // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
  26 + // 所以此处加入 callback 以防止这种情况
  27 + app.userInfoReadyCallback = res => {
  28 + this.setData({
  29 + userInfo: res.userInfo,
  30 + hasUserInfo: true
  31 + })
  32 + }
  33 + } else {
  34 + // 在没有 open-type=getUserInfo 版本的兼容处理
  35 + wx.getUserInfo({
  36 + success: res => {
  37 + app.globalData.userInfo = res.userInfo
  38 + this.setData({
  39 + userInfo: res.userInfo,
  40 + hasUserInfo: true
  41 + })
  42 + }
  43 + })
  44 + }
  45 + },
  46 + getUserInfo: function(e) {
  47 + console.log(e)
  48 + app.globalData.userInfo = e.detail.userInfo
  49 + this.setData({
  50 + userInfo: e.detail.userInfo,
  51 + hasUserInfo: true
  52 + })
  53 + }
  54 +})
  1 +{
  2 + "usingComponents": {}
  3 +}
  1 +<!--index.wxml-->
  2 +<view class="container">
  3 + <view class="userinfo">
  4 + <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
  5 + <block wx:else>
  6 + <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  7 + <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  8 + </block>
  9 + </view>
  10 + <view class="usermotto">
  11 + <text class="user-motto">{{motto}}</text>
  12 + </view>
  13 +</view>
  1 +/**index.wxss**/
  2 +.userinfo {
  3 + display: flex;
  4 + flex-direction: column;
  5 + align-items: center;
  6 +}
  7 +
  8 +.userinfo-avatar {
  9 + width: 128rpx;
  10 + height: 128rpx;
  11 + margin: 20rpx;
  12 + border-radius: 50%;
  13 +}
  14 +
  15 +.userinfo-nickname {
  16 + color: #aaa;
  17 +}
  18 +
  19 +.usermotto {
  20 + margin-top: 200px;
  21 +}
  1 +// pages/login/login.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "usingComponents": {}
  3 +}
  1 +
  2 +<view class="head">
  3 + <image class="avator" src="/img/head.png" mode="widthFix" />
  4 + \<view class="btn">微信你登陆</view>
  5 +</view>
  1 +.head{
  2 + padding: 120rpx 0;
  3 + margin: 0 auto;
  4 + width: 360rpx;
  5 + display: flex;
  6 + flex-wrap: wrap;
  7 + justify-content: center;
  8 +}
  9 +.avator{
  10 + width: 197rpx;
  11 +}
  12 +.btn{
  13 + width:360rpx;
  14 +height:80rpx;
  15 +background:rgba(253,172,48,1);
  16 +border:2rpx solid rgba(253,170,42,1);
  17 +border-radius:8rpx;
  18 +font-size:28rpx;
  19 +font-family:PingFang SC;
  20 +font-weight:400;
  21 +line-height:80rpx;
  22 +text-align: center;
  23 +color:rgba(249,249,249,1);
  24 +margin-top: 500rpx;
  25 +}
  1 +//logs.js
  2 +const util = require('../../utils/util.js')
  3 +
  4 +Page({
  5 + data: {
  6 + logs: []
  7 + },
  8 + onLoad: function () {
  9 + this.setData({
  10 + logs: (wx.getStorageSync('logs') || []).map(log => {
  11 + return util.formatTime(new Date(log))
  12 + })
  13 + })
  14 + }
  15 +})
  1 +{
  2 + "navigationBarTitleText": "查看启动日志",
  3 + "usingComponents": {}
  4 +}
  1 +<!--logs.wxml-->
  2 +<view class="container log-list">
  3 + <block wx:for="{{logs}}" wx:for-item="log">
  4 + <text class="log-item">{{index + 1}}. {{log}}</text>
  5 + </block>
  6 +</view>
  1 +.log-list {
  2 + display: flex;
  3 + flex-direction: column;
  4 + padding: 40rpx;
  5 +}
  6 +.log-item {
  7 + margin: 10rpx;
  8 +}
  1 +// pages/morecomment/morecomment.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + comentarr: ['全部', '好评', '差评', '带图评论'],
  9 +
  10 +
  11 + coment:0,
  12 + },
  13 +
  14 + /**
  15 + * 生命周期函数--监听页面加载
  16 + */
  17 + onLoad: function(options) {
  18 +
  19 + },
  20 + selitem(e){
  21 + console.log(e)
  22 + this.setData({
  23 + coment: e.currentTarget.dataset.index
  24 + })
  25 +
  26 + },
  27 + comdetail(){
  28 + wx.navigateTo({
  29 + url: '/pages/commentdetail/commentdetail',
  30 + })
  31 + },
  32 +
  33 + /**
  34 + * 生命周期函数--监听页面初次渲染完成
  35 + */
  36 + onReady: function() {
  37 +
  38 + },
  39 +
  40 + /**
  41 + * 生命周期函数--监听页面显示
  42 + */
  43 + onShow: function() {
  44 +
  45 + },
  46 +
  47 + /**
  48 + * 生命周期函数--监听页面隐藏
  49 + */
  50 + onHide: function() {
  51 +
  52 + },
  53 +
  54 + /**
  55 + * 生命周期函数--监听页面卸载
  56 + */
  57 + onUnload: function() {
  58 +
  59 + },
  60 +
  61 + /**
  62 + * 页面相关事件处理函数--监听用户下拉动作
  63 + */
  64 + onPullDownRefresh: function() {
  65 +
  66 + },
  67 +
  68 + /**
  69 + * 页面上拉触底事件的处理函数
  70 + */
  71 + onReachBottom: function() {
  72 +
  73 + },
  74 +
  75 + /**
  76 + * 用户点击右上角分享
  77 + */
  78 + onShareAppMessage: function() {
  79 +
  80 + }
  81 +})
  1 +{
  2 + "navigationBarTitleText": ""
  3 +}
  1 +<view class="commenttop flexone">
  2 + <view class="commenttopitem {{coment==index?'comactive':''}}" wx:for="{{comentarr}}" wx:key="" bindtap="selitem" data-index="{{index}}">{{item}}</view>
  3 +</view>
  4 +<view class="bodybox">
  5 + <view class="photo" >
  6 + <view class="jianintro photobox" bindtap="comdetail">
  7 + <view class="comtop flextwo">
  8 + <view class="comleft">
  9 + <image src="/img/kele.png"></image>
  10 + </view>
  11 + <view class="comright">
  12 +
  13 + <view class="comrtop flextwo">
  14 + <view class="comrname">一心只想撤撤撤</view>
  15 + <view class="star starone flexone">
  16 + <view class="staritem">
  17 + <image src="/img/star.png"></image>
  18 + </view>
  19 + <view class="staritem">
  20 + <image src="/img/star.png"></image>
  21 + </view>
  22 + <view class="staritem">
  23 + <image src="/img/star.png"></image>
  24 + </view>
  25 + <view class="staritem">
  26 + <image src="/img/star.png"></image>
  27 + </view>
  28 + <view class="staritem">
  29 + <image src="/img/star.png"></image>
  30 + </view>
  31 + </view>
  32 + </view>
  33 + <view class="comdate">2019年10月12日</view>
  34 +
  35 + </view>
  36 + </view>
  37 + <view class="comtext flexone">
  38 + <view class="comleft"></view>
  39 +
  40 + <view class="comright">
  41 + <view class="flexone fenxia">
  42 + <view class="star starone flexone">
  43 + <view class="staritem">
  44 + <image src="/img/star.png"></image>
  45 + </view>
  46 + <view class="staritem">
  47 + <image src="/img/star.png"></image>
  48 + </view>
  49 + <view class="staritem">
  50 + <image src="/img/star.png"></image>
  51 + </view>
  52 + <view class="staritem">
  53 + <image src="/img/star.png"></image>
  54 + </view>
  55 + <view class="staritem">
  56 + <image src="/img/banke.png"></image>
  57 + </view>
  58 + <view class="staritem">
  59 + <image src="/img/star.png"></image>
  60 + </view>
  61 + </view>
  62 + <view class="fen">8.5分</view>
  63 + </view>
  64 + <view class="text">
  65 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  66 + </view>
  67 + <view class="textboximg flexone">
  68 + <view class="boxitem">
  69 + <image src="/img/photo.png"></image>
  70 + </view>
  71 + <view class="boxitem">
  72 + <image src="/img/photo.png"></image>
  73 + </view>
  74 + <view class="boxitem">
  75 + <image src="/img/photo.png"></image>
  76 + </view>
  77 + </view>
  78 + </view>
  79 +
  80 +
  81 + </view>
  82 + </view>
  83 + </view>
  84 + <view class="photo" >
  85 + <view class="jianintro photobox" bindtap="comdetail">
  86 + <view class="comtop flextwo">
  87 + <view class="comleft">
  88 + <image src="/img/kele.png"></image>
  89 + </view>
  90 + <view class="comright">
  91 +
  92 + <view class="comrtop flextwo">
  93 + <view class="comrname">一心只想撤撤撤</view>
  94 + <view class="star starone flexone">
  95 + <view class="staritem">
  96 + <image src="/img/star.png"></image>
  97 + </view>
  98 + <view class="staritem">
  99 + <image src="/img/star.png"></image>
  100 + </view>
  101 + <view class="staritem">
  102 + <image src="/img/star.png"></image>
  103 + </view>
  104 + <view class="staritem">
  105 + <image src="/img/star.png"></image>
  106 + </view>
  107 + <view class="staritem">
  108 + <image src="/img/star.png"></image>
  109 + </view>
  110 + </view>
  111 + </view>
  112 + <view class="comdate">2019年10月12日</view>
  113 +
  114 + </view>
  115 + </view>
  116 + <view class="comtext flexone">
  117 + <view class="comleft"></view>
  118 +
  119 + <view class="comright">
  120 + <view class="flexone fenxia">
  121 + <view class="star starone flexone">
  122 + <view class="staritem">
  123 + <image src="/img/star.png"></image>
  124 + </view>
  125 + <view class="staritem">
  126 + <image src="/img/star.png"></image>
  127 + </view>
  128 + <view class="staritem">
  129 + <image src="/img/star.png"></image>
  130 + </view>
  131 + <view class="staritem">
  132 + <image src="/img/star.png"></image>
  133 + </view>
  134 + <view class="staritem">
  135 + <image src="/img/banke.png"></image>
  136 + </view>
  137 + <view class="staritem">
  138 + <image src="/img/star.png"></image>
  139 + </view>
  140 + </view>
  141 + <view class="fen">8.5分</view>
  142 + </view>
  143 + <view class="text">
  144 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  145 + </view>
  146 + <view class="textboximg flexone">
  147 + <view class="boxitem">
  148 + <image src="/img/photo.png"></image>
  149 + </view>
  150 + <view class="boxitem">
  151 + <image src="/img/photo.png"></image>
  152 + </view>
  153 + <view class="boxitem">
  154 + <image src="/img/photo.png"></image>
  155 + </view>
  156 + </view>
  157 + </view>
  158 +
  159 +
  160 + </view>
  161 + </view>
  162 + </view>
  163 +
  164 +</view>
  1 +@import '../shopdetail/shopdetail.wxss';
  2 +
  3 +.commenttopitem {
  4 + padding: 4rpx 32rpx;
  5 + box-sizing: border-box;
  6 + color: #06121sele;
  7 + font-size: 24rpx;
  8 + text-align: center;
  9 + border: 1rpx solid rgba(112, 112, 112, 1);
  10 + opacity: 1;
  11 + border-radius: 180rpx;
  12 + margin-right:22rpx;
  13 +}
  14 +.commenttop{
  15 + padding: 28rpx 32rpx;
  16 + box-sizing: border-box;
  17 + background: #fff;
  18 +}
  19 +.comactive{
  20 + color:#FDAA2A;
  21 + font-size: #FDAA2A;
  22 + border:1rpx solid #FDAA2A;
  23 +}
  1 +// pages/morephoto/morephoto.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": ""
  3 +}
  1 +<view class="photoptop flexone">
  2 + <view class="photoitem">
  3 + <image src="/img/photo.png"></image>
  4 + </view>
  5 + <view class="photoitem">
  6 + <image src="/img/photo.png"></image>
  7 + </view>
  8 + <view class="photoitem">
  9 + <image src="/img/photo.png"></image>
  10 + </view>
  11 + <view class="photoitem">
  12 + <image src="/img/photo.png"></image>
  13 + </view>
  14 + <view class="photoitem">
  15 + <image src="/img/photo.png"></image>
  16 + </view>
  17 + <view class="photoitem lastimg">
  18 + <image src="/img/photo.png"></image>
  19 +
  20 + </view>
  21 +
  22 + <view class="photoitem">
  23 + <image src="/img/photo.png"></image>
  24 + </view>
  25 + <view class="photoitem">
  26 + <image src="/img/photo.png"></image>
  27 + </view>
  28 + <view class="photoitem lastimg">
  29 + <image src="/img/photo.png"></image>
  30 +
  31 + </view>
  32 +</view>
  1 +@import '../shopdetail/shopdetail.wxss';
  2 +.jianintro {
  3 + background: #FBF8FB;
  4 +}
  5 +.photobox{
  6 + padding: 30rpx;
  7 + box-sizing: border-box;
  8 +}
  9 +.photoitem{
  10 + width:214rpx;
  11 + height:214rpx;
  12 +
  13 +}
  14 +.photoptop{
  15 + padding: 30rpx 12rpx 30rpx 30rpx;
  16 + flex-wrap: wrap
  17 +}
  1 +// pages/morecomment/morecomment.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + comentarr: ['全部', '已发布', '审核中', '未通过'],
  9 + coment: 0,
  10 + },
  11 +
  12 + /**
  13 + * 生命周期函数--监听页面加载
  14 + */
  15 + onLoad: function (options) {
  16 +
  17 + },
  18 + selitem(e) {
  19 + console.log(e)
  20 + this.setData({
  21 + coment: e.currentTarget.dataset.index
  22 + })
  23 +
  24 + },
  25 + comdetail() {
  26 + wx.navigateTo({
  27 + url: '/pages/commentdetail/commentdetail',
  28 + })
  29 + },
  30 +
  31 + /**
  32 + * 生命周期函数--监听页面初次渲染完成
  33 + */
  34 + onReady: function () {
  35 +
  36 + },
  37 +
  38 + /**
  39 + * 生命周期函数--监听页面显示
  40 + */
  41 + onShow: function () {
  42 +
  43 + },
  44 +
  45 + /**
  46 + * 生命周期函数--监听页面隐藏
  47 + */
  48 + onHide: function () {
  49 +
  50 + },
  51 +
  52 + /**
  53 + * 生命周期函数--监听页面卸载
  54 + */
  55 + onUnload: function () {
  56 +
  57 + },
  58 +
  59 + /**
  60 + * 页面相关事件处理函数--监听用户下拉动作
  61 + */
  62 + onPullDownRefresh: function () {
  63 +
  64 + },
  65 +
  66 + /**
  67 + * 页面上拉触底事件的处理函数
  68 + */
  69 + onReachBottom: function () {
  70 +
  71 + },
  72 +
  73 + /**
  74 + * 用户点击右上角分享
  75 + */
  76 + onShareAppMessage: function () {
  77 +
  78 + }
  79 +})
  1 +{
  2 + "navigationBarTitleText": "评论"
  3 +}
  1 +<view class="commenttop flexone">
  2 + <view class="commenttopitem {{coment==index?'comactive':''}}" wx:for="{{comentarr}}" wx:key="" bindtap="selitem" data-index="{{index}}">{{item}}</view>
  3 +</view>
  4 +<view class="bodybox">
  5 + <view class="photo">
  6 + <view class="jianintro photobox" bindtap="comdetail">
  7 + <view class="comtop flextwo">
  8 + <view class="comleft">
  9 + <image src="/img/kele.png"></image>
  10 + </view>
  11 + <view class="comright">
  12 +
  13 + <view class="comrtop flextwo">
  14 +
  15 + <view class="usertop flexone">
  16 + <view class="comrname">一心只想撤撤撤</view>
  17 + <view class="userlevel">Lv 20</view>
  18 + </view>
  19 +
  20 + <view class="delimg">
  21 + <image src="/img/delimg.png"></image>
  22 + </view>
  23 + </view>
  24 + <view class="comdate">2019年10月12日</view>
  25 +
  26 + </view>
  27 + </view>
  28 + <view class="comtext flexone">
  29 + <view class="comleft"></view>
  30 +
  31 + <view class="comright">
  32 + <view class="flexone fenxia">
  33 + <view class="star starone flexone">
  34 + <view class="staritem">
  35 + <image src="/img/star.png"></image>
  36 + </view>
  37 + <view class="staritem">
  38 + <image src="/img/star.png"></image>
  39 + </view>
  40 + <view class="staritem">
  41 + <image src="/img/star.png"></image>
  42 + </view>
  43 + <view class="staritem">
  44 + <image src="/img/star.png"></image>
  45 + </view>
  46 + <view class="staritem">
  47 + <image src="/img/banke.png"></image>
  48 + </view>
  49 + <view class="staritem">
  50 + <image src="/img/star.png"></image>
  51 + </view>
  52 + </view>
  53 + <view class="fen">8.5分</view>
  54 + </view>
  55 + <view class="fuwu flexone">
  56 + <view class="fuwuitem">服务:4.2</view>
  57 + <view class="fuwuitem">口味:4.2</view>
  58 + <view class="fuwuitem">环境:4.2</view>
  59 + <view class="fuwuitem">食材:4.2</view>
  60 + </view>
  61 + <view class="text">
  62 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  63 + </view>
  64 + <view class="all">全部</view>
  65 + <view class="textboximg flexone">
  66 + <view class="boxitem">
  67 + <image src="/img/photo.png"></image>
  68 + </view>
  69 + <view class="boxitem">
  70 + <image src="/img/photo.png"></image>
  71 + </view>
  72 + <view class="boxitem">
  73 + <image src="/img/photo.png"></image>
  74 + </view>
  75 + </view>
  76 + </view>
  77 +
  78 +
  79 + </view>
  80 + </view>
  81 + <view class="jianbot flextwo">
  82 + <view class="jianleft flex">
  83 + <view class="collectbitemleft">
  84 + <image src="/img/photo.png"></image>
  85 + </view>
  86 + <view class="collectbtitemr">
  87 +
  88 +
  89 + <view class='goodname goodtext'>海贼王寿司店</view>
  90 + <view class="addressbox flexone">
  91 + <view class='asddressitem'>东京街</view>
  92 + <view class='asddressitem'>东京街</view>
  93 + <view class='asddressitem'>东京街</view>
  94 + </view>
  95 + </view>
  96 + </view>
  97 +
  98 + <view class="jianright">
  99 + <image src="/img/graycollect.png"></image>
  100 + </view>
  101 +
  102 + </view>
  103 + <view class="combotright flexone">
  104 + <view class="combotitem flexone itemleft">
  105 + <view class="combotitemleft ">
  106 + <image src="/img/pingtiao.png"></image>
  107 + </view>
  108 + <view class="combotzannumber">23</view>
  109 + </view>
  110 + <view class="combotitem flexone">
  111 + <view class="combotitemleft">
  112 + <image src="/img/smallzan.png"></image>
  113 + </view>
  114 + <view class="combotzannumber">23</view>
  115 + </view>
  116 + </view>
  117 + </view>
  118 +
  119 + <view class="photo">
  120 + <view class="jianintro photobox" bindtap="comdetail">
  121 + <view class="comtop flextwo">
  122 + <view class="comleft">
  123 + <image src="/img/kele.png"></image>
  124 + </view>
  125 + <view class="comright">
  126 +
  127 + <view class="comrtop flextwo">
  128 +
  129 + <view class="usertop flexone">
  130 + <view class="comrname">一心只想撤撤撤</view>
  131 + <view class="userlevel">Lv 20</view>
  132 + </view>
  133 + <view class="flexone">
  134 + <view class="statename">未通过</view>
  135 + <view class="delimg">
  136 + <image src="/img/delimg.png"></image>
  137 + </view>
  138 + </view>
  139 +
  140 + </view>
  141 + <view class="comdate">2019年10月12日</view>
  142 +
  143 + </view>
  144 + </view>
  145 + <view class="comtext flexone">
  146 + <view class="comleft"></view>
  147 +
  148 + <view class="comright">
  149 + <view class="flexone fenxia">
  150 + <view class="star starone flexone">
  151 + <view class="staritem">
  152 + <image src="/img/star.png"></image>
  153 + </view>
  154 + <view class="staritem">
  155 + <image src="/img/star.png"></image>
  156 + </view>
  157 + <view class="staritem">
  158 + <image src="/img/star.png"></image>
  159 + </view>
  160 + <view class="staritem">
  161 + <image src="/img/star.png"></image>
  162 + </view>
  163 + <view class="staritem">
  164 + <image src="/img/banke.png"></image>
  165 + </view>
  166 + <view class="staritem">
  167 + <image src="/img/star.png"></image>
  168 + </view>
  169 + </view>
  170 + <view class="fen">8.5分</view>
  171 + </view>
  172 + <view class="fuwu flexone">
  173 + <view class="fuwuitem">服务:4.2</view>
  174 + <view class="fuwuitem">口味:4.2</view>
  175 + <view class="fuwuitem">环境:4.2</view>
  176 + <view class="fuwuitem">食材:4.2</view>
  177 + </view>
  178 + <view class="text">
  179 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  180 + </view>
  181 + <view class="all">全部</view>
  182 + <view class="textboximg flexone">
  183 + <view class="boxitem">
  184 + <image src="/img/photo.png"></image>
  185 + </view>
  186 + <view class="boxitem">
  187 + <image src="/img/photo.png"></image>
  188 + </view>
  189 + <view class="boxitem">
  190 + <image src="/img/photo.png"></image>
  191 + </view>
  192 + </view>
  193 + </view>
  194 +
  195 +
  196 + </view>
  197 + </view>
  198 + <view class="jianbot flextwo">
  199 + <view class="jianleft flex">
  200 + <view class="collectbitemleft">
  201 + <image src="/img/photo.png"></image>
  202 + </view>
  203 + <view class="collectbtitemr">
  204 +
  205 +
  206 + <view class='goodname goodtext'>海贼王寿司店</view>
  207 + <view class="addressbox flexone">
  208 + <view class='asddressitem'>东京街</view>
  209 + <view class='asddressitem'>东京街</view>
  210 + <view class='asddressitem'>东京街</view>
  211 + </view>
  212 + </view>
  213 + </view>
  214 +
  215 + <view class="jianright">
  216 + <image src="/img/graycollect.png"></image>
  217 + </view>
  218 +
  219 + </view>
  220 + <view class="combotright flexone">
  221 + <view class="combotitem flexone itemleft">
  222 + <view class="combotitemleft ">
  223 + <image src="/img/pingtiao.png"></image>
  224 + </view>
  225 + <view class="combotzannumber">23</view>
  226 + </view>
  227 + <view class="combotitem flexone">
  228 + <view class="combotitemleft">
  229 + <image src="/img/smallzan.png"></image>
  230 + </view>
  231 + <view class="combotzannumber">23</view>
  232 + </view>
  233 + </view>
  234 + </view>
  235 +
  236 +</view>
  237 +
  238 +<view class="nomoer">没有更多了哦~</view>
  1 +@import '../shopdetail/shopdetail.wxss';
  2 +
  3 +.commenttopitem {
  4 + padding: 4rpx 32rpx;
  5 + box-sizing: border-box;
  6 + color: #06121e;
  7 + font-size: 24rpx;
  8 + text-align: center;
  9 + border: 1rpx solid rgba(112, 112, 112, 1);
  10 + opacity: 1;
  11 + border-radius: 180rpx;
  12 + margin-right: 22rpx;
  13 +}
  14 +
  15 +.commenttop {
  16 + padding: 28rpx 32rpx;
  17 + box-sizing: border-box;
  18 + background: #fff;
  19 +}
  20 +
  21 +.comactive {
  22 + color: #fdaa2a;
  23 + font-size: #fdaa2a;
  24 + border: 1rpx solid #fdaa2a;
  25 +}
  26 +
  27 +.delimg {
  28 + width: 32rpx;
  29 + height: 32rpx;
  30 + font-size: 0
  31 +}
  32 +
  33 +.userlevel {
  34 + width: 58rpx;
  35 + height: 30rpx;
  36 + background: rgba(253, 170, 42, 1);
  37 + opacity: 1;
  38 + border-radius: 12rpx;
  39 + color: #fff;
  40 + font-size: 16rpx;
  41 + text-align: center;
  42 + line-height: 30rpx;
  43 + margin-left: 22rpx;
  44 +}
  45 +
  46 +.fuwu {
  47 + margin-top: 14rpx;
  48 +}
  49 +
  50 +.fuwuitem {
  51 + color: #000;
  52 + font-size: 22rpx;
  53 + margin-right: 10rpx;
  54 +}
  55 +
  56 +.all {
  57 + color: #fdaa2a;
  58 + font-size: 22rpx;
  59 + margin-top: 10rpx;
  60 +}
  61 +
  62 +.jianbot {
  63 + width: 602rpx;
  64 + height: 116rpx;
  65 + background: rgba(238, 238, 238, 1);
  66 + opacity: 1;
  67 + border-radius: 8rpx;
  68 + margin: 28rpx auto 0;
  69 + padding: 0 24rpx;
  70 + box-sizing: border-box;
  71 +}
  72 +
  73 +.jianright {
  74 + width: 44rpx;
  75 + height: 44rpx;
  76 +}
  77 +
  78 +.collectbitemleft {
  79 + width: 80rpx;
  80 + height: 80rpx;
  81 + font-size: 0;
  82 +}
  83 +
  84 +.goodname {
  85 + color: #06121e;
  86 + font-size: 28rpx;
  87 + margin-top: 8rpx;
  88 +}
  89 +
  90 +.asddressitem {
  91 + color: #8c9198;
  92 + font-size: 22rpx;
  93 + margin-right: 10rpx;
  94 +}
  95 +
  96 +.collectbtitemr {
  97 + margin-left: 20rpx;
  98 +}
  99 +
  100 +.photo {
  101 + background: #fff;
  102 +}
  103 +
  104 +.combotitemleft {
  105 + width: 24rpx;
  106 + height: 24rpx;
  107 + font-size: 0;
  108 +}
  109 +
  110 +.combotzannumber {
  111 + color: #8c9198;
  112 + font-size: 22rpx;
  113 + margin-left: 6rpx;
  114 +}
  115 +
  116 +.itemleft {
  117 + margin-right: 40rpx;
  118 +}
  119 +
  120 +.combotright {
  121 + width: 602rpx;
  122 + margin: 40rpx auto 0;
  123 + display: flex;
  124 + justify-content: flex-end;
  125 + padding-bottom: 26rpx;
  126 +}
  127 +
  128 +.statename {
  129 + width: 106rpx;
  130 + height: 36rpx;
  131 + background: rgba(189, 196, 206, 1);
  132 + opacity: 1;
  133 + border-radius: 180rpx;
  134 + color: #fff;
  135 + font-size: 22rpx;
  136 + text-align: center;
  137 + line-height: 36rpx;
  138 + margin-right:14rpx;
  139 +}
  1 +const app = getApp()
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 + if(options.type==1){
  16 + wx.setNavigationBarTitle({
  17 + title: '传照片'
  18 + })
  19 + }else{
  20 + wx.setNavigationBarTitle({
  21 + title: '拍视频'
  22 + })
  23 + }
  24 + },
  25 +
  26 + /**
  27 + * 生命周期函数--监听页面初次渲染完成
  28 + */
  29 + onReady: function () {
  30 +
  31 + },
  32 +
  33 + /**
  34 + * 生命周期函数--监听页面显示
  35 + */
  36 + onShow: function () {
  37 +
  38 + },
  39 +
  40 + /**
  41 + * 生命周期函数--监听页面隐藏
  42 + */
  43 + onHide: function () {
  44 +
  45 + },
  46 +
  47 + /**
  48 + * 生命周期函数--监听页面卸载
  49 + */
  50 + onUnload: function () {
  51 +
  52 + },
  53 +
  54 + /**
  55 + * 页面相关事件处理函数--监听用户下拉动作
  56 + */
  57 + onPullDownRefresh: function () {
  58 +
  59 + },
  60 +
  61 + /**
  62 + * 页面上拉触底事件的处理函数
  63 + */
  64 + onReachBottom: function () {
  65 +
  66 + },
  67 +
  68 + /**
  69 + * 用户点击右上角分享
  70 + */
  71 + onShareAppMessage: function () {
  72 +
  73 + }
  74 +})
  1 +{
  2 + "navigationBarTitleText": "传照片"
  3 +}
  1 +<view class="infobox">
  2 + <view class="imgarr">
  3 + <image class="imgItem" mode="aspectFill" src="/img/jiang.png" />
  4 + <image class="imgItem" mode="aspectFill" src="/img/tianjia_img@2x.png" />
  5 + <image class="imgItem" mode="aspectFill" src="/img/shangchuan_img.png" />
  6 + </view>
  7 + <textarea placeholder="说说此刻的感受吧…" class="wordArea" />
  8 + <view class="labelbox">
  9 + <view class="labelItem">
  10 + <text>+</text>标题
  11 + </view>
  12 + </view>
  13 +</view>
  14 + <view class="infobox">
  15 + <view class="infoTitle">评分</view>
  16 + <view class="evaluateItem">
  17 + <view class="tltle">综合</view>
  18 + <view class="starbox">
  19 + <image class="starItem" src="/img/star.png"/>
  20 + <image class="starItem" src="/img/star.png"/>
  21 + <image class="starItem" src="/img/star.png"/>
  22 + <image class="starItem" src="/img/star.png"/>
  23 + <image class="starItem" src="/img/banke.png"/>
  24 + </view>
  25 + </view>
  26 + <view class="evaluateItem">
  27 + <view class="tltle">服务</view>
  28 + <view class="starbox">
  29 + <image class="starItem" src="/img/star.png"/>
  30 + <image class="starItem" src="/img/star.png"/>
  31 + <image class="starItem" src="/img/star.png"/>
  32 + <image class="starItem" src="/img/star.png"/>
  33 + <image class="starItem" src="/img/banke.png"/>
  34 + </view>
  35 + </view>
  36 + <view class="evaluateItem">
  37 + <view class="tltle">口味</view>
  38 + <view class="starbox">
  39 + <image class="starItem" src="/img/star.png"/>
  40 + <image class="starItem" src="/img/star.png"/>
  41 + <image class="starItem" src="/img/star.png"/>
  42 + <image class="starItem" src="/img/star.png"/>
  43 + <image class="starItem" src="/img/banke.png"/>
  44 + </view>
  45 + </view>
  46 + <view class="evaluateItem">
  47 + <view class="tltle">环境</view>
  48 + <view class="starbox">
  49 + <image class="starItem" src="/img/star.png"/>
  50 + <image class="starItem" src="/img/star.png"/>
  51 + <image class="starItem" src="/img/star.png"/>
  52 + <image class="starItem" src="/img/star.png"/>
  53 + <image class="starItem" src="/img/banke.png"/>
  54 + </view>
  55 + </view>
  56 +
  57 + <view class="evaluateItem">
  58 + <view class="tltle">食材</view>
  59 + <view class="starbox">
  60 + <image class="starItem" src="/img/star.png"/>
  61 + <image class="starItem" src="/img/star.png"/>
  62 + <image class="starItem" src="/img/star.png"/>
  63 + <image class="starItem" src="/img/star.png"/>
  64 + <image class="starItem" src="/img/banke.png"/>
  65 + </view>
  66 + </view>
  67 + </view>
  68 +
  69 + <view class="costbox">
  70 + <view class="costTitle">人均</view>
  71 + <view class="fillbox">
  72 + <text>¥</text>
  73 + <input placeholder="请输入消费金额" class="fillCost" type="number"/>
  74 + </view>
  75 + </view>
  76 +
  77 + <view class="submit">发表</view>
  1 +page {
  2 + background: #F9F9F9;
  3 + padding: 0 32rpx 32rpx;
  4 + box-sizing: border-box;
  5 +}
  6 +
  7 +.infobox {
  8 + width: 686rpx;
  9 + background: rgba(255, 255, 255, 1);
  10 + margin: 16rpx 0;
  11 + padding: 38rpx 32rpx 26rpx;
  12 + box-sizing: border-box;
  13 +}
  14 +
  15 +.imgarrbox {
  16 + width: 100%;
  17 +}
  18 +
  19 +.imgItem {
  20 + width: 176rpx;
  21 + height: 176rpx;
  22 + margin-right: 24rpx;
  23 + margin-bottom: 32rpx;
  24 +}
  25 +.imgItem:nth-child(3n){
  26 + margin-right: 0;
  27 +}
  28 +.wordArea {
  29 + min-height: 150rpx;
  30 + font-size: 28rpx;
  31 + font-family: PingFang SC;
  32 + font-weight: 400;
  33 + line-height: 40rpx;
  34 + color: rgba(189, 196, 206, 1);
  35 + /* margin-top: 32rpx; */
  36 +}
  37 +
  38 +.labelbox {
  39 + margin-top: 32rpx;
  40 +}
  41 +
  42 +.labelItem {
  43 + display: inline-block;
  44 + padding: 8rpx 22rpx;
  45 + background: rgba(255, 255, 255, 1);
  46 + border: 1px solid rgba(189, 196, 206, 1);
  47 + opacity: 1;
  48 + border-radius: 24rpx;
  49 + font-size: 24rpx;
  50 + font-family: PingFang SC;
  51 + font-weight: 400;
  52 + color: rgba(6, 18, 30, 1);
  53 +}
  54 +
  55 +.infoTitle {
  56 + font-size: 32rpx;
  57 + font-family: PingFang SC;
  58 + font-weight: 400;
  59 + line-height: 44rpx;
  60 + color: rgba(0, 0, 0, 1);
  61 + margin-bottom: 20rpx;
  62 +}
  63 +
  64 +.evaluateItem {
  65 + margin-bottom: 8px;
  66 + display: flex;
  67 + align-items: center;
  68 +}
  69 +
  70 +.evaluateItem .infoboxtltle {
  71 + font-size: 28rpx;
  72 + font-family: PingFang SC;
  73 + font-weight: 400;
  74 + line-height: 40rpx;
  75 + color: rgba(0, 0, 0, 1);
  76 +}
  77 +
  78 +.starbox {
  79 + margin-left: 16rpx;
  80 + display: flex;
  81 + align-items: center;
  82 +}
  83 +
  84 +.starItem {
  85 + width: 24rpx;
  86 + height: 24rpx;
  87 + margin-right: 8rpx;
  88 +}
  89 +
  90 +.costbox {
  91 + width: 686rpx;
  92 + height: 100rpx;
  93 + background: rgba(255, 255, 255, 1);
  94 + padding: 0 32rpx;
  95 + box-sizing: border-box;
  96 + display: flex;
  97 + align-items: center;
  98 +}
  99 +
  100 +.costTitle {
  101 + font-size: 32rpx;
  102 + font-family: PingFang SC;
  103 + font-weight: 400;
  104 + line-height: 44rpx;
  105 + color: rgba(0, 0, 0, 1);
  106 + margin-right: 48rpx;
  107 +}
  108 +
  109 +.fillbox {
  110 + display: flex;
  111 + align-items: center;
  112 +}
  113 +
  114 +.fillbox text {
  115 + font-size: 28rpx;
  116 + font-family: PingFang SC;
  117 + font-weight: 400;
  118 + line-height: 40rpx;
  119 + color: rgba(0, 0, 0, 1);
  120 +}
  121 +
  122 +.fillCost {
  123 + width: 196rpx;
  124 + font-size: 28rpx;
  125 + font-family: PingFang SC;
  126 + font-weight: 400;
  127 + color: rgba(189, 196, 206, 1);
  128 + margin-left: 20rpx;
  129 +}
  130 +
  131 +.submit {
  132 + width: 686rpx;
  133 + height: 88rpx;
  134 + background: rgba(189, 196, 206, 1);
  135 + opacity: 1;
  136 + border-radius: 8rpx;
  137 + font-size: 28rpx;
  138 + font-family: PingFang SC;
  139 + font-weight: 500;
  140 + color: rgba(249, 249, 249, 1);
  141 + display: flex;
  142 + justify-content: center;
  143 + align-items: center;
  144 + margin-top: 56rpx;
  145 +}
  1 +// pages/personziliao/personziliao.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "个人资料"
  3 +}
  1 +<view class="headtop">
  2 + <view class="headitem flextwo">
  3 + <view class="headitemleft">
  4 + 头像
  5 + </view>
  6 + <view class="headitemright flexone">
  7 + <view class="headimg">
  8 + <image src="/img/touxiang.png"></image>
  9 + </view>
  10 + <view class="yourow">
  11 + <image src="/img/yourow.png"></image>
  12 + </view>
  13 + </view>
  14 +
  15 + </view>
  16 + <view class="headitem flextwo">
  17 + <view class="headitemleft">
  18 + 昵称
  19 + </view>
  20 + <view class="headitemright flexone">
  21 + <view class="headitemleft nicheg">
  22 + 微信昵称
  23 + </view>
  24 + <view class="yourow">
  25 + <image src="/img/yourow.png"></image>
  26 + </view>
  27 + </view>
  28 +
  29 + </view>
  30 +</view>
  31 +<view class="entertext">
  32 + <view class="textyop">用户简介</view>
  33 + <view class="textarea">
  34 + 这个人什么都没写…
  35 + </view>
  36 +</view>
  1 +/* pages/personziliao/personziliao.wxss */
  2 +page{
  3 + background: #F9F9FB
  4 +}
  5 +.headimg{
  6 + width:60rpx;
  7 + height:60rpx;
  8 + font-size: 0;
  9 + margin-right:14rpx;
  10 +}
  11 +.nicheg{
  12 + margin-right:14rpx;
  13 +}
  14 +.yourow{
  15 + width:12rpx;
  16 + height:18rpx;
  17 + font-size: 0
  18 +}
  19 +.headtop{
  20 + padding: 0 32rpx;
  21 + box-sizing: border-box;
  22 + background: #fff;
  23 + margin-top:16rpx;
  24 +}
  25 +.headitem{
  26 + padding: 24rpx 0;
  27 + box-sizing: border-box;
  28 + border-bottom:1rpx solid #f5f5f5;
  29 +}
  30 +.headitemleft{
  31 + color:#3D444D;
  32 + font-size: 28rpx;
  33 +}
  34 +.textyop{
  35 + color:#3D444D;
  36 + font-size: 28rpx;
  37 +}
  38 +.textarea{
  39 + color:#BDC4CE;
  40 + font-size: 24rpx;
  41 + margin-top:16rpx;
  42 +}
  43 +.entertext{
  44 + background: #fff;
  45 + padding: 32rpx;
  46 + box-sizing: border-box;
  47 + margin-top:16rpx;
  48 + height:316rpx;
  49 +}
  1 +// pages/recommond/recommond.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "推荐"
  3 +}
  1 +<view class="colecttop flextwo">
  2 + <view class="comt">(20/34)</view>
  3 +</view>
  4 +<view class="collectbox">
  5 + <view class="colectbitem flex">
  6 + <view class="collectbitemleft">
  7 + <image src="/img/photo.png"></image>
  8 + </view>
  9 + <view class="collectbtitemr">
  10 + <view class='goodname'>海贼王寿司店</view>
  11 +
  12 + <view class="flexone starbox">
  13 + <view class="star flexone">
  14 + <view class="staritem">
  15 + <image src="/img/pingfenshi.png"></image>
  16 + </view>
  17 + <view class="staritem">
  18 + <image src="/img/pingfenshi.png"></image>
  19 + </view>
  20 + <view class="staritem">
  21 + <image src="/img/pingfenshi.png"></image>
  22 + </view>
  23 + <view class="staritem">
  24 + <image src="/img/pingfenshi.png"></image>
  25 + </view>
  26 + <view class="staritem">
  27 + <image src="/img/pingfenshi.png"></image>
  28 + </view>
  29 + </view>
  30 + <view class="shouprice">¥88</view>
  31 + </view>
  32 + <view class="addressbox flexone">
  33 + <view class='asddressitem'>东京街</view>
  34 + <view class='asddressitem'>东京街</view>
  35 + <view class='asddressitem'>东京街</view>
  36 + </view>
  37 + </view>
  38 +
  39 + </view>
  40 + <view class="colectbitem flex">
  41 + <view class="collectbitemleft">
  42 + <image src="/img/photo.png"></image>
  43 + </view>
  44 + <view class="collectbtitemr">
  45 + <view class='goodname'>海贼王寿司店</view>
  46 +
  47 + <view class="flexone starbox">
  48 + <view class="star flexone">
  49 + <view class="staritem">
  50 + <image src="/img/pingfenshi.png"></image>
  51 + </view>
  52 + <view class="staritem">
  53 + <image src="/img/pingfenshi.png"></image>
  54 + </view>
  55 + <view class="staritem">
  56 + <image src="/img/pingfenshi.png"></image>
  57 + </view>
  58 + <view class="staritem">
  59 + <image src="/img/pingfenshi.png"></image>
  60 + </view>
  61 + <view class="staritem">
  62 + <image src="/img/pingfenshi.png"></image>
  63 + </view>
  64 + </view>
  65 + <view class="shouprice">¥88</view>
  66 + </view>
  67 + <view class="addressbox flexone">
  68 + <view class='asddressitem'>东京街</view>
  69 + <view class='asddressitem'>东京街</view>
  70 + <view class='asddressitem'>东京街</view>
  71 + </view>
  72 + </view>
  73 +
  74 + </view>
  75 +</view>
  1 +@import '../collectlist/collectlist.wxss';
  2 +.comt{
  3 + color:#06121E;
  4 + font-size: 28rpx;
  5 +}
  6 +.colecttop{
  7 + padding: 10rpx 32rpx;
  8 + box-sizing: border-box
  9 +}
  1 +// pages/searchcity/searchcity.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + cityarr: ['东京', '东京','东京','东京'],
  9 + index:0
  10 + },
  11 +
  12 + /**
  13 + * 生命周期函数--监听页面加载
  14 + */
  15 + onLoad: function (options) {
  16 +
  17 + },
  18 +selcity(e){
  19 + this.setData({
  20 + sel:e.currentTarget.dataset.index
  21 + })
  22 +},
  23 + /**
  24 + * 生命周期函数--监听页面初次渲染完成
  25 + */
  26 + onReady: function () {
  27 +
  28 + },
  29 +
  30 + /**
  31 + * 生命周期函数--监听页面显示
  32 + */
  33 + onShow: function () {
  34 +
  35 + },
  36 +
  37 + /**
  38 + * 生命周期函数--监听页面隐藏
  39 + */
  40 + onHide: function () {
  41 +
  42 + },
  43 +
  44 + /**
  45 + * 生命周期函数--监听页面卸载
  46 + */
  47 + onUnload: function () {
  48 +
  49 + },
  50 +
  51 + /**
  52 + * 页面相关事件处理函数--监听用户下拉动作
  53 + */
  54 + onPullDownRefresh: function () {
  55 +
  56 + },
  57 +
  58 + /**
  59 + * 页面上拉触底事件的处理函数
  60 + */
  61 + onReachBottom: function () {
  62 +
  63 + },
  64 +
  65 + /**
  66 + * 用户点击右上角分享
  67 + */
  68 + onShareAppMessage: function () {
  69 +
  70 + }
  71 +})
  1 +{
  2 + "navigationBarTitleText": "选择城市"
  3 +}
  1 +<!-- 头部搜索 -->
  2 +<view class="tou">
  3 + <view class="head">
  4 + <view class="headmiddle">
  5 + <view class="headmiddleleft">
  6 + <image src="/img/search.png" mode=""></image>
  7 + </view>
  8 + <view class="headmiddleright">
  9 + <input type="text" placeholder="请输入搜索城市" placeholder-class="shuru" />
  10 + </view>
  11 + </view>
  12 + <view class="search">搜索</view>
  13 + </view>
  14 +</view>
  15 +
  16 +<!-- 当前城市 -->
  17 +<view class="city">
  18 + <view class="citytop">当前城市</view>
  19 + <view class="citybox flexone">
  20 + <view class="cityboxitem selcityactive" wx:key="">东京</view>
  21 +
  22 + </view>
  23 +</view>
  24 +<!-- 当前城市 -->
  25 +<view class="city">
  26 + <view class="citytop">热门城市</view>
  27 + <view class="citybox flexone">
  28 + <view class="cityboxitem {{sel==index?'selcityactive':''}}" wx:for="{{cityarr}}" wx:key="" bindtap="selcity" data-index="{{index}}">东京</view>
  29 +
  30 + </view>
  31 +</view>
  32 +<!-- 当前城市 -->
  33 +<view class="city">
  34 + <view class="citytop">全部城市</view>
  35 + <view class="citybox flexone">
  36 + <view class="cityboxitem {{sel=='index'?'selcityactive':''}}" wx:for="{{cityarr}}" wx:key="" bindtap="selcity" data-index="{{index}}">东京</view>
  37 +
  38 + </view>
  39 +</view>
  1 +.search {
  2 + color: #06121e;
  3 + font-size: 28rpx;
  4 +}
  5 +
  6 +.headmiddle {
  7 + width: 596rpx;
  8 +}
  9 +
  10 +.tou {
  11 + background: #fff;
  12 +}
  13 +
  14 +page {
  15 + background: #f9f9fb;
  16 +}
  17 +
  18 +/* 城市 */
  19 +
  20 +.citybox {
  21 + display: flex;
  22 + flex-wrap: wrap;
  23 + margin-top:26rpx;
  24 +}
  25 +
  26 +
  27 +.city {
  28 + padding: 0 12rpx 0 32rpx;
  29 + box-sizing: border-box;
  30 +}
  31 +.citytop{
  32 + color:#707070;
  33 + font-size: 24rpx;
  34 + margin-top:44rpx;
  35 +
  36 +}
  37 +
  38 +.cityboxitem {
  39 + width: 216rpx;
  40 + height: 68rpx;
  41 + background: rgba(255, 255, 255, 1);
  42 + border: 1rpx solid rgba(189, 196, 206, 1);
  43 + opacity: 1;
  44 + border-radius: 8rpx;
  45 + color: #06121e;
  46 + font-size: 28rpx;
  47 + text-align: center;
  48 + line-height: 68rpx;
  49 + margin-right:14rpx;
  50 + margin-bottom:24rpx;
  51 +}
  52 +.selcityactive{
  53 + border:1rpx solid #FDAA2A;
  54 +}
  1 +// pages/searchresult/searchresult.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarTitleText": "搜素结果"
  3 +}
  1 +<!-- 头部搜索 -->
  2 +<view class="tou">
  3 + <view class="head">
  4 + <view class="headmiddle">
  5 + <view class="headmiddleleft">
  6 + <image src="/img/search.png" mode=""></image>
  7 + </view>
  8 + <view class="headmiddleright">
  9 + <input type="text" placeholder="请输入搜索城市" placeholder-class="shuru" />
  10 + </view>
  11 + </view>
  12 + <view class="search">搜索</view>
  13 + </view>
  14 +</view>
  15 +
  16 +<!-- 店推推荐 -->
  17 +<view class="city">
  18 + <view class="citytop">店铺推荐</view>
  19 + <view class="citybox flexone">
  20 + <view class="tuiitem flexone" wx:key="">
  21 + <view class="tuimg">
  22 + <image src="/img/huori.png"></image>
  23 + </view>
  24 + 银座前卫拉面
  25 + </view>
  26 + <view class="tuiitem flexone" wx:key="">
  27 + <view class="tuimg">
  28 + <image src="/img/huori.png"></image>
  29 + </view>
  30 + 大和寿司
  31 + </view>
  32 + <view class="tuiitem flexone" wx:key="">
  33 + 一兰拉面(涩谷店)
  34 + </view>
  35 +
  36 + </view>
  37 +</view>
  38 +
  39 +<!-- 店推推荐 -->
  40 +<view class="city">
  41 + <view class="citytop">历史搜索</view>
  42 + <view class="citybox flexone">
  43 +
  44 + <view class="tuiitem flexone" wx:key="">
  45 + 寿司大
  46 + </view>
  47 + <view class="tuiitem flexone" wx:key="">
  48 + 一兰拉面(涩谷店)
  49 + </view>
  50 + <view class="tuiitem flexone" wx:key="">
  51 + 一兰拉面(涩谷店)
  52 + </view>
  53 + <view class="tuiitem flexone" wx:key="">
  54 + 一兰拉面(涩谷店)
  55 + </view>
  56 +
  57 + </view>
  58 +</view>
  1 +@import '../searchcity/searchcity.wxss';
  2 +.tuiitem{
  3 + padding: 12rpx 22rpx;
  4 + box-sizing: border-box;
  5 + background: #eee;
  6 + color:#06121E;
  7 + font-size: 24rpx;
  8 + text-align: center;
  9 + margin-bottom:24rpx;
  10 + margin-right:22rpx;
  11 +
  12 +}
  13 +.tuimg{
  14 + width:26rpx;
  15 + height:26rpx;
  16 + font-size: 0;
  17 + margin-right:10rpx;
  18 +
  19 +}
  1 +// pages/shopdetail/shopdetail.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + imgUrls: [
  9 + '/img/detailimg.png',
  10 + '/img/detailimg.png',
  11 + '/img/detailimg.png'
  12 + ],
  13 + indicatorDots: false,
  14 + autoplay: true,
  15 + interval: 2000,
  16 + duration: 1000,
  17 + currentSwiper: 0,
  18 + hidewrapno: false,
  19 + hidewraptrue: false
  20 + },
  21 +
  22 + swiperChange: function(e) {
  23 + this.setData({
  24 + currentSwiper: e.detail.current
  25 + })
  26 + },
  27 + morecomment() {
  28 + wx.navigateTo({
  29 + url: '/pages/morecoment/morecoment',
  30 + })
  31 + },
  32 + xiangce() {
  33 + wx.navigateTo({
  34 + url: '/pages/morephoto/morephoto',
  35 + })
  36 + },
  37 + // 隐藏遮罩层
  38 + sure() {
  39 + this.setData({
  40 + hidewraptrue: false
  41 + })
  42 + },
  43 + // 店铺详情
  44 + comentdetail() {
  45 + wx.navigateTo({
  46 + url: '/pages/commentdetail/commentdetail',
  47 + })
  48 + },
  49 + write(e) {
  50 + let id = e.currentTarget.dataset.id;
  51 + console.log(id)
  52 + if (id == 1) {
  53 + console.log(38843)
  54 + this.setData({
  55 + hidewraptrue: true
  56 + })
  57 + } else if (id == 2) {
  58 + console.log(334)
  59 + wx.navigateTo({
  60 + url: '/pages/passPhotos/passPhotos?type=' + 1,
  61 + })
  62 +
  63 + } else if (id == 3) {
  64 + wx.navigateTo({
  65 + url: '/pages/passPhotos/passPhotos?type=' + 2,
  66 + })
  67 +
  68 + } else if (id == 4) {
  69 + wx.navigateTo({
  70 + url: '/pages/comment/comment',
  71 + })
  72 + }
  73 + },
  74 + /**
  75 + * 生命周期函数--监听页面加载
  76 + */
  77 + onLoad: function(options) {
  78 +
  79 + },
  80 +
  81 + /**
  82 + * 生命周期函数--监听页面初次渲染完成
  83 + */
  84 + onReady: function() {
  85 +
  86 + },
  87 +
  88 + /**
  89 + * 生命周期函数--监听页面显示
  90 + */
  91 + onShow: function() {
  92 +
  93 + },
  94 +
  95 + /**
  96 + * 生命周期函数--监听页面隐藏
  97 + */
  98 + onHide: function() {
  99 +
  100 + },
  101 +
  102 + /**
  103 + * 生命周期函数--监听页面卸载
  104 + */
  105 + onUnload: function() {
  106 +
  107 + },
  108 +
  109 + /**
  110 + * 页面相关事件处理函数--监听用户下拉动作
  111 + */
  112 + onPullDownRefresh: function() {
  113 +
  114 + },
  115 +
  116 + /**
  117 + * 页面上拉触底事件的处理函数
  118 + */
  119 + onReachBottom: function() {
  120 +
  121 + },
  122 +
  123 + /**
  124 + * 用户点击右上角分享
  125 + */
  126 + onShareAppMessage: function() {
  127 +
  128 + }
  129 +})
  1 +{
  2 + "navigationBarTitleText": "店铺详情"
  3 +}
  1 +<view class="swiper_image">
  2 + <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange" circular="true">
  3 + <block wx:for="{{imgUrls}}" wx:key="doct">
  4 + <swiper-item>
  5 + <image src="{{item}}" class="slide-image" />
  6 + <view class="taildot">
  7 + {{index+1}}/{{imgUrls.length}}
  8 + </view>
  9 + </swiper-item>
  10 +
  11 + </block>
  12 + </swiper>
  13 +
  14 +
  15 +
  16 + <!-- <view class="dots">
  17 + <block wx:for="{{imgUrls}}" wx:key="d">
  18 + <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
  19 + </block>
  20 + </view> -->
  21 +
  22 +
  23 +
  24 + <view class="detailtop">
  25 + <view class="tailtop flextwo">
  26 + <view class="tailtopleft">海贼王拉面</view>
  27 + <view class="tailright flexone">
  28 + <view class="tailitem">
  29 + <view class="tailtopimg">
  30 + <image src="/img/zan.png"></image>
  31 + </view>
  32 + <view class="tailname">推荐</view>
  33 + </view>
  34 + <view class="tailitem">
  35 + <view class="tailtopimg">
  36 + <image src="/img/xin.png"></image>
  37 + </view>
  38 + <view class="tailname">收藏</view>
  39 + </view>
  40 + <view class="tailitem">
  41 + <view class="tailtopimg">
  42 + <image src="/img/share.png"></image>
  43 + </view>
  44 + <view class="tailname">分享</view>
  45 + </view>
  46 + </view>
  47 + </view>
  48 + <view class="cai flex">
  49 + <view class="flower flexone">
  50 + <view class="floweritem">
  51 + <image src="/img/hua.png"></image>
  52 + </view>
  53 + <view class="floweritem">
  54 + <image src="/img/hua.png"></image>
  55 + </view>
  56 + <view class="floweritem">
  57 + <image src="/img/hua.png"></image>
  58 + </view>
  59 + </view>
  60 + <view class="huaname">菜系</view>
  61 + </view>
  62 + <view class="comment flexone">
  63 + <view class="sanleft">
  64 + <image src="/img/sanxing.png"></image>
  65 + </view>
  66 + <view class="star flexone">
  67 + <view class="staritem">
  68 + <image src="/img/pingfenshi.png"></image>
  69 + </view>
  70 + <view class="staritem">
  71 + <image src="/img/pingfenshi.png"></image>
  72 + </view>
  73 + <view class="staritem">
  74 + <image src="/img/pingfenshi.png"></image>
  75 + </view>
  76 + <view class="staritem">
  77 + <image src="/img/pingfenshi.png"></image>
  78 + </view>
  79 + <view class="staritem">
  80 + <image src="/img/banke.png"></image>
  81 + </view>
  82 +
  83 + </view>
  84 + <view class="fen">8.5分</view>
  85 + <view class="tiao">800条</view>
  86 + </view>
  87 + <view class="commentone flexone">
  88 + <view class="sanleft">
  89 + <image src="/img/kuai.png"></image>
  90 + </view>
  91 + <view class="star flexone">
  92 + <view class="staritem">
  93 + <image src="/img/pingfenshi.png"></image>
  94 + </view>
  95 + <view class="staritem">
  96 + <image src="/img/pingfenshi.png"></image>
  97 + </view>
  98 + <view class="staritem">
  99 + <image src="/img/pingfenshi.png"></image>
  100 + </view>
  101 + <view class="staritem">
  102 + <image src="/img/pingfenshi.png"></image>
  103 + </view>
  104 + <view class="staritem">
  105 + <image src="/img/banke.png"></image>
  106 + </view>
  107 +
  108 + </view>
  109 + <view class="fen">8.5分</view>
  110 +
  111 + </view>
  112 +
  113 +
  114 +
  115 + </view>
  116 +
  117 +
  118 +</view>
  119 +
  120 +
  121 +<view class="bodybox">
  122 +
  123 + <view class="jianintro">
  124 + <view class="jianintrotop">基值支义们京候么眼革下使叫。南石很样好清少去准连究志议构。</view>
  125 + <view class="jiantext">
  126 + 你理边率他次与关好期起金志单马切红。主严拉青民解格速七取学复才太马。前属口质次意指有研叫后先按此。 省每前称非美事起也半专我料叫此没。学想象这志究反规空家很便老。
  127 + </view>
  128 + </view>
  129 + <view class="photo">
  130 + <view class="xiang" bindtap="xiangce">相册</view>
  131 + <view class="jianintro photobox">
  132 + <view class="photoitem">
  133 + <image src="/img/photo.png"></image>
  134 + </view>
  135 + <view class="photoitem">
  136 + <image src="/img/photo.png"></image>
  137 + </view>
  138 + <view class="photoitem">
  139 + <image src="/img/photo.png"></image>
  140 + </view>
  141 + <view class="photoitem">
  142 + <image src="/img/photo.png"></image>
  143 + </view>
  144 + <view class="photoitem">
  145 + <image src="/img/photo.png"></image>
  146 + </view>
  147 + <view class="photoitem lastimg">
  148 + <image src="/img/photo.png"></image>
  149 +
  150 + </view>
  151 + </view>
  152 + </view>
  153 +
  154 + <view class="photo">
  155 + <view class="phototop flextwo">
  156 + <view class="phototopleft flexone">
  157 + <view class="xiang">点评 </view>
  158 + <view class="tiao">(800条)</view>
  159 + </view>
  160 + <view class="photoright flexone" bindtap="morecomment">
  161 + <view class="morename">更多</view>
  162 + <view class="yourow">
  163 + <image src="/img/leftrow.png"></image>
  164 + </view>
  165 + </view>
  166 +
  167 + </view>
  168 + <view class="jianintro photobox" bindtap="comentdetail">
  169 + <view class="comtop flextwo">
  170 + <view class="comleft">
  171 + <image src="/img/kele.png"></image>
  172 + </view>
  173 + <view class="comright">
  174 +
  175 + <view class="comrtop flextwo">
  176 + <view class="comrname">一心只想撤撤撤</view>
  177 + <view class="star starone flexone">
  178 + <view class="staritem">
  179 + <image src="/img/star.png"></image>
  180 + </view>
  181 + <view class="staritem">
  182 + <image src="/img/star.png"></image>
  183 + </view>
  184 + <view class="staritem">
  185 + <image src="/img/star.png"></image>
  186 + </view>
  187 + <view class="staritem">
  188 + <image src="/img/star.png"></image>
  189 + </view>
  190 + <view class="staritem">
  191 + <image src="/img/star.png"></image>
  192 + </view>
  193 + </view>
  194 + </view>
  195 + <view class="comdate">2019年10月12日</view>
  196 +
  197 + </view>
  198 + </view>
  199 +
  200 + <view class="comtext flexone">
  201 + <view class="comleft"></view>
  202 +
  203 + <view class="comright">
  204 + <view class="flexone fenxia">
  205 + <view class="star starone flexone">
  206 + <view class="staritem">
  207 + <image src="/img/pingfenshi.png"></image>
  208 + </view>
  209 + <view class="staritem">
  210 + <image src="/img/pingfenshi.png"></image>
  211 + </view>
  212 + <view class="staritem">
  213 + <image src="/img/pingfenshi.png"></image>
  214 + </view>
  215 + <view class="staritem">
  216 + <image src="/img/pingfenshi.png"></image>
  217 + </view>
  218 + <view class="staritem">
  219 + <image src="/img/banke.png"></image>
  220 + </view>
  221 +
  222 + </view>
  223 + <view class="fen">8.5分</view>
  224 + </view>
  225 + <view class="text">
  226 + 掌柜态度很专业热情,有问必答,回复也很快,我问了不少问题,他都不觉得烦,都会认真回答我,这点我向掌柜表示由衷的敬意,这样的好掌柜可不多了。
  227 + </view>
  228 + <view class="textboximg flexone">
  229 + <view class="boxitem">
  230 + <image src="/img/photo.png"></image>
  231 + </view>
  232 + <view class="boxitem">
  233 + <image src="/img/photo.png"></image>
  234 + </view>
  235 + <view class="boxitem">
  236 + <image src="/img/photo.png"></image>
  237 + </view>
  238 + </view>
  239 + </view>
  240 +
  241 +
  242 + </view>
  243 +
  244 +
  245 +
  246 + </view>
  247 + </view>
  248 +
  249 + <!-- 店铺信息 -->
  250 +
  251 + <view class="photo">
  252 + <view class="xiang" bindtap="xiangce">店铺信息</view>
  253 +
  254 + <view class="addbox">
  255 +
  256 + <view class="additem">
  257 + <view class="phonetop flexone">
  258 + <view class="phoetopleft ">
  259 + <image src="/img/dianhua_icon.png"></image>
  260 + </view>
  261 + <view class='phonenumber'>1233455</view>
  262 + </view>
  263 + <view class="phonetop flex addresstop">
  264 + <view class="phoetopleft ">
  265 + <image src="/img/dingwei_icon.png"></image>
  266 + </view>
  267 + <view class='phonenumber'>世纪大道东京路世纪大道东京路世纪大道东京路银座商业区5楼</view>
  268 + </view>
  269 + </view>
  270 + <view class="additem flexone">
  271 + <view class="yingshi">营业时间</view>
  272 +
  273 + <view class="timebox flexone">
  274 + <view class="tiemitem">11:00-12:00</view>
  275 + </view>
  276 + </view>
  277 +
  278 + <view class="additem flexone">
  279 + <view class="shouimg">
  280 + <image src="/img/renjun_icon.png"></image>
  281 + </view>
  282 +
  283 + <view class="pricepeopel">
  284 + 347/人
  285 + </view>
  286 + </view>
  287 +
  288 + <view class="additem">
  289 + <view class="can pricepeopel">早餐信息</view>
  290 + <view class="canone pricepeopel">自助点餐:53000日元 (服务费800日元)</view>
  291 + <view class="cantwo pricepeopel">午餐套餐:53000日元 (服务费800日元、税费1600日元)</view>
  292 + <view class="cantext">
  293 + 你理边率他次与关好期起金志单马切红。主严拉青民解格速七取学复才太马。前属口质次意指有研叫后先按此主严拉青民解格速七取学复才太马。
  294 + </view>
  295 + </view>
  296 +
  297 + <view class="yuyuelsit flexone">
  298 + <view class="yuyueitem">可预约</view>
  299 + <view class="yuyueitem">不支持信用卡</view>
  300 + <view class="yuyueitem">又包调</view>
  301 + </view>
  302 +
  303 + </view>
  304 +
  305 +
  306 + </view>
  307 +
  308 +</view>
  309 +
  310 +<view class="botfix flextwo" >
  311 + <view class="boitem" bindtap="write" data-id="1">
  312 + <view class="botitemtop">
  313 + <image src="/img/duigou.png"></image>
  314 + </view>
  315 + <view class="botname">打卡</view>
  316 + </view>
  317 + <view class="boitem" bindtap="write" data-id="2">
  318 + <view class="botitemtop">
  319 + <image src="/img/chuanphoto.png"></image>
  320 + </view>
  321 + <view class="botname">传照片</view>
  322 + </view>
  323 + <view class="boitem" bindtap="write" data-id="3">
  324 + <view class="botitemtop">
  325 + <image src="/img/video.png"></image>
  326 + </view>
  327 + <view class="botname">拍视频</view>
  328 + </view>
  329 + <view class="boitem"bindtap="write" data-id="4">
  330 + <view class="botitemtop" bindtap="write" data-id="4">
  331 + <image src="/img/writedian.png"></image>
  332 + </view>
  333 + <view class="botname">写点评</view>
  334 + </view>
  335 +</view>
  336 +<!-- 打卡失败遮罩层 -->
  337 +<view class="register" wx:if="{{hidewrap}}">
  338 + <view class="clockwrap">
  339 + <view class="gantanimg">
  340 + <image src="/img/gantan.png"></image>
  341 + </view>
  342 + <view class="shibai">打卡失败</view>
  343 + <view class="shebei">该账号已在其他设备登录</view>
  344 + <view class="bot flex">
  345 + <view class="botleft">商户地址报错</view>
  346 + <view class="botright">再试一次</view>
  347 + </view>
  348 + </view>
  349 +</view>
  350 +
  351 +<!-- 打卡成功遮罩层 -->
  352 +<view class="register" wx:if="{{hidewraptrue}}">
  353 + <view class="clockwrap clockwrapy">
  354 + <view class="gantanimg">
  355 + <image src="/img/clocksuccess.png"></image>
  356 + </view>
  357 + <view class="successname">打卡成功</view>
  358 + <view class="clocksure" bindtap="sure">确定</view>
  359 + </view>
  360 +</view>
  1 +image {
  2 + width: 100%;
  3 + height: 100%;
  4 +}
  5 +
  6 +.taildot {
  7 + width: 74rpx;
  8 + height: 38rpx;
  9 + background: rgba(140, 145, 152, 1);
  10 + opacity: 0.77;
  11 + border-radius: 180rpx;
  12 + color: #fff;
  13 + font-size: 26rpx;
  14 + text-align: center;
  15 + position: absolute;
  16 + right: 32rpx;
  17 + bottom: 54rpx;
  18 +}
  19 +
  20 +/* 轮播图 */
  21 +
  22 +.swiper_image {
  23 + width: 750rpx;
  24 + height: 320rpx;
  25 + font-size: 0;
  26 + position: relative;
  27 +}
  28 +
  29 +swiper {
  30 + width: 750rpx;
  31 + height: 320rpx;
  32 +}
  33 +
  34 +.swiper_image image {
  35 + width: 100%;
  36 + height: 100%;
  37 +}
  38 +
  39 +.swiper_item_img swiper-item {
  40 + width: 750rpx;
  41 + height: 320rpx;
  42 +}
  43 +
  44 +.swiper_item_img swiper-item image {
  45 + width: 100%;
  46 + height: 100%;
  47 +}
  48 +
  49 +.dots {
  50 + height: 36rpx;
  51 + display: flex;
  52 + flex-direction: row;
  53 + position: absolute;
  54 + left: 50%;
  55 + transform: translateX(-50%);
  56 + bottom: 10rpx;
  57 +}
  58 +
  59 +/*未选中时的小圆点样式 */
  60 +
  61 +.dot {
  62 + width: 20rpx;
  63 + height: 20rpx;
  64 + border-radius: 50%;
  65 + margin-right: 26rpx;
  66 + background-color: #b9c0f7;
  67 +}
  68 +
  69 +/*选中以后的小圆点样式 */
  70 +
  71 +.active {
  72 + width: 16rpx;
  73 + height: 16rpx;
  74 + border-radius: 50%;
  75 + background-color: #fff;
  76 + border: 4rpx solid #fff;
  77 +}
  78 +
  79 +.detailtop {
  80 + width: 686rpx;
  81 + height: 300rpx;
  82 + background: rgba(255, 255, 255, 1);
  83 + box-shadow: 0rpx 6rpx 12rpx rgba(41, 27, 6, 0.1);
  84 + opacity: 1;
  85 + border-radius: 8rpx;
  86 + position: absolute;
  87 + bottom: -268rpx;
  88 + left: 32rpx;
  89 + padding: 36rpx 40rpx;
  90 + box-sizing: border-box;
  91 +}
  92 +
  93 +.tailtopimg {
  94 + width: 36rpx;
  95 + height: 36rpx;
  96 + font-size: 0;
  97 +}
  98 +
  99 +.tailname {
  100 + color: #06121e;
  101 + font-size: 22rpx;
  102 + margin-top: 4rpx;
  103 +}
  104 +
  105 +.tailitem {
  106 + margin-right: 40rpx;
  107 +}
  108 +
  109 +.tailitem:last-child {
  110 + margin-right: 0;
  111 +}
  112 +
  113 +.tailtopleft {
  114 + color: #000;
  115 + font-size: 36rpx;
  116 + font-weight: bold;
  117 +}
  118 +
  119 +/* 菜系 */
  120 +
  121 +.floweritem {
  122 + width: 32rpx;
  123 + height: 32rpx;
  124 + font-size: 0;
  125 + margin-left: 6rpx;
  126 +}
  127 +
  128 +.huaname {
  129 + height: 40rpx;
  130 + border: 1rpx solid rgba(140, 145, 152, 1);
  131 + opacity: 1;
  132 + border-radius: 8rpx;
  133 + color: #8c9198;
  134 + font-size: 24rpx;
  135 + text-align: center;
  136 + line-height: 40rpx;
  137 + margin-left: 12rpx;
  138 + padding: 0 16rpx;
  139 + box-sizing: border-box;
  140 +}
  141 +
  142 +.cai {
  143 + margin-top: 20rpx;
  144 +}
  145 +
  146 +.sanleft {
  147 + width: 36rpx;
  148 + height: 36rpx;
  149 + font-size: 0;
  150 +}
  151 +
  152 +.star {
  153 + margin-left: 16rpx;
  154 +}
  155 +
  156 +.comment {
  157 + margin-top: 32rpx;
  158 +}
  159 +
  160 +.fen {
  161 + color: #000;
  162 + font-size: 28rpx;
  163 + margin-left: 16rpx;
  164 +}
  165 +
  166 +.tiao {
  167 + color: #8c9198;
  168 + font-size: 24rpx;
  169 + margin-left: 16rpx;
  170 +}
  171 +
  172 +.commentone {
  173 + margin-top: 18rpx;
  174 +}
  175 +
  176 +.jianintro {
  177 + width: 686rpx;
  178 + background: rgba(255, 255, 255, 1);
  179 + opacity: 1;
  180 + border-radius: 8rpx;
  181 + margin: 24rpx auto 0;
  182 + margin-top: 300rpx;
  183 + padding: 40rpx;
  184 + box-sizing: border-box;
  185 +}
  186 +
  187 +page {
  188 + background: #fbf8fb;
  189 +}
  190 +
  191 +.jianintrotop {
  192 + color: #000;
  193 + font-size: 28rpx;
  194 + font-weight: bold;
  195 +}
  196 +
  197 +.jiantext {
  198 + color: #707070;
  199 + font-size: 24rpx;
  200 + margin-top: 28rpx;
  201 +}
  202 +
  203 +.bodybox {
  204 + padding: 0 32rpx;
  205 + box-sizing: border-box;
  206 +}
  207 +
  208 +.xiang {
  209 + color: #000;
  210 + font-size: 36rpx;
  211 + font-weight: bold;
  212 +}
  213 +
  214 +.photo {
  215 + margin-top: 24rpx;
  216 +}
  217 +
  218 +.photobox {
  219 + display: flex;
  220 + flex-wrap: wrap;
  221 + align-items: center;
  222 + padding: 40rpx 20rpx 40rpx 40rpx;
  223 + margin-top: 22rpx;
  224 +}
  225 +
  226 +.photoitem {
  227 + width: 188rpx;
  228 + height: 188rpx;
  229 + font-size: 0;
  230 + margin-right: 22rpx;
  231 + margin-bottom: 20rpx;
  232 +}
  233 +
  234 +.morename {
  235 + color: #707070;
  236 + font-size: 24rpx;
  237 + margin-right: 16rpx;
  238 +}
  239 +
  240 +/* 评论 */
  241 +
  242 +.comleft {
  243 + width: 74rpx;
  244 + height: 74rpx;
  245 + font-size: 0;
  246 +}
  247 +
  248 +.comrname {
  249 + color: rgb(103, 118, 138);
  250 + font-size: 28rpx;
  251 +}
  252 +
  253 +.comright {
  254 + margin-left: 12rpx;
  255 + flex: 1;
  256 + width: 518rpx;
  257 +}
  258 +
  259 +.comdate {
  260 + color: #8c9198;
  261 + font-size: 24rpx;
  262 + margin-top: 12rpx;
  263 +}
  264 +
  265 +.fenxia {
  266 + margin-top: 16rpx;
  267 +}
  268 +
  269 +.starone {
  270 + margin-left: 0;
  271 +}
  272 +
  273 +.text {
  274 + color: #06121e;
  275 + font-size: 24rpx;
  276 + margin-top: 26rpx;
  277 + line-height: 1.5;
  278 +}
  279 +
  280 +.boxitem {
  281 + width: 160rpx;
  282 + height: 160rpx;
  283 + font-size: 0;
  284 + margin-right: 18rpx;
  285 +}
  286 +
  287 +.textboximg {
  288 + margin-top: 26rpx;
  289 +}
  290 +
  291 +.clockwrap {
  292 + width: 590rpx;
  293 + height: 500rpx;
  294 + background: rgba(255, 255, 255, 1);
  295 + opacity: 1;
  296 + border-radius: 8rpx;
  297 + position: absolute;
  298 + top: 50%;
  299 + left: 50%;
  300 + transform: translate(-50%, -50%);
  301 +}
  302 +
  303 +.clockwrapy {
  304 + height: 420rpx;
  305 +}
  306 +
  307 +.gantanimg {
  308 + width: 120rpx;
  309 + height: 120rpx;
  310 + font-size: 0;
  311 + margin: 64rpx auto 0;
  312 +}
  313 +
  314 +.shibai {
  315 + color: #06121e;
  316 + font-size: 32rpx;
  317 + text-align: center;
  318 + margin-top: 32rpx;
  319 +}
  320 +
  321 +.shebei {
  322 + color: #8c9198;
  323 + font-size: 24rpx;
  324 + margin-top: 18rpx;
  325 + text-align: center;
  326 +}
  327 +
  328 +.bot {
  329 + padding: 0 76rpx;
  330 + box-sizing: border-box;
  331 + margin-top: 58rpx;
  332 +}
  333 +
  334 +.botleft {
  335 + width: 204rpx;
  336 + height: 60rpx;
  337 + border: 2rpx solid rgba(189, 196, 206, 1);
  338 + opacity: 1;
  339 + border-radius: 8rpx;
  340 + color: #bdc4ce;
  341 + font-size: 24rpx;
  342 + text-align: center;
  343 + line-height: 60rpx;
  344 +}
  345 +
  346 +.botright {
  347 + width: 204rpx;
  348 + height: 60rpx;
  349 + background: rgba(253, 170, 42, 1);
  350 + opacity: 1;
  351 + border-radius: 8rpx;
  352 + color: #fff;
  353 + font-size: 24rpx;
  354 + text-align: center;
  355 + line-height: 60rpx;
  356 + margin-left: 30rpx;
  357 +}
  358 +
  359 +.successname {
  360 + color: #06121e;
  361 + font-size: 32rpx;
  362 + text-align: center;
  363 + margin-top: 44rpx;
  364 +}
  365 +
  366 +.clocksure {
  367 + width: 204rpx;
  368 + height: 60rpx;
  369 + background: rgba(253, 170, 42, 1);
  370 + opacity: 1;
  371 + border-radius: 8rpx;
  372 + color: #fff;
  373 + font-size: 24rpx;
  374 + text-align: center;
  375 + line-height: 60rpx;
  376 + margin: 38rpx auto 0;
  377 +}
  378 +
  379 +/* 评论 */
  380 +
  381 +.phoetopleft {
  382 + width: 36rpx;
  383 + height: 36rpx;
  384 + font-size: 0;
  385 +}
  386 +
  387 +.phonenumber {
  388 + color: #000;
  389 + font-size: 28rpx;
  390 + margin-left: 22rpx;
  391 + font-weight: bold;
  392 +}
  393 +
  394 +.addresstop {
  395 + margin-top: 12rpx;
  396 +}
  397 +
  398 +.addbox {
  399 + width: 686rpx;
  400 + background: rgba(255, 255, 255, 1);
  401 + opacity: 1;
  402 + padding: 12rpx 16rpx 36rpx 36rpx;
  403 + box-sizing: border-box;
  404 +}
  405 +
  406 +.additem {
  407 + padding: 20rpx 0;
  408 + border-bottom: 1rpx solid #f5f5f5;
  409 +}
  410 +
  411 +.shouimg {
  412 + width: 36rpx;
  413 + height: 36rpx;
  414 + font-size: 0;
  415 +}
  416 +
  417 +.timebox {
  418 + color: #8c9198;
  419 + font-size: 28rpx;
  420 + padding-left: 16rpx;
  421 + margin-left: 26rpx;
  422 + border-left: 1rpx solid #f5f5f5;
  423 +}
  424 +
  425 +.yingshi {
  426 + color: #000;
  427 + font-size: 28rpx;
  428 +}
  429 +
  430 +.pricepeopel {
  431 + color: #000;
  432 + font-size: 28rpx;
  433 +}
  434 +.canone{
  435 + font-size: 24rpx;
  436 + margin-top:16rpx;
  437 +}
  438 +.cantwo{
  439 + font-size: 24rpx;
  440 + margin-top:6rpx;
  441 +}
  442 +.cantext{
  443 + color:#707070;
  444 + font-size: 24rpx;
  445 + margin-top:12rpx;
  446 +}
  447 +.yuyueitem{
  448 + padding: 2rpx 38rpx;
  449 + box-sizing: border-box;
  450 + color:#000000;
  451 + font-size: 24rpx;
  452 + border:1rpx solid #8C9198;
  453 + margin-right:16rpx;
  454 + border-radius:8rpx;
  455 +}
  456 +.boitem{
  457 + display:flex;
  458 + flex-direction: column;
  459 + justify-content: center;
  460 + align-content: center;
  461 +
  462 + box-sizing: border-box;
  463 +}
  464 +.botitemtop{
  465 + width:48rpx;
  466 + height:48rpx;
  467 + font-size:0;
  468 + margin:0 auto;
  469 +}
  470 +.botname{
  471 + color:#000000;
  472 + font-size: 22rpx;
  473 + margin-top:5rpx;
  474 +}
  475 +.botfix {
  476 + padding: 14rpx 70rpx;
  477 + box-sizing: border-box;
  478 + background: #fff;
  479 +}
  1 +// pages/usecenter/usecenter.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 + // mycollect(){
  18 + // wx.navigateTo({
  19 + // url: '/pages/collectlsit/collectlist',
  20 + // })
  21 + // },
  22 + mycollect(e){
  23 + let id=e.currentTarget.dataset.id;
  24 + if(id==1){
  25 + wx.navigateTo({
  26 + url: '/pages/collectlist/collectlist',
  27 + })
  28 + }else if(id==2){
  29 + wx.navigateTo({
  30 + url: '/pages/canting/canting',
  31 + })
  32 + } else if (id == 3) {
  33 + wx.navigateTo({
  34 + url: '/pages/morephoto/morephoto',
  35 + })
  36 + } else if (id == 4) {
  37 + wx.navigateTo({
  38 + url: '/pages/mycomment/mycomment',
  39 + })
  40 + } else if (id == 5) {
  41 + wx.navigateTo({
  42 + url: '/pages/recommond/recommond',
  43 + })
  44 + }
  45 +
  46 +
  47 + },
  48 + ziliao(){
  49 + wx.navigateTo({
  50 + url: '/pages/personziliao/personziliao',
  51 + })
  52 + },
  53 + /**
  54 + * 生命周期函数--监听页面初次渲染完成
  55 + */
  56 + onReady: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 生命周期函数--监听页面显示
  62 + */
  63 + onShow: function () {
  64 +
  65 + },
  66 +
  67 + /**
  68 + * 生命周期函数--监听页面隐藏
  69 + */
  70 + onHide: function () {
  71 +
  72 + },
  73 +
  74 + /**
  75 + * 生命周期函数--监听页面卸载
  76 + */
  77 + onUnload: function () {
  78 +
  79 + },
  80 +
  81 + /**
  82 + * 页面相关事件处理函数--监听用户下拉动作
  83 + */
  84 + onPullDownRefresh: function () {
  85 +
  86 + },
  87 +
  88 + /**
  89 + * 页面上拉触底事件的处理函数
  90 + */
  91 + onReachBottom: function () {
  92 +
  93 + },
  94 +
  95 + /**
  96 + * 用户点击右上角分享
  97 + */
  98 + onShareAppMessage: function () {
  99 +
  100 + }
  101 +})
  1 +{
  2 + "navigationBarTitleText": "我的",
  3 + "navigationBarBackgroundColor": "#FDAA2A",
  4 + "navigationBarTextStyle": "white"
  5 +}
  1 +<!-- <view class="setimgtop commonpadding flex">
  2 + <view class='setimg'>
  3 + <image src="/img/detting.png" mode=""></image>
  4 + </view>
  5 +</view> -->
  6 +<view class="shangheng"></view>
  7 +<view class="commonpadding topbu" bindtap="ziliao">
  8 + <view class="tiezitopone flex">
  9 + <view class="tiezitouhead">
  10 + <image src="/img/peopleimg.png" mode=""></image>
  11 + </view>
  12 +
  13 + <view class="zhuyeright">
  14 + <view class="tieziname">我是用户昵称</view>
  15 + <view class="starlist flexone">
  16 + <view class="staritem">
  17 + <image src="/img/star.png"></image>
  18 + </view>
  19 + <view class="staritem">
  20 + <image src="/img/star.png"></image>
  21 + </view>
  22 + <view class="staritem">
  23 + <image src="/img/star.png"></image>
  24 + </view>
  25 + <view class="staritem">
  26 + <image src="/img/star.png"></image>
  27 + </view>
  28 + <view class="staritem">
  29 + <image src="/img/star.png"></image>
  30 + </view>
  31 + </view>
  32 + </view>
  33 +
  34 + </view>
  35 + <view class="text">认下入龙中还委角年史级素油据动。求北厂风层单北群建结明儿线部时。国们五路会主研话义将党深见里资报。</view>
  36 +
  37 +
  38 +</view>
  39 +
  40 +
  41 +<view class="jumplist commonpadding">
  42 + <view class="jumpitem flextwo" bindtap='mycollect' data-id="1">
  43 + <view class='jumpleft flexone'>
  44 + <view class="jumpimg">
  45 + <image src="/img/mycollect.png" mode=""></image>
  46 + </view>
  47 + <view class="jumpname">我的收藏</view>
  48 + </view>
  49 + <view class="ordertopright">
  50 + <image src="/img/leftrow.png " mode=""></image>
  51 + </view>
  52 + </view>
  53 + <view class="jumpitem flextwo" bindtap="mycollect" data-id="2">
  54 + <view class='jumpleft flexone'>
  55 + <view class="jumpimg">
  56 + <image src="/img/qucanting.png" mode=""></image>
  57 + </view>
  58 + <view class="jumpname">去过的餐厅</view>
  59 + </view>
  60 + <view class="ordertopright">
  61 + <image src="/img/leftrow.png " mode=""></image>
  62 + </view>
  63 + </view>
  64 + <view class="jumpitem flextwo" bindtap="mycollect" data-id="3">
  65 + <view class='jumpleft flexone'>
  66 + <view class="jumpimg">
  67 + <image src="/img/xiangce.png" mode=""></image>
  68 + </view>
  69 + <view class="jumpname">我的相册</view>
  70 + </view>
  71 + <view class="ordertopright">
  72 + <image src="/img/leftrow.png " mode=""></image>
  73 + </view>
  74 + </view>
  75 +
  76 + <view class="jumpitem flextwo" bindtap="mycollect" data-id="4">
  77 + <view class='jumpleft flexone'>
  78 + <view class="jumpimg">
  79 + <image src="/img/pinglun.png" mode=""></image>
  80 + </view>
  81 + <view class="jumpname">我的评论</view>
  82 + </view>
  83 + <view class="ordertopright">
  84 + <image src="/img/leftrow.png " mode=""></image>
  85 + </view>
  86 + </view>
  87 +
  88 + <view class="jumpitem flextwo" bindtap="mycollect" data-id="5">
  89 + <view class='jumpleft flexone'>
  90 + <view class="jumpimg">
  91 + <image src="/img/tuijian.png" mode=""></image>
  92 + </view>
  93 + <view class="jumpname">我的推荐</view>
  94 + </view>
  95 + <view class="ordertopright">
  96 + <image src="/img/leftrow.png " mode=""></image>
  97 + </view>
  98 + </view>
  99 +
  100 +
  101 +
  102 +</view>
  1 +image {
  2 + width: 100%;
  3 + height: 100%;
  4 +}
  5 +page{
  6 + background: #fff;
  7 +}
  8 +
  9 +.shangheng {
  10 + width: 750rpx;
  11 + height: 144rpx;
  12 + background: #fdaa2a;
  13 + position: relative;
  14 +}
  15 +.text{
  16 + width:598rpx;
  17 + height:82rpx;
  18 + margin:0 auto 0;
  19 + color:#8C9198;
  20 + font-size: 24rpx;
  21 + display: -webkit-box;
  22 +-webkit-box-orient: vertical;
  23 +-webkit-line-clamp: 2;
  24 +line-height:1.5;
  25 +overflow: hidden;
  26 +}
  27 +.starlist{
  28 + martin-top:4rpx;
  29 +}
  30 +.staritem{
  31 + width:32rpx;
  32 + height:32rpx;
  33 + font-size: 0;
  34 + margin-right:5rpx;
  35 +}
  36 +
  37 +.topbu {
  38 + position: absolute;
  39 + top:44rpx;
  40 + left: 32rpx;
  41 + width: 686rpx;
  42 + height: 308rpx;
  43 + background: rgba(255, 255, 255, 1);
  44 + box-shadow: 0rpx 4rpx 12rpx rgba(82, 67, 2, 0.18);
  45 + opacity: 1;
  46 + border-radius: 8rpx;
  47 +}
  48 +
  49 +
  50 +
  51 +.setimgtop {
  52 + justify-content: flex-end;
  53 +}
  54 +
  55 +.setimg {
  56 + width: 40rpx;
  57 + height: 40rpx;
  58 + font-size: 0;
  59 +}
  60 +
  61 +.shen {
  62 + color: #3d454c;
  63 + font-size: 28rpx;
  64 + font-weight: bold;
  65 + margin-left: 16rpx;
  66 + margin-top: 20rpx;
  67 +}
  68 +
  69 +.jumpitem {
  70 + padding: 32rpx 0;
  71 + box-sizing: border-box;
  72 + border-bottom: 1rpx solid #f5f5f5;
  73 +}
  74 +
  75 +.jumpitem:last-child {
  76 + border-bottom: none;
  77 +}
  78 +
  79 +.jumplist {
  80 + padding: 0 32rpx;
  81 + margin-top: 240rpx;
  82 +}
  83 +
  84 +.jumpname {
  85 + color: #08121f;
  86 + font-size: 28rpx;
  87 + margin-left: 20rpx;
  88 +}
  89 +
  90 +.jumpimg {
  91 + width: 40rpx;
  92 + height: 40rpx;
  93 + font-size: 0;
  94 +}
  95 +
  96 +.peiitem {
  97 + display: flex;
  98 + flex-direction: column;
  99 + justify-content: center;
  100 + align-items: center;
  101 +}
  102 +
  103 +.peitop {
  104 + width: 56rpx;
  105 + height: 56rpx;
  106 + font-size: 0;
  107 +}
  108 +
  109 +.peilist {
  110 + padding: 24rpx 0;
  111 + box-sizing: border-box;
  112 +}
  113 +
  114 +.peiname {
  115 + color: #061220;
  116 + font-size: 28rpx;
  117 + margin-top: 10rpx;
  118 +}
  119 +
  120 +.commonpadding {
  121 + padding-bottom: 0;
  122 +}
  123 +
  124 +.renzhengleft {
  125 + width: 32rpx;
  126 + height: 32rpx;
  127 + font-size: 0;
  128 +}
  129 +
  130 +.renzheng {
  131 + margin-left: 16rpx;
  132 + margin-top: 20rpx;
  133 +}
  134 +
  135 +.yirenz {
  136 + color: #c29445;
  137 + font-size: 28rpx;
  138 + margin-left: 12rpx;
  139 +}
  140 +
  141 +.tiezitopone {
  142 + background: #fff;
  143 + padding: 32rpx 0;
  144 + box-sizing: border-box;
  145 +
  146 +}
  147 +
  148 +.content {
  149 + padding-bottom: 0;
  150 +}
  151 +
  152 +.tieziitem {
  153 + padding: 32rpx 0;
  154 + border-bottom: 1rpx solid #f5f5f5;
  155 +}
  156 +
  157 +.tieziitem:last-child {
  158 + border-bottom: none;
  159 +}
  160 +
  161 +.zhuyhu {
  162 + margin-top: 16rpx;
  163 +}
  164 +
  165 +.useritem {
  166 + /* height:40rpx;
  167 + line-height: 40rpx; */
  168 + background: rgba(255, 255, 255, 1);
  169 + border-radius: 18rpx;
  170 + border: 2rpx solid rgba(238, 238, 238, 1);
  171 + color: #c29445;
  172 + font-size: 20rpx;
  173 + text-align: center;
  174 + margin-right: 16rpx;
  175 + padding: 0rpx 28rpx;
  176 + box-sizing: border-box;
  177 +}
  178 +
  179 +.userkind {
  180 + display: flex;
  181 + align-items: center;
  182 + margin-top: 24rpx;
  183 +}
  184 +
  185 +.banguser {
  186 + margin-top: 0;
  187 + margin-left: 16rpx;
  188 +}
  189 +
  190 +.tieziname {
  191 + color: #3d454c;
  192 + font-size: 32rpx;
  193 + font-weight: bold;
  194 +
  195 +}
  196 +
  197 +.tiezitou {
  198 + width: 60rpx;
  199 + height: 60rpx;
  200 + font-size: 0;
  201 +}
  202 +
  203 +.tiezitouhead {
  204 + width: 128rpx;
  205 + height: 128rpx;
  206 + font-size: 0;
  207 +}
  208 +.ordertopright{
  209 + width:15rpx;
  210 + height:20rpx;
  211 + font-size: 0;
  212 +}
  213 +.zhuyeright {
  214 + margin-left: 28rpx;
  215 + margin-top:22rpx;
  216 +}
  217 +
  218 +.vipleft {
  219 + display: flex;
  220 + align-items: center;
  221 + justify-content: center;
  222 + width: 100rpx;
  223 + height: 40rpx;
  224 + background: linear-gradient(90deg, rgba(244, 210, 151, 1) 0%, rgba(252, 191, 117, 1) 100%);
  225 + border-radius: 20rpx;
  226 + margin-left: 16rpx;
  227 +}
  228 +
  229 +.vipimg {
  230 + width: 24rpx;
  231 + height: 20rpx;
  232 + font-size: 0;
  233 +}
  234 +
  235 +.vipname {
  236 + color: #784700;
  237 + font-size: 22rpx;
  238 +}
  239 +
  240 +.tiezibottomitem {
  241 + width: 750rpx;
  242 + display: flex;
  243 + flex-direction: column;
  244 + align-items: center;
  245 + justify-content: center;
  246 +}
  247 +
  248 +.tiezibottom {
  249 + display: flex;
  250 + align-items: center;
  251 + width: 750rpx;
  252 + justify-content: space-around;
  253 + padding: 10rpx;
  254 + position: fixed;
  255 + bottom: 0;
  256 + left: 0;
  257 +}
  258 +
  259 +.tienamebot {
  260 + color: #5b5e63;
  261 + font-size: 20rpx;
  262 + margin-top: 8rpx;
  263 + text-align: center;
  264 +}
  1 +{
  2 + "description": "项目配置文件",
  3 + "packOptions": {
  4 + "ignore": []
  5 + },
  6 + "setting": {
  7 + "urlCheck": true,
  8 + "es6": true,
  9 + "postcss": true,
  10 + "minified": true,
  11 + "newFeature": true,
  12 + "autoAudits": false,
  13 + "coverView": true,
  14 + "showShadowRootInWxmlPanel": true,
  15 + "scopeDataCheck": false
  16 + },
  17 + "compileType": "miniprogram",
  18 + "libVersion": "2.10.1",
  19 + "appid": "wx5e8a4666d479f8da",
  20 + "projectname": "%E7%BE%8E%E6%97%A5%E6%97%A5%E6%9C%AC",
  21 + "debugOptions": {
  22 + "hidedInDevtools": []
  23 + },
  24 + "isGameTourist": false,
  25 + "simulatorType": "wechat",
  26 + "simulatorPluginLibVersion": {},
  27 + "condition": {
  28 + "search": {
  29 + "current": -1,
  30 + "list": []
  31 + },
  32 + "conversation": {
  33 + "current": -1,
  34 + "list": []
  35 + },
  36 + "plugin": {
  37 + "current": -1,
  38 + "list": []
  39 + },
  40 + "game": {
  41 + "currentL": -1,
  42 + "list": []
  43 + },
  44 + "gamePlugin": {
  45 + "current": -1,
  46 + "list": []
  47 + },
  48 + "miniprogram": {
  49 + "current": -1,
  50 + "list": [
  51 + {
  52 + "id": -1,
  53 + "name": "我",
  54 + "pathName": "pages/usecenter/usecenter",
  55 + "query": "",
  56 + "scene": null
  57 + },
  58 + {
  59 + "id": -1,
  60 + "name": "首页",
  61 + "pathName": "pages/homepage/homepage",
  62 + "query": "",
  63 + "scene": null
  64 + },
  65 + {
  66 + "id": -1,
  67 + "name": "店铺详情",
  68 + "pathName": "pages/shopdetail/shopdetail",
  69 + "query": "",
  70 + "scene": null
  71 + },
  72 + {
  73 + "id": -1,
  74 + "name": "评论",
  75 + "pathName": "pages/morecomment/morecomment",
  76 + "query": "",
  77 + "scene": null
  78 + },
  79 + {
  80 + "id": -1,
  81 + "name": "我的",
  82 + "pathName": "pages/usecenter/usecenter",
  83 + "query": "",
  84 + "scene": null
  85 + },
  86 + {
  87 + "id": -1,
  88 + "name": "我的评论",
  89 + "pathName": "pages/mycomment/mycomment",
  90 + "query": "",
  91 + "scene": null
  92 + },
  93 + {
  94 + "id": -1,
  95 + "name": "我的收藏",
  96 + "pathName": "pages/collectlist/collectlist",
  97 + "scene": null
  98 + }
  99 + ]
  100 + }
  101 + }
  102 +}
  1 +{
  2 + "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
  3 + "rules": [{
  4 + "action": "allow",
  5 + "page": "*"
  6 + }]
  7 +}
  1 +const formatTime = date => {
  2 + const year = date.getFullYear()
  3 + const month = date.getMonth() + 1
  4 + const day = date.getDate()
  5 + const hour = date.getHours()
  6 + const minute = date.getMinutes()
  7 + const second = date.getSeconds()
  8 +
  9 + return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
  10 +}
  11 +
  12 +const formatNumber = n => {
  13 + n = n.toString()
  14 + return n[1] ? n : '0' + n
  15 +}
  16 +
  17 +module.exports = {
  18 + formatTime: formatTime
  19 +}