Commit c8f315ca by GiottoMaster

update

parent 3d00a528
......@@ -5,6 +5,14 @@ import { useRouter } from 'vue-router'
const store = useCounterStore()
// store.getSystemInfo()
// store.getUserInfo()
const i = 'orientationchange' in window ? 'orientationchange' : 'resize'
const setViewHeight = () => {
const windowVH = window.innerHeight / 100
document.documentElement.style.setProperty('--vh', windowVH + 'px')
}
document.addEventListener('DOMContentLoaded', setViewHeight)
window.addEventListener(i, setViewHeight)
onLaunch(() => {
store.token = uni.getStorageSync('token') || null
store.userId = uni.getStorageSync('userId') || null
......
......@@ -222,3 +222,27 @@ export function rongziApi(data: rongziType) {
data
})
}
// 抽奖次数
export function getLotteryCountApi() {
return request({
url: `${config.baseURL}/index/lottery_count`,
method: 'get'
})
}
// 抽奖结果
export function getLotteryDrawApi() {
return request({
url: `${config.baseURL}/index/lottery_draw`,
method: 'get'
})
}
// 抽奖历史
export function getLotteryHistoryApi() {
return request({
url: `${config.baseURL}/index/lottery_history`,
method: 'get'
})
}
......@@ -94,7 +94,13 @@ const messages = {
button3: '帳務',
button4: '交易明细',
tip1: '未实名',
tip2: '详细'
tip2: '详细',
gujiang: '刮奖',
guajiangRecord: '中奖记录',
guajiangTitle: '恭喜中奖!',
guajiangButton: '确定',
guajiangSuccess: '恭喜您抽中',
guajiangFail: '很遗憾'
},
gupiaoDetail: {
title: '股票详情',
......
......@@ -541,7 +541,13 @@ const messages = {
button3: 'アカウント',
button4: '取引履歴',
tip1: 'ご本人確認が未完了',
tip2: '詳しい'
tip2: '詳しい',
guajiang: 'SQPイベント抽選',
guajiangRecord: '当選記録',
guajiangTitle: '優勝おめでとうございます',
guajiangButton: '確認',
guajiangSuccess: '優勝',
guajiangFail: 'ごめん'
},
gupiaoDetail: {
title: '銘柄詳細',
......
......@@ -115,6 +115,12 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path": "guajiang/guajiang",
"style": {
"navigationStyle": "custom"
}
}
]
},
......
......@@ -218,9 +218,11 @@ const button4 = computed(() => t('index.button4'))
const button6 = computed(() => t('hongli.title'))
const button8 = computed(() => t('rongzi.title'))
const button7 = computed(() => t('index.button2'))
// const guajiang = computed(() => t('index.guajiang'))
const buttonList = [
{ label: button1, icon: '/static/image/index/icon_1.png', url: '/subPackages/index/ipo/ipo' },
{ label: button6, icon: '/static/image/index/icon_6.png', url: '/subPackages/index/hongli/hongli' },
// { label: guajiang, icon: '/static/image/index/guajiang2.png', url: '/subPackages/index/guajiang/guajiang' },
{ label: button2, icon: '/static/image/index/icon_5.png', url: '/subPackages/index/dadan/dadan' },
// { label: button2, icon: '/static/image/index/icon_2.png', url: '/subPackages/customerService/customerService' },
......
......@@ -93,7 +93,6 @@ import { useCounterStore } from '@/store/store'
import { onShow } from '@dcloudio/uni-app'
import { getCzhiurlApi } from '@/api/user'
import { changeMoney } from '@/common/common'
import { showToast } from 'vant'
import bg from '@/static/bg.png'
import right from '@/static/rigth.png'
import set from '@/static/image/searchNavigation/set.png'
......@@ -123,8 +122,8 @@ const desensitization = (str: string) => {
}
const goWeb = () => {
showToast(t('user.tip1'))
// window.open(kefu_url.value)
// showToast(t('user.tip1'))
window.open(kefu_url.value)
}
onMounted(() => {
const myChart = echarts.init(document.getElementById('zichan-chart'))
......
* {
box-sizing: border-box;
color: $uni-text-color;
}
.van-toast__text {
......
......@@ -26,10 +26,6 @@
<view class="button" @click="login">{{ t('login.button_text') }}</view>
<view class="text" @click="goPage('/subPackages/register/register')">{{ t('login.register') }}</view>
</view>
<!-- <view class="text_button mx-[1.88rem]">
<view @click="goWeb()">{{ t('login.forget_password') }}</view>
</view> -->
</view>
</view>
</template>
......@@ -41,9 +37,7 @@ import { loginApi } from '@/api/login/login'
import { switchTab, goPage, checkInput } from '@/common/common'
import { useCounterStore } from '@/store/store'
import { showSuccessToast } from 'vant'
import { getCzhiurlApi } from '@/api/user'
import bg from '@/static/logo.png'
import { onLoad } from '@dcloudio/uni-app'
const { t } = useI18n()
const store = useCounterStore()
......@@ -52,22 +46,6 @@ const loginParams = ref({
password: ''
})
const kefu_url = ref('')
onLoad(() => {
getCzhiurlFn()
})
const getCzhiurlFn = async () => {
const res = await getCzhiurlApi()
if (res.code === 1) {
kefu_url.value = res.data.kefu_url
}
}
// const goWeb = () => {
// window.open(kefu_url.value)
// }
const checkArr = [
{ key: 'account', message: t('login.account_error') },
{ key: 'password', message: t('login.password_error') }
......
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