Commit d9f9875e authored by hewenhao's avatar hewenhao

Merge branch 'feature/2021_03_12_bonus' into 'release/2021_03_12_bonus'

Feature/2021 03 12 bonus See merge request wykolor/mall-webview!1
parents 8ca9a996 eedd3105
let appId = "2095826303"; // 腾讯验证码appid
if (process.env.VUE_APP_DEPLOY_MODE === "test") {
appId = "2087826974";
}
export default appId
\ No newline at end of file
......@@ -38,6 +38,7 @@ export default defineComponent({
props: {
show: Boolean
},
emits: ["update:show"],
setup(props) {
const store = useStore();
const bonusStoreState = computed(() => store.state.bonus);
......
......@@ -70,6 +70,7 @@ import { Dialog, Button, Field, Toast, Cell } from "vant";
import { checkCaptcha, withdraw } from "@/server/api/bonus";
import { countDown } from "@/util/timer";
import appId from "@/util/index";
interface TencentCaptchaResponse {
ret: number;
......@@ -121,7 +122,7 @@ export default defineComponent({
// 获取验证码
const getSmsVerifyCode = () => {
const captcha = new TencentCaptcha(
"2087826974",
appId,
async (res: TencentCaptchaResponse) => {
const { ret, randstr, ticket } = res;
if (ret === 0) {
......
......@@ -26,6 +26,7 @@ export default defineComponent({
show: Boolean,
errCode: String
},
emits: ["update:show"],
setup(props) {
const showDialog = ref(false);
watchEffect(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment