正在显示
100 个修改的文件
包含
2781 行增加
和
0 行删除
app.js
0 → 100644
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 | +}) |
app.json
0 → 100644
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 | +} |
app.wxss
0 → 100644
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 | +} |
img/address.png
0 → 100644
1.4 KB
img/banke.png
0 → 100644
995 字节
img/bannerimg.png
0 → 100644
360.8 KB
img/chenggong_img.png
0 → 100644
18.5 KB
img/chuanphoto.png
0 → 100644
1.4 KB
img/clocksuccess.png
0 → 100644
4.6 KB
img/collect.png
0 → 100644
1.6 KB
img/dazan.png
0 → 100644
1.2 KB
img/delimg.png
0 → 100644
573 字节
img/deng.png
0 → 100644
214.1 KB
img/detailimg.png
0 → 100644
554.1 KB
img/dianhua_icon.png
0 → 100644
1.3 KB
img/dingwei_icon.png
0 → 100644
1.5 KB
img/duigou.png
0 → 100644
1000 字节
img/fenxia.png
0 → 100644
231.6 KB
img/fenxing.png
0 → 100644
575 字节
img/flower.png
0 → 100644
909 字节
img/gantan.png
0 → 100644
3.8 KB
img/graycollect.png
0 → 100644
1.5 KB
img/heixiala.png
0 → 100644
236 字节
img/hua.png
0 → 100644
1.6 KB
img/huangweizhi.png
0 → 100644
872 字节
img/huori.png
0 → 100644
869 字节
img/index.png
0 → 100644
1.1 KB
img/indexactive.png
0 → 100644
1.6 KB
img/jiang.png
0 → 100644
5.8 KB
img/juxia.png
0 → 100644
223.6 KB
img/kele.png
0 → 100644
11.6 KB
img/kuai.png
0 → 100644
1.5 KB
img/kuaizi.png
0 → 100644
925 字节
img/leftrow.png
0 → 100644
507 字节
img/meitu.png
0 → 100644
7.6 KB
img/mycollect.png
0 → 100644
1.8 KB
img/noxing.png
0 → 100644
862 字节
img/peopleimg.png
0 → 100644
5.5 KB
img/person.png
0 → 100644
1.8 KB
img/personactive.png
0 → 100644
2.1 KB
img/photo.png
0 → 100644
52.6 KB
img/pingfenshi.png
0 → 100644
830 字节
img/pinglun.png
0 → 100644
939 字节
img/pingtiao.png
0 → 100644
602 字节
img/qucanting.png
0 → 100644
1.6 KB
img/renjun_icon.png
0 → 100644
762 字节
img/sanxing.png
0 → 100644
1.2 KB
img/search.png
0 → 100644
1.1 KB
img/share.png
0 → 100644
1.3 KB
img/smallzan.png
0 → 100644
648 字节
img/star.png
0 → 100644
636 字节
img/touxiang.png
0 → 100644
2.7 KB
img/tuijian.png
0 → 100644
1.7 KB
img/video.png
0 → 100644
1.1 KB
img/writedian.png
0 → 100644
1.0 KB
img/xiala.png
0 → 100644
239 字节
img/xiangce.png
0 → 100644
1.2 KB
img/xiaozan.png
0 → 100644
648 字节
img/xin.png
0 → 100644
1.2 KB
img/yourow.png
0 → 100644
512 字节
img/zan.png
0 → 100644
994 字节
pages/canting/canting.js
0 → 100644
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 | +}) |
pages/canting/canting.json
0 → 100644
pages/canting/canting.wxml
0 → 100644
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> |
pages/canting/canting.wxss
0 → 100644
pages/collectlist/collectlist.js
0 → 100644
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 | +}) |
pages/collectlist/collectlist.json
0 → 100644
pages/collectlist/collectlist.wxml
0 → 100644
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 | + |
pages/collectlist/collectlist.wxss
0 → 100644
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 | +} |
pages/comment/comment.js
0 → 100644
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 | +}) |
pages/comment/comment.json
0 → 100644
pages/comment/comment.wxml
0 → 100644
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> |
pages/comment/comment.wxss
0 → 100644
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 | +} |
pages/commentdetail/commentdetail.js
0 → 100644
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 | +}) |
pages/commentdetail/commentdetail.json
0 → 100644
pages/commentdetail/commentdetail.wxml
0 → 100644
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> |
pages/commentdetail/commentdetail.wxss
0 → 100644
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 | +} |
pages/examine/examine.js
0 → 100644
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 | +}) |
pages/examine/examine.json
0 → 100644
pages/examine/examine.wxml
0 → 100644
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> |
pages/examine/examine.wxss
0 → 100644
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 | +} |
pages/homepage/homepage.js
0 → 100644
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 | +}) |
pages/homepage/homepage.json
0 → 100644
pages/homepage/homepage.wxml
0 → 100644
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> |
pages/homepage/homepage.wxss
0 → 100644
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 | +} |
pages/index/index.js
0 → 100644
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 | +}) |
pages/index/index.json
0 → 100644
pages/index/index.wxml
0 → 100644
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> |
pages/index/index.wxss
0 → 100644
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 | +} |
pages/login/login.js
0 → 100644
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 | +}) |
pages/login/login.json
0 → 100644
pages/login/login.wxml
0 → 100644
pages/login/login.wxss
0 → 100644
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 | +} |
pages/logs/logs.js
0 → 100644
pages/logs/logs.json
0 → 100644
pages/logs/logs.wxml
0 → 100644
pages/logs/logs.wxss
0 → 100644
pages/morecomment/morecomment.js
0 → 100644
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 | +}) |
pages/morecomment/morecomment.json
0 → 100644
pages/morecomment/morecomment.wxml
0 → 100644
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> |
-
请 注册 或 登录 后发表评论