|
@@ -168,6 +168,14 @@
|
|
:jumpUrl="jumpUrl"
|
|
:jumpUrl="jumpUrl"
|
|
@closePaymentMethod="closePaymentMethod"
|
|
@closePaymentMethod="closePaymentMethod"
|
|
></PaymentMethod>
|
|
></PaymentMethod>
|
|
|
|
+
|
|
|
|
+ <!-- ===================================== 0元提示弹出层 ===================================== -->
|
|
|
|
+ <u-modal
|
|
|
|
+ v-model="jumpMsgModal"
|
|
|
|
+ :content="jumpMsgContent"
|
|
|
|
+ :show-title="false"
|
|
|
|
+ :show-confirm-button="false"
|
|
|
|
+ />
|
|
<u-toast ref="uToast" />
|
|
<u-toast ref="uToast" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -175,6 +183,7 @@
|
|
<script>
|
|
<script>
|
|
import getUrlParams from '../../utils/getUrlParams.js'
|
|
import getUrlParams from '../../utils/getUrlParams.js'
|
|
import PaymentMethod from '@/pages/paymentMethod/paymentMethod.vue'
|
|
import PaymentMethod from '@/pages/paymentMethod/paymentMethod.vue'
|
|
|
|
+ import { jsonp } from 'vue-jsonp'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PaymentMethod
|
|
PaymentMethod
|
|
@@ -254,11 +263,16 @@
|
|
totalActualAmount: '', //缴费总额
|
|
totalActualAmount: '', //缴费总额
|
|
totalPayAmount: '', //应支付总额
|
|
totalPayAmount: '', //应支付总额
|
|
totalCount: '', //缴费总笔数
|
|
totalCount: '', //缴费总笔数
|
|
- totalPayCount: '' //应支付总笔数
|
|
|
|
|
|
+ totalPayCount: '', //应支付总笔数
|
|
|
|
+ // 0元提示框
|
|
|
|
+ jumpMsgModal: false,
|
|
|
|
+ // 0元提示内容
|
|
|
|
+ jumpMsgContent: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(page) {
|
|
onLoad(page) {
|
|
- const locationLocaturl = window.location.search
|
|
|
|
|
|
+ const locationLocaturl = window.location.href
|
|
|
|
+ // 微信聚合支付完成跳转过来重定向到详情页
|
|
const type = getUrlParams(locationLocaturl, 'type')
|
|
const type = getUrlParams(locationLocaturl, 'type')
|
|
if (type && type === 'jumpurl') {
|
|
if (type && type === 'jumpurl') {
|
|
const jumpurl = localStorage.getItem('jumpUrl')
|
|
const jumpurl = localStorage.getItem('jumpUrl')
|
|
@@ -272,6 +286,15 @@
|
|
}, 0)
|
|
}, 0)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // 0元支付情况添加一个加载层
|
|
|
|
+ const jumpMsg = getUrlParams(locationLocaturl, 'jumpMsg')
|
|
|
|
+ if (jumpMsg) {
|
|
|
|
+ this.jumpMsgModal = true
|
|
|
|
+ this.jumpMsgContent = jumpMsg
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.jumpMsgModal = false
|
|
|
|
+ }, 3000)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
this.handleGetIndexData()
|
|
this.handleGetIndexData()
|
|
@@ -328,7 +351,7 @@
|
|
mask: true
|
|
mask: true
|
|
})
|
|
})
|
|
const str = `output=jsonp&key=BOGBZ-2BZ33-O4L32-Y3QJR-PGN66-RFFEL&location=${latitude},${longitude}`
|
|
const str = `output=jsonp&key=BOGBZ-2BZ33-O4L32-Y3QJR-PGN66-RFFEL&location=${latitude},${longitude}`
|
|
- this.$jsonp('https://apis.map.qq.com/ws/geocoder/v1/?' + str, {}).then(res => {
|
|
|
|
|
|
+ jsonp('https://apis.map.qq.com/ws/geocoder/v1/?' + str, {}).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
if (res.status == 0) {
|
|
if (res.status == 0) {
|
|
if (res.result.ad_info) {
|
|
if (res.result.ad_info) {
|