diff --git a/src/api/index.ts b/src/api/index.ts index 2c41814..1348f6e 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -358,8 +358,10 @@ export async function cashout(data?: any,accountinfo?: any){ message.success(res.msg) // userinfo() store.dispatch("setUserInfo"); + return true; }else{ message.error(res.msg) + return false; } } /** @@ -394,6 +396,10 @@ export async function editaccount( id: any,data?: any){ const res=await put('wallect/' +id ,data); if(res.code==0){ message.success("修改成功") + router.push("/mine/wallet") + }else{ + message.error(res.msg) + } } /** diff --git a/src/i18n/en.ts b/src/i18n/en.ts index e8969ef..a1d3fcc 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -42,7 +42,7 @@ export default { banquan: "Copyright Beelink Inc. All rights reserved 2019-2022", zhanghao: "accounts", shuruzhanghao: "Please enter your email or mobile phone number", - shuruzhanghaol: "Please enter your email address or country number + mobile phone number(34690xxx)", + shuruzhanghaol: "Email or country + mobile No.(e.g. Spain, 34690xxx)", mima: "password", shurumima: "Please enter your password", wangjimima: "Forget the password?", diff --git a/src/store/index.ts b/src/store/index.ts index e29eedb..483d750 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -52,7 +52,7 @@ export default createStore({ zoneStr: "中途岛GMT-11:00", zoneid: 1, symbol: "$", - zoneValue:"", + zoneValue: "Atlantic/South_Georgia", currencytag: 0 }, islogin: false, diff --git a/src/utils/date.ts b/src/utils/date.ts index e58810e..fdad371 100644 --- a/src/utils/date.ts +++ b/src/utils/date.ts @@ -73,7 +73,12 @@ export function getweek(time: string, id: string,zhou?: number){ dayjs.extend(timezone) const days: any = dayjs; console.log(id, 11111) - let now = days((!time ? undefined : time)).tz(id) + let now; + try { + now = days((!time ? undefined : time)).tz(id) + } catch (error) { + now = days(undefined).tz(id) + } console.log(now, 11111) if(zhou != undefined){ diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 9c3d8dc..9410b40 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -52,7 +52,6 @@ diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 29066aa..856834e 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -1372,9 +1372,10 @@ export default defineComponent({ line-height: 23px; cursor: pointer; user-select: none; - position: fixed; - bottom: 100px; - right: 300px; + position: absolute; + top: 1.5rem; + right: 1rem; + } // .submit-btn:hover { // background: #08ae98; diff --git a/src/views/mine/Cashout.vue b/src/views/mine/Cashout.vue index 587e6fa..c90468b 100644 --- a/src/views/mine/Cashout.vue +++ b/src/views/mine/Cashout.vue @@ -61,7 +61,7 @@
- {{lan.$t('zhanghao')}}:{{i.account}} + {{lan.$t('zhanghao')}}:{{i.account || i.bankcode}}
@@ -113,7 +113,7 @@
*{{lan.$t('yueshu')}} {{danwei + parseFloat(yue) }},{{lan.$t('zuiditixian')}} @@ -139,6 +139,7 @@ export default defineComponent({ NavBottom, }, setup() { + const lan: any = useI18n(); const money = ref(0); const payinfo = ref({ @@ -172,6 +173,7 @@ export default defineComponent({ function all() { payinfo.value.money = yue.value; } + function sub() { console.log(toRaw(payinfo.value)); @@ -189,7 +191,11 @@ export default defineComponent({ cashout( toRaw(payinfo.value), toRaw(accountlist.value)[payinfo.value.type] - ); + ).then((res: boolean)=>{ + if(res){ + router.push("/mine/wallet") + } + }) } // cashout( @@ -202,6 +208,8 @@ export default defineComponent({ router.push(url) } + const minwithdraw = computed(()=>store.state.seting.minwithdraw) + return { money, moneychange, @@ -214,7 +222,8 @@ export default defineComponent({ store, lan, navto, - danwei + danwei, + minwithdraw }; }, }); diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index 85d471d..a800266 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -222,7 +222,7 @@

{{ lan.$t("querenquxiao") }}

-
+
{{ lan.$t("zhibotishi") }}
diff --git a/src/views/regime/date.vue b/src/views/regime/date.vue index a281392..6512883 100644 --- a/src/views/regime/date.vue +++ b/src/views/regime/date.vue @@ -213,13 +213,21 @@ export default defineComponent({ async function getdates(userid: number){ getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{ console.log(res) + // const day = getDay(res[i].dateline) + for(const j in month.value.date){ + for(const k in month.value.date[j]){ + if(yue.value == 0 && month.value.date[j][k].day == month.value.day){ + month.value.date[j][k].s = 1 + } + } + } for(const i in res){ const day = getDay(res[i].dateline) for(const j in month.value.date){ for(const k in month.value.date[j]){ - if(yue.value == 0 && month.value.date[j][k].day == month.value.day){ - month.value.date[j][k].s = 1 - } + // if(yue.value == 0 && month.value.date[j][k].day == month.value.day){ + // month.value.date[j][k].s = 1 + // } if(month.value.date[j][k].day == day){ if(month.value.date[j][k].list == undefined){ month.value.date[j][k].list = []; diff --git a/src/views/regime/week.vue b/src/views/regime/week.vue index 96a9ea3..6e5ce8f 100644 --- a/src/views/regime/week.vue +++ b/src/views/regime/week.vue @@ -249,7 +249,7 @@ }