秒杀详情即将开始显示灰色;
下单第一次添加新地址返回地址没有带回来; 下单付款点击微信支付不支持然后产生了订单,然后订单详情再次余额支付,其实支付成功了,但是没任何提示;
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4454,7 +4454,6 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bargain .header .time {
|
.bargain .header .time {
|
||||||
background-image: url('https://wx.yixiang.co/static/images/time.png');
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
width: 4.4*100rpx;
|
width: 4.4*100rpx;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
|
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
|
||||||
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
|
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
|
||||||
export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api';
|
export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
|
||||||
|
// export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api';
|
||||||
export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static';
|
export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static';
|
||||||
|
|
||||||
|
@ -73,16 +73,25 @@ export function delOrderHandle(orderId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用订单号进行支付
|
// 使用订单号进行支付
|
||||||
export function payOrderHandle(orderId, type, from) {
|
export async function payOrderHandle(orderId, type, from) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// dialog.loading.open("");
|
uni.showLoading({
|
||||||
|
title: "支付中",
|
||||||
|
mask: true
|
||||||
|
});
|
||||||
payOrder(orderId, type, from)
|
payOrder(orderId, type, from)
|
||||||
.then(res => {
|
.then(async res => {
|
||||||
handleOrderPayResults(res.data)
|
await handleOrderPayResults(res.data)
|
||||||
|
resolve()
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
dialog.loading.close();
|
reject()
|
||||||
dialog.toast({ mes: err.msg || "订单支付失败" });
|
uni.hideLoading()
|
||||||
|
uni.showToast({
|
||||||
|
title: err.msg || err.response.data.msg || err.response.data.message || '订单支付失败',
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -90,9 +99,14 @@ export function payOrderHandle(orderId, type, from) {
|
|||||||
// 处理调用支付接口的逻辑
|
// 处理调用支付接口的逻辑
|
||||||
// @type create(创建订单)||pay(支付订单)
|
// @type create(创建订单)||pay(支付订单)
|
||||||
export function handleOrderPayResults(data, type) {
|
export function handleOrderPayResults(data, type) {
|
||||||
|
console.log(data, type)
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
uni.hideLoading()
|
||||||
switch (data.status) {
|
switch (data.status) {
|
||||||
// 订单号已存在
|
// 订单号已存在
|
||||||
case "ORDER_EXIST":
|
case "ORDER_EXIST":
|
||||||
|
resolve()
|
||||||
|
break;
|
||||||
// 取消支付
|
// 取消支付
|
||||||
case "EXTEND_ORDER":
|
case "EXTEND_ORDER":
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -100,6 +114,7 @@ export function handleOrderPayResults(data, type) {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
|
resolve()
|
||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
break;
|
break;
|
||||||
case "PAY_DEFICIENCY":
|
case "PAY_DEFICIENCY":
|
||||||
@ -111,15 +126,17 @@ export function handleOrderPayResults(data, type) {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
|
reject()
|
||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
break;
|
break;
|
||||||
// 未传递支付环境
|
// 未传递支付环境
|
||||||
case "SUCCESS":
|
case "SUCCESS":
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: data.msg,
|
title: data.msg || data.payMsg,
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
|
resolve()
|
||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
break;
|
break;
|
||||||
// H5支付
|
// H5支付
|
||||||
@ -127,6 +144,7 @@ export function handleOrderPayResults(data, type) {
|
|||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
console.log(data)
|
console.log(data)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
resolve()
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
// "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx15171343713577e9f3a418b0865ef90000&package=2547890641"
|
// "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx15171343713577e9f3a418b0865ef90000&package=2547890641"
|
||||||
// location.href = data.result.jsConfig.mweb_url;
|
// location.href = data.result.jsConfig.mweb_url;
|
||||||
@ -136,17 +154,19 @@ export function handleOrderPayResults(data, type) {
|
|||||||
// 小程序支付
|
// 小程序支付
|
||||||
case "WECHAT_PAY":
|
case "WECHAT_PAY":
|
||||||
weappPay(data.result.jsConfig).finally(() => {
|
weappPay(data.result.jsConfig).finally(() => {
|
||||||
|
resolve()
|
||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
// APP支付
|
// APP支付
|
||||||
case "WECHAT_APP_PAY":
|
case "WECHAT_APP_PAY":
|
||||||
|
|
||||||
weappPay(data.result.jsConfig).finally(() => {
|
weappPay(data.result.jsConfig).finally(() => {
|
||||||
|
resolve()
|
||||||
goOrderDetails(data.result.orderId, type)
|
goOrderDetails(data.result.orderId, type)
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -171,7 +171,8 @@
|
|||||||
return {
|
return {
|
||||||
title: this.storeInfo.title,
|
title: this.storeInfo.title,
|
||||||
imageUrl: this.storeInfo.image,
|
imageUrl: this.storeInfo.image,
|
||||||
path: "pages/activity/GoodsSeckill/index?id=" + this.storeInfo.id + "&spread=" + uni.getStorageSync("uid")+"&pageType=good&codeType=routine",
|
path: "pages/activity/GoodsSeckill/index?id=" + this.storeInfo.id + "&spread=" + uni.getStorageSync("uid") +
|
||||||
|
"&pageType=good&codeType=routine",
|
||||||
success(res) {
|
success(res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '分享成功'
|
title: '分享成功'
|
||||||
@ -398,4 +399,9 @@
|
|||||||
.product-con .nav {
|
.product-con .nav {
|
||||||
padding: 0 0.2*100rpx;
|
padding: 0 0.2*100rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.product-con .footer .bnt .buy.bg-color-hui {
|
||||||
|
background: #ccc;
|
||||||
|
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -368,7 +368,7 @@ export default {
|
|||||||
this.computedPrice();
|
this.computedPrice();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted: function () {
|
onShow: function () {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.$store.dispatch("getUser", true);
|
this.$store.dispatch("getUser", true);
|
||||||
that.getCartInfo();
|
that.getCartInfo();
|
||||||
|
32
剩余问题.js
Normal file
32
剩余问题.js
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
// 1、轮播背景问题
|
||||||
|
// ~~ 延后处理
|
||||||
|
|
||||||
|
// 3、充值签名错误
|
||||||
|
// ? 未测试出该问题
|
||||||
|
|
||||||
|
// 页面都多了一个头部
|
||||||
|
// ~~延后处理
|
||||||
|
|
||||||
|
// 6、评价图片上传不了
|
||||||
|
// ?接口报错,反馈给老徐了
|
||||||
|
|
||||||
|
// 8、小程序绑定手机号报错
|
||||||
|
// ?接口报错,反馈给老徐了
|
||||||
|
|
||||||
|
// 12、h5分享关系没形成,看下你那登陆怎么处理的参考下以前的h5
|
||||||
|
// ~~ 延后处理
|
||||||
|
|
||||||
|
// 13、海报分享,分享分享调整没问题,因为是首页,但是,商品详情海报,拼团海报,砍价海报路由跳转会有问题
|
||||||
|
// ?商品拼团海报生成的不是小程序码
|
||||||
|
// 海报相关页面
|
||||||
|
// components/StorePoster.vue 商品详情
|
||||||
|
// > 根据用户来源生成二维码
|
||||||
|
// pages/activity/Poster/index 拼团
|
||||||
|
// > 根据from
|
||||||
|
// pages/activity/Poster/index 砍价
|
||||||
|
// > 根据from
|
||||||
|
// pages/user/promotion/Poster/index 分销
|
||||||
|
|
||||||
|
// 14、小程序已经开启了分享形成关系的问题看下
|
||||||
|
// ! 需沟通
|
||||||
|
|
Reference in New Issue
Block a user