mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-22 02:16:53 +08:00
Merged 0 version
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
<div class="rc-usermain">
|
||||
<h2>服务工具</h2>
|
||||
<div class="rc-buymain">
|
||||
<div class="rc-buy" v-for="(item, index) in personallist" :key="index" @click="openaddress(index)">
|
||||
<div class="rc-buy" v-for="(item, index) in personallist" :key="index" @click="openaddress(item,index)">
|
||||
<div class="rc-cord">
|
||||
<img :src="item.buyimage" alt="" />
|
||||
<em>{{ item.title }}</em>
|
||||
@@ -186,38 +186,42 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
userinter(){
|
||||
console.log(this.userid);
|
||||
if(this.userid!==null||this.userid!==undefined){
|
||||
this.$router.push({
|
||||
let user= localStorage.getItem("userInfo");
|
||||
if(user==undefined||user==null||user==''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
|
||||
}else{
|
||||
this.$router.push({
|
||||
path: "/personal/integral/",
|
||||
query: {
|
||||
stype: 1,
|
||||
},
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
}
|
||||
},
|
||||
findall(){
|
||||
console.log('PPP');
|
||||
console.log(this.userid.length);
|
||||
if(this.userid!==null||this.userid!==undefined){
|
||||
this.$router.push({
|
||||
|
||||
let user= localStorage.getItem("userInfo");
|
||||
if(user==undefined||user==null||user==''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
|
||||
}else{
|
||||
this.$router.push({
|
||||
path: "/personal/useraddress/",
|
||||
query: {
|
||||
stype: 0,
|
||||
},
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
},
|
||||
@@ -225,9 +229,17 @@ userinter(){
|
||||
obligation(item,index){
|
||||
console.log(index);
|
||||
console.log(item);
|
||||
let user= localStorage.getItem("userInfo");
|
||||
if(user==undefined||user==null||user==''){
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
|
||||
|
||||
if(this.userid!==null||this.userid!==undefined){
|
||||
if(item.title=='待付款'){
|
||||
}else{
|
||||
if(item.title=='待付款'){
|
||||
this.$router.push({
|
||||
path: "/personal/useraddress",
|
||||
query: {
|
||||
@@ -253,13 +265,6 @@ obligation(item,index){
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}else{
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
},
|
||||
@@ -299,12 +304,21 @@ obligation(item,index){
|
||||
this.dialogInfo1=false;
|
||||
}
|
||||
},
|
||||
openaddress(index){
|
||||
console.log(index);
|
||||
if(this.userid!==null||this.userid!==undefined){
|
||||
if(index==2){
|
||||
openaddress(item,index){
|
||||
console.log(item,index);
|
||||
let user= localStorage.getItem("userInfo");
|
||||
if(user==undefined||user==null||user==''){
|
||||
console.log('---=');
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
|
||||
}else{
|
||||
if(index==2){
|
||||
this.$router.push({
|
||||
path: `/useraddress/openaddress/`
|
||||
path: `/personal/useraddress/`
|
||||
})
|
||||
console.log('这是地址的跳转');
|
||||
|
||||
@@ -322,13 +336,6 @@ this.$router.push({
|
||||
|
||||
|
||||
}
|
||||
}else{
|
||||
console.log('---=');
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: '您还未登录'
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user