Compare commits

...

2 Commits

Author SHA1 Message Date
xx
40caa96cc6 1 2025-06-10 17:10:40 +08:00
xx
a54e41054f 1 2025-06-10 04:22:54 +08:00
49 changed files with 401 additions and 202 deletions

View File

@ -71,7 +71,6 @@ export default {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
let page = currentPages[currentPages.length - 1]; let page = currentPages[currentPages.length - 1];
this.path = page.route; this.path = page.route;
console.log(this.path);
}, },
// //
methods: { methods: {

View File

@ -225,7 +225,7 @@ export const h5Login = function(type = "judge", callback) {
},500); },500);
} else { } else {
uni.showModal({ uni.showModal({
title: "Prompt", title: '',
content: "At this moment, we need you to log in~", content: "At this moment, we need you to log in~",
confirmText: "Go login", confirmText: "Go login",
cancelText: "Cancel", cancelText: "Cancel",

View File

@ -175,7 +175,12 @@ $http.dataFactory = async function(res) {
statusCode: 0, statusCode: 0,
errMsg: "【request】" + (httpData.info || httpData.msg) errMsg: "【request】" + (httpData.info || httpData.msg)
}); });
} else { //其他错误提示 } else {
store.commit("emptyUserInfo");
uni.navigateTo({
url:'/pages/mine/index'
})
//其他错误提示
if (res.isPrompt) { if (res.isPrompt) {
uni.showToast({ uni.showToast({
title: httpData.info || httpData.msg, title: httpData.info || httpData.msg,

View File

@ -64,7 +64,9 @@
"text6": "Available balance", "text6": "Available balance",
"text7": "Upgrade now", "text7": "Upgrade now",
"text8": "Insufficient user balance", "text8": "Insufficient user balance",
"tect9": "Cannot purchase VIP" "tect9": "Cannot purchase VIP",
"text10": "upgrade",
"text11": "channel partner"
}, },
"Questionnaire":{ "Questionnaire":{
"title": "Questionnaire", "title": "Questionnaire",
@ -367,7 +369,8 @@
"text21": "Identity portrait consistency", "text21": "Identity portrait consistency",
"text22": "Behavior pattern simulation", "text22": "Behavior pattern simulation",
"text23": "Equipment environment quarantine", "text23": "Equipment environment quarantine",
"text24": "Core advantage" "text24": "Core advantage",
"text25": "Select Language"
}, },
"nav":{ "nav":{
"home": "Home", "home": "Home",
@ -375,5 +378,11 @@
"promotion": "Promotion", "promotion": "Promotion",
"mt": "MT", "mt": "MT",
"mine": "Mine" "mine": "Mine"
},
"gotoLogin":{
"title": "Prompt",
"content": "At this moment, we need you to log in~",
"login": "Go login",
"cancel": "Cancel"
} }
} }

View File

@ -64,14 +64,16 @@
"text6": "可用余额", "text6": "可用余额",
"text7": "立即升级", "text7": "立即升级",
"text8": "用户余额不足", "text8": "用户余额不足",
"tect9": "不能购买VIP" "tect9": "不能购买VIP",
"text10": "升级",
"text11": "渠道商"
}, },
"Questionnaire":{ "Questionnaire":{
"title": "问卷", "title": "问卷",
"text1": "数据市场", "text1": "数据市场",
"text2": "进行中", "text2": "进行中",
"text3": "已完成", "text3": "已完成",
"text4": "回答", "text4": "已答题",
"text5": "周期", "text5": "周期",
"text6": "奖励", "text6": "奖励",
"text7": "去答题", "text7": "去答题",
@ -367,7 +369,8 @@
"text21": "身份画像一致性", "text21": "身份画像一致性",
"text22": "行为模式模拟", "text22": "行为模式模拟",
"text23": "设备环境隔离", "text23": "设备环境隔离",
"text24": "核心优势" "text24": "核心优势",
"text25": "选择语言"
}, },
"nav":{ "nav":{
"home": "首页", "home": "首页",
@ -375,5 +378,11 @@
"promotion": "推广", "promotion": "推广",
"mt": "社区", "mt": "社区",
"mine": "我的" "mine": "我的"
},
"gotoLogin":{
"title": "登录提醒",
"content": "您还未登录,立即登录~",
"login": "去登陆",
"cancel": "取消"
} }
} }

View File

@ -1,5 +1,6 @@
import Vue from 'vue' import Vue from 'vue'
import App from './App' import App from './App'
//数据管理中心 //数据管理中心
import store from '@/config/store' import store from '@/config/store'
Vue.prototype.$store = store; Vue.prototype.$store = store;
@ -23,9 +24,9 @@ import VueI18n from 'vue-i18n';
import en from './locales/en.json'; // 引入英文语言包 import en from './locales/en.json'; // 引入英文语言包
import zh from './locales/zh.json'; // 引入中文语言包 import zh from './locales/zh.json'; // 引入中文语言包
Vue.use(VueI18n); // 使用vue-i18n插件 Vue.use(VueI18n); // 使用vue-i18n插件
const savedLocale = localStorage.getItem('locale') || 'en';
const i18n = new VueI18n({ const i18n = new VueI18n({
locale: 'en', // 设置默认语言 locale: savedLocale, // 设置默认语言
messages: { // 设置语言环境信息 messages: { // 设置语言环境信息
en: en, en: en,
zh: zh, zh: zh,
@ -40,6 +41,7 @@ import MescrollBody from "@/components/common/mescroll-uni/mescroll-body.vue";
Vue.component("mescroll-body", MescrollBody); Vue.component("mescroll-body", MescrollBody);
import VueClipboard from 'vue-clipboard2'; import VueClipboard from 'vue-clipboard2';
Vue.use(VueClipboard); Vue.use(VueClipboard);
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
i18n, // 将vue-i18n实例挂载到Vue实例上 i18n, // 将vue-i18n实例挂载到Vue实例上

View File

@ -1,7 +1,7 @@
{ {
"name" : "问卷星", "name" : "MT",
"appid" : "__UNI__F09DBA1", "appid" : "__UNI__E2BE304",
"description" : "问卷星", "description" : "MT",
"transformPx" : false, "transformPx" : false,
"icons" : [ "icons" : [
{ {
@ -12,15 +12,13 @@
"versionName" : "1.0.7", "versionName" : "1.0.7",
"versionCode" : 107, "versionCode" : 107,
"app-plus" : { "app-plus" : {
"softinputMode": "adjustResize", "softinputMode" : "adjustResize",
"statusBarAppearance": "dark", "statusBarAppearance" : "dark",
"modules" : { "modules" : {
"Payment" : {}, "Push" : {},
"OAuth" : {}, "Barcode" : {},
"Messaging" : {}, "Camera" : {},
"Share" : {}, "Share" : {}
"VideoPlayer" : {},
"Push" : {}
}, },
"distribute" : { "distribute" : {
"android" : { "android" : {
@ -65,14 +63,15 @@
"version" : "2", "version" : "2",
"offline" : false "offline" : false
} }
} },
"share" : {}
}, },
"splashscreen" : { "splashscreen" : {
"androidStyle" : "default", "androidStyle" : "default",
"android" : { "android" : {
"hdpi" : "static/images/index2-1.png", "hdpi" : "static/images/index1-1.png",
"xhdpi" : "static/images/index2-1.png", "xhdpi" : "static/images/index2-1.png",
"xxhdpi" : "static/images/index2-1.png" "xxhdpi" : "static/images/index3-1.png"
} }
}, },
"icons" : { "icons" : {
@ -82,6 +81,9 @@
"xxhdpi" : "static/images/logo2.png", "xxhdpi" : "static/images/logo2.png",
"xxxhdpi" : "static/images/logo2.png" "xxxhdpi" : "static/images/logo2.png"
} }
},
"ios" : {
"dSYMs" : false
} }
}, },
"compilerVersion" : 3, "compilerVersion" : 3,

View File

@ -1,18 +1,17 @@
{ {
"pages": [ "pages": [
{
"path" : "pages/index/guide",
"style" :
{
"navigationBarTitleText" : ""
}
},
{ {
"path" : "pages/index/index", "path" : "pages/index/index",
"style" : "style" :
{ {
"navigationBarTitleText": "home" "navigationBarTitleText": "home"
} }
},{
"path" : "pages/index/guide",
"style" :
{
"navigationBarTitleText" : ""
}
},{ },{
"path": "pages/template/addTemplate", "path": "pages/template/addTemplate",
"style": { "style": {

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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_list" @click="onPageJump('/pages/Setting/setPin')">
<view class="cell_left txt">{{this.$t('setIndex.text1')}}</view> <view class="cell_left txt">{{this.$t('setIndex.text1')}}</view>
@ -87,13 +87,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
logout(){ logout(){
this.emptyUserInfo(); this.emptyUserInfo();
uni.navigateTo({ uni.navigateTo({

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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_list" @click="changeLang('en')">
<view class="cell_left txt">English</view> <view class="cell_left txt">English</view>
<view class="cell_right"> <view class="cell_right">
@ -48,13 +48,6 @@
url: url+"" url: url+""
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
goto(url, type) { goto(url, type) {
if (type == 2) { if (type == 2) {
return uni.switchTab({ url: url }) return uni.switchTab({ url: url })
@ -68,6 +61,7 @@
}, },
changeLang(l){ changeLang(l){
this.$i18n.locale = l; this.$i18n.locale = l;
localStorage.setItem('locale', l);
setTimeout(() => { setTimeout(() => {
uni.navigateBack(); uni.navigateBack();
}, 500); }, 500);

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <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 label-position="top" label-width="180rpx" :model="model" :rules="rules" ref="model">
<uni-forms-item :label="$t('setPasswork.text1')" name="email" label-width="400rpx"> <uni-forms-item :label="$t('setPasswork.text1')" name="email" label-width="400rpx">

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <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 label-position="top" label-width="280rpx" :model="model" :rules="rules" ref="model">
<uni-forms-item :label="$t('setPin.text3')" label-width="280rpx" name="newpassword"> <uni-forms-item :label="$t('setPin.text3')" label-width="280rpx" name="newpassword">
@ -75,13 +75,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
goto(url, type) { goto(url, type) {
if (type == 2) { if (type == 2) {
return uni.switchTab({ url: url }) return uni.switchTab({ url: url })

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <view style="width: 96%; margin: 20rpx auto;">
<image src='/static/images/Companyprofile.png' mode="widthFix" style="width: 100%;" v-if="title=='aboutus'"></image> <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> <view class="table_content" style="padding: 15pt; font-size: 32rpx;"><jyf-parser :html="info.content"></jyf-parser></view>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <!--<view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;">
{{$t('help.text1')}} {{$t('help.text1')}}
</view> </view>
@ -122,13 +122,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
}, },

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <view style="width: 96%; margin: 20rpx auto;">
<image src='/static/images/Companyprofile.png' mode="widthFix" style="width: 100%;" v-if="title=='aboutus'"></image> <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> <view class="table_content" style="padding: 15pt; font-size: 32rpx;"><jyf-parser :html="info.content"></jyf-parser></view>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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="padding: 60rpx 20rpx;">
<view style="text-align: center;"> <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> <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 url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <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 :modelValue="model" label-position="top" :rules="rules" ref="model" label-width="50%">
<uni-forms-item :label="$t('address.add.text1')"> <uni-forms-item :label="$t('address.add.text1')">
@ -71,6 +71,7 @@
export default { export default {
data() { data() {
return { return {
isSubmitting: false,
model: { model: {
network: 'TRC-20', network: 'TRC-20',
address: '', address: '',
@ -123,13 +124,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
switchnetwork(type){ switchnetwork(type){
this.model.network = type; this.model.network = type;
this.$refs.popup.close(); this.$refs.popup.close();
@ -164,6 +158,8 @@
}); });
}, },
submit(){ submit(){
if (this.isSubmitting) return; //
this.isSubmitting = true; // true
this.$refs.model.validate().then(res=>{ this.$refs.model.validate().then(res=>{
if(this.model.id != ''){ if(this.model.id != ''){
let data = { let data = {
@ -176,9 +172,12 @@
uni.showToast({ uni.showToast({
title: res.data.mes title: res.data.mes
}); });
this.isSubmitting = false;
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 1000); }, 1000);
}else{
this.isSubmitting = false;
} }
}); });
}else{ }else{
@ -187,13 +186,18 @@
uni.showToast({ uni.showToast({
title: res.data.mes title: res.data.mes
}); });
this.isSubmitting = false;
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 1000); }, 1000);
}else{
this.isSubmitting = false;
} }
}); });
} }
}).catch(err =>{}) }).catch(err =>{
this.isSubmitting = false;
})
} }
}, },
// //

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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_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 class="cell_left txt">
<view style="width: 80rpx; float: left;"> <view style="width: 80rpx; float: left;">
@ -78,13 +78,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="container" :style="pageHeight"> <view class="container" :style="pageHeight">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :title="channel.name || $t('Chat')" :border="false" <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> <template v-slot:right>
<view class="nav-right"> <view class="nav-right">
<uni-icons v-if="channel.type === 'O'" type="more-filled" size="24" <uni-icons v-if="channel.type === 'O'" type="more-filled" size="24"

View File

@ -6,6 +6,7 @@
right-icon="plus" right-icon="plus"
@clickRight="goto('/pages/im/index')" @clickRight="goto('/pages/im/index')"
:border="false" :border="false"
:statusBar="true"
backgroundColor="F5f5f5"> backgroundColor="F5f5f5">
</uni-nav-bar> </uni-nav-bar>
<view class="box-1"> <view class="box-1">

View File

@ -5,6 +5,7 @@
left-icon="left" left-icon="left"
@clickLeft="goto('/pages/im/index',2)" @clickLeft="goto('/pages/im/index',2)"
:border="false" :border="false"
:statusBar="true"
backgroundColor="F5f5f5"> backgroundColor="F5f5f5">
</uni-nav-bar> </uni-nav-bar>
<view class="box-1"> <view class="box-1">

View File

@ -20,7 +20,7 @@
If you are looking for an easy way to make money with surveys, you can join the "MMT" community. If you are looking for an easy way to make money with surveys, you can join the "MMT" community.
</view> </view>
</view> </view>
<view style="bottom: 0rpx; position: absolute; width:100vw; height: 120rpx; "> <view style="bottom: 0rpx; position: absolute; width:100vw; height: 200rpx; ">
<button style="width: 86%; background-color: #1D61E7; color: #fff; margin: auto;" @click="button">{{text}}</button> <button style="width: 86%; background-color: #1D61E7; color: #fff; margin: auto;" @click="button">{{text}}</button>
</view> </view>
</view> </view>
@ -79,5 +79,5 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/style/mixin.scss'; @import '@/style/mixin.scss';
body{background-color: #fff;} body{background-color: #fff;}
.page{min-height: 96vh; padding-top: 100rpx;} .page{min-height: 96vh; padding-top: 200rpx;}
</style> </style>

View File

@ -1,12 +1,15 @@
<template> <template>
<view class="page"> <view class="page">
<view style="margin-top: 60rpx;"> <view style="padding-top: 100rpx;">
<image src="/static/images/logo.png" style="width: 140rpx; height: 60rpx; float: left; margin-left: 20rpx;"></image> <image src="/static/images/logo.png" style="width: 140rpx; height: 60rpx; float: left; margin-left: 20rpx;"></image>
<view class="v1"> <view class="v1" style="line-height: 50rpx;" @click="selectlanguage">
<!-- <uni-icons size="20" type="gift"></uni-icons> --> <!-- <uni-icons size="20" type="gift"></uni-icons> -->
<uni-badge @click="onPageJump('/pages/mine/notice')" class="uni-badge-left-margin" :is-dot="true" text="0" :offset="[5, 10]" absolute="rightTop" size="small"> <!-- <uni-badge @click="onPageJump('/pages/mine/notice')" class="uni-badge-left-margin" :is-dot="true" text="0" :offset="[5, 10]" absolute="rightTop" size="small">
<uni-icons size="30" type="notification" style="margin-left: 40rpx;"></uni-icons> <uni-icons size="30" type="notification" style="margin-left: 40rpx;"></uni-icons>
</uni-badge> </uni-badge> -->
<span style="float: right; margin-left: 10rpx; font-size: 28rpx;" v-if="$i18n.locale == 'en'">EN</span>
<span style="float: right; margin-left: 10rpx; font-size: 28rpx;" v-if="$i18n.locale == 'zh'">ZH</span>
<image src="/static/images/earth.png" style="width: 40rpx; height: 40rpx; float: right;"></image>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -19,12 +22,12 @@
<view> <view>
<span style="font-size: 60rpx; font-weight: bold; float: left;">{{parseFloat(user.money).toFixed(4)}}</span> <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> <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 style="clear: both;"></view>
</view> </view>
<view style="font-size: 30rpx; color: #999;"> <view style="font-size: 30rpx; color: #999;">
<span>{{$t('index.text3')}}</span> <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>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -92,7 +95,7 @@
</view> </view>
<view style="font-size: 24rpx; font-weight: 400; color: #999; line-height: 40rpx;"> <view style="font-size: 24rpx; font-weight: 400; color: #999; line-height: 40rpx;">
<view style="float: left; color: #333; font-size: 32rpx; font-weight: 500; line-height: 80rpx;"> <view style="float: left; color: #333; font-size: 32rpx; font-weight: 500; line-height: 80rpx;">
{{$t('index.text10')}}: <span style="font-size: 40rpx;">${{parseFloat(item.price).toFixed(2)}} </span> {{$t('index.text10')}}: <span style="font-size: 40rpx;">${{parseFloat(item.interest_rate).toFixed(2)}} </span>
</view> </view>
<view style="float: right;"> <view style="float: right;">
<button type="primary" class="b" @click="onTokenJump('/pages/questionnaire/details?id='+item.id)">To answer</button> <button type="primary" class="b" @click="onTokenJump('/pages/questionnaire/details?id='+item.id)">To answer</button>
@ -143,6 +146,19 @@
</view> </view>
</uni-section> </uni-section>
</view> </view>
<uni-popup ref="popup" background-color="#fff">
<view style="width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx;">
<view style="font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx;">{{$t('index.text25')}}</view>
<view style="padding-bottom: 20rpx; width: 100%;">
<view @click="switchlan('en')" style="height: 80rpx; line-height: 80rpx;" :style = "$i18n.locale == 'en' ? 'background-color:#1D61E7; color: #fff' : 'color: #333'">
<view style="font-weight: 600;font-size: 32rpx; margin-left: 20rpx;">English</view>
</view>
<view @click="switchlan('zh')" style="height: 80rpx; line-height: 80rpx;" :style = "$i18n.locale == 'zh' ? 'background-color:#1D61E7; color: #fff' : 'color: #333'">
<view style="font-weight: 600;font-size: 32rpx;margin-left: 20rpx;">简体中文</view>
</view>
</view>
</view>
</uni-popup>
<zNavigation></zNavigation> <zNavigation></zNavigation>
</view> </view>
</template> </template>
@ -173,7 +189,14 @@
...mapState(['init']) ...mapState(['init'])
}, },
// //
async onLoad(e) { onLoad(e) {
},
created() {
uni.hideTabBar()
},
//
onShow() {
uni.showLoading({ uni.showLoading({
title:this.$t('loading') title:this.$t('loading')
}) })
@ -181,7 +204,9 @@
this.islogin = false; this.islogin = false;
uni.hideLoading(); uni.hideLoading();
}else{ }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 => { this.$http.get('/api/withdrawl/recent').then(res => {
if(res.code == 0){ if(res.code == 0){
@ -203,11 +228,6 @@
uni.hideLoading() uni.hideLoading()
}); });
}, },
created() {
uni.hideTabBar()
},
//
onShow() {},
// //
methods: { methods: {
search(){ search(){
@ -215,12 +235,34 @@
url: "/pages/questionnaire/select?kw="+this.kw url: "/pages/questionnaire/select?kw="+this.kw
}); });
}, },
selectlanguage(){
this.$refs.popup.open('center');
},
switchlan(l){
this.$i18n.locale = l;
localStorage.setItem('locale', l);
this.$refs.popup.close();
},
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
onPageJump(url) { onPageJump(url) {
uni.navigateTo({ uni.navigateTo({
@ -257,6 +299,7 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/style/mixin.scss'; @import '@/style/mixin.scss';
::v-deep .uni-popup__wrapper{border-radius: 30rpx;}
::v-deep .uni-searchbar__box{padding: 30rpx 20rpx;} ::v-deep .uni-searchbar__box{padding: 30rpx 20rpx;}
::v-deep .uni-searchbar__box{height: 100rpx;} ::v-deep .uni-searchbar__box{height: 100rpx;}
::v-deep .uni-noticebar-icon{margin-top: 8rpx;} ::v-deep .uni-noticebar-icon{margin-top: 8rpx;}

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="page"> <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="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="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> <view style="color: #6C7278; font-weight: 500; font-size: 28rpx; margin-bottom: 40rpx; margin-top: 20rpx;">{{$t('forgot.text1')}}</view>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="minebg"> <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"> <view class="v1">
<uni-badge :text="noticeCount" absolute="rightTop" size="small" class="item" type="error"> <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> <uni-icons size="30" type="chat" @click="onTokenJump('/pages/mine/notice')"></uni-icons>
@ -196,18 +196,46 @@
}); });
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
onTokenJump1(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({ uni.switchTab({
url: url url: url
}); });
}); }
}, },
copy(val = ''){ copy(val = ''){
const textArea = document.createElement('textarea'); const textArea = document.createElement('textarea');

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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_list" @click="dialogVisible = true">
<view class="cell_left txt">{{$t('personal.text1')}}</view> <view class="cell_left txt">{{$t('personal.text1')}}</view>
<view class="cell_right arrow"> <view class="cell_right arrow">

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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 style="width: 92%; margin: 20rpx auto; padding: 30rpx 20rpx;">
<view> <view>
<image src="/static/images/logo2.png" style="width: 50rpx; height: 50rpx; float: left;" fit="cover"></image> <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> <button type="primary" round style="width: 100%;" @click="login()">{{$t('login.title')}}</button>
</view> </view>
<view style="bottom: 0rpx; position: absolute; width:100vw; height: 100rpx;"> <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')}} {{$t('login.text7')}}
<span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/signup')">{{$t('login.text8')}}</span> <span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/signup')">{{$t('login.text8')}}</span>
</view> </view>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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> <template v-slot:right>
<span style="font-size: 28rpx;" @click="allRead">{{$t('notice.text1')}}</span> <span style="font-size: 28rpx;" @click="allRead">{{$t('notice.text1')}}</span>
</template> </template>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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="width: 92%; margin: 40rpx auto;">
<view style="font-weight: 700;font-size: 40rpx;color: #3D3D3D;line-height: 56rpx;text-transform: none;"> <view style="font-weight: 700;font-size: 40rpx;color: #3D3D3D;line-height: 56rpx;text-transform: none;">
{{model.title}} {{model.title}}

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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="width: 92%; margin: auto; padding: 30rpx 20rpx;">
<view style="font-size: 64rpx; color: #333; font-weight: 700;">{{$t('signup.title')}}</view> <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> <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> <button type="primary" round style="width: 100%;" @click="signup">{{$t('signup.title')}}</button>
</view> </view>
<view style="bottom: 0rpx; width:100vw; height: 60rpx;"> <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')}} {{$t('signup.text13')}}
<span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/login')">{{$t('forgot.text16')}}</span> <span style="color: #4D81E7; margin-left: 20rpx;" @click="onPageJump('/pages/mine/login')">{{$t('forgot.text16')}}</span>
</view> </view>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="minebg"> <view class="minebg">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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)"></uni-nav-bar> :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;"> <view style="font-size: 56rpx; color: #333; font-weight: 700; width: 80%;margin: 30rpx auto; text-align: center;">
{{$t('upgrade.text1')}} {{$t('upgrade.text1')}}
</view> </view>
@ -36,18 +36,18 @@
</view> </view>
</uni-col> </uni-col>
<uni-col :span="24" v-for="item in list" :key='item.id'> <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-row>
<uni-col :span="5"> <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==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> <image v-if="item.id==3" style="width: 80rpx; height: 80rpx;" src="/static/images/u1.png" mode="cover"></image>
</uni-col> </uni-col>
<uni-col :span="12"> <uni-col :span="12">
<view v-if="item.id==2" style="font-weight: 600;font-size: 30rpx;color: #3D3D3D;line-height: 80rpx;">upgrade 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;">upgrade <br>channel partner</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>
<uni-col :span="7"> <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-col>
</uni-row> </uni-row>
</view> </view>
@ -81,6 +81,8 @@
list:[], list:[],
pingcode: '', pingcode: '',
role_id: 3, role_id: 3,
isSubmitting: false,
rid: 0,
} }
}, },
computed: { computed: {
@ -90,6 +92,7 @@
onLoad(e) { onLoad(e) {
getUserInfo(this.$i18n.locale).then(res => { getUserInfo(this.$i18n.locale).then(res => {
this.user = res; this.user = res;
this.rid = res.role_id;
}); });
this.$http.get('/api/role/list?lang='+this.$i18n.locale).then(res => { this.$http.get('/api/role/list?lang='+this.$i18n.locale).then(res => {
if(res.code == 0){ if(res.code == 0){
@ -102,6 +105,12 @@
}, },
methods: { methods: {
...mapMutations(['setUserInfo']), ...mapMutations(['setUserInfo']),
change(id){
if(tihs.rid > id){
return;
}
this.role_id = id;
},
open(){ open(){
let roleMoney = 0; let roleMoney = 0;
this.list.forEach(item => { this.list.forEach(item => {
@ -137,6 +146,8 @@
}) })
}, },
submit(){ submit(){
if (this.isSubmitting) return; //
this.isSubmitting = true; // true
let data = { let data = {
role_id: this.role_id, role_id: this.role_id,
trade_password: this.pingcode, trade_password: this.pingcode,
@ -151,19 +162,17 @@
this.pingcode = ''; this.pingcode = '';
this.user.role_id = this.role_id; this.user.role_id = this.role_id;
this.setUserInfo(this.user); this.setUserInfo(this.user);
this.isSubmitting = false;
setTimeout(() => { setTimeout(() => {
uni.switchTab({ uni.switchTab({
url: '/pages/mine/index' url: '/pages/mine/index'
}); });
}, 1000); }, 1000);
}else{
this.isSubmitting = false;
} }
}); }).catch(err=>{
}, this.isSubmitting = false;
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
}); });
}, },
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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 class="wallet1">
<view style="width: 400; font-size: 24rpx; color: #fff;">{{$t('power.text1')}}</view> <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> <view style="width: 500; font-size: 48rpx; color: #fff; line-height: 110rpx;">{{power.score.toFixed(2) }}</view>
@ -134,13 +134,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="minebg"> <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 class="v2">
<view style="width: 160rpx; float: left;" @click="onTokenJump('/pages/mine/info')"> <view style="width: 160rpx; float: left;" @click="onTokenJump('/pages/mine/info')">
<image style="width: 140rpx; height: 140rpx" :src="url" fit="cover"></image> <image style="width: 140rpx; height: 140rpx" :src="url" fit="cover"></image>
@ -72,6 +72,7 @@
</template> </template>
<script> <script>
import { getUserInfo } from '@/config/utils';
import zNavigation from '@/components/module/navigation.vue'; import zNavigation from '@/components/module/navigation.vue';
import { import {
mapState, mapState,
@ -120,13 +121,16 @@
uni.hideLoading(); uni.hideLoading();
}else{ }else{
this.islogin = true; this.islogin = true;
this.user.money = parseFloat(this.userInfo.money); getUserInfo(this.$i18n.locale).then(res => {
this.user.score = parseFloat(this.userInfo.score); this.user.money = parseFloat(res.money);
this.user.username = this.userInfo.username; this.user.score = parseFloat(res.score);
this.user.id = this.userInfo.id; this.user.username = res.username;
if(this.userInfo.avatar !== '' && this.userInfo.avatar != null){ this.user.id = res.id;
this.user.avatar = this.userInfo.avatar; if(res.avatar !== '' && res.avatar != null){
this.user.avatar = res.avatar;
} }
});
this.$http.get('/api/role/detail?lang='+this.$i18n.locale).then(res => { this.$http.get('/api/role/detail?lang='+this.$i18n.locale).then(res => {
if(res.code == 0){ if(res.code == 0){
this.user.role_id = res.data.id; this.user.role_id = res.data.id;
@ -163,11 +167,25 @@
}); });
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
getTeamList(){ getTeamList(){
this.$http.get('/api/team/list?lang='+this.$i18n.locale).then(res => { this.$http.get('/api/team/list?lang='+this.$i18n.locale).then(res => {

View File

@ -1,6 +1,7 @@
<template> <template>
<view> <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> <canvas canvas-id="poster" class="poster_canvas"></canvas>
<view class="minebg"> <view class="minebg">
<view class="v1"> <view class="v1">

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="page"> <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-row :gutter="0">
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet1"> <view class="wallet1">
@ -100,13 +101,6 @@
url: url url: url
}); });
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
goto(url, type) { goto(url, type) {
if (type == 2) { if (type == 2) {
return uni.switchTab({ url: url }) return uni.switchTab({ url: url })

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="page"> <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="content">
<!-- <view class="v2" style="margin-top: 20rpx" v-if="step==10"> <!-- <view class="v2" style="margin-top: 20rpx" v-if="step==10">
@ -351,13 +352,6 @@
} }
}).exec(); // exec() }).exec(); // exec()
}, },
onTokenJump(url) {
this.judgeLogin(() => {
uni.navigateTo({
url: url
});
});
},
}, },
// //
onHide() {}, onHide() {},

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="page"> <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 style="margin: 20rpx 3%; padding: 0rpx 10rpx 160rpx; ">
<view class="cell_list" style="padding: 0rpx; margin-bottom: 30rpx;"> <view class="cell_list" style="padding: 0rpx; margin-bottom: 30rpx;">
<view class="cell_left txt"> <view class="cell_left txt">
@ -84,6 +85,7 @@ import detailsVue from './details.vue';
interest_rate: 0.00, interest_rate: 0.00,
rate: 0, rate: 0,
}, },
isSubmitting: false,
pingcode: '', pingcode: '',
user: {}, user: {},
rules:{ 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) this.answerModel.rate = ((parseFloat(this.answerModel.interest_rate) - parseFloat(this.answerModel.price)) * 100 / parseFloat(this.answerModel.price)).toFixed(2)
}, },
Confirm(){ Confirm(){
if (this.isSubmitting) return; //
this.isSubmitting = true; // true
let data = { let data = {
product_id: this.detail.id, product_id: this.detail.id,
quantity: this.answerModel.num, quantity: this.answerModel.num,
@ -155,8 +159,10 @@ import detailsVue from './details.vue';
this.answerModel.interest_rate = this.detail.interest_rate; this.answerModel.interest_rate = this.detail.interest_rate;
this.$refs.popup.close(); this.$refs.popup.close();
uni.navigateBack(); uni.navigateBack();
this.isSubmitting = false;
} }
}).catch(err => { }).catch(err => {
this.isSubmitting = false;
this.$refs.popup.close(); this.$refs.popup.close();
uni.showToast({ uni.showToast({
title:err, title:err,

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar :title="$t('Questionnaire.title')" :border="false" :shadow="false" :fixed="true" <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>
<view class="head-nav"> <view class="head-nav">
<view class="tab" :class="navIndex==0?'activite':''" @click="checkIndex(0)">{{$t('Questionnaire.text1')}}</view> <view class="tab" :class="navIndex==0?'activite':''" @click="checkIndex(0)">{{$t('Questionnaire.text1')}}</view>
@ -165,11 +165,25 @@
this.navIndex = index; this.navIndex = index;
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
}, },
// //

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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>
<view style="background-color: #fff;"> <view style="background-color: #fff;">
<uni-search-bar class="uni-mt-10" radius="10" v-model="kw" @clear="clear" <uni-search-bar class="uni-mt-10" radius="10" v-model="kw" @clear="clear"
@ -114,11 +114,25 @@
}) })
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
search(){ search(){
uni.showLoading({ uni.showLoading({

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <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> <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> <view style="font-size: 56rpx; font-weight: 600; color: #333; margin-top: 20rpx;">-{{parseFloat(info.recive_amount).toFixed(4)}} USDT</view>

View File

@ -2,7 +2,7 @@
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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="content">
<view class="nav"> <view class="nav">
<!-- 选项卡水平方向滑动scroll-with-animation是滑动到下一个选项时有一个延时效果 --> <!-- 选项卡水平方向滑动scroll-with-animation是滑动到下一个选项时有一个延时效果 -->

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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="wallet1">
<view class="txt">{{$t('wallet.text1')}}</view> <view class="txt">{{$t('wallet.text1')}}</view>
<view style="width: 500; font-size: 48rpx; color: #fff; line-height: 110rpx;">{{user.money.toFixed(4)}}</view> <view style="width: 500; font-size: 48rpx; color: #fff; line-height: 110rpx;">{{user.money.toFixed(4)}}</view>
@ -60,6 +60,7 @@
</template> </template>
<script> <script>
import { getUserInfo } from '@/config/utils';
import zPrompt from '@/components/common/prompt'; import zPrompt from '@/components/common/prompt';
import Popup from '@/components/common/popup'; import Popup from '@/components/common/popup';
import { import {
@ -91,9 +92,12 @@
}, },
// //
onShow() { onShow() {
this.user.money = parseFloat(this.userInfo.money); getUserInfo(this.$i18n.locale).then(res => {
this.user.income_total = parseFloat(this.userInfo.income_total == null ? 0 : this.userInfo.income_total); this.user.money = parseFloat(res.money);
this.user.withdrawl_total = parseFloat(this.userInfo.withdrawl_total == null ? 0 : this.userInfo.withdrawl_total); 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: { methods: {
@ -122,11 +126,25 @@
}) })
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
}, },
// //

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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> <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> <image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=3')"></image>
</template> </template>
@ -75,6 +75,7 @@
data() { data() {
return { return {
network:'TRC-20', network:'TRC-20',
isSubmitting: false,
showCosts: false, showCosts: false,
costs: 0.00, costs: 0.00,
totalAmount: 0.00, totalAmount: 0.00,
@ -195,18 +196,35 @@
}); });
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
submit(form){ submit(form){
if (this.isSubmitting) return; //
this.isSubmitting = true; // true
if (parseFloat(this.putmodel.amount) < parseFloat(this.withdrawlminimum)) { if (parseFloat(this.putmodel.amount) < parseFloat(this.withdrawlminimum)) {
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title:this.$t('putforward.text3', {par: this.withdrawlminimum}) title:this.$t('putforward.text3', {par: this.withdrawlminimum})
}); });
this.isSubmitting = false;
return; return;
} }
if (parseFloat(this.putmodel.amount) > parseFloat(this.user.money)){ if (parseFloat(this.putmodel.amount) > parseFloat(this.user.money)){
@ -214,6 +232,7 @@
icon: 'error', icon: 'error',
title:this.$t('putforward.text4') title:this.$t('putforward.text4')
}); });
this.isSubmitting = false;
return; return;
} }
if (parseFloat(this.putmodel.amount) <= this.costs){ if (parseFloat(this.putmodel.amount) <= this.costs){
@ -221,6 +240,7 @@
icon: 'error', icon: 'error',
title:this.$t('putforward.text4') title:this.$t('putforward.text4')
}); });
this.isSubmitting = false;
return; return;
} }
this.$refs.form.validate().then(res=>{ this.$refs.form.validate().then(res=>{
@ -241,14 +261,21 @@
amount: '', amount: '',
pincode: '', pincode: '',
} }
this.isSubmitting = false;
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ uni.navigateTo({
url: '/pages/wallet/ExtractResults?id='+res.data.id url: '/pages/wallet/ExtractResults?id='+res.data.id
}); });
}, 1000); }, 1000);
}else{
this.isSubmitting = false;
} }
}).catch(err => {
this.isSubmitting = false;
}); });
}).catch(err =>{}) }).catch(err =>{
this.isSubmitting = false;
})
} }
}, },
// //

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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> <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> <image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=2')"></image>
</template> </template>
@ -134,11 +134,25 @@
}) })
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
submit(){ submit(){
if(this.rechargeModel.amount == ''){ if(this.rechargeModel.amount == ''){

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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;"> <view style="width: 92%; margin: 20rpx auto; background-color: #F8F8F8; padding: 30rpx 20rpx;">
<uni-row :gutter="0"> <uni-row :gutter="0">
<uni-col :span="2"> <uni-col :span="2">
@ -110,11 +110,25 @@
}) })
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
switchnetwork(network){ switchnetwork(network){
this.onchick = network; this.onchick = network;

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<uni-nav-bar @clickLeft="goto(1, 1)" left-icon="back" :border="false" :shadow="false" :fixed="true" <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> <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> <image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=4')"></image>
</template> </template>
@ -52,6 +52,7 @@
return { return {
productNameStr: '', productNameStr: '',
network:'TRC-20', network:'TRC-20',
isSubmitting: false,
transferModel:{ transferModel:{
email:"", email:"",
amount: '', amount: '',
@ -139,19 +140,35 @@
}); });
}, },
onTokenJump(url) { 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({ uni.navigateTo({
url: url url: url
}); });
}); }
}, },
submit(form){ submit(form){
if (this.isSubmitting) return; //
this.isSubmitting = true; // true
if (parseFloat(this.transferModel.amount) > parseFloat(this.user.money)){ if (parseFloat(this.transferModel.amount) > parseFloat(this.user.money)){
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title:this.$t('putforward.text4') title:this.$t('putforward.text4')
}); });
this.isSubmitting = false;
return; return;
} }
@ -172,10 +189,14 @@
amount: '', amount: '',
pincode:"", pincode:"",
}; };
this.isSubmitting = false;
}else{
this.isSubmitting = false;
} }
}); });
}).catch(err =>{console.log(err)}) }).catch(err =>{
this.isSubmitting = false;
})
} }
}, },
// //

BIN
static/images/earth.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB