|
@@ -2,7 +2,9 @@
|
|
|
import payIcon from '@/pages/parkingFee/static/images/pay-success.png';
|
|
|
import { mapState } from 'vuex';
|
|
|
import uni from '@/utils/uniHooks';
|
|
|
-
|
|
|
+import {
|
|
|
+ getSceneUser,
|
|
|
+} from '@/utils/api-kip.js';
|
|
|
export default {
|
|
|
onLoad(params) {
|
|
|
const parkInfo = JSON.parse(uni.getStorageSync('parkinfo'));
|
|
@@ -14,6 +16,16 @@ export default {
|
|
|
outParkCharging: 15,
|
|
|
blueIcon: this.$picUrl + '/images/icon-success-blue.png',
|
|
|
greenIcon: this.$picUrl + '/images/icon-success-green.png',
|
|
|
+ pointsNew: '',
|
|
|
+ wenjuanObj: {
|
|
|
+ id: '',
|
|
|
+ name: '',
|
|
|
+ sceneId: '',
|
|
|
+ tokenId: this.$route.query.sessionId,
|
|
|
+ lbsId: this.$route.query.mallId,
|
|
|
+ brandId: this.$route.query.groupId,
|
|
|
+ platform: this.isAlipayClient === true ? 'MP-ALIPAY' : 'MP-WEIXIN'
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -30,11 +42,11 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- const leftLeavingTime = JSON.parse(uni.getStorageSync('leftLeavingTime'));
|
|
|
- console.log('leftLeavingTime::', leftLeavingTime)
|
|
|
- if (leftLeavingTime) {
|
|
|
- this.outParkCharging = leftLeavingTime;
|
|
|
- }
|
|
|
+ // const leftLeavingTime = JSON.parse(uni.getStorageSync('leftLeavingTime'));
|
|
|
+ // console.log('leftLeavingTime::', leftLeavingTime)
|
|
|
+ // if (leftLeavingTime) {
|
|
|
+ // this.outParkCharging = leftLeavingTime;
|
|
|
+ // }
|
|
|
// setTimeout(() => {
|
|
|
// window?.toWXSendMsg({
|
|
|
// type: 'nowRoute',
|
|
@@ -58,11 +70,33 @@ export default {
|
|
|
// },
|
|
|
// });
|
|
|
// }, 500)
|
|
|
+ this.getSceneUserParking()
|
|
|
if ( this.$router.query?.vehicleNo ) {
|
|
|
this.vehicleNo = this.$route.query.vehicleNo
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ goSceneUser () {
|
|
|
+ window.location.href = `${window.QUESTIONNAIRE_BASE_URL}?type=writeIn&id=${this.wenjuanObj.id}&name=${this.wenjuanObj.name}&sceneId=${this.wenjuanObj.sceneId}&tokenId=${this.wenjuanObj.tokenId}&lbsId=${this.wenjuanObj.lbsId}&brandId=${this.wenjuanObj.brandId}&platform=${this.wenjuanObj.platform}`
|
|
|
+ },
|
|
|
+ async getSceneUserParking () {
|
|
|
+ try {
|
|
|
+ const res = await getSceneUser({
|
|
|
+ triggerPoint: 5
|
|
|
+ })
|
|
|
+ if (res !== '' && res !== null && res !== undefined) {
|
|
|
+ this.pointsNew = res.rewardPointsAmount
|
|
|
+ this.wenjuanObj.id = res.questionnaireId
|
|
|
+ this.wenjuanObj.name = res.name
|
|
|
+ this.wenjuanObj.sceneId = res.id
|
|
|
+ }
|
|
|
+ console.log('问卷', typeof res)
|
|
|
+ } catch (err) {
|
|
|
+ console.log('err:::', err)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
page_button() {
|
|
|
// fromPage && format && unlicensed
|
|
|
this.$router.replace({
|