|
@@ -37,6 +37,9 @@
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="g-order-list__btnbar" v-if="item.applystatus === 10">
|
|
|
|
|
+ <Button size="small" @click="goToAmtInByPaidUrl(item)" round>去支付</Button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</app-pull-refresh>
|
|
</app-pull-refresh>
|
|
@@ -46,12 +49,14 @@
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef } from 'vue'
|
|
import { shallowRef } from 'vue'
|
|
|
|
|
+import { Button, showToast } from 'vant'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
-import { queryAccountInOutApply } from '@/services/api/bank'
|
|
|
|
|
|
|
+import { queryAccountInOutApply, getAmtInByPaidUrl } from '@/services/api/bank'
|
|
|
import { getInOutApplyStatusName, getInOutExecuteTypeName } from '@/constants/order'
|
|
import { getInOutApplyStatusName, getInOutExecuteTypeName } from '@/constants/order'
|
|
|
|
|
+import { formatDecimal, handleNoneValue, formatDate } from '@/filters'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
-import { formatDecimal, handleNoneValue, formatDate } from '@/filters'
|
|
|
|
|
|
|
+import plus from '@/utils/h5plus'
|
|
|
|
|
|
|
|
const showModal = shallowRef(true)
|
|
const showModal = shallowRef(true)
|
|
|
const error = shallowRef(false)
|
|
const error = shallowRef(false)
|
|
@@ -70,6 +75,34 @@ const closed = (isRefresh = false) => {
|
|
|
showModal.value = false
|
|
showModal.value = false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const goToAmtInByPaidUrl = (item: Model.AccountOutInApplyRsp) => {
|
|
|
|
|
+ console.log(item)
|
|
|
|
|
+ getAmtInByPaidUrl({
|
|
|
|
|
+ data: {
|
|
|
|
|
+ exchticket: item.exchticket
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ openWebview(res.data)
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const openWebview = (url: string) => {
|
|
|
|
|
+ const ua = window.navigator.userAgent.toLowerCase()
|
|
|
|
|
+ if (ua.indexOf('micromessenger') !== -1) {
|
|
|
|
|
+ showToast({
|
|
|
|
|
+ type: 'fail',
|
|
|
|
|
+ message: '请使用浏览器打开此页面'
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ plus.openWebview({
|
|
|
|
|
+ url,
|
|
|
|
|
+ titleText: '实名认证',
|
|
|
|
|
+ onClose: () => run()
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 暴露组件属性给父组件调用
|
|
// 暴露组件属性给父组件调用
|
|
|
defineExpose({
|
|
defineExpose({
|
|
|
closed,
|
|
closed,
|