Commit 9920b13c by 刘泽奇

123

parent bf571b0a
......@@ -295,6 +295,9 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
$.removeCookie("channelUserId");
this.$root.user_Name = "";
this.$root.channelUserId = '';
this.$router.push({
path: `/${_this.$root.channelName}/jdtrademark`
});
this.$message("您已退出");
} else {
console.log(d.msg);
......@@ -550,46 +553,16 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
getReq(path, data) {
var self = this;
return axios.get(path, { params: data, "headers": { "codepath": this.codePath } }).then(function (r) {
if (r && r.data && r.data.status == -99) {
self.$store.state.currentUser = null;
self.hideMask();
self.hideMenu();
self.$router.push("/");
self.$message({
message: '扫码成为合伙人',
type: 'warning'
});
self.showLogin();
return null;
} else {
return r.data ? r.data : null;;
if (r.data && r.data.bizmsg && r.data.bizmsg != "empty") {
self.$message({
message: r.data.bizmsg,
type: 'warning'
});
}
return r.data ? r.data : null;;
}
});
},
postReq(path, data) {
return axios.post(path, data, { "headers": { 'codepath': this.codePath } }).then(function (r) {
if (r && r.data && r.data.status == -99) {
self.$store.state.currentUser = null;
self.hideMask();
self.hideMenu();
self.$router.push("/");
self.$message({
message: '扫码成为合伙人',
type: 'warning'
});
self.showLogin();
return null;
} else {
return r.data ? r.data : null;
}
return r.data ? r.data : null;
});
},
},
......
......@@ -1398,12 +1398,16 @@
that.$root.loading = false;
console.log(`///////////////////////////////`, d);
if (d.status == 0) {
location.href = d.data.payUrl;
that.$router.push({
path: `/${that.$root.channelName}/orderpay`,
query: { orderNo: d.data.orderNo }
});
} else {
console.log(d, "subTmOrder..........");
that.$message.warning(d.msg);
}
}).catch(function (e) {
console.log(e, "llllllllllllllllllllllllllllllllll");
that.$root.loading = false;
that.$message.warning("操作失败");
});
......@@ -1432,7 +1436,11 @@
that.$root.loading = false;
console.log(`///////////////////////////////`, d);
if (d.status == 0) {
location.href = d.data.payUrl;
console.log(d);
that.$router.push({
path: `/${that.$root.channelName}/orderpay`,
query: {}
})
} else {
console.log(d, "subTmOrder..........");
that.$message.warning(d.msg);
......
......@@ -244,6 +244,7 @@
}
break;
case "bw":
if (code.channelItemCode) {
switch (code.itemCode) {
case "zzsbzc":
......
......@@ -55,9 +55,7 @@
</el-form-item>
</el-form>
</div>
</div>
</div>
<div class="nowbuy-footer-warpper">
<div class="nowbuy-footer">
......
......@@ -42,12 +42,6 @@
num: null,
params: {
itemCode: "",
order_appendinfo: {
level: "",
area_list: [],
department_list: [],
type_list: []
},
apply: {
orderType: "zzdd",
contacts: "",
......@@ -80,22 +74,30 @@
methods: {
goOrder(){
this.params.tm.totalSum = this.tableData[0].countPrice;
this.params.tm.salesNum = Number(this.$route.query.num);
this.params.tm.quantity = Number(this.$route.query.num);
this.apply.orderType = "zzdd";
this.params.apply = this.apply;
this.params.itemCode = this.tableData[0].code;
this.$root.postReq("/web/orderCtl/createOtherOrder", this.params).then((d) => {
this.params.itemCode = this.tableData[0].sdsId;
if (this.$root.channelUserId && this.$root.channelUserId != "") {
this.params.channelUser = {
"channelUserId": this.$root.channelUserId
};
}
var obj = this.$root.copyParams(this.params, "subOtherOrder", "/action/tmOrder/springBoard", 'yes', 'yes');
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
console.log("---------submitOrder-------");
if (this.$store.state.currentUser == null) {
if (this.$root.channelUserId == null) {
this.$message.warning("未登录");
return
}
if (d.code == 1) {
this.$root.pushx({
title: "订单支付",
name: "/orderpay",
params: { orderNum: d.data.code }
});
if (d.status == 0) {
console.log(d);
this.$router.push({
path: `/${this.$root.channelName}/orderpay`,
query: {
orderNo: d.data.orderNo
}
})
} else {
this.$message.warning(d.msg);
}
......@@ -106,8 +108,8 @@
getProduct(){
var data = { ...this.$route.query };
this.tableData.push(data);
console.log(data,'!!!!!!!!!!!!!!!1');
console.log(data, '!!!!!!!!!!!!!!!1');
},
tiaozhuan(code) {
switch (code) {
......
......@@ -11,9 +11,9 @@
</div>
<div style="font-size:13px;color:#828282;margin-top:10px;">
支付编号:
<span style="color:#2F2F2F;margin-right: 10px;">{{orderInfo.code}}</span>
<span style="color:#2F2F2F;margin-right: 10px;">{{orderInfo.orderNo}}</span>
服务项目:
<span style="color:#2F2F2F;margin-right: 10px;">{{orderInfo.sveItemName}}</span>
<span style="color:#2F2F2F;margin-right: 10px;">{{orderInfo.channelItemName}}</span>
</div>
</el-col>
</el-row>
......
......@@ -31,118 +31,34 @@
currentPay1: false,
currentPay2: false,
currentPay3: false,
d: {}
}
},
mounted: function () {
this.imgHeight = 'min-height:' + (document.documentElement.clientHeight - 221) + "px;";
var currentUser = this.currentUser;
if (currentUser) {
var roles = currentUser.roles;
if (roles) {
this.roleList = roles.split(",");
}
}
if (this.roleList && this.roleList.length > 0) {
for (var i = 0; i < this.roleList.length; i++) {
if (this.roleList[i] == "bizemp") {
this.isBizemp = true;
}
}
}
this.orderNum = this.$router.history.current.query.orderNum;
var that = this;
this.$root.getReq("/web/orderCtl/getItemTmOrderDetail", {
orderNum: this.orderNum
}).then(function (d) {
if (d.code == 1) {
that.orderInfo = d.data;
that.closePayConfirm();
that.getPayQrCode();
}
});
this.$root.postReq("/web/uploadCtl/getOssConfig", "").then(function (d) {
var obj = this.$root.copyParams("", "getOssConfig", "/action/tmTools/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then(function (d) {
that.d["key"] = "key";
that.d["Bucket"] = d.Bucket;
that.d["OSSAccessKeyId"] = d.OSSAccessKeyId;
that.d["Signature"] = d.Signature;
that.d["policy"] = d.policy;
that.d["success_action_status"] = d.success_action_status;
that.action = d.url;
});
this.$root.postReq("/web/moneyaccountCtl/findAllOfflineAccount", {}).then(function (d) {
if (d && d.code == 1) {
that.accounts = d.data;
if (that.accounts && that.accounts.length > 0) {
that.account_index = 0;
that.accountinfo = that.accounts[0];
that.account_id = that.accountinfo.id;
}
} else {
that.$message.warning("获取账户信息失败");
}
}).catch(function (e) {
console.log(e);
that.$message.warning("获取账户信息失败");
that.d["Bucket"] = d.data.Bucket;
that.d["OSSAccessKeyId"] = d.data.OSSAccessKeyId;
that.d["Signature"] = d.data.Signature;
that.d["policy"] = d.data.policy;
that.d["success_action_status"] = d.data.success_action_status;
that.action = d.data.url;
});
/*接受pay.js界面传的参数*/
this.poliyLevel = this.$router.history.current.query.poliyLevel;
this.address = this.$router.history.current.query.address;
this.Department = this.$router.history.current.query.Department;
this.industry = this.$router.history.current.query.industry;
this.email = this.$router.history.current.query.email;
this.period = this.$router.history.current.query.period;
if (this.$store.state.currentUser) {
this.userName = this.$store.state.currentUser.userName;
this.userId = this.$store.state.currentUser.id;
console.log(this.userName, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxuser");
}
if (this.$store.state.currentCompany) {
this.currentCompany = this.$store.state.currentCompany.name;
console.log(this.$store.state.currentCompany, "BeginTimexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxcurrentCompany");
};
this.Subscribe();
this.getPayQrCode();
},
created: function () {
},
methods: {
afterpayjump() {
var that = this;
this.$root.getReq("/wxop/pushmsgWxop/getQr", {}).then(function (r) {
console.log("rrrrrrr");
console.log(r);
if (r && r.code == 1 && r.data) {
that.$root.pushx({
title: "支付成功",
name: "/paysuccess",
params: {
orderNum: that.orderNum
}
});
} else {
if (that.isBizemp) {
that.$root.pushx({
title: "我的订单",
name: "/myordermag"
});
} else {
that.$root.pushx({
title: "我的订单",
name: "/myorder"
});
}
}
}).catch(e => {
if (that.isBizemp) {
that.$root.pushx({
title: "我的订单",
name: "/myordermag"
});
} else {
that.$root.pushx({
title: "我的订单",
name: "/myorder"
});
this.$router.push({
path: `/${that.$root.channelName}/paysuccess`,
query: {
totalSum: this.orderInfo.totalSum,
orderNo: this.orderInfo.orderNo
}
});
},
......@@ -267,31 +183,37 @@
},
getPayQrCode: function () {
var self = this;
/*
if (!this.orderInfo || !this.orderInfo.code) {
this.$message.warning(`获取支付码失败,订单信息有误`);
return;
}
self.loading = true;
self.$root.postReq("/web/orderCtl/getQrCodeTl", {
code: this.orderInfo.code,
company_id: this.orderInfo.company_id,
op_type: this.payType
}).then(d => {
console.log(d, "getQrCode........................");
if (d && d.code == 1) {
*/
self.$root.loading = true;
let obj = self.$root.copyParams({ "opType": this.payType, "orderNo": this.$route.query.orderNo }, "getTlPayQrCode", '/action/tmOrder/springBoard');
self.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then(d => {
self.$root.loading = false;
console.log(d, "getQrCode........................", d.data);
if (d && d.status == 0) {
var data = d.data;
self.qrcode = "http://bigdata.gongsibao.com/api/qc?detailLink=" + encodeURIComponent(data.payinfo);
self.orderInfo.wxPayOrderCode = data.wxPayOrderCode;
self.orderInfo.aliPayOrderCode = data.aliPayOrderCode;
self.time = new Date().getTime();
self.checkOrderStatus();
this.orderInfo = d.data.order;
if (data.trxstatus == "0000") {
self.qrcode = "http://bigdata.gongsibao.com/api/qc?detailLink=" + encodeURIComponent(data.payinfo);
self.orderInfo.wxPayOrderCode = data.trxid;
self.orderInfo.aliPayOrderCode = data.trxid;
self.time = new Date().getTime();
self.checkOrderStatus();
} else {
self.$message.warning("请刷新重试");
}
} else {
console.log(d, "bbbbbbbbbbbbbbbbbbbbbbbbbbbb", d.msg);
self.$message.warning(d.msg);
}
self.loading = false;
}).catch(e => {
console.log(e);
self.$message.warning(`获取支付码失败`);
self.loading = false;
self.$root.loading = false;
});
},
closePayConfirm() {
......@@ -304,30 +226,28 @@
var startTime = Number(this.time);
setTimeout(function () {
var inth = setInterval(function () {
self.$root.postReq("/web/orderCtl/findItemByCodeTl", {
orderCode: self.orderInfo.code,
console.log(self.orderInfo, ".............................");
var obj = self.$root.copyParams({
orderCode: self.orderInfo.orderNo,
orderNo: self.orderInfo.orderNo,
wxPayOrderCode: self.orderInfo.wxPayOrderCode,
aliPayOrderCode: self.orderInfo.aliPayOrderCode,
company_id: self.orderInfo.company_id,
sub_type: self.orderInfo.subType,
op_type: self.payType
}).then(d => {
if (d && d.code == 1 && d.data && d.data.orderPayStatus == "yfk") {
}, "checkPayStatusTl", "/action/tmOrder/springBoard");
self.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then(d => {
console.log(d);
if (d && d.status == 0 && d.data && d.data.orderPayStatus == "yfk") {
self.orderInfo = d.data;
window.clearInterval(inth);
self.$message.success("付款成功");
self.afterpayjump();
/**if (self.isBizemp) {
self.$root.pushx({
title: "我的订单",
name: "/myordermag"
});
} else {
self.$root.pushx({
title: "我的订单",
name: "/myorder"
});
} */
self.$message.success("支付成功");
self.$router.push({
path: `/${self.$root.channelName}/paysuccess`,
query: {
totalSum: d.data.totalSum,
orderNo: d.data.code
}
});
return;
} else {
var passTime = (new Date().getTime() - startTime) / 1000;
......@@ -355,7 +275,7 @@
"username": this.userName,
"period": this.period,
"money": this.money,
"pid": this.orderInfo.code
"pid": this.orderInfo.orderNo
}).then(d => {
console.log(this.cities, "this.cities----------------------");
console.log(this.currentCompany, "this.currentCompany----------------------");
......
......@@ -4,14 +4,14 @@
<div class="common-paysuccess-img"> <img src="/imgs/paysuccess.png" alt=""> </div>
<div>
<h1>支付成功</h1>
<p>您已成功支付 <span>¥798.00元</span> <span>订单编号:11114012410250810824</span></p>
<p>您已成功支付 <span>¥{{totalSum}}元</span> <span>订单编号:{{orderNo}}</span></p>
<p>我们会尽快给您审核订单信息,提交到商标局!材料信息如有问题我们客服会及时与您联系。</p>
</div>
</div>
<div class="common-paysuccess-footer">
<el-button>下一单</el-button>
<el-button>查看订单详情</el-button>
<el-button @click="again">下一单</el-button>
<el-button @click="">查看订单详情</el-button>
</div>
</div>
</div>
\ No newline at end of file
......@@ -3,20 +3,31 @@
data: function() {
return {
ldms: [],
phone:'',
orderIndent:''
phone: '',
orderIndent: '',
totalSum: "",
orderNo: ""
}
},
mounted: function() {
this.$root.getChannelPath();
},
created: function() {
this.totalSum = this.$route.query.totalSum;
this.orderNo = this.$route.query.orderNo;
},
methods: {
again(){
this.$router.push({
path:`/${this.$root.channelName}/jdtrademark`,
query:{
}
})
},
push(){
var obj = this.$root.copyParams({"buyerMoblie":this.phone,"channelServiceNo":this.orderIndent},"pushFqBusiness","/action/tmOrder/springBoard",);
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d)=>{
var obj = this.$root.copyParams({ "buyerMoblie": this.phone, "channelServiceNo": this.orderIndent }, "pushFqBusiness", "/action/tmOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
console.log(d.data);
console.log(d.msg);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment