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

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

Loading…
Cancel
Save