Blame view

pages/my/my.vue 9.88 KB
c7add6cf   “wangming”   初始版本开发完毕
1
2
3
4
5
6
7
8
  <template>

  	<view class="page">

  		<customHead mode='searchNav' :title='headtitle'></customHead>

  		<view class="my-top">

  

  			<!-- 用户信息 -->

  			<view class="user-info">

  				<view class="portrait">

25852764   unknown   s
9
  					<image height="100%" width='100%' :src='imag'>

c7add6cf   “wangming”   初始版本开发完毕
10
11
12
13
  					</image>

  				</view>

  				<view class="info">

  					<view class="nickname">

25852764   unknown   s
14
  						<text>{{userInfo.name || "微信用户"}}</text>

c7add6cf   “wangming”   初始版本开发完毕
15
16
17
18
19
  					</view>

  					<view class="rank">

  						<text>{{userInfo.accent}}</text>

  					</view>

  				</view>

25852764   unknown   s
20
  				<view class="user-right" @click="UpdateUserIs">

c7add6cf   “wangming”   初始版本开发完毕
21
22
  					<image src="../../static/right.png"></image>

  				</view>

25852764   unknown   s
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  

  				<!-- <u-modal v-model="isShow" :content="userInfo.accent" title="编辑" show-cancel-button="true"

  					confirm="Updateuser">

  					<view>

  						<view style="display: flex;align-items: center;">

  							<span>头像:</span>

  							<u-upload ref="uUpload" :action="action" :auto-upload="true" @on-success="saveImage"

  								max-count="1"></u-upload>

  						</view>

  

  						<view style="display: flex;align-items: center;">

  							<span>姓名:</span>

  							<u-input v-model="wdnmd.name" :type="type" :border="border" />

  						</view>

  					</view>

  

  					<u-button @click="Updateuser">提交</u-button>

  				</u-modal> -->

  

  				<u-popup v-model="isShow" mode="bottom">

  					<view class="headImage-Box">

  						<view style="padding-left: 45%; font-size: 40rpx; padding-top: 30rpx; ">头像</view>

  						<view style="display: flex; padding-top: 30rpx;">

  							 

  							<view style="display: flex;align-items: center; padding-left: 40rpx;">

  								<span style = "width: 100rpx; padding-left: 20rpx;">姓名:</span>

  								<u-input v-model="wdnmd.name" :type="type" :border="border" />

  							</view>

  							<view style="display: flex;align-items: center;padding-left: 4%;">

  								<!-- <span style = "width: 80rpx;">头像:</span> -->

  								<u-upload ref="uUpload" width="180" height="180" :action="action" :auto-upload="true"

  									@on-success="saveImage" max-count="1"></u-upload>

  							</view>

  						</view>

  						<view class="btns-box">

  							<button @click="Updateuser">确认</button>

  							<button @click="isShow = false">取消</button>

  						</view>

  						

  					</view>

  				</u-popup>

  				<!-- 修改用户信息 -->

  				<!-- <view class="userInfoUpdate" v-if="isShow">

  					<u-input v-model="value" :type="type" :border="border" />

  				</view> -->

  

c7add6cf   “wangming”   初始版本开发完毕
69
70
71
72
  			</view>

  		</view>

  

  		<view class="main">

501a5e3f   “wangming”   交接
73
  			<view class="my-banner" @click="GoFindWork">

c7add6cf   “wangming”   初始版本开发完毕
74
75
76
77
78
79
80
81
  				<image src="../../static/my1.png" mode="widthFix"></image>

  			</view>

  			<view class="message-list">

  				<view class="titleall-box">

  					<view class="titleall-left">

  						<view class="titleall-left-line"></view>服务与工具

  					</view>

  				</view>

501a5e3f   “wangming”   交接
82
  				<view class="list" @click="GoFindWork">

c7add6cf   “wangming”   初始版本开发完毕
83
84
85
86
87
88
89
90
91
92
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon1.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>个人信息</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
93
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
94
95
96
  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

501a5e3f   “wangming”   交接
97
  				<view class="list" @click="GoOpinion">

c7add6cf   “wangming”   初始版本开发完毕
98
99
100
101
102
103
104
105
106
107
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon3.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>意见反馈</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
108
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
109
110
111
  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

501a5e3f   “wangming”   交接
112
  				<view class="list" @click="GetDetail('389271103194793221')">

c7add6cf   “wangming”   初始版本开发完毕
113
114
115
116
117
118
119
120
121
122
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon4.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>防骗指南</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
123
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
124
125
126
  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

501a5e3f   “wangming”   交接
127
  				<view class="list" @click="GetDetail('389270722012251397')">

c7add6cf   “wangming”   初始版本开发完毕
128
129
130
131
132
133
134
135
136
137
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon5.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>关于我们</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
138
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
139
140
141
  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

501a5e3f   “wangming”   交接
142
  				<view class="list" @click="GetDetail('389271127152657669')">

c7add6cf   “wangming”   初始版本开发完毕
143
144
145
146
147
148
149
150
151
152
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon6.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>合作单位</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
153
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
154
155
156
  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

501a5e3f   “wangming”   交接
157
  				<view class="list" @click="GetDetail('389271160438654213')">

c7add6cf   “wangming”   初始版本开发完毕
158
159
160
161
162
163
164
165
166
167
  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon7.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>关注公众号</text>

  							</view>

  						</view>

  					</view>

501a5e3f   “wangming”   交接
168
  					<view class="more">

c7add6cf   “wangming”   初始版本开发完毕
169
170
  						<text class="iconfont icon-more"></text>

  					</view>

25852764   unknown   s
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
  				</view>

  				<view class="list" @click="Getlogin">

  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon1.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>退出</text>

  							</view>

  						</view>

  					</view>

  					<view class="more">

  						<text class="iconfont icon-more"></text>

  					</view>

c7add6cf   “wangming”   初始版本开发完毕
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
  				</view>

  				<view class="list" v-if="false">

  					<view class="icon-data">

  						<view class="icon">

  							<image src="/static/my-icon8.png" mode=""></image>

  						</view>

  						<view class="data">

  							<view class="title">

  								<text>分享给朋友</text>

  							</view>

  						</view>

  					</view>

  					<view class="more">

  						<text class="iconfont icon-more"></text>

  					</view>

  				</view>

  			</view>

  			<view class="my-phone">

  				<view>客服电话:654564</view>

  				<view>彭州市人社局监督电话:541516</view>

  				<view>备案号:6556121212</view>

  			</view>

  		</view>

25852764   unknown   s
209
210
211
212
213
  		<!-- <u-button type="primary">主要按钮</u-button>

  		<u-button type="success">成功按钮</u-button>

  		<u-button type="info">信息按钮</u-button>

  		<u-button type="warning">警告按钮</u-button>

  		<u-button type="error">危险按钮</u-button> -->

c7add6cf   “wangming”   初始版本开发完毕
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
  		<!-- tabbar -->

  		<TabBar :tabBarShow="3"></TabBar>

  	</view>

  </template>

  

  <script>

  	import BASE_URL from '@/common/config.js'

  	import service from '@/service/service.js'

  	import customHead from "@/components/xy-customhead/xy-customhead.vue";

  	import TabBar from '../../components/TabBar/TabBar.vue';

  	export default {

  		components: {

  			TabBar,

  			customHead

  		},

25852764   unknown   s
229
  

c7add6cf   “wangming”   初始版本开发完毕
230
231
  		data() {

  			return {

25852764   unknown   s
232
233
234
235
236
237
238
239
  				imag: 'https://zgxcx.antissoft.com/api/File/Image/annexpic/20230213_394738582306161925.jpg',

  				wdnmd: {

  					headIcon: [],

  					name: "",

  				},

  				action: 'https://zgxcx.antissoft.com/api/file/Uploader/annexpic',

  				filesArr: [],

  				BASE_URL: "",

c7add6cf   “wangming”   初始版本开发完毕
240
241
242
243
  				headtitle: '铭钛招聘',

  				scrollTop: 0,

  				isHotline: false,

  				userInfo: {},

25852764   unknown   s
244
  				isShow: false,

c7add6cf   “wangming”   初始版本开发完毕
245
246
247
248
249
250
251
252
253
  			};

  		},

  		onReady() {

  			uni.hideTabBar();

  		},

  		onPageScroll(e) {

  			this.scrollTop = e.scrollTop;

  		},

  		onLoad() {

25852764   unknown   s
254
255
  			// this.userInfo = service.getUser();

  			this.GetUser();

c7add6cf   “wangming”   初始版本开发完毕
256
  		},

25852764   unknown   s
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
  		methods: {

  			GetUser() {

  				this.API.GetUserInfo().then(res => {

  					console.log('res', res);

  					this.userInfo = res.data;

  					console.log('this.userInfo', this.userInfo);

  					console.log('sds', BASE_URL + this.userInfo.headIcon[0].url);

  					if (this.userInfo.headIcon[0].url != null) {

  						this.imag = BASE_URL + this.userInfo.headIcon[0].url;

  					}

  					console.log('是的哇大大', imag);

  				})

  			},

  			saveImage(e) {

  				console.log('dwa', e);

  				// let url = JSON.parse(e.data)

  				// console.log(url.data);

  				this.wdnmd.headIcon.push(e.data);

  				console.log('sdasedfse', this.wdnmd.headIcon);

  			},

  			Updateuser() {

  				// console.log('sdwds', this.wdnmd);

  				this.API.Updateuser(this.wdnmd).then(res => {

  					console.log(res)

  					if (res.code == 200) {

  						console.log('修改成功!');

  						this.GetUser();

  					}

  				})

  			},

  			// 如果您不需要进行太多的处理,直接如下即可

  			// files = this.$refs.uUpload.lists;

  			// console.log(files)

  			UpdateUserIs() {

  				this.isShow = true;

  			},

  			Getlogin() {

  				uni.navigateTo({

  					url: '/pages/Login/index'

  				})

501a5e3f   “wangming”   交接
297
298
  			},

  			GoFindWork() {

c7add6cf   “wangming”   初始版本开发完毕
299
300
301
  				uni.navigateTo({

  					url: '/pages/FindWord/FindWord'

  				})

501a5e3f   “wangming”   交接
302
303
304
305
306
  			},

  			GoOpinion() {

  				uni.navigateTo({

  					url: '/pages/Opinion/Opinion'

  				})

c7add6cf   “wangming”   初始版本开发完毕
307
308
309
310
311
312
  			},

  			/**

  			 * 详情页面

  			 */

  			GetDetail(id) {

  				uni.navigateTo({

501a5e3f   “wangming”   交接
313
  					url: '/pages/Detail/Detail?id=' + id,

c7add6cf   “wangming”   初始版本开发完毕
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
  				})

  			},

  			/**

  			 * 跳转点击

  			 * @param {String} type 跳转类型

  			 */

  			onSkip(type) {

  				switch (type) {

  					case 'goods':

  						uni.navigateTo({

  							url: '/pages/GoodsDetails/GoodsDetails',

  							animationType: 'zoom-fade-out',

  							animationDuration: 200

  						})

  						break;

  				}

  			},

  			/**

  			 * 用户信息点击

  			 * @param {Number} type

  			 */

  			onUserInfo() {

  				uni.navigateTo({

  					url: '/pages/login/login'

  				})

  			}

  		}

  	}

  </script>

  

  <style scoped lang="scss">

  	@import 'my.scss';

25852764   unknown   s
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
  

  	.headImage-Box {

  		width: 100%;

  		height: 550rpx; 

  		border: 2px solid rgb(49,57,89);

  		// border-radius: 40rpx;

  

  	}

  

  	/deep/.u-upload {

  		// display: flex;

  		// align-items: center;

  		// justify-content: center;

  		margin-left: 60rpx;

  		position: relative;

  		right: 60rpx;

  	}

  	.btns-box{

  		display: flex; 

  		margin-top: 100rpx;

  		button{

  			width: 200rpx;

  			height: 80rpx;

  			align-items: center;

  		}

  	}

  	

c7add6cf   “wangming”   初始版本开发完毕
373
  </style>