diff --git a/api/index.js b/api/index.js
index 126dbde..c1bedef 100644
--- a/api/index.js
+++ b/api/index.js
@@ -80,6 +80,13 @@ const api = {
data
})
},
+ newGetCity(data) {
+ return request({
+ url: 'api/newGetCity',
+ method: 'post',
+ data
+ })
+ },
ipGetCity(data) {
return request({
url: 'api/ipGetCity',
diff --git a/pages.json b/pages.json
index 661fc0c..ee6b9eb 100644
--- a/pages.json
+++ b/pages.json
@@ -3,6 +3,7 @@
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页",
+ "navigationBarTextStyle": "black",
"navigationStyle": "custom"
}
@@ -83,8 +84,8 @@
]
},
"globalStyle": {
- "navigationBarTextStyle": "#222222",
- "navigationBarTitleText": "uni-app",
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "",
"navigationBarBackgroundColor": "#F8A617",
"app-plus": {
"background": "#efeff4"
diff --git a/pages/face/face.vue b/pages/face/face.vue
index 977723e..5314cc7 100644
--- a/pages/face/face.vue
+++ b/pages/face/face.vue
@@ -1,34 +1,37 @@
-
-
-
-
+
+
+
+
人脸录入
-
- 请录入人脸
- 本店需刷人脸进店,请点击拍摄提前录入人脸哦!
-
-
+
+
+ 请录入人脸
+ 本店需刷人脸进店,请点击拍摄提前录入人脸哦!
+
+
+
+ 拍摄
-
-
- 跳过
- 拍摄
-
-
-
-
-
-
-
-
-
+
+ 跳过
+ 拍摄
- 确定
-
+
+
+
+
+
+
+
+
+
+ 确定
+
+
@@ -37,6 +40,7 @@
export default {
data() {
return {
+ top: 0,
url: "",
path: "",
yrenlianlist:[],
@@ -44,12 +48,13 @@
userxixin:{}
}
},
- onShow() {
+ onLoad() {
+ this.top = uni.getSystemInfoSync().statusBarHeight
this.memberInfo()
},
methods: {
fanhui(){
- uni.navigateBack()
+ uni.navigateBack({delta:1})
},
memberInfo() {
this.$api.memberInfo().then(res => {
@@ -63,48 +68,47 @@
})
},
pais(){
- this.$refs.popup.open('center')
+ // this.$refs.popup.open('center')
this.chooseImage()
},
qudbtn(){
// this.$refs.popup.close('center')
// var tjlist=[...this.yrenlianlist,...this.jqrllist]
+
uni.uploadFile({
- url: this.ymurl+'/api/uploadFile',
- filePath:this.path,
+ url: that.ymurl+'/api/uploadFile',
+ filePath: that.path,
name: 'file',
formData: {
'user': 'test'
},
+ fail(err) {
+ console.log(11,err)
+ },
success: (res) => {
console.log('tjlist',JSON.parse(res.data));
var data=JSON.parse(res.data)
if(data.code==200){
- uni.showToast({
- icon: "none",
- title: '上传成功',
- duration: 5000,
- });
- this.$api.memberFace({face_id:data.data.file_id}).then(res=>{
+ that.$api.memberFace({face_id:data.data.file_id}).then(res=>{
if(res.code=='200'){
uni.showToast({
icon: "none",
title: '上传成功',
- duration: 5000,
+ duration: 2000,
});
setTimeout(function(){
uni.switchTab({
url:'/pages/user/index'
})
- },1000)
+ },2000)
}
})
}else{
uni.showToast({
icon: "none",
title: data.msg,
- duration: 5000,
+ duration: 2000,
});
}
@@ -114,18 +118,54 @@
},
chooseImage() {
- var that=this
+ const that = this;
that.yrenlianlist=[]
uni.chooseImage({
count: 1,
success: function(res) {
- console.log(111,res);
- console.log(888,this);
- that.url = res.tempFilePaths[0];
- that.yrenlianlist.push(that.url)
+ uni.uploadFile({
+ url: that.ymurl+'/api/uploadFile',
+ filePath: res.tempFilePaths[0],
+ name: 'file',
+ formData: {
+ 'user': 'test'
+ },
+ fail(err) {
+ console.log(11,err)
+ },
+ success: (res1) => {
+ console.log('tjlist',JSON.parse(res1.data));
+ var data=JSON.parse(res1.data)
+ if(data.code==200){
+ that.$api.memberFace({face_id:data.data.file_id}).then(res2=>{
+ if(res2.code=='200'){
+ uni.showToast({
+ icon: "none",
+ title: '上传成功',
+ duration: 2000,
+ });
+
+ setTimeout(function(){
+ uni.switchTab({
+ url:'/pages/user/index'
+ })
+ },2000)
+ }
+ })
+ }else{
+ uni.showToast({
+ icon: "none",
+ title: data.msg,
+ duration: 2000,
+ });
+ }
+
+ }
+ });
},
- fail() {
- that.$refs.popup.close('center')
+ fail(err) {
+ console.log(err)
+ // that.$refs.popup.close('center')
}
});
},
@@ -213,8 +253,7 @@
.xinxirl {
text-align: center;
- margin-top: -600rpx;
-
+ margin-top: 150rpx;
}
.xinxirl2 {
@@ -231,14 +270,54 @@
font-size: 48rpx;
color: #222222;
}
-
+ .xinxirl4 {
+ font-weight: 500;
+ font-size: 36rpx;
+ color: #222222;
+ margin-top: 35rpx;
+ }
+ .bg{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 1;
+ background: #f5f5f5;
+ }
+ .content{
+ width: 100%;
+ position: relative;
+ left: 0;
+ top: 0;
+ z-index: 2;
+ }
.top {
+ width: 100%;
+ left: 0;
+ z-index: 22;
+ top: 0;
+ height: 88rpx;
+ overflow: hidden;
+ position: fixed;
+ }
+ .top .xuzou{
+ width: 100%;
+ height: 88rpx;
display: flex;
+ position: fixed;
+ align-items: center;
+ position: relative;
+ z-index: 23;
+ }
+ .top .hs{
+ width: 100%;
+ height: 100%;
position: absolute;
- top: 96rpx;
- left: 20rpx;
+ left: 0;
+ top: 0;
+ z-index: 1;
}
-
.title {
padding-left: 14rpx;
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 2ecf687..4657b79 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,56 +1,58 @@
-
-
-
- {{city}}
-
-
-
-
+
+
+
+
+ {{city}}
+
+
-
-
- 门店推荐
-
- 找门店
-
+
+
+
-
-
-
- {{item.name}}
+
+
+ 门店推荐
+
+ 找门店
+
-
-
-
- {{item.address}}
+
+
+
+ {{item.name}}
+
+
+
+
+ {{item.address}}
+
+
+
-
-
-
-
- 团购验券
- 美团/抖音,验券进场
-
- 会员套餐
-
-
-
- {{item.name}}
- 期限:{{item.validity_day}}天
- 次数:{{item.validity_num}}次
-
- ¥{{item.price}}
- 原价:¥{{item.original_price}}
+
+ 团购验券
+ 美团/抖音,验券进场
+
+ 会员套餐
+
+
+
+ {{item.name}}
+ 期限:{{item.validity_day}}天
+ 次数:{{item.validity_num}}次
+
+ ¥{{item.price}}
+ 原价:¥{{item.original_price}}
+
-
+
@@ -60,8 +62,8 @@
团购验券
-
-
+
+
验券
@@ -75,6 +77,7 @@
export default {
data() {
return {
+ scanCode: "",
city:'',
number:'',
viplist:[],
@@ -83,7 +86,8 @@
longitude:'',
tuijianlist:[],
iswanjie:false,
- shoujidingwei:true
+ shoujidingwei:true,
+ top: 0
}
},
@@ -93,11 +97,16 @@
path: '/pages/index/index'
}
},
- onShow() {
+ onLoad() {
+ this.top = uni.getSystemInfoSync().statusBarHeight
+ },
+ onReady() {
this.viplist=[]
this.cardList(1)
// this.storeList(1)
- this.getLocation()
+ if(!this.city){
+ this.getLocation()
+ }
},
onReachBottom(){
if(!this.iswanjie){
@@ -105,6 +114,14 @@
}
},
methods: {
+ openScan() {
+ const that = this;
+ uni.scanCode({
+ success(res) {
+ that.scanCode = res.result;
+ }
+ })
+ },
handleNavigation(i) {
uni.openLocation({
longitude:Number(i.longitude),
@@ -119,7 +136,7 @@
})
},
numberCheck(){
- this.$api.numberCheck({number:this.number}).then(res=>{
+ this.$api.numberCheck({number:this.scanCode}).then(res=>{
if(res.code==200){
uni.showToast({
icon: "none",
@@ -142,7 +159,7 @@
that.$api.nearStore({latitude:that.latitude,longitude:that.longitude,limit:1}).then(res=>{
that.tuijianlist=res.data
})
- that.$api.ipGetCity().then(res=>{
+ that.$api.newGetCity({locations:that.longitude+","+that.latitude}).then(res=>{
console.log('res',res);
that.city=res.data.city
})
@@ -212,6 +229,12 @@
this.$refs.popup.close('center')
},
taochan(i) {
+ if(!uni.getStorageSync("token")) {
+ uni.navigateTo({
+ url: "/pages/login/login"
+ })
+ return ;
+ }
uni.setStorageSync('xzmd','')
var that=this
var tuijianlist=JSON.stringify(that.tuijianlist[0])
@@ -248,17 +271,32 @@
}
.input1 {
- height: 91rpx;
+ flex: 1;
+ font-size: 30rpx;
+ color: #333;
}
.saoma {
width: 44rpx;
height: 44rpx;
+ }
+ .bg{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 1;
+ background: #f5f5f5;
+ }
+ .content{
+ width: 100%;
+ min-height: 100vh;
position: relative;
- left: 481rpx;
- top: -70rpx
+ left: 0;
+ top: 0;
+ z-index: 2;
}
-
.input {
width: 531rpx;
height: 91rpx;
@@ -268,9 +306,9 @@
padding: 0 20rpx;
margin: 0 auto;
margin-top: 48rpx;
- /* background: url("@/static/扫一扫.png") no-repeat;
- background-position: 501rpx 15px;
- background-size: 44rpx; */
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
}
.popbox {
@@ -300,11 +338,16 @@
margin-left: 24rpx;
background: #FFFFFF;
margin-top: 30rpx;
+ box-shadow: 0px 4rpx 13rpx 0px rgba(19,14,4,0.08);
+ border-radius: 20rpx;
+ overflow: hidden;
}
.btboxs {
display: flex;
flex-wrap: wrap;
+ padding-bottom: 25rpx;
+ overflow: hidden;
}
.btwz {
@@ -318,23 +361,25 @@
.btwzjg {
margin-top: 15rpx;
- margin-left: 24rpx;
+ margin-left: 15rpx;
margin-bottom: 26rpx;
+ white-space: nowrap;
+ overflow: hidden;
}
.btwzjg1 {
font-family: Alibaba PuHuiTi;
font-weight: 400;
- font-size: 30rpx;
+ font-size: 28rpx;
color: #EF3D25;
}
.btwzjg2 {
font-family: Alibaba PuHuiTi;
font-weight: 400;
- font-size: 24rpx;
+ font-size: 22rpx;
color: #CCCCCC;
- padding-left: 15rpx;
+ padding-left: 10rpx;
text-decoration-line: line-through;
}
@@ -396,11 +441,13 @@
}
.mddz2 {
- margin-top: 32rpx;
+ margin-top: 25rpx;
display: flex;
}
-
+
.dz {
+ font-size: 26rpx;
+ color: #999;
margin-left: 17rpx;
}
@@ -443,7 +490,12 @@
font-size: 34rpx;
color: #222222;
}
-
+ .mendian1 .data1{
+ font-size: 24rpx;
+ color: #999;
+ display: flex;
+ align-items: center;
+ }
.mendian1 {
display: flex;
justify-content: space-between;
@@ -460,11 +512,30 @@
}
.top {
+ width: 100%;
+ left: 0;
+ z-index: 22;
+ height: 88rpx;
+ overflow: hidden;
+ position: fixed;
+ }
+ .top .location{
+ width: 100%;
+ height: 88rpx;
display: flex;
+ position: fixed;
+ align-items: center;
+ position: relative;
+ z-index: 23;
+ }
+ .top .hs{
+ width: 100%;
+ height: 100%;
position: absolute;
- top: 96rpx;
+ left: 0;
+ top: 0;
+ z-index: 1;
}
-
.jiantou {
margin-left: 18rpx;
margin-top: 10rpx;
@@ -490,7 +561,6 @@
box-shadow: 0rpx 4rpx 13rpx 0rpx rgba(19, 14, 4, 0.14);
border-radius: 20rpx;
margin: 0 auto;
- margin-top: -750rpx;
}
.topimg1 {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index e420549..c79a618 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,26 +1,34 @@
-
-
- 登录
-
-
-
-
- 手机号快捷登录
-
-
+
+
+
+
+
+ 登录
+
+
-
-
-
+
+
@@ -32,7 +40,8 @@
checkboxValue1:[],
checked: false,
wxcode: '',
- isSelct:false
+ isSelct:false,
+ top: 0
}
},
onReady() {
@@ -47,6 +56,7 @@
},
onLoad() {
const that = this;
+ that.top = uni.getSystemInfoSync().statusBarHeight
uni.login({
success(res) {
console.log(787, res)
@@ -57,6 +67,9 @@
},
methods: {
+ previous() {
+ uni.navigateBack()
+ },
getUserInfo(e) {
console.log(11111,e);
if (e.detail.userInfo) {
@@ -142,32 +155,73 @@
\ No newline at end of file
diff --git a/pages/order/order.vue b/pages/order/order.vue
index 0cd31cd..dc2a07d 100644
--- a/pages/order/order.vue
+++ b/pages/order/order.vue
@@ -1,70 +1,72 @@
-
-
+
+
-
+
订单确认
+
-
-
-
-
- 运动湾会员
+
+
+
+
+
+ 运动湾会员
+
+
+ {{mandianxinxi.name}}
+
+
+
+
+ 地址:{{mandianxinxi.address}}
+
+
+ 切换门店
+
-
- {{mandianxinxi.name}}
+
+
+ 会员套餐
+
+
+ {{vipxinxi.name}}
+ ¥{{vipxinxi.price}}
+
+
+ 次数:{{vipxinxi.validity_num}}次
+ 期限:{{vipxinxi.validity_day}}天
+ 原价¥{{vipxinxi.original_price}}
+
+ 说明:{{vipxinxi.introduce}}
+ 限购{{vipxinxi.buy_limit}}次
-
-
-
- 地址:{{mandianxinxi.address}}
+
+ 支付方式
+
+
+ 微信支付
-
-
- 切换门店
-
-
- 会员套餐
-
-
- {{vipxinxi.name}}
- ¥{{vipxinxi.price}}
+
+
+
+ 已阅读并同意
+ 《用户协议》
+
+
+
+
+ 支付{{vipxinxi.price}}元
-
- 次数:{{vipxinxi.validity_num}}次
- 期限:{{vipxinxi.validity_day}}天
- 原价¥{{vipxinxi.original_price}}
-
- 说明:{{vipxinxi.introduce}}
- 限购{{vipxinxi.buy_limit}}次
-
-
- 支付方式
-
-
- 微信支付
+
+ 立即支付
-
-
-
- 已阅读并同意
- 《用户协议》
-
-
-
-
- 支付{{vipxinxi.price}}元
-
-
- 立即支付
-
-
@@ -74,16 +76,18 @@
return {
mandianxinxi: {},
vipxinxi: {},
- yhxyactive: false
+ yhxyactive: false,
+ top: 0
}
},
onLoad(option) {
console.log('option', option);
var that = this
- var tuijianlist = JSON.parse(option.tuijianlist)
- var vipxinxi = JSON.parse(option.item)
+ var tuijianlist = JSON.parse(decodeURIComponent(option.tuijianlist))
+ var vipxinxi = JSON.parse(decodeURIComponent(option.item))
that.vipxinxi = vipxinxi
that.mandianxinxi = tuijianlist
+ that.top = uni.getSystemInfoSync().statusBarHeight
},
onShow() {
var xzmd = uni.getStorageSync('xzmd')
@@ -167,6 +171,9 @@
position: fixed;
left: 24rpx;
bottom: 127rpx;
+
+ font-size: 26rpx;
+ color: #666;
}
.fot {
@@ -180,6 +187,9 @@
bottom: 0;
display: flex;
justify-content: space-between;
+ font-weight: 500;
+ font-size: 30rpx;
+ color: #222222;
}
.fotwz {
@@ -205,7 +215,7 @@
.zhif {
width: 650rpx;
- padding: 20rpx 28rpx;
+ padding: 30rpx 28rpx;
margin-top: 20rpx;
background: #FFFFFF;
display: flex;
@@ -241,6 +251,7 @@
.wxpay {
width: 44rpx;
height: 44rpx;
+ margin-right: 20rpx;
}
.taoctitle1wz {
@@ -251,11 +262,10 @@
}
.smwz {
- font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 28rpx;
color: #999999;
- margin-top: 23rpx;
+ margin-top: 20rpx;
}
.taoctitle1 {
@@ -297,15 +307,50 @@
.huiy {
display: flex;
margin-bottom: 20rpx;
+ align-items: center;
}
+ .bg{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 1;
+ background: #f5f5f5;
+ }
+ .content{
+ width: 100%;
+ position: relative;
+ left: 0;
+ top: 0;
+ z-index: 2;
+ }
.top {
+ width: 100%;
+ left: 0;
+ z-index: 22;
+ height: 88rpx;
+ overflow: hidden;
+ position: fixed;
+ }
+ .top .xuzou{
+ width: 100%;
+ height: 88rpx;
display: flex;
+ position: fixed;
+ align-items: center;
+ position: relative;
+ z-index: 23;
+ }
+ .top .hs{
+ width: 100%;
+ height: 100%;
position: absolute;
- top: 96rpx;
- left: 20rpx;
+ left: 0;
+ top: 0;
+ z-index: 1;
}
-
.title {
padding-left: 14rpx;
}
@@ -333,14 +378,16 @@
}
.mddz2 {
- margin-top: 32rpx;
+ margin-top: 20rpx;
display: flex;
justify-content: space-between;
}
-
+ .mddz2 .address{
+ flex: 1;
+ margin-right: 20rpx;
+ }
.dz {
margin-left: 17rpx;
- font-family: PingFang SC;
font-weight: 500;
font-size: 26rpx;
color: #999999;
@@ -376,12 +423,10 @@
box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(19, 14, 4, 0.08);
border-radius: 20rpx;
margin-top: 24rpx;
- padding: 45rpx 28rpx;
+ padding: 25rpx 28rpx;
}
-
.mendian {
- position: absolute;
- top: 152rpx;
- left: 24rpx;
+ padding: 0 25rpx 25rpx;
+ overflow: hidden;
}
\ No newline at end of file
diff --git a/pages/user/index.vue b/pages/user/index.vue
index 4458f3d..4c3e9ca 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -1,52 +1,60 @@
-
-
+
+
-
- 我的
+ 我的
+
-
-
-
- {{userxixin.nickname?userxixin.nickname:'微信用户'}}
- {{userxixin.mobile?userxixin.mobile:'暂无手机号'}}
+
+
+
+
+ {{userxixin.nickname?userxixin.nickname:'微信用户'}}
+ {{userxixin.mobile?userxixin.mobile:'暂无手机号'}}
+
+
+ 登录
+
+ {{userxixin.face_id!=0?'已认证':'人脸录入'}}
- {{userxixin.face_id!=0?'已认证':'人脸录入'}}
-
-
-
+
+
+
+
+
+ 会员套餐{{item.status_name}}
+
+
+ {{item.card_name}}
+ {{item.validity_day}}天
+
+ 到期时间:{{item.validity_date}}
+
+
+ {{item.validity_num}}次
+
+
+ 到期时间:{{item.validity_date}}
+
+
+
+
+
+
会员套餐
- {{item.card_name}}
- {{item.validity_day}}天
-
- 到期时间:{{item.validity_date}}
-
-
- {{item.validity_num}}次
-
-
- 到期时间:{{item.validity_date}}
-
+ 9.9元套餐
+ 7天
-
-
-
-
- 会员套餐
-
-
-
-
@@ -55,12 +63,20 @@
data() {
return {
userxixin: {},
- avatar: require("@/static/huangguan.png"),
- viplist: []
+ avatar: require("@/static/logo.png"),
+ viplist: [],
+ top: 0
}
},
+ onLoad() {
+ this.top = uni.getSystemInfoSync().statusBarHeight
+ },
onShow() {
- this.memberInfo()
+ if(uni.getStorageSync("token")){
+ this.memberInfo()
+ }else{
+ this.userxixin={}
+ }
},
onShareAppMessage() {
return {
@@ -74,6 +90,12 @@
},
gengx() {
+ if(!uni.getStorageSync("token")) {
+ uni.navigateTo({
+ url: "/pages/login/login"
+ })
+ return ;
+ }
uni.navigateTo({
url: "/pages/user/portrait/portrait"
})
@@ -93,6 +115,12 @@
uni.navigateBack()
},
face(face_id) {
+ if(!uni.getStorageSync("token")) {
+ uni.navigateTo({
+ url: "/pages/login/login"
+ })
+ return ;
+ }
if (face_id != 0) {
uni.showToast({
icon: "none",
@@ -111,12 +139,56 @@
\ No newline at end of file
diff --git a/pages/user/portrait/portrait.vue b/pages/user/portrait/portrait.vue
index c5702d2..9c5fdbf 100644
--- a/pages/user/portrait/portrait.vue
+++ b/pages/user/portrait/portrait.vue
@@ -1,35 +1,38 @@
-
-
+
+
-
- 更新信息
+
+ 修改个人信息
-
-
-
- 头像:
-
-
-
-
-
-
-
-
- 昵称:
-
-
-
-
-
+
+
+
+
+ 头像:
+
+
+
+
+
+
+
+
+ 昵称:
+
+
+
+
+
+
+
+
+ 退出登录
-
- 退出登录
@@ -37,6 +40,7 @@
export default {
data() {
return {
+ top: 0,
FormData: {
name: '',
avatar:''
@@ -55,7 +59,8 @@
},
}
},
- onShow() {
+ onLoad() {
+ this.top = uni.getSystemInfoSync().statusBarHeight
this.memberInfo()
},
@@ -63,16 +68,35 @@
memberInfo() {
this.$api.memberInfo().then(res => {
this.userxixin = res.data
- this.FormData.avatar=this.userxixin.avatar
- console.log('this.userxixin ',this.userxixin );
+ this.FormData.avatar=this.userxixin.avatar_id
+ this.imageValue={
+ "name": this.userxixin.avatar.indexOf(".png") !=-1?'png':'jpg',
+ "url": this.userxixin.avatar
+ }
+ this.FormData.name=this.userxixin.nickname
+ console.log('this.userxixin ',this.FormData );
})
},
outLogin() {
- this.$api.outLogin().then(res => {
- uni.removeStorageSync("token")
- uni.reLaunch({
- url: '/pages/login/login'
- })
+ const that = this;
+ uni.showModal({
+ title: '温馨提示',
+ content: "你是否要确定退出?",
+ confirmColor: "#F8A617",
+ confirmText: "退出",
+ success(res) {
+ if(res.confirm){
+ that.$api.outLogin().then(res => {
+ uni.showToast({
+ title: "退出成功"
+ })
+ setTimeout(()=>{
+ uni.removeStorageSync("token")
+ uni.navigateBack({delta: 1})
+ },2000)
+ })
+ }
+ }
})
},
fanhui(){
@@ -109,11 +133,13 @@
subbtn() {
console.log(787,this.imageValue[0]);
this.$api.memberUpdate({nickname:this.FormData.name,avatar:this.FormData.avatar}).then(res=>{
- console.log(123,res);
if(res.code==200){
- uni.switchTab({
- url: "/pages/user/index"
+ uni.showToast({
+ title: "修改成功"
})
+ setTimeout(()=>{
+ uni.navigateBack({delta: 1})
+ },2000)
}
})
},
@@ -153,47 +179,81 @@