mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 10:16:38 +08:00
commit
92b2aa9346
@ -22,8 +22,9 @@
|
|||||||
.rc-button{
|
.rc-button{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: flex-end;
|
||||||
width: 375px;
|
width: 100%;
|
||||||
|
|
||||||
height: 80px;
|
height: 80px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1);
|
box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1);
|
||||||
@ -38,6 +39,7 @@ opacity: 1;
|
|||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
background: #E2001A;
|
background: #E2001A;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-right: 20px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="crumbs" v-if="showTab">
|
<div class="crumbs" v-if="showTab">
|
||||||
<el-breadcrumb separator-class="el-icon-arrow-right">
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
||||||
<el-breadcrumb-item :to=item.path v-for="(item, index) in titleLists"
|
<el-breadcrumb-item to="/" >{{ this.homepageName }}</el-breadcrumb-item>
|
||||||
:key="index">{{ item.meta.title }}</el-breadcrumb-item>
|
|
||||||
<!-- <el-breadcrumb-item>商品管理</el-breadcrumb-item>
|
|
||||||
<el-breadcrumb-item>商品分类</el-breadcrumb-item> -->
|
|
||||||
</el-breadcrumb>
|
|
||||||
|
|
||||||
|
<el-breadcrumb-item :to=item.path v-for="(item, index) in crumbs"
|
||||||
|
:key="index">{{ item.title }}</el-breadcrumb-item>
|
||||||
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -14,93 +13,25 @@
|
|||||||
import { mapState, mapMutations } from "vuex";
|
import { mapState, mapMutations } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
props:["crumbs"],
|
||||||
|
name:"crumbs",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "",
|
homepageName:'首页'
|
||||||
path: "",
|
|
||||||
titleLists: [
|
|
||||||
{
|
|
||||||
path: '/',
|
|
||||||
name: 'index',
|
|
||||||
meta:{
|
|
||||||
title: '首页',
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
],
|
|
||||||
showTab: true,
|
|
||||||
isShow: true,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created(){
|
||||||
|
if(this.showTab != false)
|
||||||
watch: {
|
this.showTab=true;
|
||||||
$route() {
|
|
||||||
this.setTitle();
|
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setTitle();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(["changemessage",'selectMenu']),
|
...mapMutations(["changemessage",'selectMenu'])
|
||||||
setTitle() {
|
|
||||||
console.log(this.$route.matched);
|
|
||||||
console.log(this.titleLists);
|
|
||||||
let userinfo=[]
|
|
||||||
|
|
||||||
|
|
||||||
let saveUserInfo={
|
|
||||||
path:'admin',
|
|
||||||
name:'1',
|
|
||||||
meta:'b341181c-aced-11e9-89bf-00163e0e8daf',
|
|
||||||
|
|
||||||
}
|
}
|
||||||
userinfo.push(this.$route.matched);
|
|
||||||
let list=[];
|
|
||||||
console.log(userinfo);
|
|
||||||
userinfo.map(item=>{
|
|
||||||
console.log(item);
|
|
||||||
list=item;
|
|
||||||
})
|
|
||||||
console.log(list);
|
|
||||||
let anlist={
|
|
||||||
path:'admin',
|
|
||||||
name:'1',
|
|
||||||
meta:'b341181c-aced-11e9-89bf-00163e0e8daf',
|
|
||||||
}
|
|
||||||
list.forEach(element=>{
|
|
||||||
console.log(element);
|
|
||||||
anlist=element
|
|
||||||
})
|
|
||||||
for(let i in list){
|
|
||||||
saveUserInfo.path=list[i].path;
|
|
||||||
saveUserInfo.name=list[i].name;
|
|
||||||
saveUserInfo.meta=list[i].meta;
|
|
||||||
}
|
|
||||||
console.log(saveUserInfo);
|
|
||||||
// store.commit('se', current.name);
|
|
||||||
this.selectMenu({ data: saveUserInfo });
|
|
||||||
console.log(this.$store.state.tabsList);
|
|
||||||
this.titleLists=this.$store.state.tabsList;
|
|
||||||
// console.log(userlisa);
|
|
||||||
console.log(this.titleLists);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// created(){
|
|
||||||
// let user=this.$store.state.tabsList;
|
|
||||||
// this.tags=user;
|
|
||||||
// console.log(this.tags);
|
|
||||||
// console.log(user);
|
|
||||||
// console.log(this.$store.state.tabsList)
|
|
||||||
// },
|
|
||||||
|
|
||||||
// mounted(){
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -146,6 +146,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Myheader from "~/components/header.vue";
|
import Myheader from "~/components/header.vue";
|
||||||
|
import { mapMutations } from "vuex";
|
||||||
import { userin} from "../../ajax/getData";
|
import { userin} from "../../ajax/getData";
|
||||||
import MyFooter from '~/components/rc-footer.vue'
|
import MyFooter from '~/components/rc-footer.vue'
|
||||||
import {selectaddress,canceldanhao,generateOrderWX} from "../../ajax/getData";
|
import {selectaddress,canceldanhao,generateOrderWX} from "../../ajax/getData";
|
||||||
@ -168,6 +169,7 @@ export default {
|
|||||||
usersalesAmount:'',
|
usersalesAmount:'',
|
||||||
leftico: require("../../assets/image/rc-left.png"),
|
leftico: require("../../assets/image/rc-left.png"),
|
||||||
orderNumber:'',
|
orderNumber:'',
|
||||||
|
userdata:"",
|
||||||
usermessage:null,
|
usermessage:null,
|
||||||
userid: null,
|
userid: null,
|
||||||
useralllist:[],
|
useralllist:[],
|
||||||
@ -196,7 +198,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations(["checkIsLogin"]),
|
||||||
|
refreshDesktopNav:function(){
|
||||||
|
RCDL.navigation.currentState=null;
|
||||||
|
RCDL.navigation.rebuild();
|
||||||
|
},
|
||||||
//取消订单
|
//取消订单
|
||||||
async canceldanhao(orderNumber) {
|
async canceldanhao(orderNumber) {
|
||||||
let data = await canceldanhao(this.userphone,this.orderNumber);
|
let data = await canceldanhao(this.userphone,this.orderNumber);
|
||||||
@ -221,6 +227,12 @@ userpay(){
|
|||||||
if(this.goldastates==0){
|
if(this.goldastates==0){
|
||||||
this.canceldanhao();
|
this.canceldanhao();
|
||||||
}
|
}
|
||||||
|
else if( this.customer='联系客服申请售后'){
|
||||||
|
var option = {
|
||||||
|
customer: {id: '', name: '', email: '', mobile: '', memberId: this.userdata.data.id}
|
||||||
|
}
|
||||||
|
dis_livchat(option);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//订单支付和再次购买
|
//订单支付和再次购买
|
||||||
onceagain(){
|
onceagain(){
|
||||||
@ -317,6 +329,9 @@ if(data){
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.checkIsLogin();
|
||||||
|
this.userdata=this.$store.state.userInfo;
|
||||||
|
console.log(this.userdata);
|
||||||
this.usermessage = JSON.parse(localStorage.getItem("userInfo"));
|
this.usermessage = JSON.parse(localStorage.getItem("userInfo"));
|
||||||
this.userid = this.usermessage.data.id;
|
this.userid = this.usermessage.data.id;
|
||||||
this.userphone=this.usermessage.data.mobile;
|
this.userphone=this.usermessage.data.mobile;
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="rc-userbottom">
|
<div class="rc-userbottom">
|
||||||
<span>数量:{{ item.pcs }}件</span>
|
<span>数量:{{ item.pcs }}件</span>
|
||||||
<i>¥{{ }}</i>
|
<i>¥10</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="rc-userbottomm">
|
<div class="rc-userbottomm">
|
||||||
<i>¥{{ item.userprice }}</i>
|
<i>¥{{ item.userprice }}</i>
|
||||||
@ -289,6 +289,9 @@ export default {
|
|||||||
this.goldmedal = data;
|
this.goldmedal = data;
|
||||||
this.alllist=[];
|
this.alllist=[];
|
||||||
this.useralllist=[];
|
this.useralllist=[];
|
||||||
|
this.obligation=[];
|
||||||
|
this.receiving=[];
|
||||||
|
this.pending=[];
|
||||||
for (let i = 0; i < this.goldmedal.length; i++) {
|
for (let i = 0; i < this.goldmedal.length; i++) {
|
||||||
this.useralllist.push(this.goldmedal[i].orderDetailList[0]);
|
this.useralllist.push(this.goldmedal[i].orderDetailList[0]);
|
||||||
this.alllist.push(this.goldmedal[i].orderDetailList[0])
|
this.alllist.push(this.goldmedal[i].orderDetailList[0])
|
||||||
@ -299,10 +302,11 @@ export default {
|
|||||||
}else if(this.goldmedal[i].status==1){
|
}else if(this.goldmedal[i].status==1){
|
||||||
this.receiving.push(this.goldmedal[i].orderDetailList[0]);
|
this.receiving.push(this.goldmedal[i].orderDetailList[0]);
|
||||||
}
|
}
|
||||||
else if(this.goldmedal[i].status==4){
|
else if(this.useralllist[i].status==2){
|
||||||
this.pending.push(this.goldmedal[i].orderDetailList[0]);
|
this.pending.push(this.goldmedal[i].orderDetailList[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < this.useralllist.length; i++) {
|
for (var i = 0; i < this.useralllist.length; i++) {
|
||||||
this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber;
|
this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber;
|
||||||
this.useralllist[i].status = this.goldmedal[i].status;
|
this.useralllist[i].status = this.goldmedal[i].status;
|
||||||
@ -346,7 +350,7 @@ export default {
|
|||||||
// addressDetailInfo: orderAddress[0].detailAddress,
|
// addressDetailInfo: orderAddress[0].detailAddress,
|
||||||
// },
|
// },
|
||||||
// };
|
// };
|
||||||
postData.push(oneProduct);
|
// postData.push(oneProduct);
|
||||||
let res = await generateOrderWX(postData);
|
let res = await generateOrderWX(postData);
|
||||||
let userPayData = {
|
let userPayData = {
|
||||||
orderId: res.data,
|
orderId: res.data,
|
||||||
@ -383,7 +387,7 @@ export default {
|
|||||||
message: "取消订单成功",
|
message: "取消订单成功",
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.indet();
|
this.indet(this.userdata);
|
||||||
this.activeIndex=0;
|
this.activeIndex=0;
|
||||||
this.useralllist=[];
|
this.useralllist=[];
|
||||||
}, 500);
|
}, 500);
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<Myheader></Myheader>
|
<Myheader></Myheader>
|
||||||
<div class="rc-top"></div>
|
<div class="rc-top"></div>
|
||||||
|
<tabs :crumbs="crumbs"></tabs>
|
||||||
<div class="rc-max-width--xl rc-main">
|
<div class="rc-max-width--xl rc-main">
|
||||||
<div class="usersearch">
|
<div class="usersearch">
|
||||||
<div class="usercontentshow" ref="usercontent">
|
<div class="usercontentshow" ref="usercontent">
|
||||||
@ -310,6 +311,7 @@
|
|||||||
import Myheader from "~/components/header.vue";
|
import Myheader from "~/components/header.vue";
|
||||||
import MyFooter from '~/components/rc-footer.vue'
|
import MyFooter from '~/components/rc-footer.vue'
|
||||||
import FixRight from "~/components/fixed-right.vue";
|
import FixRight from "~/components/fixed-right.vue";
|
||||||
|
import tabs from "~/components/tabs.vue";
|
||||||
import {
|
import {
|
||||||
userstype,
|
userstype,
|
||||||
biaome,
|
biaome,
|
||||||
@ -320,6 +322,12 @@ import {
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
crumbs:[
|
||||||
|
{
|
||||||
|
path:'/productdetails/productlist/',
|
||||||
|
title:'产品列表',
|
||||||
|
}
|
||||||
|
],
|
||||||
value: "",
|
value: "",
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
userstype: [],
|
userstype: [],
|
||||||
@ -477,7 +485,8 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Myheader,
|
Myheader,
|
||||||
MyFooter,
|
MyFooter,
|
||||||
FixRight
|
FixRight,
|
||||||
|
tabs
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.routeParams=this.$route.query;
|
this.routeParams=this.$route.query;
|
||||||
|
@ -104,23 +104,23 @@ export default {
|
|||||||
|
|
||||||
register(){
|
register(){
|
||||||
console.log(this.tel)
|
console.log(this.tel)
|
||||||
if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.tel) || this.tel === "") {
|
if ( this.alladdress==='') {
|
||||||
this.$message({
|
|
||||||
type: 'warning',
|
|
||||||
message: '手机号码输入有误'
|
|
||||||
});
|
|
||||||
return
|
|
||||||
}else if(this.alladdress===''){
|
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '请输入详细地址 '
|
message: '请输入详细地址 '
|
||||||
});
|
});
|
||||||
return
|
return
|
||||||
|
}if(!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.tel) || this.tel === ""){
|
||||||
|
this.$message({
|
||||||
|
type: 'warning',
|
||||||
|
message: '手机号码输入有误'
|
||||||
|
});
|
||||||
|
return
|
||||||
}
|
}
|
||||||
else if(this.userpeople===''){
|
else if(this.userpeople===''){
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '请输入姓名'
|
message: '请填写收货人'
|
||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ export default {
|
|||||||
if(data){
|
if(data){
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '删除成功'
|
message: '地址删除成功'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.editaddress();
|
this.editaddress();
|
||||||
|
Loading…
Reference in New Issue
Block a user