develop
xiaozhiyong 10 months ago
parent 3d3237c6ce
commit 93feaf1148
  1. 63
      src/subPackages/order/paymentResult/index.vue
  2. 8
      src/utils/request.js

@ -5,16 +5,15 @@
<uni-icons type="checkmarkempty" color="#fff" size="80"></uni-icons>
</view>
<view class="title">支付成功</view>
<view class="tip"
>请告知加油员已成功支付如需发票请联系加油站开票</view
>
<view
v-if="orderInfo.orderSerialNumber"
class="button details"
@click="jumpDetails"
>订单详情</view
>
<view class="button home" @click="jumpHome">返回首页</view>
<view class="buttons">
<view
v-if="orderInfo.orderSerialNumber"
class="details"
@click="jumpDetails"
>订单详情</view
>
<view class="home" @click="jumpHome">返回首页</view>
</view>
</view>
</template>
@ -35,6 +34,7 @@ export default {
},
onLoad(options) {
let { orderSerialNumber } = options;
if (!orderSerialNumber) return;
this.paramter.params.orderSerialNumber = orderSerialNumber;
serve.getCInfoByPage(this.paramter).then((res) => {
if (res.code === 20000) {
@ -77,30 +77,25 @@ export default {
font-size: 40rpx;
text-align: center;
}
.tip {
padding: 0 70rpx;
margin-top: 30rpx;
font-size: 26rpx;
text-align: center;
color: #999;
}
.button {
margin: 0 auto;
width: 650rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 28rpx;
border-radius: 15rpx;
&.details {
margin-top: 120rpx;
background: #67c23a;
color: #fff;
}
&.home {
margin-top: 30rpx;
border: 1px solid #ddd;
color: #333;
.buttons {
margin-top: 150rpx;
> view {
margin: 0 auto;
width: 650rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 28rpx;
border-radius: 15rpx;
&.details {
background: #67c23a;
color: #fff;
}
&.home {
margin-top: 30rpx;
border: 1px solid #ddd;
color: #333;
}
}
}
}

@ -28,22 +28,22 @@ instance.interceptors.request.use(
}
if (!token) {
token = uni.getStorageSync("Authorization") || " ";
token = uni.getStorageSync("Authorization");
}
if (!unionId) {
unionId = uni.getStorageSync("unionid") || " ";
unionId = uni.getStorageSync("unionid");
}
if (!openId) {
openId = uni.getStorageSync("openid") || " ";
openId = uni.getStorageSync("openid");
}
config.headers["Authorization"] = token;
config.headers["imei"] = unionId;
config.headers["openId"] = openId;
config.headers["dataSources"] = "MP";
config.headers["loginSystem"] = "MINI_APP";
config.headers["loginDevice"] = "LOGIN_MP_WECHAT";
config.headers["accountSources"] = "LOGIN_MP_WECHAT";
config.headers["Authorization"] = token;
if (env === "production") {
const JSESSIONID = utils.uuid();

Loading…
Cancel
Save