parent
bfb8895b1b
commit
1beb30a123
@ -0,0 +1,9 @@
|
|||||||
|
VITE_APP_IMG_URL = 'https://shop.h888.fun/'
|
||||||
|
|
||||||
|
VITE_APP_API_URL = 'https://shop.h888.fun/appapi/v1'
|
||||||
|
|
||||||
|
VITE_APP_SSO_URL = 'https://sso.h888.fun/api/v1'
|
||||||
|
|
||||||
|
VITE_APP_LINE_CLIENT_ID = '1657876696'
|
||||||
|
|
||||||
|
VITE_APP_LINE_CLIENT_SECRET = '2a7930d6143a00ff421812b942cde200'
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
VITE_APP_ENV = slash
|
||||||
|
|
||||||
|
VITE_APP_IMG_URL = 'https://shop.slash1000.com/'
|
||||||
|
|
||||||
|
VITE_APP_API_URL = 'https://shop.slash1000.com/appapi/v1'
|
||||||
|
|
||||||
|
VITE_APP_SSO_URL = 'https://sso.slash1000.com/api/v1'
|
||||||
|
|
||||||
|
VITE_APP_LINE_CLIENT_ID = '1661025693'
|
||||||
|
|
||||||
|
VITE_APP_LINE_CLIENT_SECRET = '914cc067cb11ffbd47640de8f3f4a00a'
|
||||||
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 605 KiB |
@ -0,0 +1,66 @@
|
|||||||
|
<template>
|
||||||
|
<!-- Header Start -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="logo-wrap">
|
||||||
|
<i class="icon-arrow-left-bold-box icli" @click="$router.push('/user/info')"></i>
|
||||||
|
<h1 class="title-color font-md">提領帳戶</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<!-- Header End -->
|
||||||
|
|
||||||
|
<!-- Main Start -->
|
||||||
|
<main class="main-wrap setting-page mb-xxl">
|
||||||
|
|
||||||
|
<!-- Form Section Start -->
|
||||||
|
<van-form @submit="onSubmit">
|
||||||
|
<van-cell-group inset>
|
||||||
|
<van-field v-model="form.bank_name" name="bank_name" placeholder="銀行名稱" />
|
||||||
|
<van-field v-model="form.bank_code" name="bank_code" placeholder="銀行代碼" />
|
||||||
|
<van-field v-model="form.bank_account" name="bank_account" placeholder="銀行帳號" />
|
||||||
|
</van-cell-group>
|
||||||
|
<div style="margin: 16px">
|
||||||
|
<van-button round block color="#0baf9a" native-type="submit" :disabled="btnDisable"> 提交 </van-button>
|
||||||
|
</div>
|
||||||
|
</van-form>
|
||||||
|
<!-- Form Section End -->
|
||||||
|
</main>
|
||||||
|
<!-- Main End -->
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted } from "vue";
|
||||||
|
import { getUserBank,updateUserBank } from "@/services/user";
|
||||||
|
import { showToast } from "vant";
|
||||||
|
import router from "@/router";
|
||||||
|
|
||||||
|
|
||||||
|
const form = ref({
|
||||||
|
bank_name: "",
|
||||||
|
bank_code: "",
|
||||||
|
bank_account: "",
|
||||||
|
});
|
||||||
|
|
||||||
|
const btnDisable = ref(false);
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
let res = await getUserBank();
|
||||||
|
// console.log('res',res.code)
|
||||||
|
if (res.code === 200) {
|
||||||
|
form.value = res.data;
|
||||||
|
console.log(form.value)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const onSubmit = async () => {
|
||||||
|
btnDisable.value = true;
|
||||||
|
let res = await updateUserBank(form.value);
|
||||||
|
if(res.code === 200){
|
||||||
|
showToast('操作成功');
|
||||||
|
return router.back();
|
||||||
|
}
|
||||||
|
showToast(res.data);
|
||||||
|
btnDisable.value = false;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped></style>
|
||||||
@ -0,0 +1,111 @@
|
|||||||
|
<template>
|
||||||
|
<!-- Header Start -->
|
||||||
|
<header class="header">
|
||||||
|
<div class="logo-wrap">
|
||||||
|
<i class="icon-arrow-left-bold-box icli" @click="$router.back()"></i>
|
||||||
|
<h1 class="title-color font-md">推薦會員</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<!-- Header End -->
|
||||||
|
|
||||||
|
<!-- Main Start -->
|
||||||
|
<main class="main-wrap about-us-page mb-xxl">
|
||||||
|
<!-- 會員列表 Section Start -->
|
||||||
|
<div class="recommand-section">
|
||||||
|
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
||||||
|
<van-list
|
||||||
|
v-model:loading="loading"
|
||||||
|
:finished="finished"
|
||||||
|
finished-text="沒有更多了"
|
||||||
|
@load="onLoad"
|
||||||
|
>
|
||||||
|
<!-- <van-cell v-for="item in list" :key="item" :title="item">
|
||||||
|
aaa bbb
|
||||||
|
</van-cell> -->
|
||||||
|
<div class="recommand-cell">
|
||||||
|
<div class="userid">會員編號</div>
|
||||||
|
<div class="name">會員名稱</div>
|
||||||
|
<div class="status">會員狀態</div>
|
||||||
|
</div>
|
||||||
|
<div class="recommand-cell" v-for="item in list" :key="item">
|
||||||
|
<div class="userid">{{ item.sso_user_id }}</div>
|
||||||
|
<div class="name">{{ item.real_name }}</div>
|
||||||
|
<div class="status">{{ item.is_validated }}</div>
|
||||||
|
</div>
|
||||||
|
</van-list>
|
||||||
|
</van-pull-refresh>
|
||||||
|
</div>
|
||||||
|
<!-- 分潤獎金 Section End -->
|
||||||
|
</main>
|
||||||
|
<!-- Main End -->
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted } from "vue";
|
||||||
|
|
||||||
|
import { getRecommandList } from "@/services/user";
|
||||||
|
|
||||||
|
const list = ref([]);
|
||||||
|
const loading = ref(false);
|
||||||
|
const finished = ref(false);
|
||||||
|
const refreshing = ref(false);
|
||||||
|
const page = ref(1);
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
// let res = await getRecommandList();
|
||||||
|
// if(res.code === 200){
|
||||||
|
// list.value = res.data;
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
|
||||||
|
const onLoad = async () => {
|
||||||
|
if (refreshing.value) {
|
||||||
|
page.value = 1;
|
||||||
|
list.value = [];
|
||||||
|
refreshing.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
let res = await getRecommandList(page.value);
|
||||||
|
|
||||||
|
if (res.code === 200) {
|
||||||
|
//將返回的res.data添加到list array中
|
||||||
|
list.value.push(...res.data.data);
|
||||||
|
|
||||||
|
// list.value.push(res.data);
|
||||||
|
page.value += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
loading.value = false;
|
||||||
|
|
||||||
|
if (list.value.length == res.data.total) {
|
||||||
|
finished.value = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const onRefresh = async () =>{
|
||||||
|
finished.value = false;
|
||||||
|
loading.value = true;
|
||||||
|
onLoad();
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.recommand-cell {
|
||||||
|
display: flex;
|
||||||
|
justify-content: start;
|
||||||
|
height: 44px;
|
||||||
|
.userid {
|
||||||
|
width: 33%;
|
||||||
|
// text-align: center;
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
width: 33%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.status {
|
||||||
|
width: 33%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
import { request } from '@/utils/request'
|
||||||
|
|
||||||
|
export function checkBonusSn(bonus_sn) {
|
||||||
|
return request('/bonus/check','post',{bonus_sn})
|
||||||
|
}
|
||||||
Loading…
Reference in new issue