mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-05 03:36:39 +08:00
添加
This commit is contained in:
parent
09ed52dcfc
commit
bfa62a1cd9
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user