1
This commit is contained in:
parent
a54e41054f
commit
40caa96cc6
@ -71,7 +71,6 @@ export default {
|
||||
let currentPages = getCurrentPages();
|
||||
let page = currentPages[currentPages.length - 1];
|
||||
this.path = page.route;
|
||||
console.log(this.path);
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
|
@ -225,7 +225,7 @@ export const h5Login = function(type = "judge", callback) {
|
||||
},500);
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: "Prompt",
|
||||
title: '',
|
||||
content: "At this moment, we need you to log in~",
|
||||
confirmText: "Go login",
|
||||
cancelText: "Cancel",
|
||||
|
@ -175,7 +175,12 @@ $http.dataFactory = async function(res) {
|
||||
statusCode: 0,
|
||||
errMsg: "【request】" + (httpData.info || httpData.msg)
|
||||
});
|
||||
} else { //其他错误提示
|
||||
} else {
|
||||
store.commit("emptyUserInfo");
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine/index'
|
||||
})
|
||||
//其他错误提示
|
||||
if (res.isPrompt) {
|
||||
uni.showToast({
|
||||
title: httpData.info || httpData.msg,
|
||||
|
@ -378,5 +378,11 @@
|
||||
"promotion": "Promotion",
|
||||
"mt": "MT",
|
||||
"mine": "Mine"
|
||||
},
|
||||
"gotoLogin":{
|
||||
"title": "Prompt",
|
||||
"content": "At this moment, we need you to log in~",
|
||||
"login": "Go login",
|
||||
"cancel": "Cancel"
|
||||
}
|
||||
}
|
@ -73,7 +73,7 @@
|
||||
"text1": "数据市场",
|
||||
"text2": "进行中",
|
||||
"text3": "已完成",
|
||||
"text4": "回答",
|
||||
"text4": "已答题",
|
||||
"text5": "周期",
|
||||
"text6": "奖励",
|
||||
"text7": "去答题",
|
||||
@ -378,5 +378,11 @@
|
||||
"promotion": "推广",
|
||||
"mt": "社区",
|
||||
"mine": "我的"
|
||||
},
|
||||
"gotoLogin":{
|
||||
"title": "登录提醒",
|
||||
"content": "您还未登录,立即登录~",
|
||||
"login": "去登陆",
|
||||
"cancel": "取消"
|
||||
}
|
||||
}
|
6
main.js
6
main.js
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
|
||||
//数据管理中心
|
||||
import store from '@/config/store'
|
||||
Vue.prototype.$store = store;
|
||||
@ -23,9 +24,9 @@ import VueI18n from 'vue-i18n';
|
||||
import en from './locales/en.json'; // 引入英文语言包
|
||||
import zh from './locales/zh.json'; // 引入中文语言包
|
||||
Vue.use(VueI18n); // 使用vue-i18n插件
|
||||
|
||||
const savedLocale = localStorage.getItem('locale') || 'en';
|
||||
const i18n = new VueI18n({
|
||||
locale: 'en', // 设置默认语言
|
||||
locale: savedLocale, // 设置默认语言
|
||||
messages: { // 设置语言环境信息
|
||||
en: en,
|
||||
zh: zh,
|
||||
@ -40,6 +41,7 @@ import MescrollBody from "@/components/common/mescroll-uni/mescroll-body.vue";
|
||||
Vue.component("mescroll-body", MescrollBody);
|
||||
import VueClipboard from 'vue-clipboard2';
|
||||
Vue.use(VueClipboard);
|
||||
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
i18n, // 将vue-i18n实例挂载到Vue实例上
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name" : "问卷星",
|
||||
"appid" : "__UNI__F09DBA1",
|
||||
"description" : "问卷星",
|
||||
"name" : "MT",
|
||||
"appid" : "__UNI__E2BE304",
|
||||
"description" : "MT",
|
||||
"transformPx" : false,
|
||||
"icons" : [
|
||||
{
|
||||
@ -12,15 +12,13 @@
|
||||
"versionName" : "1.0.7",
|
||||
"versionCode" : 107,
|
||||
"app-plus" : {
|
||||
"softinputMode": "adjustResize",
|
||||
"statusBarAppearance": "dark",
|
||||
"softinputMode" : "adjustResize",
|
||||
"statusBarAppearance" : "dark",
|
||||
"modules" : {
|
||||
"Payment" : {},
|
||||
"OAuth" : {},
|
||||
"Messaging" : {},
|
||||
"Share" : {},
|
||||
"VideoPlayer" : {},
|
||||
"Push" : {}
|
||||
"Push" : {},
|
||||
"Barcode" : {},
|
||||
"Camera" : {},
|
||||
"Share" : {}
|
||||
},
|
||||
"distribute" : {
|
||||
"android" : {
|
||||
@ -65,14 +63,15 @@
|
||||
"version" : "2",
|
||||
"offline" : false
|
||||
}
|
||||
}
|
||||
},
|
||||
"share" : {}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"androidStyle" : "default",
|
||||
"android" : {
|
||||
"hdpi" : "static/images/index2-1.png",
|
||||
"hdpi" : "static/images/index1-1.png",
|
||||
"xhdpi" : "static/images/index2-1.png",
|
||||
"xxhdpi" : "static/images/index2-1.png"
|
||||
"xxhdpi" : "static/images/index3-1.png"
|
||||
}
|
||||
},
|
||||
"icons" : {
|
||||
@ -82,6 +81,9 @@
|
||||
"xxhdpi" : "static/images/logo2.png",
|
||||
"xxxhdpi" : "static/images/logo2.png"
|
||||
}
|
||||
},
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
}
|
||||
},
|
||||
"compilerVersion" : 3,
|
||||
|
13
pages.json
13
pages.json
@ -1,18 +1,17 @@
|
||||
{
|
||||
"pages": [
|
||||
{
|
||||
"path" : "pages/index/guide",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/index/index",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "home"
|
||||
}
|
||||
},{
|
||||
"path" : "pages/index/guide",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
},{
|
||||
"path": "pages/template/addTemplate",
|
||||
"style": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('setIndex.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('setIndex.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
|
||||
<view class="cell_list" @click="onPageJump('/pages/Setting/setPin')">
|
||||
<view class="cell_left txt">{{this.$t('setIndex.text1')}}</view>
|
||||
@ -87,13 +87,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
logout(){
|
||||
this.emptyUserInfo();
|
||||
uni.navigateTo({
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
title="Languages" backgroundColor="#fff"></uni-nav-bar>
|
||||
title="Languages" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view class="cell_list" @click="changeLang('en')">
|
||||
<view class="cell_left txt">English</view>
|
||||
<view class="cell_right">
|
||||
@ -48,13 +48,6 @@
|
||||
url: url+""
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
goto(url, type) {
|
||||
if (type == 2) {
|
||||
return uni.switchTab({ url: url })
|
||||
@ -68,6 +61,7 @@
|
||||
},
|
||||
changeLang(l){
|
||||
this.$i18n.locale = l;
|
||||
localStorage.setItem('locale', l);
|
||||
setTimeout(() => {
|
||||
uni.navigateBack();
|
||||
}, 500);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('setPasswork.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('setPasswork.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 94%; margin: 20rpx auto; padding: 30rpx 10rpx;">
|
||||
<uni-forms label-position="top" label-width="180rpx" :model="model" :rules="rules" ref="model">
|
||||
<uni-forms-item :label="$t('setPasswork.text1')" name="email" label-width="400rpx">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('setPin.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('setPin.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 94%; margin: 20rpx auto; padding: 30rpx 10rpx;">
|
||||
<uni-forms label-position="top" label-width="280rpx" :model="model" :rules="rules" ref="model">
|
||||
<uni-forms-item :label="$t('setPin.text3')" label-width="280rpx" name="newpassword">
|
||||
@ -75,13 +75,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
goto(url, type) {
|
||||
if (type == 2) {
|
||||
return uni.switchTab({ url: url })
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="info.title" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="info.title" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 96%; margin: 20rpx auto;">
|
||||
<image src='/static/images/Companyprofile.png' mode="widthFix" style="width: 100%;" v-if="title=='aboutus'"></image>
|
||||
<view class="table_content" style="padding: 15pt; font-size: 32rpx;"><jyf-parser :html="info.content"></jyf-parser></view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('help.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('help.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<!--<view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;">
|
||||
{{$t('help.text1')}}
|
||||
</view>
|
||||
@ -122,13 +122,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
handleClose(done) {
|
||||
this.dialogVisible = false;
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="info.title" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="info.title" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 96%; margin: 20rpx auto;">
|
||||
<image src='/static/images/Companyprofile.png' mode="widthFix" style="width: 100%;" v-if="title=='aboutus'"></image>
|
||||
<view class="table_content" style="padding: 15pt; font-size: 32rpx;"><jyf-parser :html="info.content"></jyf-parser></view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('about.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('about.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="padding: 60rpx 20rpx;">
|
||||
<view style="text-align: center;">
|
||||
<image src="/static/images/logo1.png" mode="cover" style="width: 300rpx; height: 300rpx; border: 2rpx solid #fff; border-radius: 20rpx; margin: auto;"></image>
|
||||
@ -86,13 +86,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
handleClose(done) {
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('address.add.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('address.add.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 94%; margin: 20rpx auto; padding: 30rpx 10rpx;">
|
||||
<uni-forms :modelValue="model" label-position="top" :rules="rules" ref="model" label-width="50%">
|
||||
<uni-forms-item :label="$t('address.add.text1')">
|
||||
@ -71,6 +71,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isSubmitting: false,
|
||||
model: {
|
||||
network: 'TRC-20',
|
||||
address: '',
|
||||
@ -123,13 +124,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
switchnetwork(type){
|
||||
this.model.network = type;
|
||||
this.$refs.popup.close();
|
||||
@ -164,6 +158,8 @@
|
||||
});
|
||||
},
|
||||
submit(){
|
||||
if (this.isSubmitting) return; // 如果正在提交,则不执行任何操作
|
||||
this.isSubmitting = true; // 设置正在提交的标志位为true
|
||||
this.$refs.model.validate().then(res=>{
|
||||
if(this.model.id != ''){
|
||||
let data = {
|
||||
@ -176,9 +172,12 @@
|
||||
uni.showToast({
|
||||
title: res.data.mes
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1000);
|
||||
}else{
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
});
|
||||
}else{
|
||||
@ -187,13 +186,18 @@
|
||||
uni.showToast({
|
||||
title: res.data.mes
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1000);
|
||||
}else{
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}).catch(err =>{})
|
||||
}).catch(err =>{
|
||||
this.isSubmitting = false;
|
||||
})
|
||||
}
|
||||
},
|
||||
//页面隐藏
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('address.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('address.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view class="cell_list" v-if="list.length > 0" v-for="item in list" :key="item.id" @click="onPageJump('/pages/address/add?id='+item.id)">
|
||||
<view class="cell_left txt">
|
||||
<view style="width: 80rpx; float: left;">
|
||||
@ -78,13 +78,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
handleClose(done) {
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container" :style="pageHeight">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :title="channel.name || $t('Chat')" :border="false"
|
||||
backgroundColor="#F5F5F5">
|
||||
backgroundColor="#F5F5F5" :statusBar="true">
|
||||
<template v-slot:right>
|
||||
<view class="nav-right">
|
||||
<uni-icons v-if="channel.type === 'O'" type="more-filled" size="24"
|
||||
|
@ -6,6 +6,7 @@
|
||||
right-icon="plus"
|
||||
@clickRight="goto('/pages/im/index')"
|
||||
:border="false"
|
||||
:statusBar="true"
|
||||
backgroundColor="F5f5f5">
|
||||
</uni-nav-bar>
|
||||
<view class="box-1">
|
||||
|
@ -5,6 +5,7 @@
|
||||
left-icon="left"
|
||||
@clickLeft="goto('/pages/im/index',2)"
|
||||
:border="false"
|
||||
:statusBar="true"
|
||||
backgroundColor="F5f5f5">
|
||||
</uni-nav-bar>
|
||||
<view class="box-1">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view style="padding-top: 80rpx;">
|
||||
<view style="padding-top: 100rpx;">
|
||||
<image src="/static/images/logo.png" style="width: 140rpx; height: 60rpx; float: left; margin-left: 20rpx;"></image>
|
||||
<view class="v1" style="line-height: 50rpx;" @click="selectlanguage">
|
||||
<!-- <uni-icons size="20" type="gift"></uni-icons> -->
|
||||
@ -22,12 +22,12 @@
|
||||
<view>
|
||||
<span style="font-size: 60rpx; font-weight: bold; float: left;">{{parseFloat(user.money).toFixed(4)}}</span>
|
||||
<span style="font-size: 40rpx; font-weight: 600; margin: 20rpx 10rpx auto 10rpx; float: left;">USDT</span>
|
||||
<image src="/static/images/index2.png" style="width: 14rpx; height: 10rpx; float: left; margin-top: 42rpx;"></image>
|
||||
<!-- <image src="/static/images/index2.png" style="width: 14rpx; height: 10rpx; float: left; margin-top: 42rpx;"></image> -->
|
||||
<view style="clear: both;"></view>
|
||||
</view>
|
||||
<view style="font-size: 30rpx; color: #999;">
|
||||
<span>{{$t('index.text3')}}</span>
|
||||
<span style="margin-left: 20rpx;">$ {{parseFloat(user.score).toFixed(2)}}</span>
|
||||
<span style="margin-left: 20rpx;">$ {{parseFloat(user.score || 0).toFixed(2)}}</span>
|
||||
</view>
|
||||
<view style="clear: both;"></view>
|
||||
</view>
|
||||
@ -189,7 +189,14 @@
|
||||
...mapState(['init'])
|
||||
},
|
||||
//第一次加载
|
||||
async onLoad(e) {
|
||||
onLoad(e) {
|
||||
|
||||
},
|
||||
created() {
|
||||
uni.hideTabBar()
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
uni.showLoading({
|
||||
title:this.$t('loading')
|
||||
})
|
||||
@ -197,7 +204,9 @@
|
||||
this.islogin = false;
|
||||
uni.hideLoading();
|
||||
}else{
|
||||
this.user = await getUserInfo(this.$i18n.locale);
|
||||
getUserInfo(this.$i18n.locale).then(res => {
|
||||
this.user = res;
|
||||
});
|
||||
}
|
||||
this.$http.get('/api/withdrawl/recent').then(res => {
|
||||
if(res.code == 0){
|
||||
@ -219,11 +228,6 @@
|
||||
uni.hideLoading()
|
||||
});
|
||||
},
|
||||
created() {
|
||||
uni.hideTabBar()
|
||||
},
|
||||
//页面显示
|
||||
onShow() {},
|
||||
//方法
|
||||
methods: {
|
||||
search(){
|
||||
@ -236,14 +240,29 @@
|
||||
},
|
||||
switchlan(l){
|
||||
this.$i18n.locale = l;
|
||||
localStorage.setItem('locale', l);
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
onPageJump(url) {
|
||||
uni.navigateTo({
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" :title="$t('forgot.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('forgot.title')" :statusBar="true" backgroundColor="#fff"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: 20rpx auto; padding: 30rpx 20rpx;" v-if="show==1">
|
||||
<view style="font-size: 64rpx; color: #333; font-weight: 700; margin-top: 40rpx;">{{$t('forgot.title')}}</view>
|
||||
<view style="color: #6C7278; font-weight: 500; font-size: 28rpx; margin-bottom: 40rpx; margin-top: 20rpx;">{{$t('forgot.text1')}}</view>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="minebg">
|
||||
<uni-nav-bar title="" backgroundColor="rgba(0, 0, 0, 1);" :shadow="false" :border="false" :fixed="true" height="50rpx"></uni-nav-bar>
|
||||
<uni-nav-bar title="" backgroundColor="rgba(0, 0, 0, 1);" :shadow="false" :border="false" :fixed="true" height="100rpx"></uni-nav-bar>
|
||||
<view class="v1">
|
||||
<uni-badge :text="noticeCount" absolute="rightTop" size="small" class="item" type="error">
|
||||
<uni-icons size="30" type="chat" @click="onTokenJump('/pages/mine/notice')"></uni-icons>
|
||||
@ -196,18 +196,46 @@
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
onTokenJump1(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.switchTab({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
copy(val = ''){
|
||||
const textArea = document.createElement('textarea');
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('personal.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('personal.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view class="cell_list" @click="dialogVisible = true">
|
||||
<view class="cell_left txt">{{$t('personal.text1')}}</view>
|
||||
<view class="cell_right arrow">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('login.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('login.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: 20rpx auto; padding: 30rpx 20rpx;">
|
||||
<view>
|
||||
<image src="/static/images/logo2.png" style="width: 50rpx; height: 50rpx; float: left;" fit="cover"></image>
|
||||
@ -22,7 +22,7 @@
|
||||
<button type="primary" round style="width: 100%;" @click="login()">{{$t('login.title')}}</button>
|
||||
</view>
|
||||
<view style="bottom: 0rpx; position: absolute; width:100vw; height: 100rpx;">
|
||||
<view style="font-size: 24rpx; color: #6C7278; font-weight: 500; text-align: center;">
|
||||
<view style="font-size: 32rpx; color: #6C7278; font-weight: 500; text-align: center;">
|
||||
{{$t('login.text7')}}
|
||||
<span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/signup')">{{$t('login.text8')}}</span>
|
||||
</view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('notice.title')" backgroundColor="#fff">
|
||||
:title="$t('notice.title')" backgroundColor="#fff" :statusBar="true">
|
||||
<template v-slot:right>
|
||||
<span style="font-size: 28rpx;" @click="allRead">{{$t('notice.text1')}}</span>
|
||||
</template>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('noticedetail.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('noticedetail.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: 40rpx auto;">
|
||||
<view style="font-weight: 700;font-size: 40rpx;color: #3D3D3D;line-height: 56rpx;text-transform: none;">
|
||||
{{model.title}}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('signup.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('signup.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: auto; padding: 30rpx 20rpx;">
|
||||
<view style="font-size: 64rpx; color: #333; font-weight: 700;">{{$t('signup.title')}}</view>
|
||||
<view style="color: #6C7278; font-weight: 500; font-size: 28rpx; margin-bottom: 40rpx; margin-top: 20rpx;">{{$t('signup.text1')}}</view>
|
||||
@ -33,7 +33,7 @@
|
||||
<button type="primary" round style="width: 100%;" @click="signup">{{$t('signup.title')}}</button>
|
||||
</view>
|
||||
<view style="bottom: 0rpx; width:100vw; height: 60rpx;">
|
||||
<view style="font-size: 24rpx; color: #6C7278; font-weight: 500; text-align: center;">
|
||||
<view style="font-size: 32rpx; color: #6C7278; font-weight: 500; text-align: center;">
|
||||
{{$t('signup.text13')}}
|
||||
<span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/login')">{{$t('forgot.text16')}}</span>
|
||||
</view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="minebg">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('upgrade.title')" backgroundColor="rgba(0,0,0,0,1)"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="false"
|
||||
:title="$t('upgrade.title')" backgroundColor="rgba(0,0,0,0,1)" :statusBar="true"></uni-nav-bar>
|
||||
<view style="font-size: 56rpx; color: #333; font-weight: 700; width: 80%;margin: 30rpx auto; text-align: center;">
|
||||
{{$t('upgrade.text1')}}
|
||||
</view>
|
||||
@ -36,18 +36,18 @@
|
||||
</view>
|
||||
</uni-col>
|
||||
<uni-col :span="24" v-for="item in list" :key='item.id'>
|
||||
<view :class="role_id==item.id?'u u1':'u'" @click="role_id=item.id">
|
||||
<view :class="role_id==item.id?'u u1':'u'" @click="change(item.id)">
|
||||
<uni-row>
|
||||
<uni-col :span="5">
|
||||
<image v-if="item.id==2" style="width: 80rpx; height: 80rpx;" src="/static/images/u3.png" mode="cover"></image>
|
||||
<image v-if="item.id==3" style="width: 80rpx; height: 80rpx;" src="/static/images/u1.png" mode="cover"></image>
|
||||
</uni-col>
|
||||
<uni-col :span="12">
|
||||
<view v-if="item.id==2" style="font-weight: 600;font-size: 30rpx;color: #3D3D3D;line-height: 80rpx;">{{$t('upgrade.text10')}} VIP</view>
|
||||
<view v-if="item.id==2" :style="rid == 3 ? 'color:#999' : 'color: #3D3D3D'" style="font-weight: 600;font-size: 30rpx;line-height: 80rpx;">{{$t('upgrade.text10')}} VIP</view>
|
||||
<view v-if="item.id==3" style="font-weight: 600;font-size: 30rpx;color: #3D3D3D;line-height: 40rpx;">{{$t('upgrade.text10')}} <br>{{$t('upgrade.text11')}}</view>
|
||||
</uni-col>
|
||||
<uni-col :span="7">
|
||||
<view style="font-weight: 600;font-size: 36rpx;color: #3D3D3D;line-height: 80rpx;">{{item.price}} USDT</view>
|
||||
<view :style="rid == 3 ? 'color:#999' : 'color: #3D3D3D'" style="font-weight: 600;font-size: 36rpx;line-height: 80rpx;">{{item.price}} USDT</view>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
</view>
|
||||
@ -81,6 +81,8 @@
|
||||
list:[],
|
||||
pingcode: '',
|
||||
role_id: 3,
|
||||
isSubmitting: false,
|
||||
rid: 0,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -90,6 +92,7 @@
|
||||
onLoad(e) {
|
||||
getUserInfo(this.$i18n.locale).then(res => {
|
||||
this.user = res;
|
||||
this.rid = res.role_id;
|
||||
});
|
||||
this.$http.get('/api/role/list?lang='+this.$i18n.locale).then(res => {
|
||||
if(res.code == 0){
|
||||
@ -102,6 +105,12 @@
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['setUserInfo']),
|
||||
change(id){
|
||||
if(tihs.rid > id){
|
||||
return;
|
||||
}
|
||||
this.role_id = id;
|
||||
},
|
||||
open(){
|
||||
let roleMoney = 0;
|
||||
this.list.forEach(item => {
|
||||
@ -137,6 +146,8 @@
|
||||
})
|
||||
},
|
||||
submit(){
|
||||
if (this.isSubmitting) return; // 如果正在提交,则不执行任何操作
|
||||
this.isSubmitting = true; // 设置正在提交的标志位为true
|
||||
let data = {
|
||||
role_id: this.role_id,
|
||||
trade_password: this.pingcode,
|
||||
@ -151,19 +162,17 @@
|
||||
this.pingcode = '';
|
||||
this.user.role_id = this.role_id;
|
||||
this.setUserInfo(this.user);
|
||||
this.isSubmitting = false;
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/mine/index'
|
||||
});
|
||||
}, 1000);
|
||||
}else{
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
}).catch(err=>{
|
||||
this.isSubmitting = false;
|
||||
});
|
||||
},
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('power.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('power.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view class="wallet1">
|
||||
<view style="width: 400; font-size: 24rpx; color: #fff;">{{$t('power.text1')}}</view>
|
||||
<view style="width: 500; font-size: 48rpx; color: #fff; line-height: 110rpx;">{{power.score.toFixed(2) }}</view>
|
||||
@ -134,13 +134,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
handleClose(done) {
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="minebg">
|
||||
<uni-nav-bar title="" backgroundColor="rgba(0, 0, 0, 1);" :shadow="false" :border="false" :fixed="true" height="50rpx"></uni-nav-bar>
|
||||
<uni-nav-bar title="" backgroundColor="rgba(0, 0, 0, 1);" :shadow="false" :border="false" :fixed="true" height="100rpx"></uni-nav-bar>
|
||||
<view class="v2">
|
||||
<view style="width: 160rpx; float: left;" @click="onTokenJump('/pages/mine/info')">
|
||||
<image style="width: 140rpx; height: 140rpx" :src="url" fit="cover"></image>
|
||||
@ -72,6 +72,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserInfo } from '@/config/utils';
|
||||
import zNavigation from '@/components/module/navigation.vue';
|
||||
import {
|
||||
mapState,
|
||||
@ -120,13 +121,16 @@
|
||||
uni.hideLoading();
|
||||
}else{
|
||||
this.islogin = true;
|
||||
this.user.money = parseFloat(this.userInfo.money);
|
||||
this.user.score = parseFloat(this.userInfo.score);
|
||||
this.user.username = this.userInfo.username;
|
||||
this.user.id = this.userInfo.id;
|
||||
if(this.userInfo.avatar !== '' && this.userInfo.avatar != null){
|
||||
this.user.avatar = this.userInfo.avatar;
|
||||
}
|
||||
getUserInfo(this.$i18n.locale).then(res => {
|
||||
this.user.money = parseFloat(res.money);
|
||||
this.user.score = parseFloat(res.score);
|
||||
this.user.username = res.username;
|
||||
this.user.id = res.id;
|
||||
if(res.avatar !== '' && res.avatar != null){
|
||||
this.user.avatar = res.avatar;
|
||||
}
|
||||
});
|
||||
|
||||
this.$http.get('/api/role/detail?lang='+this.$i18n.locale).then(res => {
|
||||
if(res.code == 0){
|
||||
this.user.role_id = res.data.id;
|
||||
@ -163,11 +167,25 @@
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
getTeamList(){
|
||||
this.$http.get('/api/team/list?lang='+this.$i18n.locale).then(res => {
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" title="Invite" backgroundColor="#fff"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
title="Invite" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<canvas canvas-id="poster" class="poster_canvas"></canvas>
|
||||
<view class="minebg">
|
||||
<view class="v1">
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" :title="$t('promotionList.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('promotionList.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<uni-row :gutter="0">
|
||||
<uni-col :span="24">
|
||||
<view class="wallet1">
|
||||
@ -100,13 +101,6 @@
|
||||
url: url
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
goto(url, type) {
|
||||
if (type == 2) {
|
||||
return uni.switchTab({ url: url })
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" :title="$t('answer.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('answer.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<!-- 内容切换 -->
|
||||
<view class="content">
|
||||
<!-- <view class="v2" style="margin-top: 20rpx" v-if="step==10">
|
||||
@ -351,13 +352,6 @@
|
||||
}
|
||||
}).exec(); // 注意这里的 exec() 是必须的,用于执行查询
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
//页面隐藏
|
||||
onHide() {},
|
||||
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :title="$t('toanswer.title')" :border="false" :shadow="false" :fixed="true" backgroundColor="#fff"></uni-nav-bar>
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :title="$t('toanswer.title')" :border="false"
|
||||
:shadow="false" :fixed="true" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="margin: 20rpx 3%; padding: 0rpx 10rpx 160rpx; ">
|
||||
<view class="cell_list" style="padding: 0rpx; margin-bottom: 30rpx;">
|
||||
<view class="cell_left txt">
|
||||
@ -84,6 +85,7 @@ import detailsVue from './details.vue';
|
||||
interest_rate: 0.00,
|
||||
rate: 0,
|
||||
},
|
||||
isSubmitting: false,
|
||||
pingcode: '',
|
||||
user: {},
|
||||
rules:{
|
||||
@ -142,6 +144,8 @@ import detailsVue from './details.vue';
|
||||
this.answerModel.rate = ((parseFloat(this.answerModel.interest_rate) - parseFloat(this.answerModel.price)) * 100 / parseFloat(this.answerModel.price)).toFixed(2)
|
||||
},
|
||||
Confirm(){
|
||||
if (this.isSubmitting) return; // 如果正在提交,则不执行任何操作
|
||||
this.isSubmitting = true; // 设置正在提交的标志位为true
|
||||
let data = {
|
||||
product_id: this.detail.id,
|
||||
quantity: this.answerModel.num,
|
||||
@ -155,8 +159,10 @@ import detailsVue from './details.vue';
|
||||
this.answerModel.interest_rate = this.detail.interest_rate;
|
||||
this.$refs.popup.close();
|
||||
uni.navigateBack();
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
}).catch(err => {
|
||||
this.isSubmitting = false;
|
||||
this.$refs.popup.close();
|
||||
uni.showToast({
|
||||
title:err,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar :title="$t('Questionnaire.title')" :border="false" :shadow="false" :fixed="true"
|
||||
backgroundColor="#fff"></uni-nav-bar>
|
||||
backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view>
|
||||
<view class="head-nav">
|
||||
<view class="tab" :class="navIndex==0?'activite':''" @click="checkIndex(0)">{{$t('Questionnaire.text1')}}</view>
|
||||
@ -165,11 +165,25 @@
|
||||
this.navIndex = index;
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
//页面隐藏
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('Select.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('Select.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view>
|
||||
<view style="background-color: #fff;">
|
||||
<uni-search-bar class="uni-mt-10" radius="10" v-model="kw" @clear="clear"
|
||||
@ -114,11 +114,25 @@
|
||||
})
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
search(){
|
||||
uni.showLoading({
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('results.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('results.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: 20rpx auto; padding: 30rpx 20rpx; text-align: center;">
|
||||
<image style="width: 200rpx; height: 200rpx; margin: 20rpx auto;" :src="resultsModel.images" mode="cover"></image>
|
||||
<view style="font-size: 56rpx; font-weight: 600; color: #333; margin-top: 20rpx;">-{{parseFloat(info.recive_amount).toFixed(4)}} USDT</view>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('fundrecords.title')" backgroundColor="#F3F3F3"></uni-nav-bar>
|
||||
:title="$t('fundrecords.title')" backgroundColor="#F3F3F3" :statusBar="true"></uni-nav-bar>
|
||||
<view class="content">
|
||||
<view class="nav">
|
||||
<!-- 选项卡水平方向滑动,scroll-with-animation是滑动到下一个选项时,有一个延时效果 -->
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('wallet.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('wallet.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view class="wallet1">
|
||||
<view class="txt">{{$t('wallet.text1')}}</view>
|
||||
<view style="width: 500; font-size: 48rpx; color: #fff; line-height: 110rpx;">{{user.money.toFixed(4)}}</view>
|
||||
@ -60,6 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserInfo } from '@/config/utils';
|
||||
import zPrompt from '@/components/common/prompt';
|
||||
import Popup from '@/components/common/popup';
|
||||
import {
|
||||
@ -91,9 +92,12 @@
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
this.user.money = parseFloat(this.userInfo.money);
|
||||
this.user.income_total = parseFloat(this.userInfo.income_total == null ? 0 : this.userInfo.income_total);
|
||||
this.user.withdrawl_total = parseFloat(this.userInfo.withdrawl_total == null ? 0 : this.userInfo.withdrawl_total);
|
||||
getUserInfo(this.$i18n.locale).then(res => {
|
||||
this.user.money = parseFloat(res.money);
|
||||
this.user.income_total = parseFloat(res.income_total == null ? 0 : res.income_total);
|
||||
this.user.withdrawl_total = parseFloat(res.withdrawl_total == null ? 0 : res.withdrawl_total);
|
||||
});
|
||||
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
@ -122,11 +126,25 @@
|
||||
})
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
//页面隐藏
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('putforward.title')" backgroundColor="#fff">
|
||||
:title="$t('putforward.title')" backgroundColor="#fff" :statusBar="true">
|
||||
<template v-slot:right>
|
||||
<image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=3')"></image>
|
||||
</template>
|
||||
@ -75,6 +75,7 @@
|
||||
data() {
|
||||
return {
|
||||
network:'TRC-20',
|
||||
isSubmitting: false,
|
||||
showCosts: false,
|
||||
costs: 0.00,
|
||||
totalAmount: 0.00,
|
||||
@ -195,18 +196,35 @@
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
submit(form){
|
||||
if (this.isSubmitting) return; // 如果正在提交,则不执行任何操作
|
||||
this.isSubmitting = true; // 设置正在提交的标志位为true
|
||||
if (parseFloat(this.putmodel.amount) < parseFloat(this.withdrawlminimum)) {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title:this.$t('putforward.text3', {par: this.withdrawlminimum})
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
return;
|
||||
}
|
||||
if (parseFloat(this.putmodel.amount) > parseFloat(this.user.money)){
|
||||
@ -214,6 +232,7 @@
|
||||
icon: 'error',
|
||||
title:this.$t('putforward.text4')
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
return;
|
||||
}
|
||||
if (parseFloat(this.putmodel.amount) <= this.costs){
|
||||
@ -221,6 +240,7 @@
|
||||
icon: 'error',
|
||||
title:this.$t('putforward.text4')
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
return;
|
||||
}
|
||||
this.$refs.form.validate().then(res=>{
|
||||
@ -241,14 +261,21 @@
|
||||
amount: '',
|
||||
pincode: '',
|
||||
}
|
||||
this.isSubmitting = false;
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/wallet/ExtractResults?id='+res.data.id
|
||||
});
|
||||
}, 1000);
|
||||
}else{
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
}).catch(err => {
|
||||
this.isSubmitting = false;
|
||||
});
|
||||
}).catch(err =>{})
|
||||
}).catch(err =>{
|
||||
this.isSubmitting = false;
|
||||
})
|
||||
}
|
||||
},
|
||||
//页面隐藏
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('recharge.title')" backgroundColor="#fff">
|
||||
:title="$t('recharge.title')" backgroundColor="#fff" :statusBar="true">
|
||||
<template v-slot:right>
|
||||
<image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=2')"></image>
|
||||
</template>
|
||||
@ -134,11 +134,25 @@
|
||||
})
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
submit(){
|
||||
if(this.rechargeModel.amount == ''){
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('SelectNetwork.title')" backgroundColor="#fff"></uni-nav-bar>
|
||||
:title="$t('SelectNetwork.title')" backgroundColor="#fff" :statusBar="true"></uni-nav-bar>
|
||||
<view style="width: 92%; margin: 20rpx auto; background-color: #F8F8F8; padding: 30rpx 20rpx;">
|
||||
<uni-row :gutter="0">
|
||||
<uni-col :span="2">
|
||||
@ -110,11 +110,25 @@
|
||||
})
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
switchnetwork(network){
|
||||
this.onchick = network;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true"
|
||||
:title="$t('transfer.title')" backgroundColor="#fff">
|
||||
:title="$t('transfer.title')" backgroundColor="#fff" :statusBar="true">
|
||||
<template v-slot:right>
|
||||
<image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=4')"></image>
|
||||
</template>
|
||||
@ -52,6 +52,7 @@
|
||||
return {
|
||||
productNameStr: '',
|
||||
network:'TRC-20',
|
||||
isSubmitting: false,
|
||||
transferModel:{
|
||||
email:"",
|
||||
amount: '',
|
||||
@ -139,19 +140,35 @@
|
||||
});
|
||||
},
|
||||
onTokenJump(url) {
|
||||
this.judgeLogin(() => {
|
||||
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
|
||||
uni.showModal({
|
||||
title: this.$t('gotoLogin.title'),
|
||||
content: this.$t('gotoLogin.content'),
|
||||
confirmText: this.$t('gotoLogin.login'),
|
||||
cancelText: this.$t('gotoLogin.cancel'),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine/login"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
submit(form){
|
||||
|
||||
if (this.isSubmitting) return; // 如果正在提交,则不执行任何操作
|
||||
this.isSubmitting = true; // 设置正在提交的标志位为true
|
||||
if (parseFloat(this.transferModel.amount) > parseFloat(this.user.money)){
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title:this.$t('putforward.text4')
|
||||
});
|
||||
this.isSubmitting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -172,10 +189,14 @@
|
||||
amount: '',
|
||||
pincode:"",
|
||||
};
|
||||
|
||||
this.isSubmitting = false;
|
||||
}else{
|
||||
this.isSubmitting = false;
|
||||
}
|
||||
});
|
||||
}).catch(err =>{console.log(err)})
|
||||
}).catch(err =>{
|
||||
this.isSubmitting = false;
|
||||
})
|
||||
}
|
||||
},
|
||||
//页面隐藏
|
||||
|
BIN
static/images/index1-1.png
Normal file
BIN
static/images/index1-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
static/images/index3-1.png
Normal file
BIN
static/images/index3-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
Loading…
x
Reference in New Issue
Block a user