Compare commits
No commits in common. "75a4bbedbebc94f7b50c1344349914d1757eb9fe" and "f89803cf9b18909e91f3ae567daebf1d8d3a3ee8" have entirely different histories.
75a4bbedbe
...
f89803cf9b
@ -2,7 +2,7 @@
|
|||||||
<!-- login页面 -->
|
<!-- login页面 -->
|
||||||
<view>
|
<view>
|
||||||
<view class="login">
|
<view class="login">
|
||||||
<!-- <image class="images" :src="url"></image> -->
|
<image class="images" :src="url"></image>
|
||||||
<view class="backes"></view>
|
<view class="backes"></view>
|
||||||
<view class="title_top">德铭阳光在线-商家端</view>
|
<view class="title_top">德铭阳光在线-商家端</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@ -158,20 +158,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.login:before{
|
|
||||||
background: url(../../static/bg.png) no-repeat;
|
|
||||||
background-size: cover;
|
|
||||||
width: 750rpx;
|
|
||||||
height: 100vh;
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: -1;/*-1 可以当背景*/
|
|
||||||
-webkit-filter: blur(3px);
|
|
||||||
filter: blur(3px);
|
|
||||||
}
|
|
||||||
.login {
|
.login {
|
||||||
|
// background: url(../../static/pageA/loginbackground.png) no-repeat!important;
|
||||||
.images {
|
.images {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="user">
|
<view class="user">
|
||||||
<view class="head" @click="toOthersPage('info')">
|
<view class="head" @click="toOthersPage('info')">
|
||||||
<view class="info" :key="num">
|
<view class="info">
|
||||||
<image :src="info.member_avatar+'?'+new Date().getTime()"></image>
|
<image :src="info.member_avatar"></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
||||||
<text>账号:{{info.member_name}}</text>
|
<text>账号:{{info.member_name}}</text>
|
||||||
@ -23,10 +23,6 @@
|
|||||||
<text>骑手投诉</text>
|
<text>骑手投诉</text>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="nav" @click="loginout()">
|
|
||||||
<text>退出登录</text>
|
|
||||||
<image src="/static/image/user/1.png"></image>
|
|
||||||
</view>
|
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -35,8 +31,7 @@ export default {
|
|||||||
name:"user",
|
name:"user",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
info:{},
|
info:{}
|
||||||
num:0
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -45,17 +40,6 @@ export default {
|
|||||||
this.getmyinfo()
|
this.getmyinfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 退出登陆
|
|
||||||
loginout(){
|
|
||||||
uni.clearStorage();
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: "退出登陆成功!",
|
|
||||||
type: 'success'
|
|
||||||
});
|
|
||||||
uni.reLaunch({
|
|
||||||
url:"../login/login"
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 获取个人信息
|
// 获取个人信息
|
||||||
getmyinfo(){
|
getmyinfo(){
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -68,7 +52,6 @@ export default {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.info = res.data.memberInfo
|
this.info = res.data.memberInfo
|
||||||
this.num++
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="head" @click="chooseImage">
|
<view class="head" @click="chooseImage">
|
||||||
<image :src="fileurl+'?'+new Date().getTime()"></image>
|
<image :src="fileurl" :key="num"></image>
|
||||||
<text>更换头像</text>
|
<text>更换头像</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@ -35,12 +35,6 @@ export default {
|
|||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
let that = this;
|
let that = this;
|
||||||
let obj ={
|
|
||||||
nickname:that.info.member_nickname,
|
|
||||||
avatar:that.filename,
|
|
||||||
signature:that.info.signature
|
|
||||||
}
|
|
||||||
console.log(obj)
|
|
||||||
this.$u.api.changeinfo({
|
this.$u.api.changeinfo({
|
||||||
nickname:that.info.member_nickname,
|
nickname:that.info.member_nickname,
|
||||||
avatar:that.filename,
|
avatar:that.filename,
|
||||||
@ -87,6 +81,7 @@ export default {
|
|||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(JSON.stringify(res.tempFilePaths));
|
console.log(JSON.stringify(res.tempFilePaths));
|
||||||
const tempFilePaths = res.tempFilePaths;
|
const tempFilePaths = res.tempFilePaths;
|
||||||
|
that.fileurl = tempFilePaths[0]
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
||||||
filePath: tempFilePaths[0],
|
filePath: tempFilePaths[0],
|
||||||
|
BIN
static/bg.png
BIN
static/bg.png
Binary file not shown.
Before Width: | Height: | Size: 908 KiB |
Loading…
x
Reference in New Issue
Block a user