feat:设备授权问题
This commit is contained in:
1 parent
50b7ba4601
commit
c9c9c365dd
19 files changed
+196
-138
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view title="支付成功" class="w-full h-full">
|
||||
<crud-layout title="支付成功" :bg="filePath(SERVICE_IMAGE.blueBg)" ref="crudLayoutRef">
|
||||
<view class="flex-col-center p-30rpx">
|
||||
<view class="flex-col-center m-y-50rpx">
|
||||
<svg t="1742978804614" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
||||
@@ -31,7 +31,7 @@
|
||||
<view class="p-40rpx fixed bottom-30rpx left-0 right-0 font-bold">
|
||||
<tm-button :block="true" @click="goBack">完成</tm-button>
|
||||
</view>
|
||||
</view>
|
||||
</crud-layout>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -39,6 +39,9 @@ import { ref } from "vue"
|
||||
import { onShow } from "@dcloudio/uni-app"
|
||||
import { usePayStore } from "@/sheep/stores/pay"
|
||||
|
||||
import { filePath } from "@/sheep/utils/file"
|
||||
import { SERVICE_IMAGE } from "@@/constant/index"
|
||||
|
||||
const scanPayData = ref<any>({})
|
||||
|
||||
onShow(() => {
|
||||
@@ -47,7 +50,6 @@ onShow(() => {
|
||||
})
|
||||
|
||||
const goBack = () => {
|
||||
const url: string = window.location.href.split("h5")[0] + "h5/?launchParam=coopMerchant#/pages/tabbar/order"
|
||||
window.location.replace(url)
|
||||
uni.navigateBack()
|
||||
}
|
||||
</script>
|
||||
@@ -35,7 +35,7 @@ const minAppGetphone = async (e) => {
|
||||
}
|
||||
try {
|
||||
uni.showLoading({ title: '登录中...', mask: true })
|
||||
const { code: loginCode }: any = await uni.login({ provider: 'weixin' });
|
||||
const { code: loginCode }: any = await uni.login({ provider: "weixin" });
|
||||
// 获取用户手机号
|
||||
const { data, code }: any = await miniPlatformApi.autoAdminLogin({
|
||||
miniPlatformType: await getAppInfo(),
|
||||
@@ -97,14 +97,14 @@ const affirmConfirm = () => {
|
||||
|
||||
<view class="flex-col-center m-t-160rpx">
|
||||
<view class="size-220rpx bg-white rounded-full flex-row-center">
|
||||
<image class="size-200rpx rounded-full" src="/static/logo/jgsw.jpeg" mode="aspectFit" />
|
||||
<image class="size-200rpx rounded-full" :src="filePath(SERVICE_IMAGE.logo)" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="m-t-20rpx sub-text-28">浦江县机关事务智慧后勤一体化平台</view>
|
||||
</view>
|
||||
|
||||
<view class="m-t-160rpx">
|
||||
<button v-if="!state.isAgree" class="bg-#0094ff color-white" @click="doLogin">
|
||||
手机号一键登录
|
||||
一键授权
|
||||
</button>
|
||||
<button v-else class="bg-#0094ff color-white" open-type="getPhoneNumber" @getphonenumber="minAppGetphone">
|
||||
手机号一键登录
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<view
|
||||
class="position-absolute bottom-16rpx left-0 right-0 second-text-26 text-center flex items-center justify-center">
|
||||
class="position-absolute bottom-30rpx left-0 right-0 second-text-26 text-center flex items-center justify-center">
|
||||
<view>联系热线:</view>
|
||||
<view @click="doPhone('18367908152')">18367908152</view>
|
||||
<view class="w-10rpx" />
|
||||
|
||||
@@ -326,6 +326,13 @@ const onTabMenu = async (item: any) => {
|
||||
case "扫一扫":
|
||||
await appScanCode()
|
||||
break
|
||||
case "清除缓存":
|
||||
uni.showLoading({ title: "清除中...", mask: true })
|
||||
uni.clearStorageSync()
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: "清除缓存成功", icon: "success" })
|
||||
uni.navigateTo({ url: "/pages/root/login" })
|
||||
break
|
||||
default:
|
||||
router.jump(item.path)
|
||||
}
|
||||
|
||||
@@ -139,7 +139,8 @@ const toRechargeRecord = () => {
|
||||
<view class="p-30rpx p-b-40rpx bg-white rounded-20rpx m-t-20rpx shadow-main">
|
||||
<tm-radio-group direction="column" gap="40" v-model="state.currentPayType">
|
||||
<tm-radio :disabled="v.disabled" v-for="(v, i) in data.payType" :key="i" :value="v.type"
|
||||
:label="v.text" />
|
||||
:label="v.text">
|
||||
</tm-radio>
|
||||
</tm-radio-group>
|
||||
</view>
|
||||
<view class="bg-#0094ff p-y-20rpx text-center rounded-40rpx m-x-30rpx m-t-60rpx sub-text-30 color-white!"
|
||||
|
||||
Reference in new issue
Block a user