正在显示
62 个修改的文件
包含
4716 行增加
和
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 | + | ||
37 | + | ||
38 | + }, | ||
39 | + | ||
40 | + post: function (url, data, headerParams, showLoad) { | ||
41 | + wx.showNavigationBarLoading() | ||
42 | + var promise = new Promise((resolve, reject) => { | ||
43 | + //init | ||
44 | + let that = this; | ||
45 | + let postData = data; | ||
46 | + let baseUrl = 'https://winesbook.cn/api/'; | ||
47 | + //网络请求 | ||
48 | + let header = { | ||
49 | + 'XX-Device-Type': 'wxapp', | ||
50 | + 'XX-Token': wx.getStorageSync("token") || '' | ||
51 | + } | ||
52 | + header = Object.assign(header, headerParams) | ||
53 | + //网络请求 | ||
54 | + wx.request({ | ||
55 | + url: baseUrl + url, | ||
56 | + data: postData, | ||
57 | + method: 'POST', | ||
58 | + header: header, | ||
59 | + | ||
60 | + success: function (res) { //返回取得的数据 | ||
61 | + if (res.data.code == '20000') { | ||
62 | + resolve(res.data.data); | ||
63 | + } else if (res.data.code == '201') { | ||
64 | + resolve(res.data); | ||
65 | + } else { | ||
66 | + console.log(res) | ||
67 | + reject(res) | ||
68 | + } | ||
69 | + | ||
70 | + // else if (res.data.code == '42002') { | ||
71 | + | ||
72 | + // } | ||
73 | + // setTimeout(function () { | ||
74 | + | ||
75 | + // wx.hideNavigationBarLoading() | ||
76 | + // }, 600) | ||
77 | + }, | ||
78 | + fail: function (e) { | ||
79 | + reject('网络出错'); | ||
80 | + // wx.hideLoading() | ||
81 | + wx.hideNavigationBarLoading() | ||
82 | + }, | ||
83 | + complete: function () { | ||
84 | + wx.hideNavigationBarLoading() | ||
85 | + }, | ||
86 | + }) | ||
87 | + }); | ||
88 | + return promise; | ||
89 | + }, | ||
90 | + | ||
91 | + nowDate() { | ||
92 | + let date = new Date(); | ||
93 | + let month = date.getMonth() + 1; | ||
94 | + let day = date.getDate(); | ||
95 | + return date.getFullYear() + '年' + (month > 9 ? month : ('0' + month)) + '月' + (day > 9 ? day : ('0' + day)) + '日'; | ||
96 | + }, | ||
97 | + | ||
98 | + newnowDate() { | ||
99 | + let date = new Date(); | ||
100 | + let month = date.getMonth() + 1; | ||
101 | + let day = date.getDate(); | ||
102 | + return date.getFullYear() + '-' + (month > 9 ? month : ('0' + month)) + '-' + (day > 9 ? day : ('0' + day)); | ||
103 | + }, | ||
104 | + initDate(a) { | ||
105 | + let date1 = new Date(); | ||
106 | + let time1 = date1.getFullYear() + "年" + (date1.getMonth() + 1) + "月" + date1.getDate() + '日'; | ||
107 | + let date2 = new Date(date1); | ||
108 | + date2.setDate(date1.getDate() + a); | ||
109 | + let time2 = date2.getFullYear() + "年" + (date2.getMonth() + 1) + "月" + date2.getDate() + '日'; | ||
110 | + return time2; | ||
111 | + }, | ||
112 | + globalData: { | ||
113 | + userInfo: null, | ||
114 | + url:'http://winesbook.cn/static/images_mini/' | ||
115 | + } | ||
116 | +}) |
app.json
0 → 100644
1 | +{ | ||
2 | + "pages": [ | ||
3 | + "pages/login/login", | ||
4 | + "pages/homapage/homepage", | ||
5 | + "pages/find/find", | ||
6 | + "pages/index/index", | ||
7 | + "pages/logs/logs", | ||
8 | + "pages/mine/mine", | ||
9 | + "pages/myblock/personpage/personpage", | ||
10 | + "pages/homeblock/search/search", | ||
11 | + "pages/homeblock/brandlist/brandlist", | ||
12 | + "pages/homeblock/brandpage/brandpage", | ||
13 | + "pages/homeblock/companyintro/companyintro", | ||
14 | + "pages/homeblock/zhinengselect/zhinengselect", | ||
15 | + "pages/homeblock/shipaiimg/shipaiimg", | ||
16 | + "pages/homeblock/guanimg/guanimg", | ||
17 | + "pages/homeblock/shortvideo/shortvideo", | ||
18 | + "pages/homeblock/niangjiuteacher/niangjiuteacher", | ||
19 | + "pages/homeblock/jiuzidian/jiuzidian", | ||
20 | + "pages/homeblock/evalute/evalute", | ||
21 | + "pages/homeblock/evalutecontent/evalutecontent", | ||
22 | + "pages/myblock/zhanghaoyuanquan/zhanghaoyuanquan", | ||
23 | + "pages/myblock/zhanghaobangding/zhanghaobangding", | ||
24 | + "pages/myblock/huanbangshouji/huanbangshouji", | ||
25 | + "pages/myblock/guanzhu/guanzhu", | ||
26 | + "pages/myblock/pinglun/pinglun", | ||
27 | + | ||
28 | + "pages/enteryanzheng/enteryanzheng", | ||
29 | + "pages/forgetmima/forgetmima", | ||
30 | + "pages/wanshangeren/wanshangeren", | ||
31 | + "pages/peopleinfo/peopleinfo" | ||
32 | + | ||
33 | + ], | ||
34 | + "window": { | ||
35 | + "backgroundTextStyle": "light", | ||
36 | + "navigationBarBackgroundColor": "#fff", | ||
37 | + "navigationBarTitleText": "", | ||
38 | + "navigationBarTextStyle": "black" | ||
39 | + }, | ||
40 | + "tabBar": { | ||
41 | + "selectedColor": "#FF8839", | ||
42 | + "list": [ | ||
43 | + { | ||
44 | + "pagePath": "pages/homapage/homepage", | ||
45 | + "text": "酒字典", | ||
46 | + "selectedColor": "#E81825", | ||
47 | + "iconPath": "img/nav_01x.png", | ||
48 | + "selectedIconPath": "img/nav_05x.png" | ||
49 | + }, | ||
50 | + { | ||
51 | + "pagePath": "pages/find/find", | ||
52 | + "text": "发现", | ||
53 | + "selectedColor": "#E81825", | ||
54 | + "iconPath": "img/nav_06x.png", | ||
55 | + "selectedIconPath": "img/nav_02x.png" | ||
56 | + }, | ||
57 | + { | ||
58 | + "pagePath": "pages/mine/mine", | ||
59 | + "text": "我的", | ||
60 | + "selectedColor": "#E81825", | ||
61 | + "iconPath": "img/nav_03x.png", | ||
62 | + "selectedIconPath": "img/nav_04x.png" | ||
63 | + } | ||
64 | + ] | ||
65 | + }, | ||
66 | + "sitemapLocation": "sitemap.json" | ||
67 | +} |
app.wxss
0 → 100644
1 | + | ||
2 | + | ||
3 | + | ||
4 | +@font-face {font-family: "iconfont"; | ||
5 | + src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623'); /* IE9 */ | ||
6 | + src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
7 | + url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAJ4AAsAAAAABiAAAAItAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAooRwE2AiQDCAsGAAQgBYRtBzEbbgXInpo8CQBIEAKw5OZZAMTD9/v9b+1zz1NNXxTzaBJFExlPJNEqFptWpnvEM0P7d//nMgdo757P88fyFNGAfSG/5fSl6QDVnJ5SE3ITbm/9Qwq8v752fZ5r6iXQgeQHmmsHRSUlBdDeeEAD7MLRkW0gQ98wdsELfE6gaU5P6ejxkxtoyux1gbhx1bOgWYjKMivUhWrD0Sxeqainx+kDXkbfj792RZ2kUrBbTl1auzD7wSkpHpWPXAwIMQI6XUGBLUAmzjVmT6gIxlU0s1VL4FiNwQ9lGXjEUZ2C/XV2fRvMwFzwg7dWgASPRRluT1KAqN49Re6l1+3sX7v38OPlfx0EKN+ntcoB8qvg1rf+6+39V29l8PFPvkfh8n02zA/q6/mC91cPHMiG1nanrKkbx5Pqftuamijh4NDvVNvkZMVQN5ngr5nNUKhbITO7BRUte1BVdwBNm21Pt4yIisgNbPIJEPq+kHS9RqHvm8zsDyqm/lDVjwJNF2J0Zcu6uNo8cpMsJRftJwwcTo3r1XbceEVeEVuS10b8HUkeJHC8bUe5sKWUZIkd+b03UTVohBPcgNcojhkz4ZAcHfiq2XS4/VKTQgOHE2g7QhCLIi5ke4ICDpYywWTVrnz+CvEUYhbp6Kur3iEiF8yOxgZGA8itKR3U9yjv5O55JpQykCFYAm3AIhKLMZQ1LwoRhxrwJ6QzU0NnlBlqGmxvSf7uFDTZ9hTO3ELt2lUrVS4AAAA=') format('woff2'), | ||
8 | + url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.woff?t=1557490149623') format('woff'), | ||
9 | + url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.ttf?t=1557490149623') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ | ||
10 | + url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.svg?t=1557490149623#iconfont') format('svg'); /* iOS 4.1- */ | ||
11 | +} | ||
12 | + | ||
13 | + | ||
14 | +.iconfont { | ||
15 | + font-family: "iconfont" !important; | ||
16 | + font-size: 16px; | ||
17 | + font-style: normal; | ||
18 | + -webkit-font-smoothing: antialiased; | ||
19 | + -moz-osx-font-smoothing: grayscale; | ||
20 | +} | ||
21 | + | ||
22 | +.icon-jiantou:before { | ||
23 | + content: "\e63f"; | ||
24 | +} | ||
25 | + | ||
26 | +image{ | ||
27 | + width:100%; | ||
28 | + height:100%; | ||
29 | +} | ||
30 | +/* 遮罩层 */ | ||
31 | + | ||
32 | +.register{ | ||
33 | + width: 100%; | ||
34 | + height: 100%; | ||
35 | + background-color: rgba(0,0,0,0.5); | ||
36 | + position:fixed; | ||
37 | + top:180rpx; | ||
38 | + | ||
39 | + left:0; | ||
40 | + right:0; | ||
41 | + z-index: 5; | ||
42 | + } | ||
43 | + | ||
44 | + /* 箭头样式 */ | ||
45 | + | ||
46 | + .listrow{ | ||
47 | + color:#999999; | ||
48 | + font-size: 24rpx; | ||
49 | +} | ||
50 | + | ||
51 | +/* 星星图片 */ | ||
52 | + .starimg{ | ||
53 | + width:34rpx; | ||
54 | + height:32rpx; | ||
55 | + font-size: 0 | ||
56 | + } | ||
57 | + | ||
58 | + .redrow{ | ||
59 | + width:12rpx; | ||
60 | + height:25rpx; | ||
61 | + font-size: 0 | ||
62 | +} | ||
63 | + | ||
64 | +/* 关注 */ | ||
65 | + | ||
66 | +.atten{ | ||
67 | + width:100rpx; | ||
68 | + height:50rpx; | ||
69 | + background:rgba(232,24,37,1); | ||
70 | + border-radius:2rpx; | ||
71 | + font-size: 26rpx; | ||
72 | + color:#fff; | ||
73 | + text-align: center; | ||
74 | + line-height: 50rpx; | ||
75 | + } | ||
76 | + | ||
77 | + /* 上三角 */ | ||
78 | + .boxright{ | ||
79 | + width:26rpx; | ||
80 | + height:15rpx; | ||
81 | + font-size: 0 | ||
82 | + } |
img/aicon66.png
0 → 100644
983 字节
img/aicon_27@2x.png
0 → 100644
1.3 KB
img/aicon_28@2x.png
0 → 100644
1.3 KB
img/aicon_38@2x.png
0 → 100644
1.3 KB
img/aicon_46x.png
0 → 100644
1.2 KB
img/aicon_47x.png
0 → 100644
1.3 KB
img/aicon_61.png
0 → 100644
1.2 KB
img/nav_01x.png
0 → 100644
1.4 KB
img/nav_02x.png
0 → 100644
1.8 KB
img/nav_03x.png
0 → 100644
1.5 KB
img/nav_04x.png
0 → 100644
1.5 KB
img/nav_05x.png
0 → 100644
1.4 KB
img/nav_06x.png
0 → 100644
1.8 KB
pages/enteryanzheng/enteryanzheng.js
0 → 100644
1 | +// pages/enteryanzheng/enteryanzheng.js | ||
2 | +let interval = null; | ||
3 | +const app=getApp() | ||
4 | +Page({ | ||
5 | + | ||
6 | + /** | ||
7 | + * 页面的初始数据 | ||
8 | + */ | ||
9 | + data: { | ||
10 | + Length: 6, //输入框个数 | ||
11 | + isFocus: true, //聚焦 | ||
12 | + Value: "", //输入的内容 | ||
13 | + ispassword: true, | ||
14 | + currentTime: 60, | ||
15 | + time:'', | ||
16 | + phonenum:'' | ||
17 | + | ||
18 | + }, | ||
19 | + | ||
20 | + /** | ||
21 | + * 生命周期函数--监听页面加载 | ||
22 | + */ | ||
23 | + onLoad: function (options) { | ||
24 | + console.log(options.phonenum) | ||
25 | + this.setData({ | ||
26 | + phonenum:options.phonenum | ||
27 | + }) | ||
28 | + | ||
29 | + this.getcode() | ||
30 | + }, | ||
31 | + | ||
32 | + //获取验证码 | ||
33 | + getcode(){ | ||
34 | + let that = this; | ||
35 | + let currentTime = that.data.currentTime; | ||
36 | + that.setData({ | ||
37 | + disable: true | ||
38 | + }) | ||
39 | + interval = setInterval(function () { | ||
40 | + currentTime--; | ||
41 | + that.setData({ | ||
42 | + time: currentTime + 's后再次发送', | ||
43 | + | ||
44 | + }) | ||
45 | + if (currentTime <= 0) { | ||
46 | + clearInterval(interval) | ||
47 | + that.setData({ | ||
48 | + time: '重新发送', | ||
49 | + currentTime: 61, | ||
50 | + disable: false | ||
51 | + }) | ||
52 | + } | ||
53 | + }, 1000) | ||
54 | + | ||
55 | + | ||
56 | + var url = '/user/Profile/getCode'; | ||
57 | + var params = { | ||
58 | + mobile: that.data.phonenum, | ||
59 | + | ||
60 | + } | ||
61 | + | ||
62 | + app.post(url, params).then((res) => { | ||
63 | + console.log(res); | ||
64 | + if (res.code) { | ||
65 | + | ||
66 | + } | ||
67 | + | ||
68 | + }).catch((err) => { | ||
69 | + console.log(err) | ||
70 | + wx.showToast({ | ||
71 | + title: err.ResultMsg, | ||
72 | + icon: "none" | ||
73 | + }) | ||
74 | + }) | ||
75 | + }, | ||
76 | + | ||
77 | + entercode(){ | ||
78 | + if (this.data.time == '重新发送'){ | ||
79 | + this.getcode() | ||
80 | + } | ||
81 | + }, | ||
82 | + | ||
83 | + Focus(e) { | ||
84 | + var that = this; | ||
85 | + let arr=that.data.arr; | ||
86 | + console.log(e.detail.value.length); | ||
87 | + | ||
88 | + // arr.push(e.detail.value); | ||
89 | + // console.log(arr.length) | ||
90 | + var inputValue = e.detail.value; | ||
91 | + that.setData({ | ||
92 | + Value: inputValue, | ||
93 | + len: e.detail.value.length | ||
94 | + }) | ||
95 | + | ||
96 | + if (that.data.Value.length==6){ | ||
97 | + that.yanzhenglogin() | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + }, | ||
102 | + | ||
103 | + yanzhenglogin(){ | ||
104 | + let that=this; | ||
105 | + var url = '/user/Profile/bind_mobile'; | ||
106 | + var params = { | ||
107 | + mobile: that.data.phonenum, | ||
108 | + verification_code:that.data.Value | ||
109 | + } | ||
110 | + | ||
111 | + app.post(url, params).then((res) => { | ||
112 | + console.log(res); | ||
113 | + wx.setStorageSync('token', res.token) | ||
114 | + wx.switchTab({ | ||
115 | + url: '/pages/homapage/homepage', | ||
116 | + }) | ||
117 | + | ||
118 | + }).catch((err) => { | ||
119 | + console.log(err) | ||
120 | + | ||
121 | + wx.showToast({ | ||
122 | + title: err.data.msg, | ||
123 | + icon: "none" | ||
124 | + }) | ||
125 | + }) | ||
126 | + }, | ||
127 | + Tap() { | ||
128 | + var that = this; | ||
129 | + that.setData({ | ||
130 | + isFocus: true, | ||
131 | + }) | ||
132 | + }, | ||
133 | + formSubmit(e) { | ||
134 | + console.log(e.detail.value.password); | ||
135 | + }, | ||
136 | + | ||
137 | + | ||
138 | + /** | ||
139 | + * 生命周期函数--监听页面初次渲染完成 | ||
140 | + */ | ||
141 | + onReady: function () { | ||
142 | + | ||
143 | + }, | ||
144 | + | ||
145 | + /** | ||
146 | + * 生命周期函数--监听页面显示 | ||
147 | + */ | ||
148 | + onShow: function () { | ||
149 | + | ||
150 | + }, | ||
151 | + | ||
152 | + /** | ||
153 | + * 生命周期函数--监听页面隐藏 | ||
154 | + */ | ||
155 | + onHide: function () { | ||
156 | + | ||
157 | + }, | ||
158 | + | ||
159 | + /** | ||
160 | + * 生命周期函数--监听页面卸载 | ||
161 | + */ | ||
162 | + onUnload: function () { | ||
163 | + | ||
164 | + }, | ||
165 | + | ||
166 | + /** | ||
167 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
168 | + */ | ||
169 | + onPullDownRefresh: function () { | ||
170 | + | ||
171 | + }, | ||
172 | + | ||
173 | + /** | ||
174 | + * 页面上拉触底事件的处理函数 | ||
175 | + */ | ||
176 | + onReachBottom: function () { | ||
177 | + | ||
178 | + }, | ||
179 | + | ||
180 | + /** | ||
181 | + * 用户点击右上角分享 | ||
182 | + */ | ||
183 | + onShareAppMessage: function () { | ||
184 | + | ||
185 | + } | ||
186 | +}) |
pages/enteryanzheng/enteryanzheng.json
0 → 100644
pages/enteryanzheng/enteryanzheng.wxml
0 → 100644
1 | + | ||
2 | +<view class="yanzhengma">验证码已发送至+86 {{phonenum}}</view> | ||
3 | +<form bindsubmit="formSubmit"> | ||
4 | + | ||
5 | + <view class='content'> | ||
6 | + | ||
7 | + <block wx:for="{{Length}}" wx:key="item"> | ||
8 | + <input class='iptbox' value="{{Value.length>=index+1?Value[index]:''}}" disabled password='{{ispassword}}' catchtap='Tap'></input> | ||
9 | + </block> | ||
10 | + | ||
11 | + </view> | ||
12 | + | ||
13 | + <input name="password" password="{{true}}" class='ipt' maxlength="{{Length}}" focus="{{isFocus}}" bindinput="Focus"></input> | ||
14 | + | ||
15 | + <view class="daojishi" bindtap="entercode">{{time}}</view> | ||
16 | + | ||
17 | + <view class="unrigester">未注册用户登录时自动创建账号,且代表您已同意</view> | ||
18 | + <view class="xieyi">《用户协议》</view> | ||
19 | + | ||
20 | + <!-- <view> | ||
21 | + <button class="btn-area" formType="submit">Submit</button> | ||
22 | + </view> --> | ||
23 | + | ||
24 | +</form> |
pages/enteryanzheng/enteryanzheng.wxss
0 → 100644
1 | +.yanzhengma{ | ||
2 | + color:#1A1A1A; | ||
3 | + font-size: 28rpx; | ||
4 | + text-align: center; | ||
5 | + margin-top:108rpx; | ||
6 | +} | ||
7 | + | ||
8 | +.content{ | ||
9 | + display: flex; | ||
10 | + width:570rpx; | ||
11 | + margin:0 auto; | ||
12 | + justify-content: center; | ||
13 | + align-items: center; | ||
14 | + margin-top: 72rpx; | ||
15 | +} | ||
16 | +.iptbox{ | ||
17 | + width: 66rpx; | ||
18 | + height: 80rpx; | ||
19 | + border-bottom:1rpx solid #E81825; | ||
20 | + margin-left:28rpx; | ||
21 | + display: flex; | ||
22 | + justify-content: center; | ||
23 | + align-items: center; | ||
24 | + text-align: center; | ||
25 | +} | ||
26 | +.xieyi{ | ||
27 | + color:#E81825; | ||
28 | + font-size: 24rpx; | ||
29 | + width:528rpx; | ||
30 | + text-align: left; | ||
31 | + margin:10rpx auto 0; | ||
32 | +} | ||
33 | +.ipt{ | ||
34 | + width: 0; | ||
35 | + height: 0; | ||
36 | +} | ||
37 | +.btn-area{ | ||
38 | + width: 80%; | ||
39 | + background-color: orange; | ||
40 | + color:white; | ||
41 | +} | ||
42 | +.daojishi{ | ||
43 | + color:#999999; | ||
44 | + font-size: 24rpx; | ||
45 | + text-align: right; | ||
46 | + margin-right:105rpx; | ||
47 | +} | ||
48 | +.unrigester{ | ||
49 | + width:528rpx; | ||
50 | + color:#999999; | ||
51 | + font-size: 24rpx; | ||
52 | + text-align: center; | ||
53 | + margin:59rpx auto 0; | ||
54 | + | ||
55 | +} |
pages/find/find.js
0 → 100644
1 | +// pages/find/find.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + imgUrls: ['http://winesbook.cn/static/images_mini/aicon_60@2x.png', | ||
10 | + 'http://winesbook.cn/static/images_mini/aicon_60@2x.png' | ||
11 | + ], | ||
12 | + indicatorDots: false, | ||
13 | + autoplay: false, | ||
14 | + interval: 2000, | ||
15 | + duration: 1000, | ||
16 | + currentSwiper: 0, | ||
17 | + }, | ||
18 | + | ||
19 | + /** | ||
20 | + * 生命周期函数--监听页面加载 | ||
21 | + */ | ||
22 | + onLoad: function (options) { | ||
23 | + this.setData({ | ||
24 | + url: app.globalData.url | ||
25 | + }) | ||
26 | + }, | ||
27 | + swiperChange: function (e) { | ||
28 | + this.setData({ | ||
29 | + currentSwiper: e.detail.current | ||
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/find/find.json
0 → 100644
pages/find/find.wxml
0 → 100644
1 | +<view class="swiper_image"> | ||
2 | + <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange"> | ||
3 | + <block wx:for="{{imgUrls}}" wx:key="doct"> | ||
4 | + <swiper-item style="border-radius:10px;"> | ||
5 | + <image src="{{item}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" /> | ||
6 | + </swiper-item> | ||
7 | + </block> | ||
8 | + </swiper> | ||
9 | + | ||
10 | + <view class="dots"> | ||
11 | + <block wx:for="{{imgUrls}}" wx:key=""> | ||
12 | + <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view> | ||
13 | + </block> | ||
14 | + </view> | ||
15 | + | ||
16 | +</view> | ||
17 | + | ||
18 | +<view class="middlehead"> | ||
19 | + <view class="rilihead"> | ||
20 | + <view class="rili"> | ||
21 | + <image src="{{url}}aicon_62x.png"></image> | ||
22 | + </view> | ||
23 | + <view class="every"> | ||
24 | + <image src="{{url}}aicon_63x.png"></image> | ||
25 | + </view> | ||
26 | + </view> | ||
27 | + | ||
28 | + <view class="more"> | ||
29 | + <view class="moreword">更多</view> | ||
30 | + <view class="moreimg"> | ||
31 | + <image src="{{url}}aicon_61x.png"></image> | ||
32 | + </view> | ||
33 | + </view> | ||
34 | + | ||
35 | +</view> | ||
36 | + | ||
37 | +<view class="tast"> | ||
38 | + <view class="tastimg"> | ||
39 | + <image src="{{url}}aicon_25@2x.png"></image> | ||
40 | + </view> | ||
41 | + | ||
42 | + <view class="tastcontent"> | ||
43 | + <view class="tasttitle">石库门·海上繁华</view> | ||
44 | + <view class="tasttext">海派风味:开坛飘香,入口爽滑</view> | ||
45 | + </view> | ||
46 | + | ||
47 | +</view> | ||
48 | + | ||
49 | +<view class="wineblock"> | ||
50 | + <view class="middlehead"> | ||
51 | + <view class="rilihead"> | ||
52 | + <view class="rili"> | ||
53 | + <image src="{{url}}aicon_46x.png"></image> | ||
54 | + </view> | ||
55 | + <view class="jiudan"> | ||
56 | + 酒单推荐 | ||
57 | + </view> | ||
58 | + </view> | ||
59 | + | ||
60 | + <view class="more"> | ||
61 | + <view class="moreword">更多</view> | ||
62 | + <view class="moreimg"> | ||
63 | + <image src="{{url}}aicon_61x.png"></image> | ||
64 | + </view> | ||
65 | + </view> | ||
66 | + | ||
67 | + </view> | ||
68 | + <view class="winetitle">年轻人生日party必备酒单</view> | ||
69 | + | ||
70 | + <view class="wineimg"> | ||
71 | + <image src="{{url}}aicon_64.png"></image> | ||
72 | + </view> | ||
73 | + | ||
74 | + <view class="winebottom"> | ||
75 | + <view class="winebottomleft"> | ||
76 | + <view class="winebottomleftimg"> | ||
77 | + <image src="{{url}}aicon_65x.png"></image> | ||
78 | + </view> | ||
79 | + <view class="wineeng">WinesBook</view> | ||
80 | + </view> | ||
81 | + <view class="winebottonright"> | ||
82 | + | ||
83 | + <view class="winerighttou"> | ||
84 | + <view class="winerighttouimg"> | ||
85 | + <image src="{{url}}aicon_66x.png"></image> | ||
86 | + </view> | ||
87 | + <view class="winezan">18</view> | ||
88 | + </view> | ||
89 | + <view class="winerighttou"> | ||
90 | + <view class="winerighttouimg"> | ||
91 | + <image src="{{url}}aicon_67x.png"></image> | ||
92 | + </view> | ||
93 | + <view class="winezan">54</view> | ||
94 | + </view> | ||
95 | + | ||
96 | + <view class="winerighttou"> | ||
97 | + <view class="winerighttouimg"> | ||
98 | + <image src="{{url}}aicon_68x.png"></image> | ||
99 | + </view> | ||
100 | + | ||
101 | + </view> | ||
102 | + </view> | ||
103 | + | ||
104 | + </view> | ||
105 | + | ||
106 | +</view> | ||
107 | +<view class="wineblock"> | ||
108 | + <view class="middlehead"> | ||
109 | + <view class="rilihead"> | ||
110 | + <view class="pin"> | ||
111 | + <image src="{{url}}aicon_69x.png"></image> | ||
112 | + </view> | ||
113 | + <view class="jiudan"> | ||
114 | + 专家品酒 | ||
115 | + </view> | ||
116 | + </view> | ||
117 | + | ||
118 | + <view class="more"> | ||
119 | + <view class="moreword">更多</view> | ||
120 | + <view class="moreimg"> | ||
121 | + <image src="{{url}}aicon_61x.png"></image> | ||
122 | + </view> | ||
123 | + </view> | ||
124 | + | ||
125 | + </view> | ||
126 | + <view class="winetitle">浓香酒酿酒大师:沈才宏</view> | ||
127 | + | ||
128 | + <view class="wineimg"> | ||
129 | + <image src="{{url}}aicon_64.png"></image> | ||
130 | + </view> | ||
131 | + | ||
132 | + <view class="winebottom"> | ||
133 | + <view class="winebottomleft"> | ||
134 | + <view class="winebottomleftimg"> | ||
135 | + <image src="{{url}}aicon_65x.png"></image> | ||
136 | + </view> | ||
137 | + <view class="wineeng">WinesBook</view> | ||
138 | + </view> | ||
139 | + <view class="winebottonright"> | ||
140 | + | ||
141 | + <view class="winerighttou"> | ||
142 | + <view class="winerighttouimg"> | ||
143 | + <image src="{{url}}aicon_66x.png"></image> | ||
144 | + </view> | ||
145 | + <view class="winezan">18</view> | ||
146 | + </view> | ||
147 | + <view class="winerighttou"> | ||
148 | + <view class="winerighttouimg"> | ||
149 | + <image src="{{url}}aicon_67x.png"></image> | ||
150 | + </view> | ||
151 | + <view class="winezan">54</view> | ||
152 | + </view> | ||
153 | + | ||
154 | + <view class="winerighttou"> | ||
155 | + <view class="winerighttouimg"> | ||
156 | + <image src="{{url}}aicon_68x.png"></image> | ||
157 | + </view> | ||
158 | + | ||
159 | + </view> | ||
160 | + </view> | ||
161 | + | ||
162 | + </view> | ||
163 | + | ||
164 | +</view> | ||
165 | + | ||
166 | +<view class="wineblock"> | ||
167 | + <view class="middlehead"> | ||
168 | + <view class="rilihead"> | ||
169 | + <view class="rili"> | ||
170 | + <image src="{{url}}aicon_72x.png"></image> | ||
171 | + </view> | ||
172 | + <view class="jiudan"> | ||
173 | + 酿酒大师 | ||
174 | + </view> | ||
175 | + </view> | ||
176 | + | ||
177 | + <view class="more"> | ||
178 | + <view class="moreword">更多</view> | ||
179 | + <view class="moreimg"> | ||
180 | + <image src="{{url}}aicon_61x.png"></image> | ||
181 | + </view> | ||
182 | + </view> | ||
183 | + | ||
184 | + </view> | ||
185 | + <view class="winetitle">浓香酒酿酒大师:沈才宏</view> | ||
186 | + | ||
187 | + <view class="wineimg"> | ||
188 | + <image src="{{url}}aicon_64.png"></image> | ||
189 | + </view> | ||
190 | + | ||
191 | + <view class="winebottom"> | ||
192 | + <view class="winebottomleft"> | ||
193 | + <view class="winebottomleftimg"> | ||
194 | + <image src="{{url}}aicon_65x.png"></image> | ||
195 | + </view> | ||
196 | + <view class="wineeng">WinesBook</view> | ||
197 | + </view> | ||
198 | + <view class="winebottonright"> | ||
199 | + | ||
200 | + <view class="winerighttou"> | ||
201 | + <view class="winerighttouimg"> | ||
202 | + <image src="{{url}}aicon_66x.png"></image> | ||
203 | + </view> | ||
204 | + <view class="winezan">18</view> | ||
205 | + </view> | ||
206 | + <view class="winerighttou"> | ||
207 | + <view class="winerighttouimg"> | ||
208 | + <image src="{{url}}aicon_67x.png"></image> | ||
209 | + </view> | ||
210 | + <view class="winezan">54</view> | ||
211 | + </view> | ||
212 | + | ||
213 | + <view class="winerighttou"> | ||
214 | + <view class="winerighttouimg"> | ||
215 | + <image src="{{url}}aicon_68x.png"></image> | ||
216 | + </view> | ||
217 | + | ||
218 | + </view> | ||
219 | + </view> | ||
220 | + | ||
221 | + </view> | ||
222 | + | ||
223 | +</view> |
pages/find/find.wxss
0 → 100644
1 | + .swiper_image{ | ||
2 | + width:750rpx; | ||
3 | + height:300rpx; | ||
4 | + font-size: 0; | ||
5 | + position: relative | ||
6 | + | ||
7 | + | ||
8 | +} | ||
9 | +.swiper_item_img{ | ||
10 | + | ||
11 | + height:300rpx; | ||
12 | +} | ||
13 | +.swiper_image image{ | ||
14 | + width:100%; | ||
15 | + height:100%; | ||
16 | + /* box-shadow:0px -1px 6px 0px rgba(212,137,96,0.11); */ | ||
17 | + border-radius:10px; | ||
18 | +} | ||
19 | +.swiper_item_img swiper-item{ | ||
20 | + width:750rpx; | ||
21 | + height:300rpx; | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | +} | ||
26 | +.swiper_item_img swiper-item image{ | ||
27 | + width:100%; | ||
28 | + height:100%; | ||
29 | + | ||
30 | +} | ||
31 | + | ||
32 | + | ||
33 | +.dots{ | ||
34 | + /* width: 156rpx; */ | ||
35 | + height: 36rpx; | ||
36 | + display: flex; | ||
37 | + flex-direction: row; | ||
38 | + position: absolute; | ||
39 | + justify-content: center; | ||
40 | + align-items: center; | ||
41 | + left: 0; | ||
42 | + right:0; | ||
43 | + bottom: 20rpx; | ||
44 | +} | ||
45 | +/*未选中时的小圆点样式 */ | ||
46 | +.dot{ | ||
47 | + width: 10rpx; | ||
48 | + height: 10rpx; | ||
49 | + border-radius: 50%; | ||
50 | + margin-right: 26rpx; | ||
51 | + background-color:#000000 | ||
52 | +} | ||
53 | +/*选中以后的小圆点样式 */ | ||
54 | +.active{ | ||
55 | + width: 10rpx; | ||
56 | + height: 10rpx; | ||
57 | + border-radius:50%; | ||
58 | + background-color: #E81825; | ||
59 | + | ||
60 | + | ||
61 | +} | ||
62 | +image{ | ||
63 | + width:100%; | ||
64 | + height:100%; | ||
65 | +} | ||
66 | +.middlehead{ | ||
67 | + display:flex; | ||
68 | + justify-content: space-between; | ||
69 | + align-items: center; | ||
70 | + padding: 34rpx 32rpx; | ||
71 | + box-sizing: border-box; | ||
72 | +} | ||
73 | +.rilihead{ | ||
74 | + display:flex; | ||
75 | + align-items: center; | ||
76 | + justify-content: space-between; | ||
77 | + | ||
78 | +} | ||
79 | +.rili{ | ||
80 | + width:26rpx; | ||
81 | + height:26rpx; | ||
82 | + font-size: 0 | ||
83 | +} | ||
84 | +.every{ | ||
85 | + width:202rpx; | ||
86 | + height:30rpx; | ||
87 | + font-size: 0; | ||
88 | + margin-left: 8rpx; | ||
89 | + | ||
90 | +} | ||
91 | +.more{ | ||
92 | + display:flex; | ||
93 | + align-items: center; | ||
94 | + justify-content: center; | ||
95 | +} | ||
96 | +.moreword{ | ||
97 | + font-size: 26rpx; | ||
98 | + color:#999999 | ||
99 | +} | ||
100 | +.moreimg{ | ||
101 | + width:10rpx; | ||
102 | + height:18rpx; | ||
103 | + font-size: 0; | ||
104 | + margin-left:15rpx; | ||
105 | +} | ||
106 | +.tast{ | ||
107 | + display:flex; | ||
108 | + align-items: center; | ||
109 | + border-bottom:14rpx solid #F2F2F2; | ||
110 | + padding-bottom: 30rpx; | ||
111 | + | ||
112 | +} | ||
113 | +.tastimg{ | ||
114 | + width:80rpx; | ||
115 | + height:80rpx; | ||
116 | + font-size: 0; | ||
117 | + margin-left:62rpx; | ||
118 | +} | ||
119 | +.tastcontent{ | ||
120 | + margin-left:32rpx; | ||
121 | +} | ||
122 | +.tasttitle{ | ||
123 | + color:#1A1A1A; | ||
124 | + font-size:28rpx; | ||
125 | + | ||
126 | +} | ||
127 | +.tasttext{ | ||
128 | + color:#999999; | ||
129 | + font-size: 24rpx; | ||
130 | + margin-top:24rpx; | ||
131 | +} | ||
132 | +.jiudan{ | ||
133 | + font-size: 32rpx; | ||
134 | + color:#1A1A1A; | ||
135 | + font-weight: bold; | ||
136 | + margin-left:8rpx; | ||
137 | +} | ||
138 | +.winetitle{ | ||
139 | + color:#1A1A1A; | ||
140 | + font-size: 28rpx; | ||
141 | + margin-left:36rpx | ||
142 | +} | ||
143 | +.wineimg{ | ||
144 | + width:686rpx; | ||
145 | + height:300rpx; | ||
146 | + margin:30rpx auto 0; | ||
147 | +} | ||
148 | +.winebottom{ | ||
149 | + display:flex; | ||
150 | + justify-content: space-between; | ||
151 | + align-items: center; | ||
152 | + padding: 0 32rpx; | ||
153 | + box-sizing: border-box; | ||
154 | + margin-top:30rpx; | ||
155 | +} | ||
156 | +.winebottomleftimg{ | ||
157 | + width:60rpx; | ||
158 | + height:60rpx; | ||
159 | + font-size: 0 | ||
160 | +} | ||
161 | +.winebottomleft{ | ||
162 | + display:flex; | ||
163 | + align-items: center | ||
164 | +} | ||
165 | +.winebottonright{ | ||
166 | + width:345rpx; | ||
167 | + display:flex; | ||
168 | + align-items: center; | ||
169 | + justify-content: space-around | ||
170 | +} | ||
171 | +.winerighttouimg{ | ||
172 | + width:30rpx; | ||
173 | + height:28rpx; | ||
174 | + font-size: 0 | ||
175 | +} | ||
176 | +.winerighttou{ | ||
177 | + display:flex; | ||
178 | + align-items: center | ||
179 | +} | ||
180 | +.wineeng{ | ||
181 | + color:#666666; | ||
182 | + font-size: 28rpx; | ||
183 | + margin-left: 20rpx; | ||
184 | +} | ||
185 | +.winezan{ | ||
186 | + color:#666666; | ||
187 | + font-size:28rpx; | ||
188 | + margin-left:5rpx; | ||
189 | +} | ||
190 | +.wineblock{ | ||
191 | + border-bottom: 14rpx solid #F2F2F2; | ||
192 | + padding-bottom: 30rpx; | ||
193 | +} | ||
194 | +.pin{ | ||
195 | + width:16rpx; | ||
196 | + height:32rpx; | ||
197 | + font-size: 0 | ||
198 | +} |
pages/forgetmima/forgetmima.js
0 → 100644
1 | +// pages/forgetmima/forgetmima.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + first:true, | ||
10 | + second:false, | ||
11 | + url:'', | ||
12 | + phone:'' | ||
13 | + }, | ||
14 | + | ||
15 | + /** | ||
16 | + * 生命周期函数--监听页面加载 | ||
17 | + */ | ||
18 | + onLoad: function (options) { | ||
19 | + this.setData({ | ||
20 | + url: app.globalData.url | ||
21 | + }) | ||
22 | + }, | ||
23 | + | ||
24 | + enterphone(e){ | ||
25 | + this.setData({ | ||
26 | + phone:e.detail.value | ||
27 | + }) | ||
28 | + }, | ||
29 | + | ||
30 | + /** | ||
31 | + * 生命周期函数--监听页面初次渲染完成 | ||
32 | + */ | ||
33 | + onReady: function () { | ||
34 | + | ||
35 | + }, | ||
36 | + | ||
37 | + /** | ||
38 | + * 生命周期函数--监听页面显示 | ||
39 | + */ | ||
40 | + onShow: function () { | ||
41 | + | ||
42 | + }, | ||
43 | + | ||
44 | + /** | ||
45 | + * 生命周期函数--监听页面隐藏 | ||
46 | + */ | ||
47 | + onHide: function () { | ||
48 | + | ||
49 | + }, | ||
50 | + | ||
51 | + /** | ||
52 | + * 生命周期函数--监听页面卸载 | ||
53 | + */ | ||
54 | + onUnload: function () { | ||
55 | + | ||
56 | + }, | ||
57 | + | ||
58 | + /** | ||
59 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
60 | + */ | ||
61 | + onPullDownRefresh: function () { | ||
62 | + | ||
63 | + }, | ||
64 | + | ||
65 | + /** | ||
66 | + * 页面上拉触底事件的处理函数 | ||
67 | + */ | ||
68 | + onReachBottom: function () { | ||
69 | + | ||
70 | + }, | ||
71 | + | ||
72 | + /** | ||
73 | + * 用户点击右上角分享 | ||
74 | + */ | ||
75 | + onShareAppMessage: function () { | ||
76 | + | ||
77 | + } | ||
78 | +}) |
pages/forgetmima/forgetmima.json
0 → 100644
pages/forgetmima/forgetmima.wxml
0 → 100644
1 | +<view wx:if="{{first}}"> | ||
2 | + <view class="yanzheng"> | ||
3 | + <view class="yanzhengleft"> | ||
4 | + <view class="pho">+86</view> | ||
5 | + <view class="rowimg"> | ||
6 | + <image src="{{url}}/aicon_53x.png"></image> | ||
7 | + </view> | ||
8 | + </view> | ||
9 | + | ||
10 | + <view class="yanzhengmiddle"> | ||
11 | + | ||
12 | + <input placeholder='请输入手机号' placeholder-class='enterphone' bindinput="enterphone" type="number"/> | ||
13 | + </view> | ||
14 | + <view class="chaimg"> | ||
15 | + <image src="{{url}}/aicon_07x.png"></image> | ||
16 | + </view> | ||
17 | + </view> | ||
18 | + | ||
19 | + <view class="safe">为了安全,我们会向您的手机发送验证码</view> | ||
20 | + | ||
21 | + <view class="login">下一步</view> | ||
22 | + | ||
23 | + | ||
24 | +</view> | ||
25 | + | ||
26 | +<view wx:if="{{second}}"> | ||
27 | +<view class="yanzheng "> | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + <view class="yanzhengmiddle"> | ||
32 | + | ||
33 | + <input placeholder='请输入验证码' placeholder-class='enterphone' /> | ||
34 | + </view> | ||
35 | + | ||
36 | + <view class="fasong">重新发送52</view> | ||
37 | + | ||
38 | + </view> | ||
39 | + <view class="yanzheng mima"> | ||
40 | + <view class="yanzhengmiddle yanzhengma"> | ||
41 | + | ||
42 | + <input placeholder='设置新密码' placeholder-class='enterphone' /> | ||
43 | + </view> | ||
44 | + <view class="mimaimg"> | ||
45 | + | ||
46 | + <view class="eyeimg"> | ||
47 | + <image src="{{url}}/bicon_13x.png"></image> | ||
48 | + </view> | ||
49 | + </view> | ||
50 | + | ||
51 | + </view> | ||
52 | + | ||
53 | + <view class="entermimacode">需要有6-20位数字、字母或符号组成</view> | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + <view class="login">登录</view> | ||
58 | + | ||
59 | +</view> |
pages/forgetmima/forgetmima.wxss
0 → 100644
1 | +page { | ||
2 | + background: #f2f2f2; | ||
3 | +} | ||
4 | + | ||
5 | +.headtitle { | ||
6 | + color: #e81825; | ||
7 | + font-size: 48rpx; | ||
8 | + text-align: center; | ||
9 | + font-weight: bold; | ||
10 | + margin-top: 45rpx; | ||
11 | +} | ||
12 | + | ||
13 | +.logintitle { | ||
14 | + display: flex; | ||
15 | + align-items: center; | ||
16 | + justify-content: center; | ||
17 | + margin-top: 70rpx; | ||
18 | +} | ||
19 | + | ||
20 | +.loginleft { | ||
21 | + color: #999; | ||
22 | + font-size: 34rpx; | ||
23 | + position: relative; | ||
24 | + width: 185rpx; | ||
25 | + text-align: center; | ||
26 | +} | ||
27 | + | ||
28 | +.loginright { | ||
29 | + color: #999; | ||
30 | + font-size: 34rpx; | ||
31 | + margin-left: 109rpx; | ||
32 | + position: relative; | ||
33 | + width: 170rpx; | ||
34 | + text-align: center; | ||
35 | +} | ||
36 | + | ||
37 | +.loginactive::after { | ||
38 | + content: ''; | ||
39 | + width: 60rpx; | ||
40 | + height: 4rpx; | ||
41 | + background: rgba(232, 24, 37, 1); | ||
42 | + position: absolute; | ||
43 | + bottom: -10rpx; | ||
44 | + left: 30%; | ||
45 | +} | ||
46 | + | ||
47 | +.yanzhengleft { | ||
48 | + display: flex; | ||
49 | + align-items: center; | ||
50 | + padding-right: 20rpx; | ||
51 | + border-right: 1rpx solid #f5f5f5; | ||
52 | +} | ||
53 | + | ||
54 | +.yanzhengmiddle { | ||
55 | + | ||
56 | + width: 285rpx; | ||
57 | + color: #999; | ||
58 | + font-size: 30rpx; | ||
59 | + border-right:1rpx solid #f5f5f5; | ||
60 | +} | ||
61 | + | ||
62 | +.pho { | ||
63 | + color: #1a1a1a; | ||
64 | + font-size: 30rpx; | ||
65 | +} | ||
66 | + | ||
67 | +.rowimg { | ||
68 | + width: 18rpx; | ||
69 | + height: 10rpx; | ||
70 | + font-size: 0; | ||
71 | + margin-left: 10rpx; | ||
72 | +} | ||
73 | + | ||
74 | +.chaimg { | ||
75 | + width: 26rpx; | ||
76 | + height: 26rpx; | ||
77 | + font-size: 0; | ||
78 | + margin-left: 66rpx; | ||
79 | +} | ||
80 | + | ||
81 | +.yanzheng { | ||
82 | + display: flex; | ||
83 | + align-items: center; | ||
84 | + padding: 30rpx 39rpx; | ||
85 | + box-sizing: border-box; | ||
86 | + background: #fff; | ||
87 | + width: 540rpx; | ||
88 | + margin: 107rpx auto 0; | ||
89 | +} | ||
90 | + | ||
91 | +.login { | ||
92 | + width: 540rpx; | ||
93 | + height: 100rpx; | ||
94 | + background: #CCCCCC; | ||
95 | + border-radius: 50rpx; | ||
96 | + text-align: center; | ||
97 | + line-height: 100rpx; | ||
98 | + color: #fff; | ||
99 | + font-size: 30rpx; | ||
100 | + margin: 74rpx auto 0; | ||
101 | +} | ||
102 | + | ||
103 | +.firlogin { | ||
104 | + color: #999; | ||
105 | + font-size: 24rpx; | ||
106 | + text-align: center; | ||
107 | + margin-top: 26rpx; | ||
108 | +} | ||
109 | + | ||
110 | +.enterphone { | ||
111 | + color: #999; | ||
112 | + font-size: 30rpx; | ||
113 | + width: 300rpx; | ||
114 | +} | ||
115 | + | ||
116 | +.mima { | ||
117 | + margin-top: 32rpx; | ||
118 | + display: flex; | ||
119 | + justify-content: space-between; | ||
120 | + align-items: center; | ||
121 | +} | ||
122 | +.mimaimg{ | ||
123 | + display:flex; | ||
124 | + align-items: center | ||
125 | +} | ||
126 | +.yanzhengma { | ||
127 | + margin-left: 0; | ||
128 | +} | ||
129 | +.eyeimg{ | ||
130 | + width:34rpx; | ||
131 | + height:21rpx; | ||
132 | + font-size: 0; | ||
133 | + margin-left:30rpx; | ||
134 | +} | ||
135 | +.forgetmima{ | ||
136 | + color:#666666; | ||
137 | + font-size: 28rpx; | ||
138 | + text-align: right; | ||
139 | + margin:33rpx 104rpx 0 0 ; | ||
140 | +} | ||
141 | +.safe{ | ||
142 | + color:#999999; | ||
143 | + font-size: 24rpx; | ||
144 | + width:540rpx; | ||
145 | + margin:32rpx auto 0; | ||
146 | +} | ||
147 | +.fasong{ | ||
148 | + color:#CCCCCC; | ||
149 | + font-size: 24rpx; | ||
150 | + margin-left:27rpx; | ||
151 | +} | ||
152 | +.entermimacode{ | ||
153 | + color:#999999; | ||
154 | + font-size: 24rpx; | ||
155 | + text-align: center; | ||
156 | + margin-top:33rpx; | ||
157 | +} |
pages/homapage/homepage.js
0 → 100644
1 | +// pages/homapage/homepage.js | ||
2 | + | ||
3 | +const app = getApp() | ||
4 | +Page({ | ||
5 | + | ||
6 | + /** | ||
7 | + * 页面的初始数据 | ||
8 | + */ | ||
9 | + data: { | ||
10 | + url: '', | ||
11 | + shai: false, | ||
12 | + letter: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], | ||
13 | + cityListId: '', | ||
14 | + //下面是城市列表信息,这里只是模拟数据 | ||
15 | + citylist: [{ | ||
16 | + "letter": "A", | ||
17 | + "data": [{ | ||
18 | + "id": "v7", | ||
19 | + "cityName": "安徽" | ||
20 | + }] | ||
21 | + }, { | ||
22 | + "letter": "B", | ||
23 | + "data": [{ | ||
24 | + "id": "v10", | ||
25 | + "cityName": "巴中" | ||
26 | + }, { | ||
27 | + "id": "v4", | ||
28 | + "cityName": "包头" | ||
29 | + }, { | ||
30 | + "id": "v1", | ||
31 | + "cityName": "北京" | ||
32 | + }] | ||
33 | + }, { | ||
34 | + "letter": "C", | ||
35 | + "data": [{ | ||
36 | + "id": "v15", | ||
37 | + "cityName": "成都" | ||
38 | + }] | ||
39 | + }, { | ||
40 | + "letter": "D", | ||
41 | + "data": [{ | ||
42 | + "id": "v21", | ||
43 | + "cityName": "稻城" | ||
44 | + }] | ||
45 | + }, { | ||
46 | + "letter": "G", | ||
47 | + "data": [{ | ||
48 | + "id": "v17", | ||
49 | + "cityName": "广州" | ||
50 | + }, { | ||
51 | + "id": "v29", | ||
52 | + "cityName": "桂林" | ||
53 | + }] | ||
54 | + }, { | ||
55 | + "letter": "H", | ||
56 | + "data": [{ | ||
57 | + "id": "v9", | ||
58 | + "cityName": "海南" | ||
59 | + }, { | ||
60 | + "id": "v3", | ||
61 | + "cityName": "呼和浩特" | ||
62 | + }] | ||
63 | + }, { | ||
64 | + "letter": "L", | ||
65 | + "data": [{ | ||
66 | + "id": "v24", | ||
67 | + "cityName": "洛阳" | ||
68 | + }, { | ||
69 | + "id": "v20", | ||
70 | + "cityName": "拉萨" | ||
71 | + }, { | ||
72 | + "id": "v14", | ||
73 | + "cityName": "丽江" | ||
74 | + }] | ||
75 | + }, { | ||
76 | + "letter": "M", | ||
77 | + "data": [{ | ||
78 | + "id": "v13", | ||
79 | + "cityName": "眉山" | ||
80 | + }] | ||
81 | + }, { | ||
82 | + "letter": "N", | ||
83 | + "data": [{ | ||
84 | + "id": "v27", | ||
85 | + "cityName": "南京" | ||
86 | + }] | ||
87 | + }, { | ||
88 | + "letter": "S", | ||
89 | + "data": [{ | ||
90 | + "id": "v18", | ||
91 | + "cityName": "三亚" | ||
92 | + }, { | ||
93 | + "id": "v2", | ||
94 | + "cityName": "上海" | ||
95 | + }] | ||
96 | + }, { | ||
97 | + "letter": "T", | ||
98 | + "data": [{ | ||
99 | + "id": "v5", | ||
100 | + "cityName": "天津" | ||
101 | + }] | ||
102 | + }, { | ||
103 | + "letter": "W", | ||
104 | + "data": [{ | ||
105 | + "id": "v12", | ||
106 | + "cityName": "乌鲁木齐" | ||
107 | + }, { | ||
108 | + "id": "v25", | ||
109 | + "cityName": "武汉" | ||
110 | + }] | ||
111 | + }, { | ||
112 | + "letter": "X", | ||
113 | + "data": [{ | ||
114 | + "id": "v23", | ||
115 | + "cityName": "西安" | ||
116 | + }, { | ||
117 | + "id": "v28", | ||
118 | + "cityName": "香港" | ||
119 | + }, { | ||
120 | + "id": "v19", | ||
121 | + "cityName": "厦门" | ||
122 | + }] | ||
123 | + }, { | ||
124 | + "letter": "Z", | ||
125 | + "data": [{ | ||
126 | + "id": "v8", | ||
127 | + "cityName": "张家口" | ||
128 | + }] | ||
129 | + }], | ||
130 | + //下面是热门城市数据,模拟数据 | ||
131 | + newcity: ['北京', '上海', '广州', '深圳', '成都', '杭州'], | ||
132 | + // citySel: '全国', | ||
133 | + locateCity: '', | ||
134 | + type: "", | ||
135 | + record: '', | ||
136 | + showcountry: false, | ||
137 | + showcity: false, | ||
138 | + countrylist: [], | ||
139 | + citylist: [], | ||
140 | + sort_id: '', | ||
141 | + country: '', | ||
142 | + city: "", | ||
143 | + region: '', | ||
144 | + odor_id: "", | ||
145 | + kindlist: [{ | ||
146 | + type: 1, | ||
147 | + name: '品类', | ||
148 | + sle: false | ||
149 | + | ||
150 | + }, { | ||
151 | + type: 2, | ||
152 | + name: '国别', | ||
153 | + sle: false | ||
154 | + | ||
155 | + }, { | ||
156 | + type: 3, | ||
157 | + name: '产区', | ||
158 | + sle: false | ||
159 | + | ||
160 | + }, { | ||
161 | + type: 4, | ||
162 | + name: '香型', | ||
163 | + sle: false | ||
164 | + | ||
165 | + }], | ||
166 | + | ||
167 | + | ||
168 | + }, | ||
169 | + | ||
170 | + /** | ||
171 | + * 生命周期函数--监听页面加载 | ||
172 | + */ | ||
173 | + onLoad: function(options) { | ||
174 | + this.setData({ | ||
175 | + url: app.globalData.url | ||
176 | + }) | ||
177 | + console.log(this.data.url) | ||
178 | + this.getshailist(); | ||
179 | + this.gethomeindex() | ||
180 | + }, | ||
181 | + letterTap(e) { | ||
182 | + console.log(e) | ||
183 | + const Item = e.currentTarget.dataset.item; | ||
184 | + console.log(Item) | ||
185 | + this.setData({ | ||
186 | + cityListId: Item | ||
187 | + }); | ||
188 | + console.log("..............." + this.data.cityListId); | ||
189 | + }, | ||
190 | + //获取筛选内容 | ||
191 | + getshailist() { | ||
192 | + let that = this; | ||
193 | + var url = "/index/Index/filter" | ||
194 | + var params = { | ||
195 | + | ||
196 | + } | ||
197 | + | ||
198 | + app.post(url, params).then((res) => { | ||
199 | + | ||
200 | + that.setData({ | ||
201 | + record: res.wine_count.dataset, | ||
202 | + citylist: res.region | ||
203 | + }) | ||
204 | + | ||
205 | + | ||
206 | + if (that.data.type == 1) { | ||
207 | + that.setData({ | ||
208 | + shaikind: res.sort | ||
209 | + }) | ||
210 | + } else if (that.data.type == 2) { | ||
211 | + that.setData({ | ||
212 | + countrylist: res.country | ||
213 | + }) | ||
214 | + | ||
215 | + let newcountrylist = that.data.countrylist; | ||
216 | + for (var obj of newcountrylist) { | ||
217 | + obj.sel = false | ||
218 | + } | ||
219 | + } else if (that.data.type == 3) { | ||
220 | + | ||
221 | + that.setData({ | ||
222 | + shaikind: res.region | ||
223 | + }) | ||
224 | + } else if (that.data.type == 4) { | ||
225 | + that.setData({ | ||
226 | + shaikind: res.odor | ||
227 | + }) | ||
228 | + } | ||
229 | + | ||
230 | + let newshaikind = that.data.shaikind; | ||
231 | + for (var obj of newshaikind) { | ||
232 | + obj.sel = false | ||
233 | + } | ||
234 | + | ||
235 | + that.setData({ | ||
236 | + shaikind: newshaikind | ||
237 | + }) | ||
238 | + | ||
239 | + let newnewshaikind = that.data.shaikind; | ||
240 | + | ||
241 | + for (var obj of newnewshaikind) { | ||
242 | + | ||
243 | + | ||
244 | + if (that.data.type == 1) { | ||
245 | + if (obj.id == that.data.sort_id) { | ||
246 | + obj.sel = true | ||
247 | + } | ||
248 | + } else if (that.data.type == 4) { | ||
249 | + if (obj.id == that.data.odor_id) { | ||
250 | + obj.sel = true | ||
251 | + } | ||
252 | + } | ||
253 | + | ||
254 | + } | ||
255 | + | ||
256 | + that.setData({ | ||
257 | + shaikind: newnewshaikind | ||
258 | + }) | ||
259 | + | ||
260 | + | ||
261 | + }).catch((err) => { | ||
262 | + | ||
263 | + | ||
264 | + }) | ||
265 | + }, | ||
266 | + | ||
267 | + // 点击筛选 | ||
268 | + | ||
269 | + shaikind(e) { | ||
270 | + let that = this; | ||
271 | + let type = e.currentTarget.dataset.type | ||
272 | + that.setData({ | ||
273 | + type: e.currentTarget.dataset.type, | ||
274 | + // shai: true | ||
275 | + }) | ||
276 | + | ||
277 | + if (type == 2) { | ||
278 | + that.setData({ | ||
279 | + shai: false, | ||
280 | + showcountry: true | ||
281 | + | ||
282 | + }) | ||
283 | + } | ||
284 | + | ||
285 | + let newkindlist = that.data.kindlist; | ||
286 | + for (var obj of newkindlist) { | ||
287 | + if (obj.type == type) { | ||
288 | + obj.sel = !obj.sel; | ||
289 | + if (obj.sel == true) { | ||
290 | + that.setData({ | ||
291 | + shai: true, | ||
292 | + }) | ||
293 | + } else { | ||
294 | + that.setData({ | ||
295 | + shai: false, | ||
296 | + }) | ||
297 | + } | ||
298 | + } else { | ||
299 | + obj.sel = false | ||
300 | + } | ||
301 | + } | ||
302 | + | ||
303 | + that.setData({ | ||
304 | + kindlist: newkindlist | ||
305 | + }) | ||
306 | + | ||
307 | + that.getshailist(); | ||
308 | + | ||
309 | + }, | ||
310 | + //选择类别 | ||
311 | + selectkind(e) { | ||
312 | + | ||
313 | + | ||
314 | + let id = e.currentTarget.dataset.id; | ||
315 | + console.log(id) | ||
316 | + | ||
317 | + let newshaikind = this.data.shaikind; | ||
318 | + | ||
319 | + for (var obj of newshaikind) { | ||
320 | + if (obj.id == id) { | ||
321 | + obj.sel = !obj.sel | ||
322 | + } else { | ||
323 | + obj.sel = false | ||
324 | + } | ||
325 | + | ||
326 | + if (this.data.type == 1) { | ||
327 | + if (obj.sel == true) { | ||
328 | + this.setData({ | ||
329 | + sort_id: obj.id | ||
330 | + }) | ||
331 | + } | ||
332 | + } else if (this.data.type == 4) { | ||
333 | + if (obj.sel == true) { | ||
334 | + this.setData({ | ||
335 | + odor_id: obj.id | ||
336 | + }) | ||
337 | + } | ||
338 | + } | ||
339 | + | ||
340 | + | ||
341 | + } | ||
342 | + | ||
343 | + | ||
344 | + this.setData({ | ||
345 | + shaikind: newshaikind | ||
346 | + }) | ||
347 | + | ||
348 | + // this.setData({ | ||
349 | + // shai:false | ||
350 | + // }) | ||
351 | + }, | ||
352 | + | ||
353 | + hideregister() { | ||
354 | + this.setData({ | ||
355 | + shai: false | ||
356 | + }) | ||
357 | + let newkindlist = this.data.kindlist; | ||
358 | + for (var obj of newkindlist) { | ||
359 | + obj.sel = false; | ||
360 | + } | ||
361 | + | ||
362 | + this.setData({ | ||
363 | + kindlist: newkindlist | ||
364 | + }) | ||
365 | + }, | ||
366 | + | ||
367 | + //筛选首页内容 | ||
368 | + gethomeindex() { | ||
369 | + let that = this; | ||
370 | + var url = "/index/Index/index" | ||
371 | + var params = { | ||
372 | + sort_id: that.data.sort_id, | ||
373 | + country: that.data.country, | ||
374 | + city: that.data.city, | ||
375 | + region: that.data.region, | ||
376 | + odor_id: that.data.odor_id | ||
377 | + | ||
378 | + } | ||
379 | + | ||
380 | + app.post(url, params).then((res) => { | ||
381 | + console.log(res); | ||
382 | + that.setData({ | ||
383 | + newcity: res.top, | ||
384 | + citylist: res.brand_list | ||
385 | + }) | ||
386 | + let newbrand_list = that.data.citylist; | ||
387 | + }).catch((err) => { | ||
388 | + console.log(err) | ||
389 | + | ||
390 | + }) | ||
391 | + }, | ||
392 | + // 选择城市 | ||
393 | + selectcountry(e) { | ||
394 | + let countryid = e.currentTarget.dataset.id; | ||
395 | + | ||
396 | + let newcountrylist = this.data.countrylist; | ||
397 | + | ||
398 | + for (var obj of newcountrylist) { | ||
399 | + obj.sel = !obj.sel; | ||
400 | + if (obj.sel == true) { | ||
401 | + if (obj.id == countryid) { | ||
402 | + let newkindlist = this.data.kindlist; | ||
403 | + | ||
404 | + newkindlist[1].name = obj.country_name | ||
405 | + this.setData({ | ||
406 | + kindlist: newkindlist | ||
407 | + }) | ||
408 | + | ||
409 | + } else { | ||
410 | + obj.sel = false | ||
411 | + } | ||
412 | + } | ||
413 | + | ||
414 | + | ||
415 | + } | ||
416 | + | ||
417 | + this.setData({ | ||
418 | + countrylist: newcountrylist | ||
419 | + }) | ||
420 | + | ||
421 | + }, | ||
422 | + | ||
423 | + countrysure() { | ||
424 | + this.setData({ | ||
425 | + showcountry: false, | ||
426 | + shai:false | ||
427 | + }) | ||
428 | + }, | ||
429 | + | ||
430 | + | ||
431 | + /** | ||
432 | + * 生命周期函数--监听页面初次渲染完成 | ||
433 | + */ | ||
434 | + onReady: function() { | ||
435 | + | ||
436 | + }, | ||
437 | + | ||
438 | + /** | ||
439 | + * 生命周期函数--监听页面显示 | ||
440 | + */ | ||
441 | + onShow: function() { | ||
442 | + // this.getshailist() | ||
443 | + }, | ||
444 | + | ||
445 | + /** | ||
446 | + * 生命周期函数--监听页面隐藏 | ||
447 | + */ | ||
448 | + onHide: function() { | ||
449 | + | ||
450 | + }, | ||
451 | + | ||
452 | + /** | ||
453 | + * 生命周期函数--监听页面卸载 | ||
454 | + */ | ||
455 | + onUnload: function() { | ||
456 | + | ||
457 | + }, | ||
458 | + | ||
459 | + /** | ||
460 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
461 | + */ | ||
462 | + onPullDownRefresh: function() { | ||
463 | + | ||
464 | + }, | ||
465 | + | ||
466 | + /** | ||
467 | + * 页面上拉触底事件的处理函数 | ||
468 | + */ | ||
469 | + onReachBottom: function() { | ||
470 | + | ||
471 | + }, | ||
472 | + | ||
473 | + /** | ||
474 | + * 用户点击右上角分享 | ||
475 | + */ | ||
476 | + onShareAppMessage: function() { | ||
477 | + | ||
478 | + } | ||
479 | +}) |
pages/homapage/homepage.json
0 → 100644
pages/homapage/homepage.wxml
0 → 100644
1 | +<!-- 种类的遮罩层 --> | ||
2 | + | ||
3 | +<view class="register" wx:if="{{shai}}" bindtap="hideregister"> | ||
4 | + <view class="registerwrap"> | ||
5 | + <view class="registeritem {{item.sel==true?'selact':''}}" wx:for="{{shaikind}}" wx:key="" wx:if="{{type==1}}" data-id="{{item.id}}" catchtap='selectkind'>{{item.sort_name}}</view> | ||
6 | + <view class="registeritem {{item.sel==true?'selact':''}}" wx:for="{{shaikind}}" wx:key="" wx:if="{{type==2}}" data-id="{{item.id}}" catchtap='selectkind'>{{item.country_name}}</view> | ||
7 | + <view class="registeritem {{item.sel==true?'selact':''}}" wx:for="{{shaikind}}" wx:key="" wx:if="{{type==3}}" data-id="{{item.id}}" catchtap='selectkind'>{{item.region_name}}</view> | ||
8 | + <view class="registeritem {{item.sel==true?'selact':''}}" wx:for="{{shaikind}}" wx:key="" wx:if="{{type==4}}" data-id="{{item.id}}" catchtap='selectkind'>{{item.odor_name}}</view> | ||
9 | + | ||
10 | + | ||
11 | + </view> | ||
12 | +</view> | ||
13 | + | ||
14 | +<!-- 国家遮罩层 --> | ||
15 | +<view class="cregister" wx:if="{{showcountry}}"> | ||
16 | + <view class="quehead"> | ||
17 | + <view class="backrow"></view> | ||
18 | + <view class="selcoun">选择国别</view> | ||
19 | + <view class="cqueding" bindtap="countrysure">确定</view> | ||
20 | + </view> | ||
21 | + | ||
22 | + <view class="countryitem" wx:for="{{countrylist}}" wx:key="" data-name="{{item.country_name}}" bindtap="selectcountry" data-id="{{item.id}}"> | ||
23 | + <view class="selcounitem" >{{item.country_name}}</view> | ||
24 | + | ||
25 | + <view class="gouimg" wx:if="{{item.sel==true}}"> | ||
26 | + <image src="{{url}}/aicon_18x.png"></image> | ||
27 | + </view> | ||
28 | + </view> | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | +</view> | ||
35 | +<!-- 城市遮罩层 --> | ||
36 | +<view class="cregister" wx:if="{{showcity}}"> | ||
37 | + <view class="quehead"> | ||
38 | + <view class="backrow"></view> | ||
39 | + <view class="selcoun">选择城市</view> | ||
40 | + <view class="cqueding">确定</view> | ||
41 | + </view> | ||
42 | + | ||
43 | + <view class="selcounitem" wx:for="{{citylist}}" wx:key="" data-name="{{item.country_name}}" bindtap="selectcountry">{{item.city}}</view> | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | +</view> | ||
48 | + | ||
49 | +<view class="heatop"> | ||
50 | + <view class="head"> | ||
51 | + <view class="address"> | ||
52 | + <view class="addressimg"> | ||
53 | + <image src='{{url}}bicon_01x.png'></image> | ||
54 | + </view> | ||
55 | + | ||
56 | + <view class="addressname">天津</view> | ||
57 | + </view> | ||
58 | + | ||
59 | + <view class="headmiddle"> | ||
60 | + <view class="searchimg"> | ||
61 | + <image src="{{url}}aicon_04@2x.png"></image> | ||
62 | + </view> | ||
63 | + | ||
64 | + <view class="searchinput"> | ||
65 | + <input placeholder='已收录298653款酒品' placeholder-class='seachenter' value="{{record}}" /> | ||
66 | + </view> | ||
67 | + | ||
68 | + <view class="saoma"> | ||
69 | + <image src="{{url}}bicon_04@2x.png"></image> | ||
70 | + </view> | ||
71 | + </view> | ||
72 | + | ||
73 | + <view class="address"> | ||
74 | + <view class="shaixuan"> | ||
75 | + <image src='{{url}}bicon_02@2x.png'></image> | ||
76 | + </view> | ||
77 | + | ||
78 | + <view class="addressname shai">筛选</view> | ||
79 | + </view> | ||
80 | + | ||
81 | + </view> | ||
82 | + <!-- 筛选 --> | ||
83 | + <view class="shaisel"> | ||
84 | + <view class="shaikind" bindtap="shaikind" data-type="{{item.type}}" wx:for="{{kindlist}}" wx:key=""> | ||
85 | + <view class="shaikindname">{{item.name}}</view> | ||
86 | + <view class="shaikindimg"> | ||
87 | + <image src="{{url}}bicon_06x.png" wx:if="{{item.sel==true}}"></image> | ||
88 | + <image src="{{url}}bicon_05x.png" wx:else></image> | ||
89 | + | ||
90 | + </view> | ||
91 | + </view> | ||
92 | + </view> | ||
93 | + | ||
94 | + <!-- <view class="hot"> | ||
95 | + <view class="hotimg"> | ||
96 | + <image src="{{url}}bicon_08@2x.png"></image> | ||
97 | + </view> | ||
98 | + | ||
99 | + <view class="hotzi"> | ||
100 | + <image src="{{url}}bicon_07@2x.png"></image> | ||
101 | + </view> | ||
102 | +</view> --> | ||
103 | +</view> | ||
104 | +<view class='city_box'> | ||
105 | + <view class='city_left'> | ||
106 | + <scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}'> | ||
107 | + <view class="hot"> | ||
108 | + <view class="hotimg"> | ||
109 | + <image src="{{url}}bicon_08@2x.png"></image> | ||
110 | + </view> | ||
111 | + | ||
112 | + <view class="hotzi"> | ||
113 | + <image src="{{url}}bicon_07@2x.png"></image> | ||
114 | + </view> | ||
115 | + </view> | ||
116 | + <view class='new_city'> | ||
117 | + | ||
118 | + <view class='new_city_box'> | ||
119 | + <view class='new_city_text' wx:for='{{newcity}}' wx:key='this' data-types='new' catchtap='cityTap' data-val='{{item}}'> | ||
120 | + <view class="hotgood"> | ||
121 | + <view class="imgleft"> | ||
122 | + <image src="{{item.logo}}"></image> | ||
123 | + </view> | ||
124 | + <view class="contentright"> | ||
125 | + <view class="contenttop">{{item.name}}</view> | ||
126 | + <view class="contenbottom"> | ||
127 | + <text class="textname">{{item.sort_name}}</text> | ||
128 | + <text class="textname">{{item.country}}</text> | ||
129 | + <text class="textname">{{item.city}}</text> | ||
130 | + <text class="textname">{{item.odor_name}}</text> | ||
131 | + </view> | ||
132 | + </view> | ||
133 | + | ||
134 | + </view> | ||
135 | + | ||
136 | + </view> | ||
137 | + </view> | ||
138 | + </view> | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + <view class='city_list_box'> | ||
143 | + <block wx:for='{{citylist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'> | ||
144 | + <view class='city_first_letter' id='{{letterItem.name}}'>{{letterItem.name}}</view> | ||
145 | + <!-- {{item.cityName}} --> | ||
146 | + <view class='city_name' wx:for='{{letterItem.list}}' id='{{letterItem.name}}' wx:key='this' data-types='list' catchtap='cityTap' data-index='{{index}}' data-val='{{item}}'> | ||
147 | + | ||
148 | + <view class="imgleft"> | ||
149 | + <image src="{{item.logo}}"></image> | ||
150 | + </view> | ||
151 | + <view class="contentright"> | ||
152 | + <view class="contenttop">{{item.name}}</view> | ||
153 | + <view class="contenbottom"> | ||
154 | + <text class="textname">{{item.sort_name}}</text> | ||
155 | + <text class="textname">{{item.country}}</text> | ||
156 | + <text class="textname"> {{item.city}} </text> | ||
157 | + <text class="textname">{{item.odor_name}}</text> </view> | ||
158 | + </view> | ||
159 | + | ||
160 | + </view> | ||
161 | + </block> | ||
162 | + </view> | ||
163 | + </scroll-view> | ||
164 | + </view> | ||
165 | + <view class='city_right'> | ||
166 | + <text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>{{item}}</text> | ||
167 | + </view> | ||
168 | +</view> |
pages/homapage/homepage.wxss
0 → 100644
1 | + | ||
2 | +page{ | ||
3 | + background: #F2F2F2; | ||
4 | + /* overflow-y: hidden; | ||
5 | + margin-bottom: 200rpx; */ | ||
6 | +} | ||
7 | +.heatop{ | ||
8 | + width:750rpx; | ||
9 | + position: fixed; | ||
10 | + top:0; | ||
11 | + left:0; | ||
12 | + z-index:888 | ||
13 | +} | ||
14 | +.head{ | ||
15 | + height:80rpx; | ||
16 | + background: #E81825; | ||
17 | + display:flex; | ||
18 | + justify-content: center; | ||
19 | + align-items: center | ||
20 | +} | ||
21 | +.hotgood{ | ||
22 | + display:flex; | ||
23 | + align-items: center; | ||
24 | + padding: 28rpx; | ||
25 | + box-sizing: border-box; | ||
26 | + border-bottom:1px solid #efefef | ||
27 | +} | ||
28 | + | ||
29 | +.address{ | ||
30 | + display:flex; | ||
31 | + align-items: center; | ||
32 | + justify-content: center; | ||
33 | +} | ||
34 | +.addressimg{ | ||
35 | + width:20rpx; | ||
36 | + height:26rpx; | ||
37 | + font-size: 0 | ||
38 | +} | ||
39 | +.addressimg image{ | ||
40 | + width:100%; | ||
41 | + height:100%; | ||
42 | +} | ||
43 | +.addressname{ | ||
44 | + color:#fff; | ||
45 | + font-size: 28rpx; | ||
46 | + margin-left:8rpx; | ||
47 | +} | ||
48 | +.searchinput{ | ||
49 | + color:#B3B3B3; | ||
50 | + font-size: 26rpx; | ||
51 | + margin-left:20rpx; | ||
52 | +} | ||
53 | +.seachenter{ | ||
54 | + color:#B3B3B3; | ||
55 | + font-size: 26rpx; | ||
56 | +} | ||
57 | +.searchimg{ | ||
58 | + width:28rpx; | ||
59 | + height:28rpx; | ||
60 | + font-size: 0 | ||
61 | +} | ||
62 | +.saoma{ | ||
63 | + width:38rpx; | ||
64 | + height:36rpx; | ||
65 | + font-size: 0; | ||
66 | + margin-left:20rpx; | ||
67 | +} | ||
68 | + image{ | ||
69 | + width:100%; | ||
70 | + height:100%; | ||
71 | +} | ||
72 | +.headmiddle{ | ||
73 | + width:460rpx; | ||
74 | + height:80rpx; | ||
75 | + background: #fff; | ||
76 | + display:flex; | ||
77 | + padding: 0 24rpx; | ||
78 | + box-sizing: border-box; | ||
79 | + align-items: center; | ||
80 | + margin-left:27rpx; | ||
81 | +} | ||
82 | +.shaixuan{ | ||
83 | + width:58rpx; | ||
84 | + height:54rpx; | ||
85 | + font-size: 0; | ||
86 | + margin-left:27rpx; | ||
87 | +} | ||
88 | +.shai{ | ||
89 | + margin:29rpx 0 0 -10rpx; | ||
90 | + | ||
91 | +} | ||
92 | +.shaisel{ | ||
93 | + height:100rpx; | ||
94 | + background: #E81825; | ||
95 | +} | ||
96 | +.shaikindimg{ | ||
97 | + width:14rpx; | ||
98 | + height:10rpx; | ||
99 | + font-size: 0 | ||
100 | +} | ||
101 | +.shaikind{ | ||
102 | + display:flex; | ||
103 | + align-items: center; | ||
104 | + justify-content: center; | ||
105 | +} | ||
106 | +.shaisel{ | ||
107 | + display:flex; | ||
108 | + justify-content: space-around; | ||
109 | + align-items: center; | ||
110 | +} | ||
111 | +.shaikindname{ | ||
112 | + color:#FFFFFF; | ||
113 | + font-size: 28rpx; | ||
114 | +} | ||
115 | +.shaikindimg{ | ||
116 | + margin-left:8rpx; | ||
117 | +} | ||
118 | +.hot{ | ||
119 | + display:flex; | ||
120 | + align-items: center; | ||
121 | + padding: 35rpx 32rpx; | ||
122 | + box-sizing: border-box; | ||
123 | + background: #F2F2F2 | ||
124 | +} | ||
125 | +.hotimg{ | ||
126 | + width:20rpx; | ||
127 | + height:28rpx; | ||
128 | + font-size: 0 | ||
129 | +} | ||
130 | +.hotzi{ | ||
131 | + width:250rpx; | ||
132 | + height:35rpx; | ||
133 | + font-size: 0; | ||
134 | + margin-left:8rpx; | ||
135 | +} | ||
136 | + | ||
137 | +/* 遮罩层 */ | ||
138 | +.register{ | ||
139 | + /* margin-top:182rpx; */ | ||
140 | +} | ||
141 | +.quehead{ | ||
142 | + display:flex; | ||
143 | + justify-content: space-between; | ||
144 | + align-items: center; | ||
145 | + padding: 0 32rpx; | ||
146 | + box-sizing: border-box | ||
147 | + | ||
148 | +} | ||
149 | +.backrow{ | ||
150 | + width:100rpx; | ||
151 | + height:100rpx; | ||
152 | +} | ||
153 | +.selcoun{ | ||
154 | + color:#333; | ||
155 | + font-size: 32rpx; | ||
156 | + | ||
157 | +} | ||
158 | +.cqueding{ | ||
159 | + color:#E81825; | ||
160 | + font-size:32rpx; | ||
161 | + | ||
162 | +} | ||
163 | +.cregister{ | ||
164 | + width: 100%; | ||
165 | + height: 100%; | ||
166 | + background: #fff; | ||
167 | + position:fixed; | ||
168 | + top:0rpx; | ||
169 | + | ||
170 | + left:0; | ||
171 | + right:0; | ||
172 | + z-index: 999; | ||
173 | + padding: 0 32rpx; | ||
174 | + box-sizing: border-box; | ||
175 | + overflow-y: scroll | ||
176 | +} | ||
177 | + | ||
178 | +.registerwrap{ | ||
179 | + width:750rpx; | ||
180 | + | ||
181 | + background: #ffffff; | ||
182 | + | ||
183 | + position: absolute; | ||
184 | + z-index: 99; | ||
185 | + top:0rpx; | ||
186 | + left:0; | ||
187 | + /* transform: translate(-50%,-50%); */ | ||
188 | + display:flex; | ||
189 | + flex-wrap: wrap | ||
190 | + | ||
191 | +} | ||
192 | +.selcounitem{ | ||
193 | + color:#333; | ||
194 | + font-size: 30rpx; | ||
195 | + height: 100rpx; | ||
196 | + border-bottom:1rpx solid #f5f5f5; | ||
197 | + line-height: 100rpx; | ||
198 | +} | ||
199 | +.registeritem{ | ||
200 | + color:#666666; | ||
201 | + font-size: 30rpx; | ||
202 | + padding: 21rpx; | ||
203 | + box-sizing: border-box; | ||
204 | + margin-left:20rpx; | ||
205 | + line-height: 1 | ||
206 | + | ||
207 | +} | ||
208 | +.imgleft{ | ||
209 | + width:52rpx; | ||
210 | + height:73rpx; | ||
211 | + font-size: 0 | ||
212 | +} | ||
213 | + | ||
214 | +image{ | ||
215 | + width:100%; | ||
216 | + height:100%; | ||
217 | +} | ||
218 | +.contenttop{ | ||
219 | + color:#1A1A1A; | ||
220 | + font-size: 28rpx; | ||
221 | +} | ||
222 | +.contenbottom{ | ||
223 | + color:#999999; | ||
224 | + font-size: 24rpx; | ||
225 | + | ||
226 | +} | ||
227 | +.contentright{ | ||
228 | + margin-left:34rpx; | ||
229 | +} | ||
230 | +page{ | ||
231 | + height:100% | ||
232 | +} | ||
233 | + | ||
234 | +.city_box{ | ||
235 | + height:100%; | ||
236 | + background: #fff; | ||
237 | + display: flex; | ||
238 | + margin-top:187rpx; | ||
239 | + | ||
240 | +} | ||
241 | +.city_left{ | ||
242 | + flex: 1; | ||
243 | +} | ||
244 | +.city_right{ | ||
245 | + width: 60rpx; | ||
246 | + display: flex; | ||
247 | + flex-direction: column; | ||
248 | + justify-content: space-around; | ||
249 | +} | ||
250 | +.letter_item{ | ||
251 | + flex: 1; | ||
252 | + display: block; | ||
253 | + font-size: 24rpx; | ||
254 | + color: #33B9FF; | ||
255 | + text-align: center; | ||
256 | +} | ||
257 | +.city_locate,.national{ | ||
258 | + height: 80rpx; | ||
259 | + line-height: 80rpx; | ||
260 | + border-bottom: 1px solid #efefef; | ||
261 | + font-size: 28rpx; | ||
262 | + color: #333; | ||
263 | + padding-left: 25rpx; | ||
264 | +} | ||
265 | +.city_locate_title{ | ||
266 | + color: #999; | ||
267 | + margin-right: 20rpx; | ||
268 | +} | ||
269 | +.new_city{ | ||
270 | + /* background: #efefef; */ | ||
271 | + font-size: 28rpx; | ||
272 | +} | ||
273 | +.new_city_title{ | ||
274 | + line-height: 50rpx; | ||
275 | + color: #999; | ||
276 | + padding-left: 25rpx; | ||
277 | + margin-bottom: 20rpx; | ||
278 | +} | ||
279 | +.new_city_box{ | ||
280 | + /* display: flex; | ||
281 | + flex-wrap: wrap; */ | ||
282 | +} | ||
283 | +.new_city_text{ | ||
284 | + /* width: 200rpx; */ | ||
285 | + /* text-align: center; | ||
286 | + line-height: 70rpx; | ||
287 | + background: #fff; | ||
288 | + border-radius: 35rpx; | ||
289 | + margin:0 0 22rpx 22rpx; */ | ||
290 | +} | ||
291 | +.city_first_letter{ | ||
292 | + line-height: 40rpx; | ||
293 | + height: 40rpx; | ||
294 | + padding-left: 25rpx; | ||
295 | + font-size: 28rpx; | ||
296 | + background: #eee; | ||
297 | + color: #999; | ||
298 | +} | ||
299 | +.city_name{ | ||
300 | + display: flex; | ||
301 | + align-items: center; | ||
302 | + /* line-height: 80rpx; | ||
303 | + height: 80rpx; */ | ||
304 | + padding: 28rpx; | ||
305 | + box-sizing: border-box; | ||
306 | + border-bottom: 1px solid #efefef; | ||
307 | + font-size: 28rpx; | ||
308 | + color: #333; | ||
309 | + padding-left: 25rpx; | ||
310 | +} | ||
311 | +.textname{ | ||
312 | + padding: 0 23rpx; | ||
313 | + box-sizing: border-box; | ||
314 | + border-right:1rpx solid #f5f5f5; | ||
315 | +} | ||
316 | +.textname:first-child{ | ||
317 | + padding-left:0; | ||
318 | +} | ||
319 | +.textname:last-child{ | ||
320 | + border-right:none; | ||
321 | +} | ||
322 | +.selact{ | ||
323 | + color:#E81825 | ||
324 | +} | ||
325 | + | ||
326 | +.countryitem{ | ||
327 | + display: flex; | ||
328 | + align-items: center; | ||
329 | + justify-content: space-between | ||
330 | +} | ||
331 | +.gouimg{ | ||
332 | + width:50rpx; | ||
333 | + height:40rpx; | ||
334 | + font-size: 0 | ||
335 | +} |
pages/homeblock/brandlist/brandlist.js
0 → 100644
1 | +// pages/homeblock/brandlist/brandlist.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + navbar: ['在售','预售','停产在售','停售'], | ||
10 | + currentTab: 0, | ||
11 | + url:"" | ||
12 | + | ||
13 | + }, | ||
14 | + | ||
15 | + /** | ||
16 | + * 生命周期函数--监听页面加载 | ||
17 | + */ | ||
18 | + onLoad: function (options) { | ||
19 | + this.setData({ | ||
20 | + url: app.globalData.url | ||
21 | + }) | ||
22 | + }, | ||
23 | + navbarTap: function (e) { | ||
24 | + this.setData({ | ||
25 | + currentTab: e.currentTarget.dataset.idx, | ||
26 | + parent_id: e.currentTarget.dataset.id, | ||
27 | + | ||
28 | + }) | ||
29 | + }, | ||
30 | + /** | ||
31 | + * 生命周期函数--监听页面初次渲染完成 | ||
32 | + */ | ||
33 | + onReady: function () { | ||
34 | + | ||
35 | + }, | ||
36 | + | ||
37 | + /** | ||
38 | + * 生命周期函数--监听页面显示 | ||
39 | + */ | ||
40 | + onShow: function () { | ||
41 | + | ||
42 | + }, | ||
43 | + | ||
44 | + /** | ||
45 | + * 生命周期函数--监听页面隐藏 | ||
46 | + */ | ||
47 | + onHide: function () { | ||
48 | + | ||
49 | + }, | ||
50 | + | ||
51 | + /** | ||
52 | + * 生命周期函数--监听页面卸载 | ||
53 | + */ | ||
54 | + onUnload: function () { | ||
55 | + | ||
56 | + }, | ||
57 | + | ||
58 | + /** | ||
59 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
60 | + */ | ||
61 | + onPullDownRefresh: function () { | ||
62 | + | ||
63 | + }, | ||
64 | + | ||
65 | + /** | ||
66 | + * 页面上拉触底事件的处理函数 | ||
67 | + */ | ||
68 | + onReachBottom: function () { | ||
69 | + | ||
70 | + }, | ||
71 | + | ||
72 | + /** | ||
73 | + * 用户点击右上角分享 | ||
74 | + */ | ||
75 | + onShareAppMessage: function () { | ||
76 | + | ||
77 | + } | ||
78 | +}) |
pages/homeblock/brandlist/brandlist.json
0 → 100644
pages/homeblock/brandlist/brandlist.wxml
0 → 100644
1 | +<view class="kindnav"> | ||
2 | + <view wx:for="{{navbar}}" data-idx="{{index}}" class="kindnav_item {{currentTab==index ? 'kindactive' : ''}}" wx:key="unique" bindtap="navbarTap" data-id="{{item.id}}">{{item}} | ||
3 | + </view> | ||
4 | +</view> | ||
5 | + | ||
6 | +<view class="brandhead"> | ||
7 | + <view class="brandleft"> | ||
8 | + <view class="brandleftimg"> | ||
9 | + <image src="{{url}}aicon_19@2x.png"></image> | ||
10 | + </view> | ||
11 | + <view class="lefttitle">白云边</view> | ||
12 | + <view class="starimg"> | ||
13 | + <image src="{{url}}aicon_09x.png"></image> | ||
14 | + </view> | ||
15 | + </view> | ||
16 | + <view class="brandright"> | ||
17 | + <view class="rightname">品牌介绍</view> | ||
18 | + <view class="redrow"> | ||
19 | + <image src="{{url}}aicon_26@2x.png"></image> | ||
20 | + </view> | ||
21 | + </view> | ||
22 | +</view> | ||
23 | + | ||
24 | +<view class="baiyun">白云边</view> | ||
25 | + | ||
26 | +<view > | ||
27 | + <view class="searchitem"> | ||
28 | + <view class="searchitemleft"> | ||
29 | + <view class="itemleftimg"> | ||
30 | + <image src="{{url}}aicon_11@2x.png"></image> | ||
31 | + </view> | ||
32 | + | ||
33 | + <view class="itemiddle"> | ||
34 | + <view class="itemidelename">泸州迎宾酒</view> | ||
35 | + <view class="nambottom"> | ||
36 | + <text class="namebottomitem">53°</text> | ||
37 | + <text class="namebottomitem">浓香型</text> | ||
38 | + <text class="namebottomitem">53°</text> | ||
39 | + <text class="namebottomitem">53°</text> | ||
40 | + </view> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + | ||
44 | + <view class="starimg"> | ||
45 | + <!-- aicon_010x.png --> | ||
46 | + | ||
47 | + <image src="{{url}}aicon_09x.png"></image> | ||
48 | + </view> | ||
49 | + | ||
50 | + </view> | ||
51 | + | ||
52 | +</view> |
pages/homeblock/brandlist/brandlist.wxss
0 → 100644
1 | +@import '../search/search.wxss'; | ||
2 | + | ||
3 | +page{ | ||
4 | + background: #F2F2F2 | ||
5 | +} | ||
6 | +image{ | ||
7 | + width:100%; | ||
8 | + height:100%; | ||
9 | +} | ||
10 | + | ||
11 | +.kindnav { | ||
12 | + height: 80rpx; | ||
13 | + display: flex; | ||
14 | + justify-content: space-between; | ||
15 | + text-align: center; | ||
16 | + white-space: nowrap; | ||
17 | + overflow-x: scroll; | ||
18 | + align-items: center; | ||
19 | + background: #fff; | ||
20 | + font-size: 0; | ||
21 | + border-bottom: 2rpx solid #f5f5f5; | ||
22 | + padding: 0 32rpx; | ||
23 | +} | ||
24 | + | ||
25 | +.kindnav_item { | ||
26 | + white-space: nowrap; | ||
27 | + list-style: none; | ||
28 | + font-size: 28rpx; | ||
29 | + color: #8d8d8d; | ||
30 | + width: auto; | ||
31 | + padding: 0 36rpx; | ||
32 | + position: relative; | ||
33 | +} | ||
34 | + | ||
35 | +.kindactive { | ||
36 | + color: #E81825; | ||
37 | +} | ||
38 | + | ||
39 | +.kindactive:after { | ||
40 | + display: block; | ||
41 | + content: ""; | ||
42 | + width: 70rpx; | ||
43 | + height: 4rpx; | ||
44 | + background: #E81825; | ||
45 | + position: absolute; | ||
46 | + bottom: -20rpx; | ||
47 | + left: 0; | ||
48 | + right: 0; | ||
49 | + margin: 0 auto; | ||
50 | +} | ||
51 | +.brandleftimg{ | ||
52 | + width:90rpx; | ||
53 | + height:90rpx; | ||
54 | + font-size: 0; | ||
55 | + border-radius:50%; | ||
56 | +} | ||
57 | +.lefttitle{ | ||
58 | + color:#1A1A1A; | ||
59 | + font-size: 36rpx; | ||
60 | + margin-left:21rpx; | ||
61 | + font-weight: bold; | ||
62 | +} | ||
63 | +.brandleft{ | ||
64 | + display:flex; | ||
65 | + align-items: center | ||
66 | +} | ||
67 | + | ||
68 | +.brandhead{ | ||
69 | + display:flex; | ||
70 | + justify-content: space-between; | ||
71 | + align-items: center; | ||
72 | + padding: 32rpx 32rpx; | ||
73 | + box-sizing: border-box; | ||
74 | + background: #fff; | ||
75 | +} | ||
76 | +.brandright{ | ||
77 | + display:flex; | ||
78 | + align-items: center | ||
79 | + | ||
80 | +} | ||
81 | +.redrow{ | ||
82 | + margin-left:20rpx | ||
83 | +} | ||
84 | +.starimg{ | ||
85 | + margin-left:26rpx; | ||
86 | +} | ||
87 | +.rightname{ | ||
88 | + color:#E81825; | ||
89 | + font-size: 26rpx; | ||
90 | +} | ||
91 | +.baiyun{ | ||
92 | + color:#666666; | ||
93 | + font-size: 26rpx; | ||
94 | + padding: 11rpx 31rpx; | ||
95 | + box-sizing: border-box; | ||
96 | +} | ||
97 | +.searchitem{ | ||
98 | + background: #fff; | ||
99 | +} |
pages/homeblock/brandpage/brandpage.js
0 → 100644
1 | +// pages/homeblock/brandpage/brandpage.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url:"" | ||
10 | + }, | ||
11 | + | ||
12 | + /** | ||
13 | + * 生命周期函数--监听页面加载 | ||
14 | + */ | ||
15 | + onLoad: function (options) { | ||
16 | + this.setData({ | ||
17 | + url: app.globalData.url | ||
18 | + }) | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面初次渲染完成 | ||
23 | + */ | ||
24 | + onReady: function () { | ||
25 | + | ||
26 | + }, | ||
27 | + | ||
28 | + /** | ||
29 | + * 生命周期函数--监听页面显示 | ||
30 | + */ | ||
31 | + onShow: function () { | ||
32 | + | ||
33 | + }, | ||
34 | + | ||
35 | + /** | ||
36 | + * 生命周期函数--监听页面隐藏 | ||
37 | + */ | ||
38 | + onHide: function () { | ||
39 | + | ||
40 | + }, | ||
41 | + | ||
42 | + /** | ||
43 | + * 生命周期函数--监听页面卸载 | ||
44 | + */ | ||
45 | + onUnload: function () { | ||
46 | + | ||
47 | + }, | ||
48 | + | ||
49 | + /** | ||
50 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
51 | + */ | ||
52 | + onPullDownRefresh: function () { | ||
53 | + | ||
54 | + }, | ||
55 | + | ||
56 | + /** | ||
57 | + * 页面上拉触底事件的处理函数 | ||
58 | + */ | ||
59 | + onReachBottom: function () { | ||
60 | + | ||
61 | + }, | ||
62 | + | ||
63 | + /** | ||
64 | + * 用户点击右上角分享 | ||
65 | + */ | ||
66 | + onShareAppMessage: function () { | ||
67 | + | ||
68 | + } | ||
69 | +}) |
pages/homeblock/brandpage/brandpage.json
0 → 100644
pages/homeblock/brandpage/brandpage.wxml
0 → 100644
1 | +<view class="brandhead"> | ||
2 | + <image src="{{url}}aicon_21@2x.png"></image> | ||
3 | + <view class="branditem"> | ||
4 | + | ||
5 | + <view class="branditemleft"> | ||
6 | + | ||
7 | + <view class="brandlimg"> | ||
8 | + <image src="{{url}}aicon_19@2x.png"></image> | ||
9 | + </view> | ||
10 | + | ||
11 | + <view class="brandname">白云边</view> | ||
12 | + </view> | ||
13 | + | ||
14 | + <view class="branditenright">收藏</view> | ||
15 | + </view> | ||
16 | +</view> | ||
17 | + | ||
18 | +<view class="brandbottom"> | ||
19 | + <view class="brandboleft"> | ||
20 | + <text class="brandtitle">湖北白云边股份股份有限公司</text> | ||
21 | + <view class="duigou"> | ||
22 | + <image src="{{url}}aicon_20x.png"></image> | ||
23 | + </view> | ||
24 | + </view> | ||
25 | + | ||
26 | + <view class="atten">关注</view> | ||
27 | + | ||
28 | +</view> | ||
29 | + | ||
30 | +<view class="brandbox"> | ||
31 | + <view class="brandboxitem"> | ||
32 | + <view class="boxtop"> | ||
33 | + <view class="boxtopleft"> | ||
34 | + 品牌简介 | ||
35 | + </view> | ||
36 | + <view class="boxright"> | ||
37 | + <image src="{{url}}aicon_24x.png"></image> | ||
38 | + </view> | ||
39 | + </view> | ||
40 | + | ||
41 | + <view class="brandtext"> | ||
42 | + 湖北白云边集团(以下简称“集团”或“白云边集团”)是一家以酒业为龙头产业的多元化投资控股企业集团,总部位于湖北省武汉市。白云边集团下设7大战略业务单位,包括白酒、食品餐饮、钢铁制造、置业投资、酒店旅游、物流商贸、文化传播等。白云边集团的多元化业务具有良好的产业基础和市场竞争优势,其中白酒已建立行业领先地位。截止2017年,白云边集团总资产达80余亿元。 | ||
43 | + </view> | ||
44 | + | ||
45 | + <view class="brandimg"> | ||
46 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
47 | + </view> | ||
48 | + | ||
49 | + </view> | ||
50 | + | ||
51 | + <view class="brandboxitem"> | ||
52 | + <view class="boxtop"> | ||
53 | + <view class="boxtopleft"> | ||
54 | + 品牌文化 | ||
55 | + </view> | ||
56 | + <view class="boxright"> | ||
57 | + <image src="{{url}}aicon_24x.png"></image> | ||
58 | + </view> | ||
59 | + </view> | ||
60 | + | ||
61 | + | ||
62 | + <view class="brandimg"> | ||
63 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
64 | + </view> | ||
65 | + | ||
66 | + </view> | ||
67 | + | ||
68 | +</view> |
pages/homeblock/brandpage/brandpage.wxss
0 → 100644
1 | +.brandhead{ | ||
2 | + width:750rpx; | ||
3 | + height:340rpx; | ||
4 | + font-size: 0; | ||
5 | + position: relative | ||
6 | +} | ||
7 | + | ||
8 | +image{ | ||
9 | + width:100%; | ||
10 | + height:100%; | ||
11 | +} | ||
12 | +.branditem{ | ||
13 | + width:100%; | ||
14 | + display:flex; | ||
15 | + align-items: center; | ||
16 | + justify-content: space-between; | ||
17 | + padding: 0 32rpx; | ||
18 | + box-sizing: border-box; | ||
19 | + position: absolute; | ||
20 | + top:125rpx; | ||
21 | +} | ||
22 | +.brandlimg{ | ||
23 | + width:90rpx; | ||
24 | + height:90rpx; | ||
25 | + font-size: 0; | ||
26 | + | ||
27 | +} | ||
28 | +.brandname{ | ||
29 | + color:#FFFFFF; | ||
30 | + font-size: 36rpx; | ||
31 | + margin-left:21rpx; | ||
32 | +} | ||
33 | +.branditemleft{ | ||
34 | + display:flex; | ||
35 | + align-items: center | ||
36 | +} | ||
37 | +.branditenright{ | ||
38 | + width:100rpx; | ||
39 | + height:50rpx; | ||
40 | + background:rgba(255,255,255,1); | ||
41 | + border-radius:2px; | ||
42 | + color:#E81825; | ||
43 | + font-size: 26rpx; | ||
44 | + text-align: center; | ||
45 | + line-height: 50rpx; | ||
46 | +} | ||
47 | +.brandbottom{ | ||
48 | + display:flex; | ||
49 | + justify-content: space-between; | ||
50 | + align-items: center; | ||
51 | + padding: 31rpx 31rpx; | ||
52 | + box-sizing:border-box; | ||
53 | + border-bottom: 16rpx solid #F2F2F2 | ||
54 | +} | ||
55 | +.brandtitle{ | ||
56 | + color:#1A1A1A; | ||
57 | + font-size: 28rpx; | ||
58 | +} | ||
59 | +.duigou{ | ||
60 | + width:24rpx; | ||
61 | + height:24rpx; | ||
62 | + font-size: 0; | ||
63 | + margin-left:8rpx; | ||
64 | +} | ||
65 | +.brandboleft{ | ||
66 | + display:flex; | ||
67 | + align-items: center; | ||
68 | + | ||
69 | +} | ||
70 | +.brandboxitem{ | ||
71 | + padding: 32rpx; | ||
72 | + box-sizing: border-box; | ||
73 | + border-bottom:12rpx solid #F2F2F2 | ||
74 | +} | ||
75 | +.boxtop{ | ||
76 | + display:flex; | ||
77 | + justify-content: space-between; | ||
78 | + align-items: center | ||
79 | +} | ||
80 | +.boxtopleft{ | ||
81 | + color:#1A1A1A; | ||
82 | + font-size: 32rpx; | ||
83 | + position: relative; | ||
84 | + padding-left: 18rpx; | ||
85 | +} | ||
86 | +.boxtopleft::before{ | ||
87 | + position: absolute; | ||
88 | + top:10rpx; | ||
89 | + left:-2%; | ||
90 | + content:''; | ||
91 | + display:block; | ||
92 | + width:4rpx; | ||
93 | + height:26rpx; | ||
94 | + background:#E81825 ; | ||
95 | + | ||
96 | +} | ||
97 | +.brandtext{ | ||
98 | + color:#1A1A1A; | ||
99 | + font-size: 26rpx; | ||
100 | + margin-top:28rpx; | ||
101 | +} | ||
102 | +.brandimg{ | ||
103 | + width:686rpx; | ||
104 | + height:340rpx; | ||
105 | + font-size: 0; | ||
106 | + margin-top:37rpx; | ||
107 | +} |
pages/homeblock/companyintro/companyintro.js
0 → 100644
1 | +// pages/homeblock/companyintro/companyintro.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url:'', | ||
10 | + imgUrls: ["http://winesbook.cn/static/images_mini/aicon_23@2x.png", | ||
11 | + "http://winesbook.cn/static/images_mini/aicon_23@2x.png", | ||
12 | + "http://winesbook.cn/static/images_mini/aicon_23@2x.png"], | ||
13 | + indicatorDots: false, | ||
14 | + autoplay: false, | ||
15 | + interval: 2000, | ||
16 | + duration: 1000, | ||
17 | + currentSwiper: 0, | ||
18 | + | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面加载 | ||
23 | + */ | ||
24 | + onLoad: function (options) { | ||
25 | + this.setData({ | ||
26 | + url: app.globalData.url | ||
27 | + }) | ||
28 | + }, | ||
29 | + swiperChange: function (e) { | ||
30 | + this.setData({ | ||
31 | + currentSwiper: e.detail.current | ||
32 | + }) | ||
33 | + }, | ||
34 | + /** | ||
35 | + * 生命周期函数--监听页面初次渲染完成 | ||
36 | + */ | ||
37 | + onReady: function () { | ||
38 | + | ||
39 | + }, | ||
40 | + | ||
41 | + /** | ||
42 | + * 生命周期函数--监听页面显示 | ||
43 | + */ | ||
44 | + onShow: function () { | ||
45 | + | ||
46 | + }, | ||
47 | + | ||
48 | + /** | ||
49 | + * 生命周期函数--监听页面隐藏 | ||
50 | + */ | ||
51 | + onHide: function () { | ||
52 | + | ||
53 | + }, | ||
54 | + | ||
55 | + /** | ||
56 | + * 生命周期函数--监听页面卸载 | ||
57 | + */ | ||
58 | + onUnload: function () { | ||
59 | + | ||
60 | + }, | ||
61 | + | ||
62 | + /** | ||
63 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
64 | + */ | ||
65 | + onPullDownRefresh: function () { | ||
66 | + | ||
67 | + }, | ||
68 | + | ||
69 | + /** | ||
70 | + * 页面上拉触底事件的处理函数 | ||
71 | + */ | ||
72 | + onReachBottom: function () { | ||
73 | + | ||
74 | + }, | ||
75 | + | ||
76 | + /** | ||
77 | + * 用户点击右上角分享 | ||
78 | + */ | ||
79 | + onShareAppMessage: function () { | ||
80 | + | ||
81 | + } | ||
82 | +}) |
1 | + | ||
2 | + | ||
3 | +<view class="brandbottom"> | ||
4 | + <view class="brandboleft"> | ||
5 | + <text class="brandtitle">湖北白云边股份股份有限公司</text> | ||
6 | + <view class="duigou"> | ||
7 | + <image src="{{url}}aicon_20x.png"></image> | ||
8 | + </view> | ||
9 | + </view> | ||
10 | + | ||
11 | + <view class="atten">关注</view> | ||
12 | + | ||
13 | +</view> | ||
14 | + <view class="swiper_image"> | ||
15 | + <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange"> | ||
16 | + <block wx:for="{{imgUrls}}" wx:key="doct"> | ||
17 | + <swiper-item style="border-radius:10px;"> | ||
18 | + <image src="{{item}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" /> | ||
19 | + </swiper-item> | ||
20 | + </block> | ||
21 | + </swiper> | ||
22 | + | ||
23 | + <view class="dots"> | ||
24 | + <block wx:for="{{imgUrls}}" wx:key=""> | ||
25 | + <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view> | ||
26 | + </block> | ||
27 | + </view> | ||
28 | + | ||
29 | + </view> | ||
30 | + | ||
31 | +<view class="brandbox"> | ||
32 | + <view class="brandboxitem"> | ||
33 | + <view class="boxtop"> | ||
34 | + <view class="boxtopleft"> | ||
35 | + 品牌简介 | ||
36 | + </view> | ||
37 | + <view class="boxright"> | ||
38 | + <image src="{{url}}aicon_24x.png"></image> | ||
39 | + </view> | ||
40 | + </view> | ||
41 | + | ||
42 | + <view class="brandtext"> | ||
43 | + 湖北白云边集团(以下简称“集团”或“白云边集团”)是一家以酒业为龙头产业的多元化投资控股企业集团,总部位于湖北省武汉市。白云边集团下设7大战略业务单位,包括白酒、食品餐饮、钢铁制造、置业投资、酒店旅游、物流商贸、文化传播等。白云边集团的多元化业务具有良好的产业基础和市场竞争优势,其中白酒已建立行业领先地位。截止2017年,白云边集团总资产达80余亿元。 | ||
44 | + </view> | ||
45 | + | ||
46 | + <view class="brandimg"> | ||
47 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
48 | + </view> | ||
49 | + | ||
50 | + </view> | ||
51 | + | ||
52 | + <view class="brandboxitem"> | ||
53 | + <view class="boxtop"> | ||
54 | + <view class="boxtopleft"> | ||
55 | + 品牌文化 | ||
56 | + </view> | ||
57 | + <view class="boxright"> | ||
58 | + <image src="{{url}}aicon_24x.png"></image> | ||
59 | + </view> | ||
60 | + </view> | ||
61 | + | ||
62 | + | ||
63 | + <view class="brandimg"> | ||
64 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
65 | + </view> | ||
66 | + | ||
67 | + </view> | ||
68 | + | ||
69 | +</view> |
1 | +.brandhead{ | ||
2 | + width:750rpx; | ||
3 | + height:340rpx; | ||
4 | + font-size: 0; | ||
5 | + position: relative | ||
6 | +} | ||
7 | + | ||
8 | +image{ | ||
9 | + width:100%; | ||
10 | + height:100%; | ||
11 | +} | ||
12 | +.branditem{ | ||
13 | + width:100%; | ||
14 | + display:flex; | ||
15 | + align-items: center; | ||
16 | + justify-content: space-between; | ||
17 | + padding: 0 32rpx; | ||
18 | + box-sizing: border-box; | ||
19 | + position: absolute; | ||
20 | + top:125rpx; | ||
21 | +} | ||
22 | +.brandlimg{ | ||
23 | + width:90rpx; | ||
24 | + height:90rpx; | ||
25 | + font-size: 0; | ||
26 | + | ||
27 | +} | ||
28 | +.brandname{ | ||
29 | + color:#FFFFFF; | ||
30 | + font-size: 36rpx; | ||
31 | + margin-left:21rpx; | ||
32 | +} | ||
33 | +.branditemleft{ | ||
34 | + display:flex; | ||
35 | + align-items: center | ||
36 | +} | ||
37 | +.branditenright{ | ||
38 | + width:100rpx; | ||
39 | + height:50rpx; | ||
40 | + background:rgba(255,255,255,1); | ||
41 | + border-radius:2px; | ||
42 | + color:#E81825; | ||
43 | + font-size: 26rpx; | ||
44 | + text-align: center; | ||
45 | + line-height: 50rpx; | ||
46 | +} | ||
47 | +.brandbottom{ | ||
48 | + display:flex; | ||
49 | + justify-content: space-between; | ||
50 | + align-items: center; | ||
51 | + padding: 31rpx 31rpx; | ||
52 | + box-sizing:border-box; | ||
53 | + | ||
54 | +} | ||
55 | +.brandtitle{ | ||
56 | + color:#1A1A1A; | ||
57 | + font-size: 28rpx; | ||
58 | +} | ||
59 | +.duigou{ | ||
60 | + width:24rpx; | ||
61 | + height:24rpx; | ||
62 | + font-size: 0; | ||
63 | + margin-left:8rpx; | ||
64 | +} | ||
65 | +.brandboleft{ | ||
66 | + display:flex; | ||
67 | + align-items: center; | ||
68 | + | ||
69 | +} | ||
70 | +.brandboxitem{ | ||
71 | + padding: 32rpx; | ||
72 | + box-sizing: border-box; | ||
73 | + border-bottom:12rpx solid #F2F2F2 | ||
74 | +} | ||
75 | +.boxtop{ | ||
76 | + display:flex; | ||
77 | + justify-content: space-between; | ||
78 | + align-items: center | ||
79 | +} | ||
80 | +.boxtopleft{ | ||
81 | + color:#1A1A1A; | ||
82 | + font-size: 32rpx; | ||
83 | + position: relative; | ||
84 | + padding-left: 18rpx; | ||
85 | +} | ||
86 | +.boxtopleft::before{ | ||
87 | + position: absolute; | ||
88 | + top:10rpx; | ||
89 | + left:-2%; | ||
90 | + content:''; | ||
91 | + display:block; | ||
92 | + width:4rpx; | ||
93 | + height:26rpx; | ||
94 | + background:#E81825 ; | ||
95 | + | ||
96 | +} | ||
97 | +.brandtext{ | ||
98 | + color:#1A1A1A; | ||
99 | + font-size: 26rpx; | ||
100 | + margin-top:28rpx; | ||
101 | +} | ||
102 | +.brandimg{ | ||
103 | + width:686rpx; | ||
104 | + height:340rpx; | ||
105 | + font-size: 0; | ||
106 | + margin-top:37rpx; | ||
107 | +} | ||
108 | + | ||
109 | +/* 轮播图 */ | ||
110 | + | ||
111 | + .swiper_image{ | ||
112 | + width:750rpx; | ||
113 | + height:340rpx; | ||
114 | + font-size: 0; | ||
115 | + | ||
116 | + position: relative; | ||
117 | + | ||
118 | +} | ||
119 | +.swiper_item_img{ | ||
120 | + width:750rpx; | ||
121 | + height:340rpx; | ||
122 | +} | ||
123 | +.swiper_image image{ | ||
124 | + width:100%; | ||
125 | + height:100%; | ||
126 | + /* box-shadow:0px -1px 6px 0px rgba(212,137,96,0.11); */ | ||
127 | + | ||
128 | +} | ||
129 | +.swiper_item_img swiper-item{ | ||
130 | + width:750rpx; | ||
131 | + height:340rpx; | ||
132 | + border-radius:0 !important | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | +} | ||
137 | +.swiper_item_img swiper-item image{ | ||
138 | + width:100%; | ||
139 | + height:100%; | ||
140 | + | ||
141 | +} | ||
142 | + | ||
143 | + | ||
144 | +.dots{ | ||
145 | + /* width: 156rpx; */ | ||
146 | + height: 36rpx; | ||
147 | + display: flex; | ||
148 | + flex-direction: row; | ||
149 | + position: absolute; | ||
150 | + justify-content: center; | ||
151 | + left: 0; | ||
152 | + right:0; | ||
153 | + bottom: 18rpx; | ||
154 | +} | ||
155 | +/*未选中时的小圆点样式 */ | ||
156 | +.dot{ | ||
157 | + width: 14rpx; | ||
158 | + height: 14rpx; | ||
159 | + border-radius: 50%; | ||
160 | + margin-right: 26rpx; | ||
161 | + background-color:#000000; | ||
162 | +} | ||
163 | +/*选中以后的小圆点样式 */ | ||
164 | +.active{ | ||
165 | + width: 14rpx; | ||
166 | + height: 14rpx; | ||
167 | + border-radius:50%; | ||
168 | + background-color: #E81825; | ||
169 | + | ||
170 | + | ||
171 | +} |
pages/homeblock/evalute/evalute.js
0 → 100644
1 | +// pages/homeblock/evalute/evalute.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url:'', | ||
10 | + star1:0, | ||
11 | + sepic:false | ||
12 | + | ||
13 | + }, | ||
14 | + | ||
15 | + /** | ||
16 | + * 生命周期函数--监听页面加载 | ||
17 | + */ | ||
18 | + onLoad: function (options) { | ||
19 | + this.setData({ | ||
20 | + url: app.globalData.url | ||
21 | + }) | ||
22 | + }, | ||
23 | + star(e){ | ||
24 | + this.setData({ | ||
25 | + star1:e.currentTarget.dataset.id | ||
26 | + }) | ||
27 | + }, | ||
28 | + se(){ | ||
29 | + this.setData({ | ||
30 | + sepic: !this.data.sepic | ||
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/homeblock/evalute/evalute.json
0 → 100644
pages/homeblock/evalute/evalute.wxml
0 → 100644
1 | +<view star> | ||
2 | + <view class="starname">滑动星星评分</view> | ||
3 | + <view class="starlist"> | ||
4 | + <view class="staritem" bindtap="star" data-id="1"> | ||
5 | + <image src="{{star1>=1?'http://winesbook.cn/static/images_mini/aicon_10x.png':'http://winesbook.cn/static/images_mini/aicon_09x.png'}}"></image> | ||
6 | + | ||
7 | + </view> | ||
8 | + | ||
9 | + <view class="staritem" bindtap="star" data-id="2"> | ||
10 | + <image src="{{star1>=2?'http://winesbook.cn/static/images_mini/aicon_10x.png':'http://winesbook.cn/static/images_mini/aicon_09x.png'}}"></image> | ||
11 | + </view> | ||
12 | + | ||
13 | + <view class="staritem" bindtap="star" data-id="3"> | ||
14 | + <image src="{{star1>=3?'http://winesbook.cn/static/images_mini/aicon_10x.png':'http://winesbook.cn/static/images_mini/aicon_09x.png'}}"></image> | ||
15 | + </view> | ||
16 | + <view class="staritem" bindtap="star" data-id="4"> | ||
17 | + <image src="{{star1>=4?'http://winesbook.cn/static/images_mini/aicon_10x.png':'http://winesbook.cn/static/images_mini/aicon_09x.png'}}"></image> | ||
18 | + </view> | ||
19 | + | ||
20 | + <view class="staritem" bindtap="star" data-id="5"> | ||
21 | + <image src="{{star1>=5?'http://winesbook.cn/static/images_mini/aicon_10x.png':'http://winesbook.cn/static/images_mini/aicon_09x.png'}}"></image> | ||
22 | + </view> | ||
23 | + | ||
24 | + </view> | ||
25 | + | ||
26 | +</view> | ||
27 | + | ||
28 | +<view class="biaoqian"> | ||
29 | + <view class="biaoqianleft"> | ||
30 | + 选择标签 | ||
31 | + </view> | ||
32 | + <view class="biaoqianright" bindtap="se"> | ||
33 | + <image src="{{sepic==false?'http://winesbook.cn/static/images_mini/aicon_53x.png':'http://winesbook.cn/static/images_mini/aicon_52x.png'}}"></image> | ||
34 | + </view> | ||
35 | +</view> | ||
36 | + | ||
37 | +<view class="showpic"> | ||
38 | + <view class="showpicitem">婚宴</view> | ||
39 | + <view class="showpicitem">婚宴</view> | ||
40 | + <view class="showpicitem">婚宴</view> | ||
41 | + <view class="showpicitem">婚宴</view> | ||
42 | + <view class="showpicitem">婚宴</view> | ||
43 | + <view class="showpicitem">婚宴</view> | ||
44 | + <view class="showpicitem">婚宴</view> | ||
45 | + <view class="showpicitem">婚宴</view> | ||
46 | + <view class="showpicitem">婚宴</view> | ||
47 | + | ||
48 | + <view class="addnew"> | ||
49 | + <view class="jia"> | ||
50 | + <image src="/img/aicon66.png"></image> | ||
51 | + </view> | ||
52 | + | ||
53 | + <view class="newlabelname">新标签</view> | ||
54 | + </view> | ||
55 | +</view> | ||
56 | + | ||
57 | +<!-- 上传图片 --> | ||
58 | + | ||
59 | +<view class="imgbox"> | ||
60 | + | ||
61 | + <view class="imgboxite"> | ||
62 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
63 | + | ||
64 | + <view class="cha"> | ||
65 | + <image src="{{url}}/aicon_54x.png"></image> | ||
66 | + </view> | ||
67 | + </view> | ||
68 | + <view class="imgboxite"> | ||
69 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
70 | + | ||
71 | + <view class="cha"> | ||
72 | + <image src="{{url}}/aicon_54x.png"></image> | ||
73 | + </view> | ||
74 | + </view> | ||
75 | + <view class="imgboxite"> | ||
76 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
77 | + | ||
78 | + <view class="cha"> | ||
79 | + <image src="{{url}}/aicon_54x.png"></image> | ||
80 | + </view> | ||
81 | + </view> | ||
82 | + <view class="imgboxite"> | ||
83 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
84 | + | ||
85 | + <view class="cha"> | ||
86 | + <image src="{{url}}/aicon_54x.png"></image> | ||
87 | + </view> | ||
88 | + </view> | ||
89 | + | ||
90 | + <view class="addimg"> | ||
91 | + <image src="{{url}}/aicon_55x.png"></image> | ||
92 | + </view> | ||
93 | + | ||
94 | + | ||
95 | +</view> | ||
96 | + | ||
97 | +<view class="entersay saybox"> | ||
98 | + <textarea placeholder='这酒怎么样我来说一说' placeholder-class='entersay'/> | ||
99 | +</view> | ||
100 | + | ||
101 | +<view class="saybottom"> | ||
102 | + <view class="sayleft"> | ||
103 | + <view class="sayimg"> | ||
104 | + <image src="{{url}}/aicon_56x.png"></image> | ||
105 | + </view> | ||
106 | + | ||
107 | + <view class="leftword">所在位置</view> | ||
108 | + </view> | ||
109 | + | ||
110 | + <view class="sayright">发布</view> | ||
111 | +</view> |
pages/homeblock/evalute/evalute.wxss
0 → 100644
1 | +.staritem{ | ||
2 | + width:46rpx; | ||
3 | + height: 46rpx; | ||
4 | + font-size: 0; | ||
5 | + margin-left:21rpx; | ||
6 | + | ||
7 | +} | ||
8 | +.starlist{ | ||
9 | + display:flex; | ||
10 | + align-items: center; | ||
11 | + justify-content: center; | ||
12 | + margin-top:30rpx; | ||
13 | +} | ||
14 | +.starname{ | ||
15 | + color:#1A1A1A; | ||
16 | + font-size: 36rpx; | ||
17 | + text-align: center; | ||
18 | + margin-top:73rpx; | ||
19 | +} | ||
20 | +.biaoqian{ | ||
21 | + display:flex; | ||
22 | + align-items: center; | ||
23 | + justify-content: center; | ||
24 | + margin-top:105rpx; | ||
25 | +} | ||
26 | +.biaoqianright{ | ||
27 | + width:24rpx; | ||
28 | + height:14rpx; | ||
29 | + font-size: 0; | ||
30 | + margin-left:16rpx; | ||
31 | +} | ||
32 | +.biaoqianleft{ | ||
33 | + color:#666666; | ||
34 | + font-size: 28rpx; | ||
35 | +} | ||
36 | +.showpic{ | ||
37 | + display:flex; | ||
38 | + align-items: center; | ||
39 | + flex-wrap: wrap; | ||
40 | + padding: 0 32rpx 0 32rpx; | ||
41 | + box-sizing: border-box; | ||
42 | + | ||
43 | +} | ||
44 | +.showpicitem{ | ||
45 | + padding: 16rpx 42rpx; | ||
46 | + box-sizing: border-box; | ||
47 | + color:#1A1A1A; | ||
48 | + font-size: 24rpx; | ||
49 | + text-align: center; | ||
50 | + | ||
51 | +} | ||
52 | +.addnew{ | ||
53 | + display:flex; | ||
54 | + align-items: center; | ||
55 | + width:124rpx; | ||
56 | + height:48rpx; | ||
57 | + border:1rpx solid rgba(232,24,37,1); | ||
58 | + border-radius:5rpx; | ||
59 | + justify-content: center; | ||
60 | +} | ||
61 | +.jia{ | ||
62 | + width:15rpx; | ||
63 | + height:15rpx; | ||
64 | + font-size: 0 | ||
65 | +} | ||
66 | +.newlabelname{ | ||
67 | + color:#E81825; | ||
68 | + font-size: 24rpx; | ||
69 | +} | ||
70 | +.imgboxite{ | ||
71 | + width:210rpx; | ||
72 | + height:210rpx; | ||
73 | + font-size:0; | ||
74 | + position: relative; | ||
75 | + margin-top:20rpx; | ||
76 | +} | ||
77 | +.imgboxite{ | ||
78 | + margin-left:28rpx; | ||
79 | +} | ||
80 | +.imgbox{ | ||
81 | + margin-top:34rpx; | ||
82 | + display:flex; | ||
83 | + flex-wrap: wrap | ||
84 | +} | ||
85 | +.cha{ | ||
86 | + width:38rpx; | ||
87 | + height:38rpx; | ||
88 | + font-size: 0; | ||
89 | + position: absolute; | ||
90 | + right:-15rpx; | ||
91 | + top:-15rpx; | ||
92 | +} | ||
93 | +.addimg{ | ||
94 | + width:210rpx; | ||
95 | + height:210rpx; | ||
96 | + font-size:0; | ||
97 | + margin-left:28rpx; | ||
98 | + margin-top:20rpx; | ||
99 | +} | ||
100 | +.entersay{ | ||
101 | + width:686rpx; | ||
102 | + height:280rpx; | ||
103 | + padding: 30rpx; | ||
104 | + color:#666666; | ||
105 | + font-size: 28rpx; | ||
106 | + | ||
107 | +} | ||
108 | +.saybox{ | ||
109 | + margin-top:20rpx; | ||
110 | +} | ||
111 | +.saybottom{ | ||
112 | +display:flex; | ||
113 | + padding: 32rpx; | ||
114 | + box-sizing: border-box; | ||
115 | + justify-content: space-between | ||
116 | +} | ||
117 | +.sayleft{ | ||
118 | + display:flex; | ||
119 | + align-items: center; | ||
120 | + | ||
121 | +} | ||
122 | +.sayimg{ | ||
123 | + width:22rpx; | ||
124 | + height:28rpx; | ||
125 | + font-size: 0 | ||
126 | +} | ||
127 | +.leftword{ | ||
128 | + color:#666666; | ||
129 | + font-size: 28rpx; | ||
130 | + margin-left:14rpx; | ||
131 | +} | ||
132 | +.sayright{ | ||
133 | +color:#E81825; | ||
134 | +font-size: 32rpx | ||
135 | +} |
1 | +// pages/homeblock/evalutecontent/evalutecontent.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url: '', | ||
10 | + }, | ||
11 | + | ||
12 | + /** | ||
13 | + * 生命周期函数--监听页面加载 | ||
14 | + */ | ||
15 | + onLoad: function (options) { | ||
16 | + this.setData({ | ||
17 | + url: app.globalData.url | ||
18 | + }) | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面初次渲染完成 | ||
23 | + */ | ||
24 | + onReady: function () { | ||
25 | + | ||
26 | + }, | ||
27 | + | ||
28 | + /** | ||
29 | + * 生命周期函数--监听页面显示 | ||
30 | + */ | ||
31 | + onShow: function () { | ||
32 | + | ||
33 | + }, | ||
34 | + | ||
35 | + /** | ||
36 | + * 生命周期函数--监听页面隐藏 | ||
37 | + */ | ||
38 | + onHide: function () { | ||
39 | + | ||
40 | + }, | ||
41 | + | ||
42 | + /** | ||
43 | + * 生命周期函数--监听页面卸载 | ||
44 | + */ | ||
45 | + onUnload: function () { | ||
46 | + | ||
47 | + }, | ||
48 | + | ||
49 | + /** | ||
50 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
51 | + */ | ||
52 | + onPullDownRefresh: function () { | ||
53 | + | ||
54 | + }, | ||
55 | + | ||
56 | + /** | ||
57 | + * 页面上拉触底事件的处理函数 | ||
58 | + */ | ||
59 | + onReachBottom: function () { | ||
60 | + | ||
61 | + }, | ||
62 | + | ||
63 | + /** | ||
64 | + * 用户点击右上角分享 | ||
65 | + */ | ||
66 | + onShareAppMessage: function () { | ||
67 | + | ||
68 | + } | ||
69 | +}) |
1 | +<view class="boxhead"> | ||
2 | +<view class="evalutetop"> | ||
3 | + <view class="evaluteleft"> | ||
4 | + <view class="code">7.4</view> | ||
5 | + <view class="evalutetop"> | ||
6 | + <view class="evaluteitem"> | ||
7 | + <image src="/img/aicon_28@2x.png"></image> | ||
8 | + </view> | ||
9 | + <view class="evaluteitem"> | ||
10 | + <image src="/img/aicon_28@2x.png"></image> | ||
11 | + </view> | ||
12 | + <view class="evaluteitem"> | ||
13 | + <image src="/img/aicon_28@2x.png"></image> | ||
14 | + </view> | ||
15 | + <view class="evaluteitem"> | ||
16 | + <image src="/img/aicon_28@2x.png"></image> | ||
17 | + </view> | ||
18 | + <view class="evaluteitem"> | ||
19 | + <image src="/img/aicon_28@2x.png"></image> | ||
20 | + </view> | ||
21 | + </view> | ||
22 | + </view> | ||
23 | + | ||
24 | + <view class="evaluteright"> | ||
25 | + <view class="star"> | ||
26 | + <view class="starleft"> | ||
27 | + <view class="staritem"> | ||
28 | + <image src="/img/aicon_27@2x.png"></image> | ||
29 | + </view> | ||
30 | + <view class="staritem"> | ||
31 | + <image src="/img/aicon_27@2x.png"></image> | ||
32 | + </view> | ||
33 | + <view class="staritem"> | ||
34 | + <image src="/img/aicon_27@2x.png"></image> | ||
35 | + </view> | ||
36 | + <view class="staritem"> | ||
37 | + <image src="/img/aicon_27@2x.png"></image> | ||
38 | + </view> | ||
39 | + <view class="staritem"> | ||
40 | + <image src="/img/aicon_27@2x.png"></image> | ||
41 | + </view> | ||
42 | + </view> | ||
43 | + | ||
44 | + <view class="tiao"> | ||
45 | + <view class="tiaoitem"></view> | ||
46 | + </view> | ||
47 | + <view class="pingfen">36.1%</view> | ||
48 | + | ||
49 | + | ||
50 | + </view> | ||
51 | + <view class="star"> | ||
52 | + <view class="starleft"> | ||
53 | + <view class="staritem"> | ||
54 | + <image src="/img/aicon_27@2x.png"></image> | ||
55 | + </view> | ||
56 | + <view class="staritem"> | ||
57 | + <image src="/img/aicon_27@2x.png"></image> | ||
58 | + </view> | ||
59 | + <view class="staritem"> | ||
60 | + <image src="/img/aicon_27@2x.png"></image> | ||
61 | + </view> | ||
62 | + <view class="staritem"> | ||
63 | + <image src="/img/aicon_27@2x.png"></image> | ||
64 | + </view> | ||
65 | + | ||
66 | + </view> | ||
67 | + | ||
68 | + <view class="tiao"> | ||
69 | + <view class="tiaoitem"></view> | ||
70 | + </view> | ||
71 | + <view class="pingfen">36.1%</view> | ||
72 | + | ||
73 | + | ||
74 | + </view> | ||
75 | + <view class="star"> | ||
76 | + <view class="starleft"> | ||
77 | + <view class="staritem"> | ||
78 | + <image src="/img/aicon_27@2x.png"></image> | ||
79 | + </view> | ||
80 | + <view class="staritem"> | ||
81 | + <image src="/img/aicon_27@2x.png"></image> | ||
82 | + </view> | ||
83 | + <view class="staritem"> | ||
84 | + <image src="/img/aicon_27@2x.png"></image> | ||
85 | + </view> | ||
86 | + | ||
87 | + </view> | ||
88 | + | ||
89 | + <view class="tiao"> | ||
90 | + <view class="tiaoitem"></view> | ||
91 | + </view> | ||
92 | + <view class="pingfen">36.1%</view> | ||
93 | + | ||
94 | + | ||
95 | + </view> | ||
96 | + <view class="star"> | ||
97 | + <view class="starleft"> | ||
98 | + <view class="staritem"> | ||
99 | + <image src="/img/aicon_27@2x.png"></image> | ||
100 | + </view> | ||
101 | + <view class="staritem"> | ||
102 | + <image src="/img/aicon_27@2x.png"></image> | ||
103 | + </view> | ||
104 | + | ||
105 | + </view> | ||
106 | + | ||
107 | + <view class="tiao"> | ||
108 | + <view class="tiaoitem"></view> | ||
109 | + </view> | ||
110 | + <view class="pingfen">36.1%</view> | ||
111 | + | ||
112 | + | ||
113 | + </view> | ||
114 | + <view class="star"> | ||
115 | + <view class="starleft"> | ||
116 | + <view class="staritem"> | ||
117 | + <image src="/img/aicon_27@2x.png"></image> | ||
118 | + </view> | ||
119 | + | ||
120 | + </view> | ||
121 | + | ||
122 | + <view class="tiao"> | ||
123 | + <view class="tiaoitem"></view> | ||
124 | + </view> | ||
125 | + <view class="pingfen">36.1%</view> | ||
126 | + | ||
127 | + | ||
128 | + </view> | ||
129 | + </view> | ||
130 | +</view> | ||
131 | + | ||
132 | +<view class="hotticket">热门标签</view> | ||
133 | + | ||
134 | +<view class="botlabet"> | ||
135 | + <view class="labelitem"> | ||
136 | + <text>婚宴</text> | ||
137 | + <text class="labelitemright">63</text> | ||
138 | + </view> | ||
139 | + <view class="labelitem"> | ||
140 | + <text>喜庆</text> | ||
141 | + <text class="labelitemright">63</text> | ||
142 | + </view> | ||
143 | + <view class="labelitem"> | ||
144 | + <text>好喝</text> | ||
145 | + <text class="labelitemright">63</text> | ||
146 | + </view> | ||
147 | + <view class="labelitem"> | ||
148 | + <text>实惠</text> | ||
149 | + <text class="labelitemright">63</text> | ||
150 | + </view> | ||
151 | +</view> | ||
152 | + | ||
153 | +</view> | ||
154 | + | ||
155 | +<view class="boxmiddle"> | ||
156 | + <view class="boxmiddleitem"> | ||
157 | + <view class="evaluteitemleft"> | ||
158 | + <image src="{{url}}/aicon_45@2x.png"></image> | ||
159 | + </view> | ||
160 | + | ||
161 | + <view class="evaluteitemright"> | ||
162 | + <view class="evalname">小叶子</view> | ||
163 | + <view class="evalstarword"> | ||
164 | + <view class="evalstar"> | ||
165 | + <view class="evalstaritem"> | ||
166 | + <image src="/img/aicon_28@2x.png"></image> | ||
167 | + </view> | ||
168 | + <view class="evalstaritem"> | ||
169 | + <image src="/img/aicon_28@2x.png"></image> | ||
170 | + </view> | ||
171 | + <view class="evalstaritem"> | ||
172 | + <image src="/img/aicon_28@2x.png"></image> | ||
173 | + </view> | ||
174 | + <view class="evalstaritem"> | ||
175 | + <image src="/img/aicon_28@2x.png"></image> | ||
176 | + </view> | ||
177 | + <view class="evalstaritem"> | ||
178 | + <image src="/img/aicon_28@2x.png"></image> | ||
179 | + </view> | ||
180 | + <view class="evalstaritem"> | ||
181 | + <image src="/img/aicon_28@2x.png"></image> | ||
182 | + </view> | ||
183 | + </view> | ||
184 | + | ||
185 | + <view class="evardate">2019年11月5日</view> | ||
186 | + </view> | ||
187 | + | ||
188 | + <view class="evaltext">弟弟结婚买了8箱</view> | ||
189 | + <view class="zan"> | ||
190 | + <view class="zanimg"> | ||
191 | + <image src="/img/aicon_46x.png"></image> | ||
192 | + </view> | ||
193 | + | ||
194 | + <view class="zannum">6.2k</view> | ||
195 | + </view> | ||
196 | + | ||
197 | + </view> | ||
198 | + </view> | ||
199 | + | ||
200 | + <view class="boxmiddleitem"> | ||
201 | + <view class="evaluteitemleft"> | ||
202 | + <image src="{{url}}/aicon_45@2x.png"></image> | ||
203 | + </view> | ||
204 | + | ||
205 | + <view class="evaluteitemright"> | ||
206 | + <view class="evalname">小叶子</view> | ||
207 | + <view class="evalstarword"> | ||
208 | + <view class="evalstar"> | ||
209 | + <view class="evalstaritem"> | ||
210 | + <image src="/img/aicon_28@2x.png"></image> | ||
211 | + </view> | ||
212 | + <view class="evalstaritem"> | ||
213 | + <image src="/img/aicon_28@2x.png"></image> | ||
214 | + </view> | ||
215 | + <view class="evalstaritem"> | ||
216 | + <image src="/img/aicon_28@2x.png"></image> | ||
217 | + </view> | ||
218 | + <view class="evalstaritem"> | ||
219 | + <image src="/img/aicon_28@2x.png"></image> | ||
220 | + </view> | ||
221 | + <view class="evalstaritem"> | ||
222 | + <image src="/img/aicon_28@2x.png"></image> | ||
223 | + </view> | ||
224 | + <view class="evalstaritem"> | ||
225 | + <image src="/img/aicon_28@2x.png"></image> | ||
226 | + </view> | ||
227 | + </view> | ||
228 | + | ||
229 | + <view class="evardate">2019年11月5日</view> | ||
230 | + </view> | ||
231 | + | ||
232 | + <view class="evaltext">弟弟结婚买了8箱</view> | ||
233 | + | ||
234 | + <view class="evalimg"> | ||
235 | + <view class="evalimgitem"> | ||
236 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
237 | + </view> | ||
238 | + <view class="evalimgitem"> | ||
239 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
240 | + </view> | ||
241 | + <view class="evalimgitem"> | ||
242 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
243 | + </view> | ||
244 | + <view class="evalimgitem"> | ||
245 | + <image src="{{url}}/aicon_49@2x.png"></image> | ||
246 | + </view> | ||
247 | + </view> | ||
248 | + </view> | ||
249 | + </view> | ||
250 | +</view> | ||
251 | + | ||
252 | +<view class="write"> | ||
253 | + <view class="writeimg"> | ||
254 | + <image src="{{url}}/aicon_48x.png"></image> | ||
255 | + </view> | ||
256 | +</view> | ||
257 | + | ||
258 | + | ||
259 | + |
1 | +/* pages/homeblock/evalutecontent/evalutecontent.wxss */ | ||
2 | + | ||
3 | +page { | ||
4 | + background: #fff; | ||
5 | +} | ||
6 | + | ||
7 | +.boxhead { | ||
8 | + padding: 0 30rpx; | ||
9 | + border-bottom: 14rpx solid #f2f2f2; | ||
10 | + padding-bottom: 40rpx; | ||
11 | + box-sizing: border-box; | ||
12 | +} | ||
13 | + | ||
14 | +.evaluteitem { | ||
15 | + width: 26rpx; | ||
16 | + height: 24rpx; | ||
17 | + font-size: 0; | ||
18 | + margin-left: 9rpx; | ||
19 | +} | ||
20 | + | ||
21 | +image { | ||
22 | + width: 100%; | ||
23 | + height: 100%; | ||
24 | +} | ||
25 | + | ||
26 | +.code { | ||
27 | + color: #1a1a1a; | ||
28 | + font-size: 74rpx; | ||
29 | + font-weight: bold; | ||
30 | + text-align: center; | ||
31 | +} | ||
32 | + | ||
33 | +.evalutetop { | ||
34 | + display: flex; | ||
35 | + align-items: center; | ||
36 | +} | ||
37 | + | ||
38 | +.staritem { | ||
39 | + width: 18rpx; | ||
40 | + height: 18rpx; | ||
41 | + font-size: 0; | ||
42 | +} | ||
43 | + | ||
44 | +.evaluteright { | ||
45 | + margin-left: 43rpx; | ||
46 | +} | ||
47 | + | ||
48 | +.starleft { | ||
49 | + width: 91rpx; | ||
50 | + display: flex; | ||
51 | + align-items: center; | ||
52 | + justify-content: flex-end; | ||
53 | +} | ||
54 | + | ||
55 | +.star { | ||
56 | + display: flex; | ||
57 | + align-items: center; | ||
58 | + margin-top: 8rpx; | ||
59 | +} | ||
60 | + | ||
61 | +.tiao { | ||
62 | + width: 314rpx; | ||
63 | + height: 6rpx; | ||
64 | + border-radius: 2rpx; | ||
65 | + background: #ebebeb; | ||
66 | + margin-left: 14rpx; | ||
67 | +} | ||
68 | + | ||
69 | +.pingfen { | ||
70 | + color: #999; | ||
71 | + font-size: 20rpx; | ||
72 | + margin-left: 15rpx; | ||
73 | +} | ||
74 | + | ||
75 | +.tiaoitem { | ||
76 | + width: 59%; | ||
77 | + height: 6rpx; | ||
78 | + border-radius: 2rpx; | ||
79 | + background: #ffba25; | ||
80 | +} | ||
81 | + | ||
82 | +.hotticket { | ||
83 | + color: #1a1a1a; | ||
84 | + font-size: 28rpx; | ||
85 | + margin-top: 61rpx; | ||
86 | + font-weight: bold; | ||
87 | +} | ||
88 | + | ||
89 | +.botlabet { | ||
90 | + display: flex; | ||
91 | + align-items: center; | ||
92 | + margin-top: 29rpx; | ||
93 | +} | ||
94 | + | ||
95 | +.labelitem { | ||
96 | + margin-left: 14rpx; | ||
97 | + padding: 13rpx 21rpx; | ||
98 | + color: #666; | ||
99 | + font-size: 24rpx; | ||
100 | +} | ||
101 | + | ||
102 | +.labelitemright { | ||
103 | + margin-left: 10rpx; | ||
104 | +} | ||
105 | + | ||
106 | +.boxmiddle { | ||
107 | + padding: 0 30rpx; | ||
108 | + box-sizing: border-box; | ||
109 | +} | ||
110 | + | ||
111 | +.evaluteitem { | ||
112 | + padding: 40rpx 0 0; | ||
113 | + box-sizing: border-box; | ||
114 | +} | ||
115 | + | ||
116 | +.evaluteitemleft { | ||
117 | + width: 60rpx; | ||
118 | + height: 60rpx; | ||
119 | + background: rgba(205, 205, 205, 1); | ||
120 | + border-radius: 50%; | ||
121 | +} | ||
122 | + | ||
123 | +.evalname { | ||
124 | + color: #666; | ||
125 | + font-size: 28rpx; | ||
126 | +} | ||
127 | + | ||
128 | +.evalstar { | ||
129 | + display: flex; | ||
130 | + align-items: center; | ||
131 | +} | ||
132 | + | ||
133 | +.evalstarword { | ||
134 | + display: flex; | ||
135 | +} | ||
136 | + | ||
137 | +.evalstaritem { | ||
138 | + width: 26rpx; | ||
139 | + height: 24rpx; | ||
140 | + font-size: 0; | ||
141 | + margin-left: 9rpx; | ||
142 | +} | ||
143 | + | ||
144 | +.evalstaritem:first-child { | ||
145 | + margin-left: 0; | ||
146 | +} | ||
147 | + | ||
148 | +.evaluteitemright { | ||
149 | + margin-left: 30rpx; | ||
150 | + flex:1; | ||
151 | +} | ||
152 | + | ||
153 | +.boxmiddleitem { | ||
154 | + display: flex; | ||
155 | + padding-top: 40rpx; | ||
156 | + box-sizing: border-box; | ||
157 | + padding-bottom: 40rpx; | ||
158 | + border-bottom:1rpx solid #f5f5f5; | ||
159 | + | ||
160 | +} | ||
161 | + | ||
162 | +.evardate { | ||
163 | + color: #666; | ||
164 | + font-size: 24rpx; | ||
165 | + margin-left: 30rpx; | ||
166 | +} | ||
167 | + | ||
168 | +.evaltext { | ||
169 | + color: #1a1a1a; | ||
170 | + font-size: 28rpx; | ||
171 | + margin-top: 20rpx; | ||
172 | +} | ||
173 | + | ||
174 | +.evalimgitem { | ||
175 | + width: 190rpx; | ||
176 | + height: 190rpx; | ||
177 | + border-radius: 5rpx; | ||
178 | + font-size: 0; | ||
179 | + margin-left:10rpx; | ||
180 | + margin-top:30rpx; | ||
181 | +} | ||
182 | + | ||
183 | +.evalimg{ | ||
184 | + display:flex; | ||
185 | + align-items: center; | ||
186 | + flex-wrap:wrap; | ||
187 | +} | ||
188 | +.zan{ | ||
189 | + display:flex; | ||
190 | + align-items:center; | ||
191 | + justify-content: flex-end | ||
192 | +} | ||
193 | + | ||
194 | +.zanimg{ | ||
195 | + width:30rpx; | ||
196 | + height:28rpx; | ||
197 | + font-size: 0 | ||
198 | +} | ||
199 | +.zannum{ | ||
200 | + color:#999999; | ||
201 | + font-size: 28rpx; | ||
202 | + margin-left:20rpx; | ||
203 | +} | ||
204 | +.writeimg{ | ||
205 | + width:126rpx; | ||
206 | + height:129rpx; | ||
207 | + font-size: 0 | ||
208 | +} | ||
209 | +.write{ | ||
210 | + background: #fff; | ||
211 | + height:126rpx; | ||
212 | + display: flex; | ||
213 | + justify-content: flex-end; | ||
214 | + padding:17rpx 30rpx 0; | ||
215 | + box-sizing: border-box | ||
216 | +} |
pages/homeblock/guanimg/guanimg.js
0 → 100644
1 | +// pages/homeblock/guanimg/guanimg.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url:'' | ||
10 | + }, | ||
11 | + | ||
12 | + /** | ||
13 | + * 生命周期函数--监听页面加载 | ||
14 | + */ | ||
15 | + onLoad: function (options) { | ||
16 | + this.setData({ | ||
17 | + url: app.globalData.url | ||
18 | + }) | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面初次渲染完成 | ||
23 | + */ | ||
24 | + onReady: function () { | ||
25 | + | ||
26 | + }, | ||
27 | + | ||
28 | + /** | ||
29 | + * 生命周期函数--监听页面显示 | ||
30 | + */ | ||
31 | + onShow: function () { | ||
32 | + | ||
33 | + }, | ||
34 | + | ||
35 | + /** | ||
36 | + * 生命周期函数--监听页面隐藏 | ||
37 | + */ | ||
38 | + onHide: function () { | ||
39 | + | ||
40 | + }, | ||
41 | + | ||
42 | + /** | ||
43 | + * 生命周期函数--监听页面卸载 | ||
44 | + */ | ||
45 | + onUnload: function () { | ||
46 | + | ||
47 | + }, | ||
48 | + | ||
49 | + /** | ||
50 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
51 | + */ | ||
52 | + onPullDownRefresh: function () { | ||
53 | + | ||
54 | + }, | ||
55 | + | ||
56 | + /** | ||
57 | + * 页面上拉触底事件的处理函数 | ||
58 | + */ | ||
59 | + onReachBottom: function () { | ||
60 | + | ||
61 | + }, | ||
62 | + | ||
63 | + /** | ||
64 | + * 用户点击右上角分享 | ||
65 | + */ | ||
66 | + onShareAppMessage: function () { | ||
67 | + | ||
68 | + } | ||
69 | +}) |
pages/homeblock/guanimg/guanimg.json
0 → 100644
pages/homeblock/guanimg/guanimg.wxml
0 → 100644
1 | +<view class="biaozhuantitle"> | ||
2 | + 标准图 | ||
3 | + | ||
4 | +</view> | ||
5 | +<view class="biaozhaunbox"> | ||
6 | + <view class="biaozhuanitem"> | ||
7 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
8 | + </view> | ||
9 | + <view class="biaozhuanitem"> | ||
10 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
11 | + </view> | ||
12 | + <view class="biaozhuanitem"> | ||
13 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
14 | + </view> | ||
15 | + <view class="biaozhuanitem"> | ||
16 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
17 | + </view> | ||
18 | +</view> | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | +<view class="biaozhuantitle xiezhen"> | ||
23 | + 写真图 | ||
24 | + | ||
25 | +</view> | ||
26 | +<view class="biaozhaunbox"> | ||
27 | + <view class="biaozhuanitem"> | ||
28 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
29 | + </view> | ||
30 | + <view class="biaozhuanitem"> | ||
31 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
32 | + </view> | ||
33 | + <view class="biaozhuanitem"> | ||
34 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
35 | + </view> | ||
36 | + <view class="biaozhuanitem"> | ||
37 | + <image src="{{url}}aicon_89@2x.png"></image> | ||
38 | + </view> | ||
39 | +</view> |
pages/homeblock/guanimg/guanimg.wxss
0 → 100644
1 | +page{ | ||
2 | + background: #000; | ||
3 | + padding: 0 32rpx 0 22rpx; | ||
4 | + box-sizing: border-box | ||
5 | +} | ||
6 | +.biaozhuanitem{ | ||
7 | + width:222rpx; | ||
8 | + height:165rpx; | ||
9 | + font-size: 0; | ||
10 | + margin-left:10rpx; | ||
11 | + margin-top:10rpx; | ||
12 | +} | ||
13 | +.biaozhaunbox{ | ||
14 | + display:flex; | ||
15 | + | ||
16 | + align-items: center; | ||
17 | + flex-wrap: wrap; | ||
18 | + margin-top:22rpx; | ||
19 | + | ||
20 | +} | ||
21 | +.biaozhuantitle{ | ||
22 | + color:#FFFFFF; | ||
23 | + font-size: 28rpx; | ||
24 | + margin-left:10rpx; | ||
25 | +} | ||
26 | +.xiezhen{ | ||
27 | + margin-top:40rpx; | ||
28 | +} |
pages/homeblock/jiuzidian/jiuzidian.js
0 → 100644
1 | +// pages/homeblock/jiuzidian/jiuzidian.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + navarr: [ | ||
10 | + { | ||
11 | + name: '基本参数' | ||
12 | + }, | ||
13 | + { | ||
14 | + name: '生产企业' | ||
15 | + }, | ||
16 | + { | ||
17 | + name: '酿酒师' | ||
18 | + }, | ||
19 | + { | ||
20 | + name: '关键词' | ||
21 | + }, ], | ||
22 | + | ||
23 | + current: 0, | ||
24 | + url:'', | ||
25 | + kind:0, | ||
26 | + picindex:0 | ||
27 | + }, | ||
28 | + | ||
29 | + /** | ||
30 | + * 生命周期函数--监听页面加载 | ||
31 | + */ | ||
32 | + onLoad: function (options) { | ||
33 | + this.setData({ | ||
34 | + url: app.globalData.url | ||
35 | + }) | ||
36 | + }, | ||
37 | + selectkind(e){ | ||
38 | + this.setData({ | ||
39 | + kind:e.currentTarget.dataset.kind | ||
40 | + }) | ||
41 | + }, | ||
42 | + select(e) { | ||
43 | + this.setData({ | ||
44 | + current: e.currentTarget.dataset.idx | ||
45 | + }) | ||
46 | + console.log(this.data.current) | ||
47 | + }, | ||
48 | + selectpic(e){ | ||
49 | + this.setData({ | ||
50 | + picindex:e.currentTarget.dataset.pic | ||
51 | + }) | ||
52 | + | ||
53 | + console.log(this.data.picindex) | ||
54 | + }, | ||
55 | + | ||
56 | + /** | ||
57 | + * 生命周期函数--监听页面初次渲染完成 | ||
58 | + */ | ||
59 | + onReady: function () { | ||
60 | + | ||
61 | + }, | ||
62 | + | ||
63 | + /** | ||
64 | + * 生命周期函数--监听页面显示 | ||
65 | + */ | ||
66 | + onShow: function () { | ||
67 | + | ||
68 | + }, | ||
69 | + | ||
70 | + /** | ||
71 | + * 生命周期函数--监听页面隐藏 | ||
72 | + */ | ||
73 | + onHide: function () { | ||
74 | + | ||
75 | + }, | ||
76 | + | ||
77 | + /** | ||
78 | + * 生命周期函数--监听页面卸载 | ||
79 | + */ | ||
80 | + onUnload: function () { | ||
81 | + | ||
82 | + }, | ||
83 | + | ||
84 | + /** | ||
85 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
86 | + */ | ||
87 | + onPullDownRefresh: function () { | ||
88 | + | ||
89 | + }, | ||
90 | + | ||
91 | + /** | ||
92 | + * 页面上拉触底事件的处理函数 | ||
93 | + */ | ||
94 | + onReachBottom: function () { | ||
95 | + | ||
96 | + }, | ||
97 | + | ||
98 | + /** | ||
99 | + * 用户点击右上角分享 | ||
100 | + */ | ||
101 | + onShareAppMessage: function () { | ||
102 | + | ||
103 | + } | ||
104 | +}) |
pages/homeblock/jiuzidian/jiuzidian.json
0 → 100644
pages/homeblock/jiuzidian/jiuzidian.wxml
0 → 100644
1 | +<!-- 展示图 --> | ||
2 | +<view class="showpic"> | ||
3 | + <image src="{{url}}/aicon_89@2x.png"></image> | ||
4 | + | ||
5 | + <view class="kindlist"> | ||
6 | + <view class="kinditem {{kind==0?'kindactive':''}}" data-kind='0' bindtap="selectkind">瓶</view> | ||
7 | + <view class="kinditem {{kind==1?'kindactive':''}}" data-kind='1' bindtap="selectkind">箱</view> | ||
8 | + <view class="kinditem {{kind==2?'kindactive':''}}" data-kind='2' bindtap="selectkind">盒</view> | ||
9 | + </view> | ||
10 | + | ||
11 | + <view class="pickind"> | ||
12 | + <view class="picitem {{picindex==0?'slectpic':''}}" data-pic="0" bindtap="selectpic">全景</view> | ||
13 | + <view class="picitem {{picindex==1?'slectpic':''}}" data-pic="1" bindtap="selectpic">官图</view> | ||
14 | + <view class="picitem {{picindex==2?'slectpic':''}}" data-pic="2" bindtap="selectpic">实拍</view> | ||
15 | + <view class="picitem {{picindex==3?'slectpic':''}}" data-pic="3" bindtap="selectpic">短视频</view> | ||
16 | + </view> | ||
17 | +</view> | ||
18 | +<view class="shaisel"> | ||
19 | + | ||
20 | + <view class="kind"> | ||
21 | + <view class="shaikind" wx:for="{{navarr}}" wx:key='' bindtap="select" data-idx="{{index}}"> | ||
22 | + <view class="shaikindname {{current==index?'selactive':''}}">{{item.name}}</view> | ||
23 | + <view class="shaikindimg"> | ||
24 | + <image src="{{current==index?'http://winesbook.cn/static/images_mini/aicon_16@2x.png':'http://winesbook.cn/static/images_mini/aicon_14x.png'}}"></image> | ||
25 | + </view> | ||
26 | + </view> | ||
27 | + <!-- <view class="shaikind"> | ||
28 | + <view class="shaikindname">价格</view> | ||
29 | + <view class="shaikindimg"> | ||
30 | + <image src="{{url}}aicon_14x.png"></image> | ||
31 | + </view> | ||
32 | + </view> | ||
33 | + <view class="shaikind"> | ||
34 | + <view class="shaikindname">包装</view> | ||
35 | + <view class="shaikindimg"> | ||
36 | + <image src="{{url}}aicon_14x.png"></image> | ||
37 | + </view> | ||
38 | + </view> | ||
39 | + <view class="shaikind"> | ||
40 | + <view class="shaikindname">产区</view> | ||
41 | + <view class="shaikindimg"> | ||
42 | + <image src="{{url}}aicon_14x.png"></image> | ||
43 | + </view> | ||
44 | + </view> | ||
45 | + <view class="shaikind"> | ||
46 | + <view class="shaikindname">香型</view> | ||
47 | + <view class="shaikindimg"> | ||
48 | + <image src="{{url}}aicon_14x.png"></image> | ||
49 | + </view> | ||
50 | + </view> | ||
51 | + <view class="shaikind"> | ||
52 | + <view class="shaikindname">产区</view> | ||
53 | + <view class="shaikindimg"> | ||
54 | + <image src="{{url}}aicon_14x.png"></image> | ||
55 | + </view> | ||
56 | + </view> | ||
57 | + <view class="shaikind"> | ||
58 | + <view class="shaikindname">评分</view> | ||
59 | + <view class="shaikindimg"> | ||
60 | + <image src="{{url}}aicon_14x.png"></image> | ||
61 | + </view> | ||
62 | + </view> --> | ||
63 | + | ||
64 | + </view> | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + <view class="more"> | ||
69 | + <image src="{{url}}aicon_15x.png"></image> | ||
70 | + </view> | ||
71 | + | ||
72 | +</view> | ||
73 | + | ||
74 | +<!-- 基本参数 --> | ||
75 | +<view class="jibencanshu" wx:if="{{current==0}}"> | ||
76 | + <view class="canshuitem"> | ||
77 | + <view class="canleft">酒精度</view> | ||
78 | + <view class='cantext'>52%Vol.</view> | ||
79 | + </view> | ||
80 | + <view class="canshuitem"> | ||
81 | + <view class="canleft">净含量</view> | ||
82 | + <view class='cantext'>52%500ml</view> | ||
83 | + </view> | ||
84 | + <view class="canshuitem"> | ||
85 | + <view class="canleft">原料</view> | ||
86 | + <view class='cantext'>糯、稻、玉米、小麦、高粱</view> | ||
87 | + </view> | ||
88 | + <view class="canshuitem"> | ||
89 | + <view class="canleft">储存条件</view> | ||
90 | + <view class='cantext'>52%请置放于干燥、阴凉、通风处</view> | ||
91 | + </view> | ||
92 | + <view class="canshuitem"> | ||
93 | + <view class="canleft">生产标准号</view> | ||
94 | + <view class='cantext'>87865788</view> | ||
95 | + </view> | ||
96 | + <view class="canshuitem"> | ||
97 | + <view class="canleft">生产许可证号</view> | ||
98 | + <view class='cantext'>87865788</view> | ||
99 | + </view> | ||
100 | + | ||
101 | +</view> | ||
102 | + | ||
103 | +<!-- 生产企业 --> | ||
104 | + | ||
105 | +<view class="jiuqiye" wx:if="{{current==1}}"> | ||
106 | + <view class="brandbottom"> | ||
107 | + <view class="brandboleft"> | ||
108 | + <text class="brandtitle">湖北白云边股份股份有限公司</text> | ||
109 | + <view class="duigou"> | ||
110 | + <image src="{{url}}aicon_20x.png"></image> | ||
111 | + </view> | ||
112 | + </view> | ||
113 | + | ||
114 | + <view class="atten">关注</view> | ||
115 | + | ||
116 | + </view> | ||
117 | + | ||
118 | + <view class="brandbox"> | ||
119 | + <view class="brandboxitem"> | ||
120 | + <view class="boxtop"> | ||
121 | + <view class="boxtopleft"> | ||
122 | + 品牌简介 | ||
123 | + </view> | ||
124 | + <view class="boxright"> | ||
125 | + <image src="{{url}}aicon_24x.png"></image> | ||
126 | + </view> | ||
127 | + </view> | ||
128 | + | ||
129 | + <view class="brandtext"> | ||
130 | + 湖北白云边集团(以下简称“集团”或“白云边集团”)是一家以酒业为龙头产业的多元化投资控股企业集团,总部位于湖北省武汉市。白云边集团下设7大战略业务单位,包括白酒、食品餐饮、钢铁制造、置业投资、酒店旅游、物流商贸、文化传播等。白云边集团的多元化业务具有良好的产业基础和市场竞争优势,其中白酒已建立行业领先地位。截止2017年,白云边集团总资产达80余亿元。 | ||
131 | + </view> | ||
132 | + | ||
133 | + <view class="brandimg"> | ||
134 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
135 | + </view> | ||
136 | + | ||
137 | + </view> | ||
138 | + | ||
139 | + <view class="brandboxitem"> | ||
140 | + <view class="boxtop"> | ||
141 | + <view class="boxtopleft"> | ||
142 | + 品牌文化 | ||
143 | + </view> | ||
144 | + <view class="boxright"> | ||
145 | + <image src="{{url}}aicon_24x.png"></image> | ||
146 | + </view> | ||
147 | + </view> | ||
148 | + | ||
149 | + | ||
150 | + <view class="brandimg"> | ||
151 | + <image src="{{url}}aicon_23@2x.png"></image> | ||
152 | + </view> | ||
153 | + | ||
154 | + </view> | ||
155 | + | ||
156 | + </view> | ||
157 | + | ||
158 | +</view> | ||
159 | + | ||
160 | +<!-- 酿酒师 --> | ||
161 | + | ||
162 | +<view class="jiuhsi" wx:if="{{current==2}}"> | ||
163 | + | ||
164 | + <view class="teacherhead"> | ||
165 | + <view class="teacherleft"> | ||
166 | + <view class="teacimg"> | ||
167 | + <image src="{{url}}aicon_77@2x.png"></image> | ||
168 | + </view> | ||
169 | + | ||
170 | + <view class="teacname">徐强</view> | ||
171 | + <view class="teacgouimg"> | ||
172 | + <image src="{{url}}aicon_20x.png"></image> | ||
173 | + </view> | ||
174 | + </view> | ||
175 | + | ||
176 | + <view class="atten"> | ||
177 | + 关注 | ||
178 | + </view> | ||
179 | + </view> | ||
180 | + | ||
181 | + <view class="wineimg"> | ||
182 | + <image src="{{url}}aicon_91x.png"></image> | ||
183 | + </view> | ||
184 | + | ||
185 | + <view class="niangjiubox"> | ||
186 | + | ||
187 | + <view class="brandboxitem"> | ||
188 | + <view class="boxtop"> | ||
189 | + <view class="boxtopleft"> | ||
190 | + 基本信息 | ||
191 | + </view> | ||
192 | + <view class="boxright"> | ||
193 | + <image src="{{url}}aicon_24x.png"></image> | ||
194 | + </view> | ||
195 | + </view> | ||
196 | + | ||
197 | + <view class="brandtext"> | ||
198 | + <view class="baisinfo"> | ||
199 | + <view class="basinfoleft">性别</view> | ||
200 | + <view class="baisinforight">男</view> | ||
201 | + </view> | ||
202 | + <view class="baisinfo"> | ||
203 | + <view class="basinfoleft">年龄</view> | ||
204 | + <view class="baisinforight">34</view> | ||
205 | + </view> | ||
206 | + <view class="baisinfo"> | ||
207 | + <view class="basinfoleft">所属酒厂</view> | ||
208 | + <view class="baisinforight">广东顺德酒厂</view> | ||
209 | + </view> | ||
210 | + </view> | ||
211 | + | ||
212 | + | ||
213 | + </view> | ||
214 | + <view class="brandboxitem"> | ||
215 | + <view class="boxtop"> | ||
216 | + <view class="boxtopleft"> | ||
217 | + 专业履历 | ||
218 | + </view> | ||
219 | + <view class="boxright"> | ||
220 | + <image src="{{url}}aicon_24x.png"></image> | ||
221 | + </view> | ||
222 | + </view> | ||
223 | + | ||
224 | + <view class="brandtext"> | ||
225 | + <view class="brandlsit"> | ||
226 | + 2009年接触葡萄酒。 | ||
227 | + </view> | ||
228 | + <view class="brandlsit"> | ||
229 | + 2010年—2011年在郑大工学院和财经学院任教计算机3D设计教师。 | ||
230 | + </view> | ||
231 | + <view class="brandlsit"> | ||
232 | + 2012年考取ESW葡萄酒中级品酒师证。 | ||
233 | + </view> | ||
234 | + <view class="brandlsit"> | ||
235 | + 2012年至今在优传葡萄酒有限公司从事葡萄酒销售,酒会承办工作。同时从事企业礼仪茶培训。 | ||
236 | + </view> | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + </view> | ||
242 | + | ||
243 | + | ||
244 | + </view> | ||
245 | + | ||
246 | + <view class="brandboxitem"> | ||
247 | + <view class="boxtop"> | ||
248 | + <view class="boxtopleft"> | ||
249 | + 代表作品 | ||
250 | + </view> | ||
251 | + <view class="boxright"> | ||
252 | + <image src="{{url}}aicon_24x.png"></image> | ||
253 | + </view> | ||
254 | + </view> | ||
255 | + | ||
256 | + <view class="brandtext"> | ||
257 | + <view class="brandlsit"> | ||
258 | + 2009年接触葡萄酒。 | ||
259 | + </view> | ||
260 | + <view class="brandlsit"> | ||
261 | + 2010年—2011年在郑大工学院和财经学院任教计算机3D设计教师。 | ||
262 | + </view> | ||
263 | + <view class="brandlsit"> | ||
264 | + 2012年考取ESW葡萄酒中级品酒师证。 | ||
265 | + </view> | ||
266 | + <view class="brandlsit"> | ||
267 | + 2012年至今在优传葡萄酒有限公司从事葡萄酒销售,酒会承办工作。同时从事企业礼仪茶培训。 | ||
268 | + </view> | ||
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + </view> | ||
274 | + | ||
275 | + | ||
276 | + </view> | ||
277 | + | ||
278 | + </view> | ||
279 | +</view> | ||
280 | + | ||
281 | +<!-- 关键词 --> | ||
282 | + | ||
283 | +<view class="keyword" wx:if="{{current==3}}"> | ||
284 | + <view class="keyworditem">基本参数</view> | ||
285 | + <view class="keyworditem">基本参数</view> | ||
286 | + <view class="keyworditem">基本参数</view> | ||
287 | + <view class="keyworditem">基本参数</view> | ||
288 | + <view class="keyworditem">基本参数</view> | ||
289 | +</view> |
pages/homeblock/jiuzidian/jiuzidian.wxss
0 → 100644
1 | +@import '../zhinengselect/zhinengselect.wxss'; | ||
2 | +@import '../brandpage/brandpage.wxss'; | ||
3 | +@import '../niangjiuteacher/niangjiuteacher.wxss'; | ||
4 | +page{ | ||
5 | + background: #F2F2F2 | ||
6 | +} | ||
7 | +.shaisel{ | ||
8 | + background: #fff; | ||
9 | +} | ||
10 | +.canshuitem{ | ||
11 | + width:750rpx; | ||
12 | + height:94rpx; | ||
13 | + margin-top:14rpx; | ||
14 | + display:flex; | ||
15 | + align-items: center; | ||
16 | + padding: 30rpx; | ||
17 | + box-sizing: border-box; | ||
18 | + background: #fff; | ||
19 | +} | ||
20 | +.canleft{ | ||
21 | + color:#999999; | ||
22 | + font-size: 26rpx; | ||
23 | +} | ||
24 | +.cantext{ | ||
25 | + color:#1A1A1A; | ||
26 | + font-size: 26rpx; | ||
27 | + margin-left:100rpx; | ||
28 | +} | ||
29 | +.jiuqiye,.jiuhsi{ | ||
30 | + background: #fff; | ||
31 | +} | ||
32 | +.keyword{ | ||
33 | + display:flex; | ||
34 | + align-items: center; | ||
35 | + flex-wrap: wrap; | ||
36 | + padding: 16rpx 25rpx; | ||
37 | + box-sizing: border-box | ||
38 | + | ||
39 | + | ||
40 | +} | ||
41 | +.keyworditem{ | ||
42 | + padding: 18rpx 20rpx; | ||
43 | + box-sizing: border-box; | ||
44 | + background: #fff; | ||
45 | + color:#666666; | ||
46 | + font-size: 26rpx; | ||
47 | + margin-left:15rpx; | ||
48 | + margin-top:16rpx; | ||
49 | + border-radius: 5rpx; | ||
50 | +} | ||
51 | +.showpic{ | ||
52 | + width:750rpx; | ||
53 | + height:560rpx; | ||
54 | + font-size: 0; | ||
55 | + position: relative | ||
56 | +} | ||
57 | +.kindlist{ | ||
58 | + width:198rpx; | ||
59 | + height:42rpx; | ||
60 | + background:rgba(255,255,255,1); | ||
61 | + opacity:0.8; | ||
62 | + border-radius:21rpx; | ||
63 | + display:flex; | ||
64 | + align-items: center; | ||
65 | + position: absolute; | ||
66 | + bottom:24rpx; | ||
67 | + left:276rpx; | ||
68 | +} | ||
69 | +.kinditem{ | ||
70 | + width:66rpx; | ||
71 | + height:42rpx; | ||
72 | + line-height: 42rpx; | ||
73 | + color:#1A1A1A; | ||
74 | + font-size: 24rpx; | ||
75 | + text-align: center | ||
76 | +} | ||
77 | +.kindactive{ | ||
78 | + background: #1A1A1A; | ||
79 | + color:#fff; | ||
80 | + border-radius:21rpx; | ||
81 | +} | ||
82 | +.pickind{ | ||
83 | + position: absolute; | ||
84 | + right:35rpx; | ||
85 | + top:143rpx; | ||
86 | +} | ||
87 | +.picitem{ | ||
88 | + color:#1A1A1A; | ||
89 | + font-size: 22rpx; | ||
90 | + margin-top:45rpx; | ||
91 | + | ||
92 | + width:128rpx; | ||
93 | + text-align: center; | ||
94 | + | ||
95 | +} | ||
96 | +.slectpic{ | ||
97 | + width:128rpx; | ||
98 | + text-align: center; | ||
99 | + padding: 22rpx 0; | ||
100 | + box-sizing: border-box; | ||
101 | + background: #E81825; | ||
102 | + color:#fff; | ||
103 | + border-radius:50rpx; | ||
104 | +} |
1 | +// pages/homeblock/niangjiuteacher/niangjiuteacher.js | ||
2 | +const app=getApp() | ||
3 | +Page({ | ||
4 | + | ||
5 | + /** | ||
6 | + * 页面的初始数据 | ||
7 | + */ | ||
8 | + data: { | ||
9 | + url:'' | ||
10 | + }, | ||
11 | + | ||
12 | + /** | ||
13 | + * 生命周期函数--监听页面加载 | ||
14 | + */ | ||
15 | + onLoad: function (options) { | ||
16 | + this.setData({ | ||
17 | + url: app.globalData.url | ||
18 | + }) | ||
19 | + }, | ||
20 | + | ||
21 | + /** | ||
22 | + * 生命周期函数--监听页面初次渲染完成 | ||
23 | + */ | ||
24 | + onReady: function () { | ||
25 | + | ||
26 | + }, | ||
27 | + | ||
28 | + /** | ||
29 | + * 生命周期函数--监听页面显示 | ||
30 | + */ | ||
31 | + onShow: function () { | ||
32 | + | ||
33 | + }, | ||
34 | + | ||
35 | + /** | ||
36 | + * 生命周期函数--监听页面隐藏 | ||
37 | + */ | ||
38 | + onHide: function () { | ||
39 | + | ||
40 | + }, | ||
41 | + | ||
42 | + /** | ||
43 | + * 生命周期函数--监听页面卸载 | ||
44 | + */ | ||
45 | + onUnload: function () { | ||
46 | + | ||
47 | + }, | ||
48 | + | ||
49 | + /** | ||
50 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
51 | + */ | ||
52 | + onPullDownRefresh: function () { | ||
53 | + | ||
54 | + }, | ||
55 | + | ||
56 | + /** | ||
57 | + * 页面上拉触底事件的处理函数 | ||
58 | + */ | ||
59 | + onReachBottom: function () { | ||
60 | + | ||
61 | + }, | ||
62 | + | ||
63 | + /** | ||
64 | + * 用户点击右上角分享 | ||
65 | + */ | ||
66 | + onShareAppMessage: function () { | ||
67 | + | ||
68 | + } | ||
69 | +}) |
-
请 注册 或 登录 后发表评论