正在显示
13 个修改的文件
包含
679 行增加
和
178 行删除
@@ -14,6 +14,14 @@ | @@ -14,6 +14,14 @@ | ||
14 | } | 14 | } |
15 | }, | 15 | }, |
16 | { | 16 | { |
17 | + "path": "pages/nearshop/allprovince", | ||
18 | + "style": { | ||
19 | + "navigationBarTitleText": "全部省份", | ||
20 | + "navigationBarBackgroundColor": "#fff", | ||
21 | + "navigationBarTextStyle": "black" | ||
22 | + } | ||
23 | + }, | ||
24 | + { | ||
17 | "path": "pages/nearshop/selectcoupon", | 25 | "path": "pages/nearshop/selectcoupon", |
18 | "style": { | 26 | "style": { |
19 | "navigationBarTitleText": "选择优惠券", | 27 | "navigationBarTitleText": "选择优惠券", |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | <view class="examineresult">考试结果</view> | 3 | <view class="examineresult">考试结果</view> |
4 | - <view class="examinefen">33分</view> | 4 | + <view class="examinefen">{{score}}分</view> |
5 | <view class='examinestate'>对不起您没有通过本次考试,请重新答题</view> | 5 | <view class='examinestate'>对不起您没有通过本次考试,请重新答题</view> |
6 | <view class="examinebot flexone"> | 6 | <view class="examinebot flexone"> |
7 | <view class='examinebotleft' @click="backluntan">返回论坛</view> | 7 | <view class='examinebotleft' @click="backluntan">返回论坛</view> |
@@ -15,11 +15,11 @@ | @@ -15,11 +15,11 @@ | ||
15 | export default { | 15 | export default { |
16 | data() { | 16 | data() { |
17 | return { | 17 | return { |
18 | - | 18 | + score:'' |
19 | } | 19 | } |
20 | }, | 20 | }, |
21 | - onLoad() { | ||
22 | - | 21 | + onLoad(options) { |
22 | + this.score=options.score | ||
23 | 23 | ||
24 | 24 | ||
25 | }, | 25 | }, |
1 | <template> | 1 | <template> |
2 | <view class="content"> | 2 | <view class="content"> |
3 | <view class="texttitle"> | 3 | <view class="texttitle"> |
4 | - 1.{{present_data.question_name}}({{present_data.type==1?'单选':'多选'}}) | 4 | + {{present_data.question_name}}({{present_data.type==1?'单选':'多选'}}) |
5 | </view> | 5 | </view> |
6 | <view class="textlist"> | 6 | <view class="textlist"> |
7 | - <view class='textitem flex'> | ||
8 | - <view class="textitemleft"> | 7 | + <view class='textitem flex' :class="item.answer==1&&item.chose==true?'selright':item.answer==2&&item.chose==true?'selwrong flextwo':''" v-for="(item,index) in present_data.option" :key="index" @click="present_data.canchose==present_data.correct_number?selchose(index):''"> |
8 | + <view class="flex"> | ||
9 | + <view class="textitemleft" > | ||
9 | <image src="../../static/meisel.png" mode=""></image> | 10 | <image src="../../static/meisel.png" mode=""></image> |
10 | </view> | 11 | </view> |
11 | <view class="textitemright"> | 12 | <view class="textitemright"> |
12 | - A、6 | 13 | + {{item.sel}}、{{item.option_name}} |
14 | + </view> | ||
15 | + </view> | ||
16 | + | ||
17 | + <view class="wrongimg" v-if="item.answer==2&&item.chose==true"> | ||
18 | + <image src="../../static/wrong.png" mode=""></image> | ||
13 | </view> | 19 | </view> |
14 | </view> | 20 | </view> |
15 | - <view class='textitem flex selright'> | 21 | + <!-- <view class='textitem flex selright'> |
16 | <view class="textitemleft"> | 22 | <view class="textitemleft"> |
17 | <image src="../../static/selright.png" mode=""></image> | 23 | <image src="../../static/selright.png" mode=""></image> |
18 | </view> | 24 | </view> |
@@ -41,12 +47,19 @@ | @@ -41,12 +47,19 @@ | ||
41 | <view class="textitemright"> | 47 | <view class="textitemright"> |
42 | A、6 | 48 | A、6 |
43 | </view> | 49 | </view> |
50 | + </view> --> | ||
44 | </view> | 51 | </view> |
45 | - </view> | ||
46 | 52 | ||
47 | 53 | ||
48 | - <view class="huiyuanbot boxsizing" > | ||
49 | - <view class="behuiyuanbtn">确认</view> | 54 | + <view class="huiyuanbot boxsizing"> |
55 | + | ||
56 | + <view class="behuiyuanbtn" v-if="next_data!=''&&last_data==''" @click="nextquestion">下一题</view> | ||
57 | + <view class="flextwo" v-else-if="last_data!=''"> | ||
58 | + <view class="behuiyuanbtn btnitem" @click="prequestion">上一题</view> | ||
59 | + <view class="behuiyuanbtn btnitem" @click="nextquestion">下一题</view> | ||
60 | + </view> | ||
61 | + | ||
62 | + <view class="behuiyuanbtn" v-else @click="sure">确认</view> | ||
50 | </view> | 63 | </view> |
51 | </view> | 64 | </view> |
52 | </template> | 65 | </template> |
@@ -56,104 +69,224 @@ | @@ -56,104 +69,224 @@ | ||
56 | export default { | 69 | export default { |
57 | data() { | 70 | data() { |
58 | return { | 71 | return { |
59 | - questionnaire_id:'', | ||
60 | - present_data:[], | ||
61 | - last_data:[], | ||
62 | - next_data:[] | 72 | + questionnaire_id: '', |
73 | + present_data: [], | ||
74 | + last_data: [], | ||
75 | + next_data: [], | ||
76 | + question_id:'', | ||
77 | + score:0, | ||
78 | + selitem:0, | ||
79 | + //是否在上一题返回的下一题 | ||
80 | + islast:0, | ||
63 | 81 | ||
64 | } | 82 | } |
65 | }, | 83 | }, |
66 | onLoad(options) { | 84 | onLoad(options) { |
67 | 85 | ||
68 | - this.questionnaire_id=options.id; | 86 | + this.questionnaire_id = options.id; |
69 | this.getqusetion(); | 87 | this.getqusetion(); |
70 | 88 | ||
71 | }, | 89 | }, |
72 | methods: { | 90 | methods: { |
73 | - getqusetion(){ | 91 | + getqusetion() { |
74 | let that = this; | 92 | let that = this; |
75 | 93 | ||
76 | var url = 'question/get_question'; | 94 | var url = 'question/get_question'; |
77 | var params = { | 95 | var params = { |
78 | - questionnaire_id:that.questionnaire_id | 96 | + questionnaire_id: that.questionnaire_id, |
97 | + question_id:that.question_id | ||
79 | } | 98 | } |
80 | 99 | ||
81 | console.log(params) | 100 | console.log(params) |
82 | - app.post(url, params,"post").then((res) => { | 101 | + app.post(url, params, "post").then((res) => { |
83 | console.log(res); | 102 | console.log(res); |
84 | - that.present_data=res.data.data.present_data; | ||
85 | - that.last_data=res.data.data.last_data; | ||
86 | - that.next_data=res.data.data.next_data; | 103 | + that.present_data = res.data.data.present_data; |
104 | + that.present_data.canchose=that.present_data.correct_number; | ||
105 | + that.present_data.option.forEach(function(value, index, array) { | ||
106 | + value.chose=false; | ||
107 | + switch (index) { | ||
108 | + case 0: | ||
109 | + value.sel = 'A'; | ||
110 | + break; | ||
111 | + case 1: | ||
112 | + value.sel = 'B'; | ||
113 | + break; | ||
114 | + case 2: | ||
115 | + value.sel = 'C'; | ||
116 | + break; | ||
117 | + case 3: | ||
118 | + value.sel = 'D'; | ||
119 | + break; | ||
120 | + } | ||
121 | + | ||
122 | + }) | ||
123 | + that.present_data = that.present_data; | ||
124 | + that.last_data = res.data.data.last_data; | ||
125 | + that.next_data = res.data.data.next_data; | ||
87 | }).catch((err) => { | 126 | }).catch((err) => { |
88 | console.log(err) | 127 | console.log(err) |
89 | 128 | ||
90 | }) | 129 | }) |
91 | }, | 130 | }, |
131 | + // 选择题目 | ||
132 | + | ||
133 | + selchose(index){ | ||
134 | + let that=this; | ||
135 | + that.selitem++; | ||
136 | + that.present_data.canchose++; | ||
137 | + that.present_data.option.forEach(function(value,indexk,array){ | ||
138 | + if(index==indexk){ | ||
139 | + value.chose=true; | ||
140 | + // value.canchose++; | ||
141 | + that.$forceUpdate() | ||
142 | + } | ||
143 | + }) | ||
92 | 144 | ||
145 | + that.present_data=that.present_data; | ||
146 | + that.score=that.score+that.present_data.score; | ||
147 | + uni.setStorageSync("present_datak",that.present_data); | ||
148 | + uni.setStorageSync("last_datak",that.last_data); | ||
149 | + uni.setStorageSync("next_datak",that.next_data); | ||
150 | + }, | ||
151 | + //下一题 | ||
152 | + nextquestion(){ | ||
153 | + let that=this; | ||
154 | + // this.question_id=this.present_data.id; | ||
155 | + this.question_id=2; | ||
156 | + if(that.selitem==0){ | ||
157 | + uni.showToast({ | ||
158 | + title:"请答题", | ||
159 | + icon:"none" | ||
160 | + }) | ||
161 | + }else{ | ||
162 | + uni.setStorageSync("present_data",that.present_data); | ||
163 | + uni.setStorageSync("last_data",that.last_data); | ||
164 | + uni.setStorageSync("next_data",that.next_data); | ||
165 | + that.selitem==0; | ||
166 | + if(that.islast==1){ | ||
167 | + that.islast=0 | ||
168 | + this.present_data=uni.getStorageSync("present_datak"); | ||
169 | + this.last_data=uni.getStorageSync("last_datak"); | ||
170 | + this.next_data=uni.getStorageSync("next_datak"); | ||
171 | + }else{ | ||
172 | + this.getqusetion(); | ||
93 | } | 173 | } |
94 | 174 | ||
95 | } | 175 | } |
96 | 176 | ||
177 | + }, | ||
178 | + // 上一题 | ||
179 | + prequestion(){ | ||
180 | + this.present_data=uni.getStorageSync("present_data"); | ||
181 | + this.last_data=uni.getStorageSync("last_data"); | ||
182 | + this.next_data=uni.getStorageSync("next_data"); | ||
183 | + | ||
184 | + this.islast=1 | ||
185 | + | ||
186 | + }, | ||
187 | + sure(){ | ||
188 | + let that = this; | ||
189 | + var url = 'question/submit_answer'; | ||
190 | + var params = { | ||
191 | + questionnaire_id: that.questionnaire_id, | ||
192 | + score:that.score | ||
193 | + } | ||
194 | + console.log('7766554', params) | ||
195 | + app.post(url, params).then((res) => { | ||
196 | + console.log(res); | ||
197 | + uni.showToast({ | ||
198 | + title:'提交成功', | ||
199 | + icon:'none' | ||
200 | + }) | ||
201 | + setTimeout(function(){ | ||
202 | + uni.navigateTo({ | ||
203 | + url:'/pages/luntan/examineresult?score='+that.score | ||
204 | + }) | ||
205 | + },1500) | ||
206 | + | ||
207 | + }).catch((err) => { | ||
208 | + that.score, console.log(err) | ||
209 | + | ||
210 | + }) | ||
211 | + } | ||
212 | + | ||
213 | + | ||
214 | + } | ||
215 | + | ||
216 | + } | ||
97 | </script> | 217 | </script> |
98 | 218 | ||
99 | <style> | 219 | <style> |
100 | - page{ | 220 | + page { |
101 | padding: 38rpx 32rpx; | 221 | padding: 38rpx 32rpx; |
102 | box-sizing: border-box; | 222 | box-sizing: border-box; |
103 | } | 223 | } |
104 | - .texttitle{ | ||
105 | - color:#06121F; | 224 | + |
225 | + .texttitle { | ||
226 | + color: #06121F; | ||
106 | font-size: 32rpx; | 227 | font-size: 32rpx; |
107 | } | 228 | } |
108 | - .textlist{ | ||
109 | - margin-top:32rpx; | ||
110 | - border-top:1rpx solid #f5f5f5; | 229 | + |
230 | + .textlist { | ||
231 | + margin-top: 32rpx; | ||
232 | + border-top: 1rpx solid #f5f5f5; | ||
111 | } | 233 | } |
112 | - .textitem{ | 234 | + |
235 | + .textitem { | ||
113 | padding: 16rpx 32rpx; | 236 | padding: 16rpx 32rpx; |
114 | box-sizing: border-box; | 237 | box-sizing: border-box; |
115 | - border:2rpx solid rgba(238,238,238,1); | ||
116 | - margin-bottom:16rpx; | 238 | + border: 2rpx solid rgba(238, 238, 238, 1); |
239 | + margin-bottom: 16rpx; | ||
117 | } | 240 | } |
118 | - .selright{ | 241 | + |
242 | + .selright { | ||
119 | background: #FEF0D7; | 243 | background: #FEF0D7; |
120 | } | 244 | } |
121 | - .textitemleft{ | ||
122 | - width:48rpx; | ||
123 | - height:48rpx; | 245 | + |
246 | + .textitemleft { | ||
247 | + width: 48rpx; | ||
248 | + height: 48rpx; | ||
124 | font-size: 0; | 249 | font-size: 0; |
125 | } | 250 | } |
126 | - .textitemright{ | ||
127 | - color:#06121F; | 251 | + |
252 | + .textitemright { | ||
253 | + color: #06121F; | ||
128 | font-size: 32rpx; | 254 | font-size: 32rpx; |
129 | - margin-left:16rpx; | 255 | + margin-left: 16rpx; |
130 | } | 256 | } |
131 | - .wrongimg{ | ||
132 | - width:28rpx; | ||
133 | - height:28rpx; | 257 | + |
258 | + .wrongimg { | ||
259 | + width: 28rpx; | ||
260 | + height: 28rpx; | ||
134 | font-size: 0; | 261 | font-size: 0; |
135 | } | 262 | } |
136 | - .selwrong{ | 263 | + |
264 | + .selwrong { | ||
137 | background: #FFE0DB; | 265 | background: #FFE0DB; |
138 | } | 266 | } |
139 | - .behuiyuanbtn{ | ||
140 | - width:686rpx; | ||
141 | - height:88rpx; | 267 | + |
268 | + .behuiyuanbtn { | ||
269 | + width: 686rpx; | ||
270 | + height: 88rpx; | ||
142 | background: #C29445; | 271 | background: #C29445; |
143 | - color:#fff; | 272 | + color: #fff; |
144 | font-size: 32rpx; | 273 | font-size: 32rpx; |
145 | text-align: center; | 274 | text-align: center; |
146 | line-height: 88rpx; | 275 | line-height: 88rpx; |
147 | border-radius: 10rpx; | 276 | border-radius: 10rpx; |
148 | 277 | ||
149 | } | 278 | } |
150 | - .huiyuanbot{ | ||
151 | - position:fixed; | 279 | + .btnitem{ |
280 | + width:300rpx; | ||
281 | + } | ||
282 | + | ||
283 | + .huiyuanbot { | ||
284 | + position: fixed; | ||
152 | background: #fff; | 285 | background: #fff; |
153 | - bottom:100rpx; | ||
154 | - left:0; | ||
155 | - width:750rpx; | ||
156 | - height:116rpx; | 286 | + bottom: 100rpx; |
287 | + left: 0; | ||
288 | + width: 750rpx; | ||
289 | + height: 116rpx; | ||
157 | padding: 14rpx 32rpx; | 290 | padding: 14rpx 32rpx; |
158 | } | 291 | } |
159 | </style> | 292 | </style> |
@@ -8,17 +8,19 @@ | @@ -8,17 +8,19 @@ | ||
8 | <image class="home-ico" src="../../static/home.png" mode="widthFix" /> | 8 | <image class="home-ico" src="../../static/home.png" mode="widthFix" /> |
9 | </view> | 9 | </view> |
10 | <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate"> | 10 | <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate"> |
11 | - <icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/> | ||
12 | - <input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk" placeholder-class="enterwordk"> | 11 | + <icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;" /> |
12 | + <input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk" | ||
13 | + placeholder-class="enterwordk"> | ||
13 | 14 | ||
14 | </view> | 15 | </view> |
15 | - <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> | ||
16 | - <!-- <view class="uni-input">{{array[index]}}</view> --> | ||
17 | - <view class="proselect flexthree"> | 16 | + <view class="proselect flexthree" @click="selprovince"> |
18 | <text class="proname">{{provincename}}</text> | 17 | <text class="proname">{{provincename}}</text> |
19 | <image class="down-ico" src="../../static/xiala.png" /> | 18 | <image class="down-ico" src="../../static/xiala.png" /> |
20 | </view> | 19 | </view> |
21 | - </picker> | 20 | + <!-- <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> |
21 | + | ||
22 | + | ||
23 | + </picker> --> | ||
22 | </view> | 24 | </view> |
23 | <!-- nav --> | 25 | <!-- nav --> |
24 | <view class="nav-wrap"> | 26 | <view class="nav-wrap"> |
@@ -47,7 +49,7 @@ | @@ -47,7 +49,7 @@ | ||
47 | <view class="nodata" v-if="luntanlist.length==0">暂无数据</view> | 49 | <view class="nodata" v-if="luntanlist.length==0">暂无数据</view> |
48 | <view v-else> | 50 | <view v-else> |
49 | <!-- content --> | 51 | <!-- content --> |
50 | - <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)" > | 52 | + <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)"> |
51 | <!-- 头像,名称,等级 --> | 53 | <!-- 头像,名称,等级 --> |
52 | <view class="userinfo-wrap" @click.stop="usercenter(item)"> | 54 | <view class="userinfo-wrap" @click.stop="usercenter(item)"> |
53 | <image :src="item.user.avatar"></image> | 55 | <image :src="item.user.avatar"></image> |
@@ -121,7 +123,6 @@ | @@ -121,7 +123,6 @@ | ||
121 | </view> | 123 | </view> |
122 | </view> | 124 | </view> |
123 | 125 | ||
124 | - | ||
125 | <!-- 底部导航 --> | 126 | <!-- 底部导航 --> |
126 | <view class="teacherfooter"> | 127 | <view class="teacherfooter"> |
127 | <view class="teacherfootitem" @click="footerseljump" :data-id="1"> | 128 | <view class="teacherfootitem" @click="footerseljump" :data-id="1"> |
@@ -157,37 +158,102 @@ | @@ -157,37 +158,102 @@ | ||
157 | type: 1, | 158 | type: 1, |
158 | page: 1, | 159 | page: 1, |
159 | provincelist: [], | 160 | provincelist: [], |
160 | - provincename:'', | ||
161 | - index:0, | ||
162 | - luntanlist:[], | ||
163 | - keyword:'' | 161 | + provincename: '', |
162 | + index: 0, | ||
163 | + luntanlist: [], | ||
164 | + keyword: '', | ||
165 | + | ||
164 | } | 166 | } |
165 | }, | 167 | }, |
166 | onLoad() { | 168 | onLoad() { |
167 | - // 获取省份列表 | ||
168 | - this.getprovincelist(); | 169 | + uni.setStorageSync("provincename","") |
169 | }, | 170 | }, |
170 | methods: { | 171 | methods: { |
171 | hidepublish() { | 172 | hidepublish() { |
172 | this.publish = false | 173 | this.publish = false |
173 | }, | 174 | }, |
175 | + // 选择城市 | ||
176 | + selprovince(){ | ||
177 | + uni.navigateTo({ | ||
178 | + url:'/pages/nearshop/allprovince' | ||
179 | + }) | ||
180 | + }, | ||
181 | + getlocation() { | ||
182 | + let that=this; | ||
183 | + uni.getLocation({ | ||
184 | + type: 'wgs84', | ||
185 | + success: function(res) { | ||
186 | + console.log('当前位置的经度:' + res.longitude); | ||
187 | + console.log('当前位置的纬度:' + res.latitude); | ||
188 | + var point = new plus.maps.Point(res.longitude, res.latitude); | ||
189 | + plus.maps.Map.reverseGeocode( | ||
190 | + point, {}, | ||
191 | + function(event) { | ||
192 | + console.log(event) | ||
193 | + var address = event.address; // 转换后的地理位置 | ||
194 | + var point = event.coord; // 转换后的坐标信息 | ||
195 | + var coordType = event.coordType; // 转换后的坐标系类型 | ||
196 | + console.log(address, 'address'); | ||
197 | + var reg = /.+?(省|市|自治区|自治州|县|区)/g; | ||
198 | + console.log(address.match(reg)); | ||
199 | + var addressname=address.match(reg); | ||
200 | + console.log(addressname); | ||
201 | + | ||
202 | + if(uni.getStorageSync("provincename")==''){ | ||
203 | + that.provincename=addressname[0]; | ||
204 | + uni.setStorageSync("provincename",that.provincename) | ||
205 | + }else{ | ||
206 | + that.provincename=uni.getStorageSync("provincename") | ||
207 | + } | ||
208 | + | ||
209 | + console.log(that.provincename) | ||
210 | + // that.getprovinceid() | ||
174 | 211 | ||
212 | + // _this.addressList = address.match(reg).toString().split(","); | ||
213 | + // _this.address = _this.addressList[1]; | ||
214 | + // console.log(_this.addressList[0]); | ||
215 | + // console.log(_this.addressList[1]); | ||
216 | + // console.log(_this.addressList[2]); | ||
217 | + | ||
218 | + }, | ||
219 | + function(e) {} | ||
220 | + ); | ||
221 | + } | ||
222 | + }); | ||
223 | + }, | ||
224 | + | ||
225 | + // 根据城市名字获取id | ||
226 | + getprovinceid(){ | ||
227 | + let that = this; | ||
228 | + var url = 'question/get_area'; | ||
229 | + var params = { | ||
230 | + province_name: that.provincename | ||
231 | + } | ||
232 | + console.log('7766554', params) | ||
233 | + app.post(url, params).then((res) => { | ||
234 | + console.log(res); | ||
235 | + | ||
236 | + }).catch((err) => { | ||
237 | + console.log(err) | ||
238 | + | ||
239 | + }) | ||
240 | + }, | ||
175 | // 输入关键字 | 241 | // 输入关键字 |
176 | - enterword(e){ | ||
177 | - this.keyword=e.detail.value; | 242 | + enterword(e) { |
243 | + this.keyword = e.detail.value; | ||
178 | console.log(this.keyword) | 244 | console.log(this.keyword) |
179 | }, | 245 | }, |
180 | // 输入完成 | 246 | // 输入完成 |
181 | - finish(){ | ||
182 | - this.page=1; | ||
183 | - this.luntanlist=[]; | 247 | + finish() { |
248 | + this.page = 1; | ||
249 | + this.luntanlist = []; | ||
184 | this.getluntanlist(); | 250 | this.getluntanlist(); |
185 | }, | 251 | }, |
186 | 252 | ||
187 | // 论坛详情 | 253 | // 论坛详情 |
188 | - luntandetail(item){ | 254 | + luntandetail(item) { |
189 | uni.navigateTo({ | 255 | uni.navigateTo({ |
190 | - url:'/pages/luntan/luntandetail?id='+item.id | 256 | + url: '/pages/luntan/luntandetail?id=' + item.id |
191 | }) | 257 | }) |
192 | }, | 258 | }, |
193 | // 获取省份列表 | 259 | // 获取省份列表 |
@@ -201,8 +267,8 @@ | @@ -201,8 +267,8 @@ | ||
201 | app.post(url, params).then((res) => { | 267 | app.post(url, params).then((res) => { |
202 | console.log(res); | 268 | console.log(res); |
203 | that.provincelist = res.data.data; | 269 | that.provincelist = res.data.data; |
204 | - this.provincename=res.data.data[0].name; | ||
205 | - that.province_id=res.data.data[0].id; | 270 | + this.provincename = res.data.data[0].name; |
271 | + that.province_id = res.data.data[0].id; | ||
206 | // 获取论坛列表 | 272 | // 获取论坛列表 |
207 | this.getluntanlist() | 273 | this.getluntanlist() |
208 | 274 | ||
@@ -211,12 +277,12 @@ | @@ -211,12 +277,12 @@ | ||
211 | }) | 277 | }) |
212 | }, | 278 | }, |
213 | 279 | ||
214 | - bindproChange(e){ | 280 | + bindproChange(e) { |
215 | this.index = e.target.value; | 281 | this.index = e.target.value; |
216 | - this.provincename=this.provincelist[e.target.value].name; | ||
217 | - this.province_id=this.provincelist[e.target.value].id; | ||
218 | - this.page=1; | ||
219 | - this.luntanlist=[]; | 282 | + this.provincename = this.provincelist[e.target.value].name; |
283 | + this.province_id = this.provincelist[e.target.value].id; | ||
284 | + this.page = 1; | ||
285 | + this.luntanlist = []; | ||
220 | // 获取论坛列表 | 286 | // 获取论坛列表 |
221 | this.getluntanlist(); | 287 | this.getluntanlist(); |
222 | }, | 288 | }, |
@@ -225,17 +291,17 @@ | @@ -225,17 +291,17 @@ | ||
225 | let that = this; | 291 | let that = this; |
226 | var url = 'forum/get_forum'; | 292 | var url = 'forum/get_forum'; |
227 | var params = { | 293 | var params = { |
228 | - keyword:that.keyword, | 294 | + keyword: that.keyword, |
229 | province_id: that.province_id, | 295 | province_id: that.province_id, |
230 | type: '', | 296 | type: '', |
231 | page: that.page, | 297 | page: that.page, |
232 | pageNum: 10 | 298 | pageNum: 10 |
233 | } | 299 | } |
234 | - console.log('参数',params) | 300 | + console.log('参数', params) |
235 | app.post(url, params).then((res) => { | 301 | app.post(url, params).then((res) => { |
236 | console.log(res); | 302 | console.log(res); |
237 | - that.luntanlist=that.luntanlist.concat(res.data.data); | ||
238 | - console.log('9999',this.luntanlist) | 303 | + that.luntanlist = that.luntanlist.concat(res.data.data); |
304 | + console.log('9999', this.luntanlist) | ||
239 | 305 | ||
240 | 306 | ||
241 | }).catch((err) => { | 307 | }).catch((err) => { |
@@ -243,42 +309,36 @@ | @@ -243,42 +309,36 @@ | ||
243 | 309 | ||
244 | }) | 310 | }) |
245 | }, | 311 | }, |
246 | - praisedian(item,index){ | 312 | + praisedian(item, index) { |
247 | let that = this; | 313 | let that = this; |
248 | - if(that.luntanlist[index].is_praise==2){ | 314 | + if (that.luntanlist[index].is_praise == 2) { |
249 | uni.showToast({ | 315 | uni.showToast({ |
250 | - title:'点赞成功', | ||
251 | - icon:'none' | 316 | + title: '点赞成功', |
317 | + icon: 'none' | ||
252 | }) | 318 | }) |
253 | - that.luntanlist[index].is_praise=1; | ||
254 | - that.luntanlist[index].praise=that.luntanlist[index].praise+1 | ||
255 | - }else{ | 319 | + that.luntanlist[index].is_praise = 1; |
320 | + that.luntanlist[index].praise = that.luntanlist[index].praise + 1 | ||
321 | + } else { | ||
256 | uni.showToast({ | 322 | uni.showToast({ |
257 | - title:'取消点赞成功', | ||
258 | - icon:'none' | 323 | + title: '取消点赞成功', |
324 | + icon: 'none' | ||
259 | }) | 325 | }) |
260 | - that.luntanlist[index].is_praise=2; | ||
261 | - that.luntanlist[index].praise=that.luntanlist[index].praise-1 | 326 | + that.luntanlist[index].is_praise = 2; |
327 | + that.luntanlist[index].praise = that.luntanlist[index].praise - 1 | ||
262 | } | 328 | } |
263 | 329 | ||
264 | - that.luntanlist=that.luntanlist; | 330 | + that.luntanlist = that.luntanlist; |
265 | 331 | ||
266 | var url = 'forum/praise'; | 332 | var url = 'forum/praise'; |
267 | var params = { | 333 | var params = { |
268 | - forum_id:item.id | 334 | + forum_id: item.id |
269 | } | 335 | } |
270 | - console.log('参数',params) | 336 | + console.log('参数', params) |
271 | app.post(url, params).then((res) => { | 337 | app.post(url, params).then((res) => { |
272 | console.log(res); | 338 | console.log(res); |
273 | - | ||
274 | - | ||
275 | - | ||
276 | }).catch((err) => { | 339 | }).catch((err) => { |
277 | console.log(err) | 340 | console.log(err) |
278 | - | ||
279 | }) | 341 | }) |
280 | - | ||
281 | - | ||
282 | }, | 342 | }, |
283 | 343 | ||
284 | // 返回首页 | 344 | // 返回首页 |
@@ -290,25 +350,25 @@ | @@ -290,25 +350,25 @@ | ||
290 | }, | 350 | }, |
291 | 351 | ||
292 | // 进入论坛主页 | 352 | // 进入论坛主页 |
293 | - usercenter(item){ | ||
294 | - let user=JSON.stringify(item.user) | 353 | + usercenter(item) { |
354 | + let user = JSON.stringify(item.user) | ||
295 | uni.navigateTo({ | 355 | uni.navigateTo({ |
296 | - url:'/pages/luntan/luntanpage?userid='+item.user_id+'&user='+user | 356 | + url: '/pages/luntan/luntanpage?userid=' + item.user_id + '&user=' + user |
297 | }) | 357 | }) |
298 | }, | 358 | }, |
299 | // 论坛列表 | 359 | // 论坛列表 |
300 | zhaopin(e) { | 360 | zhaopin(e) { |
301 | - let id=e.currentTarget.dataset.id; | 361 | + let id = e.currentTarget.dataset.id; |
302 | uni.navigateTo({ | 362 | uni.navigateTo({ |
303 | - url: '../luntan/luntanlist?id='+id | 363 | + url: '../luntan/luntanlist?id=' + id |
304 | }) | 364 | }) |
305 | }, | 365 | }, |
306 | 366 | ||
307 | // 发布评论 | 367 | // 发布评论 |
308 | - publishitezi(e){ | ||
309 | - let type=e.currentTarget.dataset.id; | 368 | + publishitezi(e) { |
369 | + let type = e.currentTarget.dataset.id; | ||
310 | uni.navigateTo({ | 370 | uni.navigateTo({ |
311 | - url:'/pages/luntan/addcontract?type='+type | 371 | + url: '/pages/luntan/addcontract?type=' + type |
312 | }) | 372 | }) |
313 | }, | 373 | }, |
314 | // 底部导航跳转 | 374 | // 底部导航跳转 |
@@ -328,8 +388,18 @@ | @@ -328,8 +388,18 @@ | ||
328 | this.publish = true | 388 | this.publish = true |
329 | } | 389 | } |
330 | } | 390 | } |
391 | + }, | ||
392 | + onShow() { | ||
393 | + | ||
394 | + // 获取省份列表 | ||
395 | + this.getprovincelist(); | ||
396 | + // 获取当前地理位置 | ||
397 | + this.getlocation(); | ||
331 | } | 398 | } |
332 | 399 | ||
400 | + | ||
401 | + | ||
402 | + | ||
333 | } | 403 | } |
334 | </script> | 404 | </script> |
335 | 405 | ||
@@ -337,41 +407,47 @@ | @@ -337,41 +407,47 @@ | ||
337 | page { | 407 | page { |
338 | background: #F9F9F9; | 408 | background: #F9F9F9; |
339 | } | 409 | } |
340 | - .release-text-content{ | ||
341 | - height:120rpx; | 410 | + |
411 | + .release-text-content { | ||
412 | + height: 120rpx; | ||
342 | display: -webkit-box; | 413 | display: -webkit-box; |
343 | -webkit-box-orient: vertical; | 414 | -webkit-box-orient: vertical; |
344 | -webkit-line-clamp: 3; | 415 | -webkit-line-clamp: 3; |
345 | overflow: hidden; | 416 | overflow: hidden; |
346 | } | 417 | } |
347 | - .enterwordk{ | ||
348 | - color:#BDC4CE; | 418 | + |
419 | + .enterwordk { | ||
420 | + color: #BDC4CE; | ||
349 | font-size: 24rpx; | 421 | font-size: 24rpx; |
350 | 422 | ||
351 | } | 423 | } |
352 | - .proselect{ | ||
353 | - width:120rpx; | ||
354 | - height:60rpx; | ||
355 | - border:2rpx solid rgba(238,238,238,1); | ||
356 | - color:#fff; | ||
357 | - font-size:24rpx; | 424 | + |
425 | + .proselect { | ||
426 | + width: 120rpx; | ||
427 | + height: 60rpx; | ||
428 | + border: 2rpx solid rgba(238, 238, 238, 1); | ||
429 | + color: #fff; | ||
430 | + font-size: 24rpx; | ||
358 | border-radius: 40rpx; | 431 | border-radius: 40rpx; |
359 | padding: 0 10rpx; | 432 | padding: 0 10rpx; |
360 | box-sizing: border-box; | 433 | box-sizing: border-box; |
361 | - margin-left:16rpx; | 434 | + margin-left: 16rpx; |
362 | } | 435 | } |
363 | - .proname{ | ||
364 | - width:90rpx; | 436 | + |
437 | + .proname { | ||
438 | + width: 90rpx; | ||
365 | overflow: hidden; | 439 | overflow: hidden; |
366 | text-overflow: ellipsis; | 440 | text-overflow: ellipsis; |
367 | white-space: nowrap; | 441 | white-space: nowrap; |
368 | - margin-right:5rpx; | 442 | + margin-right: 5rpx; |
369 | } | 443 | } |
370 | - .down-ico{ | ||
371 | - width:16rpx; | ||
372 | - height:16rpx; | 444 | + |
445 | + .down-ico { | ||
446 | + width: 16rpx; | ||
447 | + height: 16rpx; | ||
373 | font-size: 0; | 448 | font-size: 0; |
374 | } | 449 | } |
450 | + | ||
375 | .publishnav { | 451 | .publishnav { |
376 | padding: 0 !important; | 452 | padding: 0 !important; |
377 | } | 453 | } |
@@ -381,9 +457,11 @@ | @@ -381,9 +457,11 @@ | ||
381 | height: 88rpx; | 457 | height: 88rpx; |
382 | font-size: 0; | 458 | font-size: 0; |
383 | } | 459 | } |
384 | - | ||
385 | .search-input { | 460 | .search-input { |
386 | width: 470rpx !important; | 461 | width: 470rpx !important; |
462 | + height:60rpx; | ||
463 | + background:rgba(249,249,249,1); | ||
464 | + border-radius:32px; | ||
387 | } | 465 | } |
388 | 466 | ||
389 | /* 搜素 */ | 467 | /* 搜素 */ |
@@ -392,7 +470,7 @@ | @@ -392,7 +470,7 @@ | ||
392 | padding: 14rpx 0; | 470 | padding: 14rpx 0; |
393 | box-sizing: border-box; | 471 | box-sizing: border-box; |
394 | background: #C29445; | 472 | background: #C29445; |
395 | - z-index:99; | 473 | + z-index: 99; |
396 | position: fixed; | 474 | position: fixed; |
397 | top: var(--status-bar-height); | 475 | top: var(--status-bar-height); |
398 | left: 0; | 476 | left: 0; |
@@ -405,7 +483,8 @@ | @@ -405,7 +483,8 @@ | ||
405 | justify-content: space-between; | 483 | justify-content: space-between; |
406 | padding: 32rpx 64rpx; | 484 | padding: 32rpx 64rpx; |
407 | margin-bottom: 16rpx; | 485 | margin-bottom: 16rpx; |
408 | - margin-top: calc(var(--status-bar-height) + 100rpx);; | 486 | + margin-top: calc(var(--status-bar-height) + 100rpx); |
487 | + ; | ||
409 | } | 488 | } |
410 | 489 | ||
411 | .nav-wrap .navigator { | 490 | .nav-wrap .navigator { |
@@ -503,9 +582,11 @@ | @@ -503,9 +582,11 @@ | ||
503 | width: 60rpx; | 582 | width: 60rpx; |
504 | height: 60rpx; | 583 | height: 60rpx; |
505 | } | 584 | } |
506 | - .search-wrap .navigator:nth-child(3){ | 585 | + |
586 | + .search-wrap .navigator:nth-child(3) { | ||
507 | /* font-size: 20rpx; */ | 587 | /* font-size: 20rpx; */ |
508 | } | 588 | } |
589 | + | ||
509 | /* .proname{ | 590 | /* .proname{ |
510 | 591 | ||
511 | overflow: hidden; | 592 | overflow: hidden; |
@@ -13,14 +13,14 @@ | @@ -13,14 +13,14 @@ | ||
13 | 北京 | 13 | 北京 |
14 | <image src="../../static/huixia.png" /> | 14 | <image src="../../static/huixia.png" /> |
15 | </view> --> | 15 | </view> --> |
16 | - | ||
17 | - <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> | ||
18 | - <!-- <view class="uni-input">{{array[index]}}</view> --> | ||
19 | - <view class="proselect flexthree"> | 16 | + <view class="proselect flexthree" @click="selprovince"> |
20 | <text class="proname">{{provincename}}</text> | 17 | <text class="proname">{{provincename}}</text> |
21 | <image class="down-ico" src="../../static/huixia.png" /> | 18 | <image class="down-ico" src="../../static/huixia.png" /> |
22 | </view> | 19 | </view> |
23 | - </picker> | 20 | + <!-- picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> |
21 | + | ||
22 | + | ||
23 | + </picker> --> | ||
24 | </view> | 24 | </view> |
25 | <!-- nav --> | 25 | <!-- nav --> |
26 | <view class="nav-menus"> | 26 | <view class="nav-menus"> |
@@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
100 | showbanben: false, | 100 | showbanben: false, |
101 | kindtype: '', | 101 | kindtype: '', |
102 | provincelist: [], | 102 | provincelist: [], |
103 | - province_id:'', | 103 | + province_id: '', |
104 | provincename: '', | 104 | provincename: '', |
105 | index: 0, | 105 | index: 0, |
106 | keyword: '', | 106 | keyword: '', |
@@ -109,7 +109,8 @@ | @@ -109,7 +109,8 @@ | ||
109 | }, | 109 | }, |
110 | onLoad(options) { | 110 | onLoad(options) { |
111 | this.kindtype = options.id; | 111 | this.kindtype = options.id; |
112 | - this.getprovincelist() | 112 | + this.getprovincelist(); |
113 | + uni.setStorageSync("provincename", "") | ||
113 | }, | 114 | }, |
114 | methods: { | 115 | methods: { |
115 | kindchange(e) { | 116 | kindchange(e) { |
@@ -118,6 +119,70 @@ | @@ -118,6 +119,70 @@ | ||
118 | this.luntanlist = []; | 119 | this.luntanlist = []; |
119 | this.getluntanlist() | 120 | this.getluntanlist() |
120 | }, | 121 | }, |
122 | + selprovince() { | ||
123 | + uni.navigateTo({ | ||
124 | + url: '/pages/nearshop/allprovince' | ||
125 | + }) | ||
126 | + }, | ||
127 | + getlocation() { | ||
128 | + let that = this; | ||
129 | + uni.getLocation({ | ||
130 | + type: 'wgs84', | ||
131 | + success: function(res) { | ||
132 | + console.log('当前位置的经度:' + res.longitude); | ||
133 | + console.log('当前位置的纬度:' + res.latitude); | ||
134 | + var point = new plus.maps.Point(res.longitude, res.latitude); | ||
135 | + plus.maps.Map.reverseGeocode( | ||
136 | + point, {}, | ||
137 | + function(event) { | ||
138 | + console.log(event) | ||
139 | + var address = event.address; // 转换后的地理位置 | ||
140 | + var point = event.coord; // 转换后的坐标信息 | ||
141 | + var coordType = event.coordType; // 转换后的坐标系类型 | ||
142 | + console.log(address, 'address'); | ||
143 | + var reg = /.+?(省|市|自治区|自治州|县|区)/g; | ||
144 | + console.log(address.match(reg)); | ||
145 | + var addressname = address.match(reg); | ||
146 | + console.log(addressname); | ||
147 | + | ||
148 | + if (uni.getStorageSync("provincename") == '') { | ||
149 | + that.provincename = addressname[0]; | ||
150 | + uni.setStorageSync("provincename", that.provincename) | ||
151 | + } else { | ||
152 | + that.provincename = uni.getStorageSync("provincename") | ||
153 | + } | ||
154 | + | ||
155 | + console.log(that.provincename) | ||
156 | + // that.getprovinceid() | ||
157 | + | ||
158 | + // _this.addressList = address.match(reg).toString().split(","); | ||
159 | + // _this.address = _this.addressList[1]; | ||
160 | + // console.log(_this.addressList[0]); | ||
161 | + // console.log(_this.addressList[1]); | ||
162 | + // console.log(_this.addressList[2]); | ||
163 | + | ||
164 | + }, | ||
165 | + function(e) {} | ||
166 | + ); | ||
167 | + } | ||
168 | + }); | ||
169 | + }, | ||
170 | + // 根据城市名字获取id | ||
171 | + getprovinceid() { | ||
172 | + let that = this; | ||
173 | + var url = 'question/get_area'; | ||
174 | + var params = { | ||
175 | + province_name: that.provincename | ||
176 | + } | ||
177 | + console.log('7766554', params) | ||
178 | + app.post(url, params).then((res) => { | ||
179 | + console.log(res); | ||
180 | + | ||
181 | + }).catch((err) => { | ||
182 | + console.log(err) | ||
183 | + | ||
184 | + }) | ||
185 | + }, | ||
121 | 186 | ||
122 | // 输入完成 | 187 | // 输入完成 |
123 | finish() { | 188 | finish() { |
@@ -184,31 +249,31 @@ | @@ -184,31 +249,31 @@ | ||
184 | 249 | ||
185 | }) | 250 | }) |
186 | }, | 251 | }, |
187 | - praisedian(item,index){ | 252 | + praisedian(item, index) { |
188 | let that = this; | 253 | let that = this; |
189 | - if(that.luntanlist[index].is_praise==2){ | 254 | + if (that.luntanlist[index].is_praise == 2) { |
190 | uni.showToast({ | 255 | uni.showToast({ |
191 | - title:'点赞成功', | ||
192 | - icon:'none' | 256 | + title: '点赞成功', |
257 | + icon: 'none' | ||
193 | }) | 258 | }) |
194 | - that.luntanlist[index].is_praise=1; | ||
195 | - that.luntanlist[index].praise=that.luntanlist[index].praise+1 | ||
196 | - }else{ | 259 | + that.luntanlist[index].is_praise = 1; |
260 | + that.luntanlist[index].praise = that.luntanlist[index].praise + 1 | ||
261 | + } else { | ||
197 | uni.showToast({ | 262 | uni.showToast({ |
198 | - title:'取消点赞成功', | ||
199 | - icon:'none' | 263 | + title: '取消点赞成功', |
264 | + icon: 'none' | ||
200 | }) | 265 | }) |
201 | - that.luntanlist[index].is_praise=2; | ||
202 | - that.luntanlist[index].praise=that.luntanlist[index].praise-1 | 266 | + that.luntanlist[index].is_praise = 2; |
267 | + that.luntanlist[index].praise = that.luntanlist[index].praise - 1 | ||
203 | } | 268 | } |
204 | 269 | ||
205 | - that.luntanlist=that.luntanlist; | 270 | + that.luntanlist = that.luntanlist; |
206 | 271 | ||
207 | var url = 'forum/praise'; | 272 | var url = 'forum/praise'; |
208 | var params = { | 273 | var params = { |
209 | - forum_id:item.id | 274 | + forum_id: item.id |
210 | } | 275 | } |
211 | - console.log('参数',params) | 276 | + console.log('参数', params) |
212 | app.post(url, params).then((res) => { | 277 | app.post(url, params).then((res) => { |
213 | console.log(res); | 278 | console.log(res); |
214 | 279 | ||
@@ -221,9 +286,12 @@ | @@ -221,9 +286,12 @@ | ||
221 | }, | 286 | }, |
222 | luntandetail(item) { | 287 | luntandetail(item) { |
223 | uni.navigateTo({ | 288 | uni.navigateTo({ |
224 | - url:'/pages/luntan/luntandetail?id='+item.id | 289 | + url: '/pages/luntan/luntandetail?id=' + item.id |
225 | }) | 290 | }) |
226 | } | 291 | } |
292 | + }, | ||
293 | + onShow() { | ||
294 | + this.getlocation() | ||
227 | } | 295 | } |
228 | 296 | ||
229 | } | 297 | } |
pages/nearshop/allprovince.vue
0 → 100644
1 | +<template> | ||
2 | + <view class="content"> | ||
3 | + <!-- 当前城市 --> | ||
4 | + <view class="city"> | ||
5 | + <view class="localcity flexone"> | ||
6 | + <view class="localname">定位</view> | ||
7 | + <view class="localleft"> | ||
8 | + <image src="../../static/loaclcity.png" mode=""></image> | ||
9 | + </view> | ||
10 | + </view> | ||
11 | + <view class="citybox flexone"> | ||
12 | + <view class="cityboxitem " :class="selcurrent==1?'selcityactive':''" wx:key="">{{provincename}}</view> | ||
13 | + </view> | ||
14 | + </view> | ||
15 | + <!-- 热门城市 --> | ||
16 | + <view class="city"> | ||
17 | + <view class="citytop">热门城市</view> | ||
18 | + <view class="citybox flexone"> | ||
19 | + <view class="cityboxitem" :class="selhot==index?'selcityactive':''" v-for="(item,index) in cityarr" :key='' @click="selhotcity(item,index)" | ||
20 | + >{{item.name}}</view> | ||
21 | + </view> | ||
22 | + </view> | ||
23 | + <!-- 当前城市 --> | ||
24 | + <view class="city"> | ||
25 | + <view class="citytop">全部城市</view> | ||
26 | + <view class="citybox flexone"> | ||
27 | + <view class="cityboxitem" :class="selall==index?'selcityactive':''" v-for="(item,index) in cityarr" :key='' @click="selallcity(item,index)" | ||
28 | + >{{item.name}}</view> | ||
29 | + </view> | ||
30 | + </view> | ||
31 | + </view> | ||
32 | +</template> | ||
33 | + | ||
34 | +<script> | ||
35 | + import app from "../../App.vue"; | ||
36 | + export default { | ||
37 | + data() { | ||
38 | + return { | ||
39 | + showbanben: false, | ||
40 | + cityarr:[], | ||
41 | + provincename:'', | ||
42 | + selhot:-1, | ||
43 | + selall:-1, | ||
44 | + selcurrent:1 | ||
45 | + } | ||
46 | + }, | ||
47 | + onLoad() { | ||
48 | + this.provincename=uni.getStorageSync("provincename") | ||
49 | + this.getprovincelist() | ||
50 | + | ||
51 | + }, | ||
52 | + methods: { | ||
53 | + // 获取省份列表 | ||
54 | + getprovincelist() { | ||
55 | + let that = this; | ||
56 | + var url = 'forum/get_province'; | ||
57 | + var params = { | ||
58 | + is_forum_hot: '' | ||
59 | + } | ||
60 | + console.log('7766554', params) | ||
61 | + app.post(url, params).then((res) => { | ||
62 | + console.log(res); | ||
63 | + that.cityarr = res.data.data; | ||
64 | + | ||
65 | + }).catch((err) => { | ||
66 | + | ||
67 | + }) | ||
68 | + }, | ||
69 | + // 选择城市 | ||
70 | + selhotcity(item,index){ | ||
71 | + console.log(item); | ||
72 | + this.selhot=index; | ||
73 | + this.selall=-1; | ||
74 | + this.selcurrent=0; | ||
75 | + uni.setStorageSync("provincename",item.name); | ||
76 | + uni.navigateBack({ | ||
77 | + checked:true | ||
78 | + }) | ||
79 | + | ||
80 | + }, | ||
81 | + selallcity(item,index){ | ||
82 | + this.selall=index; | ||
83 | + this.selhot=-1; | ||
84 | + this.selcurrent=0; | ||
85 | + uni.setStorageSync("provincename",item.name); | ||
86 | + uni.navigateBack({ | ||
87 | + checked:true | ||
88 | + }) | ||
89 | + }, | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + } | ||
94 | + | ||
95 | + } | ||
96 | +</script> | ||
97 | + | ||
98 | +<style> | ||
99 | + page{ | ||
100 | + background: #fff; | ||
101 | + } | ||
102 | + .city{ | ||
103 | + border-bottom:16rpx solid #F7F7F7 | ||
104 | + } | ||
105 | + .localcity{ | ||
106 | + margin-top:34rpx; | ||
107 | + } | ||
108 | + .localleft{ | ||
109 | + width:32rpx; | ||
110 | + height: 32rpx; | ||
111 | + font-size: 0; | ||
112 | + margin-left:8rpx; | ||
113 | + } | ||
114 | + .localname{ | ||
115 | + color:#3D444C; | ||
116 | + font-size: 28rpx; | ||
117 | + margin-left:20rpx; | ||
118 | + } | ||
119 | + .search { | ||
120 | + color: #06121e; | ||
121 | + font-size: 28rpx; | ||
122 | + } | ||
123 | + | ||
124 | + .headmiddle { | ||
125 | + width: 596rpx; | ||
126 | + } | ||
127 | + | ||
128 | + .tou { | ||
129 | + background: #fff; | ||
130 | + } | ||
131 | + | ||
132 | + page { | ||
133 | + background: #f9f9fb; | ||
134 | + } | ||
135 | + | ||
136 | + /* 城市 */ | ||
137 | + | ||
138 | + .citybox { | ||
139 | + display: flex; | ||
140 | + flex-wrap: wrap; | ||
141 | + margin-top:26rpx; | ||
142 | + } | ||
143 | + | ||
144 | + | ||
145 | + .city { | ||
146 | + padding: 0 12rpx 0 32rpx; | ||
147 | + box-sizing: border-box; | ||
148 | + } | ||
149 | + .citytop{ | ||
150 | + color:#707070; | ||
151 | + font-size: 32rpx; | ||
152 | + margin-top:44rpx; | ||
153 | + font-weight: bold; | ||
154 | + | ||
155 | + } | ||
156 | + | ||
157 | + .cityboxitem { | ||
158 | + width: 216rpx; | ||
159 | + height: 68rpx; | ||
160 | + background: rgba(255, 255, 255, 1); | ||
161 | + border: 1rpx solid rgba(189, 196, 206, 1); | ||
162 | + opacity: 1; | ||
163 | + border-radius: 8rpx; | ||
164 | + color: #06121e; | ||
165 | + font-size: 28rpx; | ||
166 | + text-align: center; | ||
167 | + line-height: 68rpx; | ||
168 | + margin-right:14rpx; | ||
169 | + margin-bottom:24rpx; | ||
170 | + } | ||
171 | + .selcityactive{ | ||
172 | + background:#C29445 ; | ||
173 | + color:#fff; | ||
174 | + font-size: 28rpx; | ||
175 | + | ||
176 | + } | ||
177 | + | ||
178 | +</style> |
@@ -8,9 +8,9 @@ | @@ -8,9 +8,9 @@ | ||
8 | <view class="infoBox"> | 8 | <view class="infoBox"> |
9 | <view class="identity"> | 9 | <view class="identity"> |
10 | <view class="name">我是用户昵称</view> | 10 | <view class="name">我是用户昵称</view> |
11 | - <text class="vip"> | 11 | + <text class="vip flexone"> |
12 | <image src="../../static/huiyuan.png" mode="widthFix" /> | 12 | <image src="../../static/huiyuan.png" mode="widthFix" /> |
13 | - VIP5 | 13 | + <text class="vipname">VIP5</text> |
14 | </text> | 14 | </text> |
15 | </view> | 15 | </view> |
16 | <!-- <view class="userType">身份认证 >></view> --> | 16 | <!-- <view class="userType">身份认证 >></view> --> |
@@ -129,18 +129,21 @@ | @@ -129,18 +129,21 @@ | ||
129 | <view class="teacherfootname" :class="footersel==4?'activename':''">个人中心</view> | 129 | <view class="teacherfootname" :class="footersel==4?'activename':''">个人中心</view> |
130 | </view> | 130 | </view> |
131 | </view> | 131 | </view> |
132 | - | ||
133 | - | ||
134 | </view> | 132 | </view> |
135 | </template> | 133 | </template> |
136 | 134 | ||
137 | <script> | 135 | <script> |
136 | + import app from "../../App.vue"; | ||
138 | export default { | 137 | export default { |
139 | data() { | 138 | data() { |
140 | return { | 139 | return { |
141 | footersel: 4 | 140 | footersel: 4 |
142 | } | 141 | } |
143 | }, | 142 | }, |
143 | + onLoad() { | ||
144 | + //获取个人信息 | ||
145 | + this.getuserinfo() | ||
146 | + }, | ||
144 | methods: { | 147 | methods: { |
145 | // 设置 | 148 | // 设置 |
146 | set() { | 149 | set() { |
@@ -148,6 +151,28 @@ | @@ -148,6 +151,28 @@ | ||
148 | url: '/pages/usercenter/setUp' | 151 | url: '/pages/usercenter/setUp' |
149 | }) | 152 | }) |
150 | }, | 153 | }, |
154 | + // 获取用户信息 | ||
155 | + getuserinfo() { | ||
156 | + let that = this; | ||
157 | + var url = 'member/index'; | ||
158 | + var params = { | ||
159 | + | ||
160 | + } | ||
161 | + console.log('7766554', params) | ||
162 | + app.post(url, params).then((res) => { | ||
163 | + console.log(res); | ||
164 | + that.userinfo = res.data.data; | ||
165 | + that.label = res.data.data.label | ||
166 | + | ||
167 | + | ||
168 | + }).catch((err) => { | ||
169 | + | ||
170 | + }) | ||
171 | + }, | ||
172 | + // 个人资料 | ||
173 | + personziliao() { | ||
174 | + | ||
175 | + }, | ||
151 | // 列表跳转 | 176 | // 列表跳转 |
152 | jump(e) { | 177 | jump(e) { |
153 | let id = e.currentTarget.dataset.id; | 178 | let id = e.currentTarget.dataset.id; |
@@ -185,26 +210,26 @@ | @@ -185,26 +210,26 @@ | ||
185 | }) | 210 | }) |
186 | }, | 211 | }, |
187 | // 底部导航跳转 | 212 | // 底部导航跳转 |
188 | - selnav(e){ | 213 | + selnav(e) { |
189 | console.log(e) | 214 | console.log(e) |
190 | 215 | ||
191 | - let id=e.currentTarget.dataset.id; | 216 | + let id = e.currentTarget.dataset.id; |
192 | console.log(id) | 217 | console.log(id) |
193 | - if(id==1){ | 218 | + if (id == 1) { |
194 | uni.navigateTo({ | 219 | uni.navigateTo({ |
195 | - url:'../homepage/homepage' | 220 | + url: '../homepage/homepage' |
196 | }) | 221 | }) |
197 | - }else if(id==2){ | 222 | + } else if (id == 2) { |
198 | uni.navigateTo({ | 223 | uni.navigateTo({ |
199 | - url:"../nearshop/nearshop" | 224 | + url: "../nearshop/nearshop" |
200 | }) | 225 | }) |
201 | - }else if(id==3){ | 226 | + } else if (id == 3) { |
202 | uni.navigateTo({ | 227 | uni.navigateTo({ |
203 | - url:"../luntan/luntan" | 228 | + url: "../luntan/luntan" |
204 | }) | 229 | }) |
205 | - }else if(id==4){ | 230 | + } else if (id == 4) { |
206 | uni.navigateTo({ | 231 | uni.navigateTo({ |
207 | - url:"../usercenter/my" | 232 | + url: "../usercenter/my" |
208 | }) | 233 | }) |
209 | } | 234 | } |
210 | }, | 235 | }, |
@@ -267,14 +292,26 @@ | @@ -267,14 +292,26 @@ | ||
267 | } | 292 | } |
268 | 293 | ||
269 | .vip { | 294 | .vip { |
270 | - background: linear-gradient(90deg, rgba(244, 210, 151, 1) 0%, rgba(252, 191, 117, 1) 100%); | 295 | + padding: 0 20rpx; |
296 | + height: 40rpx; | ||
297 | + line-height: 40rpx; | ||
298 | + box-sizing: border-box; | ||
299 | + background: #F7CB8A; | ||
300 | + border-radius: 20rpx; | ||
301 | + margin-left: 16rpx; | ||
302 | + /* background: linear-gradient(90deg, rgba(244, 210, 151, 1) 0%, rgba(252, 191, 117, 1) 100%); | ||
271 | border-radius: 20rpx; | 303 | border-radius: 20rpx; |
272 | font-size: 22rpx; | 304 | font-size: 22rpx; |
273 | font-family: PingFangSC-Medium, PingFang SC; | 305 | font-family: PingFangSC-Medium, PingFang SC; |
274 | font-weight: 500; | 306 | font-weight: 500; |
275 | color: rgba(120, 71, 0, 1); | 307 | color: rgba(120, 71, 0, 1); |
276 | padding: 4rpx 12rpx; | 308 | padding: 4rpx 12rpx; |
277 | - margin-left: 16rpx; | 309 | + margin-left: 16rpx; */ |
310 | + } | ||
311 | + | ||
312 | + .vipname { | ||
313 | + color: #784700; | ||
314 | + font-size: 22rpx; | ||
278 | } | 315 | } |
279 | 316 | ||
280 | .vip image { | 317 | .vip image { |
@@ -28,9 +28,6 @@ | @@ -28,9 +28,6 @@ | ||
28 | </view> | 28 | </view> |
29 | 29 | ||
30 | </view> | 30 | </view> |
31 | - | ||
32 | - | ||
33 | - | ||
34 | <view class="tapnav flextwo huiyuannav boxsizing"> | 31 | <view class="tapnav flextwo huiyuannav boxsizing"> |
35 | <view class="tapnavitem" :class="sel==1?'huiyuanactive':''" @click="selhui" :data-id="1">个人会员</view> | 32 | <view class="tapnavitem" :class="sel==1?'huiyuanactive':''" @click="selhui" :data-id="1">个人会员</view> |
36 | <view class="tapnavitem" :class="sel==2?'huiyuanactive':''" @click="selhui" :data-id="2">企业会员</view> | 33 | <view class="tapnavitem" :class="sel==2?'huiyuanactive':''" @click="selhui" :data-id="2">企业会员</view> |
@@ -140,7 +137,6 @@ | @@ -140,7 +137,6 @@ | ||
140 | <view class="buybtn">确认支付(¥2560.00)</view> | 137 | <view class="buybtn">确认支付(¥2560.00)</view> |
141 | </view> | 138 | </view> |
142 | </view> | 139 | </view> |
143 | - | ||
144 | </view> | 140 | </view> |
145 | </template> | 141 | </template> |
146 | 142 |
static/loaclcity.png
0 → 100644
1.0 KB
1 | 1 | ||
2 | var isReady=false;var onReadyCallbacks=[]; | 2 | var isReady=false;var onReadyCallbacks=[]; |
3 | -var __uniConfig = {"pages":["pages/homepage/homepage","pages/nearshop/selectcoupon","pages/nearshop/cartbox","pages/login/loginindex","pages/nearshop/cartlist","pages/homepage/collectshop","pages/luntan/examineresult","pages/luntan/examintext","pages/luntan/examine","pages/nearshop/sureorder","pages/login/accountpassword","pages/login/registercode","pages/homepage/mygift","pages/homepage/drawlottery","pages/login/finishregister","pages/homepage/miaosha","pages/luntan/luntan","pages/luntan/addcontract","pages/luntan/luntandetail","pages/luntan/luntandetailsecond","pages/luntan/luntanlist","pages/luntan/luntanpage","pages/nearshop/goodtail","pages/nearshop/shopdetail","pages/usercenter/companyshenhe","pages/usercenter/usercenter","pages/nearshop/nearshop","pages/homepage/goodkind","pages/homepage/jifenshop","pages/homepage/shoplist","pages/homepage/search","pages/login/xieyi","pages/login/setmima","pages/login/register","pages/login/forgetmima","pages/index/index","pages/usercenter/setPassword","pages/usercenter/accountDetails","pages/usercenter/recharge","pages/usercenter/transferAccounts","pages/usercenter/transferDetails","pages/usercenter/cashOut","pages/usercenter/account","pages/usercenter/withdrawalsRecord","pages/usercenter/addCard","pages/usercenter/editCard","pages/usercenter/myCredit","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/sales","pages/usercenter/myAchievement","pages/usercenter/myCustomer","pages/usercenter/my","pages/usercenter/wallet","pages/usercenter/setUp","pages/usercenter/setUp","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/sales","pages/usercenter/personalData","pages/usercenter/address","pages/usercenter/addAddress","pages/usercenter/myCredit","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/myAchievement","pages/usercenter/myCustomer"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#fff","backgroundColor":"#fff"},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.11","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; | ||
4 | -var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"发布帖子","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}]; | 3 | +var __uniConfig = {"pages":["pages/homepage/homepage","pages/nearshop/allprovince","pages/nearshop/selectcoupon","pages/nearshop/cartbox","pages/login/loginindex","pages/nearshop/cartlist","pages/homepage/collectshop","pages/luntan/examineresult","pages/luntan/examintext","pages/luntan/examine","pages/nearshop/sureorder","pages/login/accountpassword","pages/login/registercode","pages/homepage/mygift","pages/homepage/drawlottery","pages/login/finishregister","pages/homepage/miaosha","pages/luntan/luntan","pages/luntan/addcontract","pages/luntan/luntandetail","pages/luntan/luntandetailsecond","pages/luntan/luntanlist","pages/luntan/luntanpage","pages/nearshop/goodtail","pages/nearshop/shopdetail","pages/usercenter/companyshenhe","pages/usercenter/usercenter","pages/nearshop/nearshop","pages/homepage/goodkind","pages/homepage/jifenshop","pages/homepage/shoplist","pages/homepage/search","pages/login/xieyi","pages/login/setmima","pages/login/register","pages/login/forgetmima","pages/index/index","pages/usercenter/setPassword","pages/usercenter/accountDetails","pages/usercenter/recharge","pages/usercenter/transferAccounts","pages/usercenter/transferDetails","pages/usercenter/cashOut","pages/usercenter/account","pages/usercenter/withdrawalsRecord","pages/usercenter/addCard","pages/usercenter/editCard","pages/usercenter/myCredit","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/sales","pages/usercenter/myAchievement","pages/usercenter/myCustomer","pages/usercenter/my","pages/usercenter/wallet","pages/usercenter/setUp","pages/usercenter/setUp","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/sales","pages/usercenter/personalData","pages/usercenter/address","pages/usercenter/addAddress","pages/usercenter/myCredit","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/myAchievement","pages/usercenter/myCustomer"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#fff","backgroundColor":"#fff"},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.11","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
4 | +var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/allprovince","meta":{},"window":{"navigationBarTitleText":"全部省份","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"发布帖子","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}]; | ||
5 | __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); | 5 | __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
6 | service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); | 6 | service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); |
此 diff 太大无法显示。
此 diff 太大无法显示。
1.0 KB
-
请 注册 或 登录 后发表评论