| | |
| | | <div class="userphone"> |
| | | {{ userData.phone }} |
| | | </div> |
| | | <div class="zongzichan"> |
| | | {{$t('hj49')}}:¥{{ (userData.userAmt + userData.userIndexAmt).toFixed(2) }} |
| | | <!-- <div class="zongzichan"> |
| | | {{$t('hj49')}}:₹{{ (userData.userAmt + userData.userIndexAmt).toFixed(2) }} |
| | | </div> |
| | | <div class="zongzichan" |
| | | :class="userData.allProfitAndLose + userData.allIndexProfitAndLose < 0 ? 'greens' : 'reds'"> |
| | | {{$t('zyk')}}:¥{{ (userData.allProfitAndLose + userData.allIndexProfitAndLose).toFixed(2) }} |
| | | </div> |
| | | <div class="othercandong"> |
| | | {{$t('zyk')}}:₹{{ (userData.allProfitAndLose + userData.allIndexProfitAndLose).toFixed(2) }} |
| | | </div> --> |
| | | <div class="othercandong" v-if="useritem"> |
| | | <div> |
| | | <p>{{$t('hj48')}}</p> |
| | | <p>¥{{ (userData.enableAmt + userData.enableIndexAmt).toFixed(2) }}</p> |
| | | <p>{{ $t('印股资产') }}</p> |
| | | <p>{{useritem[3].symbol}}{{useritem[3].totalMoney}}</p> |
| | | </div> |
| | | <div> |
| | | <p>{{ $t('美股资产') }}</p> |
| | | <p>{{useritem[1].symbol}}{{useritem[1].totalMoney}} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <div class="othercandong" v-if="useritem"> |
| | | <div> |
| | | <p>{{ $t('hj54') }}</p> |
| | | <p>{{useritem[3].symbol}}{{useritem[3].availableBalance}}</p> |
| | | </div> |
| | | <div> |
| | | <p>{{$t('hj54')}}</p> |
| | | <p>{{useritem[1].symbol}}{{useritem[1].availableBalance}} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <div class="othercandong" v-if="useritem"> |
| | | <div> |
| | | <p>{{ $t('hj55') }}</p> |
| | | <p>{{useritem[3].symbol}}{{useritem[3].freezeMoney}}</p> |
| | | </div> |
| | | <div> |
| | | <p>{{$t('hj55')}}</p> |
| | | <p>¥{{ (userData.allFreezAmt + userData.allIndexFreezAmt + userData.djzj).toFixed(2) }} |
| | | <p>{{useritem[1].symbol}}{{useritem[1].freezeMoney}} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <div class="othercandong" v-if="useritem"> |
| | | |
| | | <div> |
| | | <div class="page_box_right" @click="isgg()" >{{ $t('sqgg') }}</div> |
| | | <div class="page_box_right" @click="ggloding()" v-if="userData.applyFlag==1">{{ userData.siteLever==1?$t('kqgg'):$t('gbgg') }}</div> |
| | | |
| | | </div> |
| | | <div> |
| | | <div class="page_box_right" @click="isdk()" >{{ $t('申请贷款') }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="lang" >{{$t('qhyy')}}</div> |
| | |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog :title="$t('ggbs')" center |
| | | :visible.sync="dialogVisible" width="400px" height="400px"> |
| | | <div> |
| | | <!-- <el-input :placeholder="$t('qsrsgsl')" v-model="sgvalue"></el-input> --> |
| | | <template> |
| | | <el-select v-model="sgvalue" @change="ggclick"> |
| | | <el-option style="width: 100%;" v-for="(item,index) in gglist" :label="item.title" :key="index" :value="item.value"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </div> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">{{$t('qxx')}}</el-button> |
| | | <el-button type="primary" @click="Leverage">{{$t('qr')}}</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog :title="$t('subdk')" center |
| | | :visible.sync="dialogdkVisible" width="400px" height="600px"> |
| | | <div style="z-index: 999;"> |
| | | <!-- <el-input :placeholder="$t('qsrsgsl')" v-model="sgvalue"></el-input> --> |
| | | <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 20px;"> |
| | | <div style="width: 30%;">{{$t('xzjg')}} :{{' '}}</div> |
| | | <template> |
| | | <el-select v-model="dkvalue" @change="dkclick"> |
| | | <el-option style="width: 100%;" v-for="(item,index) in dklist" :label="item.dkJg" :key="item.id" :value="item.id"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </div> |
| | | <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 20px;"> |
| | | <div style="width: 30%;">{{$t('sqje')}} :{{' '}}</div> |
| | | <template> |
| | | <el-input :placeholder="$t('sqje')" v-model="sqprice"></el-input> |
| | | </template> |
| | | </div> |
| | | <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 20px;"> |
| | | <div style="width: 30%;">{{$t('lxhm')}} :{{' '}}</div> |
| | | <template> |
| | | <el-input :placeholder="$t('lxhm')" v-model="sqnum"></el-input> |
| | | </template> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogdkVisible = false">{{$t('qxx')}}</el-button> |
| | | <el-button type="primary" @click="dksubmit">{{$t('qr')}}</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <el-dialog :title="$t('hj144')" :visible.sync="editpassDialog" center width="400px"> |
| | | <el-form :model="passform"> |
| | | <el-form-item prop="oldPwd"> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="editpassDialog = false">{{$t('qxx')}}</el-button> |
| | | abel="item.title" :key="i <el-button @click="editpassDialog = false">{{$t('qxx')}}</el-button> |
| | | <el-button type="primary" @click="geteditpass">{{$t('qrr')}}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | </el-form-item> |
| | | <el-form-item prop="newPsdQr"> |
| | | <el-input class="chongzhi-input" :readonly="Bankinfo.bankNo ? true : false" |
| | | v-model="addbankform.bankAddress" placeholder="$t('hj219')"> |
| | | v-model="addbankform.bankAddress" :placeholder="$t('hj219')"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | <el-button type="primary" @click="getaddbank">{{$t('qrr')}}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | <el-dialog class="dialogaa" |
| | | :title="'实名认证' + (userData.isActive == 0 ? $t('hj204') : userData.isActive == 1 ? $t('dsh') : userData.isActive == 2 ? $t('rzcg') : $t('ybh'))" |
| | | :visible.sync="authDialog" center width="600px"> |
| | | <el-form :hide-required-asterisk="true" :model="form" label-width="100px" ref="ruleForm" :rules="rule" |
| | |
| | | <el-form-item :label="$t('hj195')" prop="name"> |
| | | <el-input type="text" class="chongzhi-input" |
| | | :readonly="(userData.isActive == 1 || userData.isActive == 2) ? true : false" |
| | | v-model="form.name" :placeholder="$t('qsrbhyy')"></el-input> |
| | | v-model="form.name" :placeholder="$t('hj207')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('sfzhm')" prop="idCard"> |
| | | <el-input type="text" class="chongzhi-input" |
| | |
| | | </el-row> |
| | | </el-form-item> |
| | | <!-- </div> --> |
| | | <el-form-item :label="$t('scsfz')" prop="img3key"> |
| | | <!-- <el-form-item :label="$t('scsfz')" prop="img3key"> |
| | | <el-row> |
| | | <el-col :span="10"> |
| | | <el-upload :with-credentials='true' class="avatar-uploader" list-type="picture-card" |
| | |
| | | <img src="../assets/image/img2.jpg" alt=""> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer" v-if="userData.isActive == 0 || userData.isActive == 3"> |
| | | <el-button @click="authDialog = false">{{$t('qxx')}}</el-button> |
| | |
| | | pageNum: 1, |
| | | pageSize: 40, |
| | | shearchlist: [], |
| | | sgvalue: '', |
| | | dkvalue: '', |
| | | useritem:'', |
| | | options:[ |
| | | // {title:'中文',lang:'zh'}, |
| | | {title:'English',lang:'en'}, |
| | | {title:'हिंदी',lang:'india'}, |
| | | // {title:'繁体',lang:'tw'}, |
| | | ], |
| | | gglist:[ |
| | | {title:'2X',value:'2'}, |
| | | {title:'5X',value:'5'}, |
| | | {title:'10X',value:'10'}, |
| | | {title:'20X',value:'20'}, |
| | | {title:'50X',value:'50'}, |
| | | {title:'100X',value:'100'}, |
| | | ], |
| | | dklist:[], |
| | | is_show:false, |
| | | selectedOption:'', |
| | | sqprice:'', |
| | | sqnum:'', |
| | | loading: false, |
| | | userData: '', |
| | | dialogVisible: false, |
| | | dialogdkVisible:false, |
| | | Bankinfo: '', |
| | | gg:'', |
| | | editpassDialog: false, |
| | | passform: { |
| | | oldPwd: '', |
| | |
| | | }, |
| | | rule: { |
| | | name: [{ required: true, message: this.$t('hj207'), trigger: "blur" }], |
| | | idCard: [ |
| | | { |
| | | required: true, |
| | | validator: validatePass, |
| | | message: this.$t('qsrsfzhm'), |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | name: [{ required: true, message: this.$t('qsrsfzhm'), trigger: "blur" }], |
| | | // idCard: [ |
| | | // { |
| | | // required: true, |
| | | // validator: validatePass, |
| | | // message: this.$t('qsrsfzhm'), |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | img1key: [ |
| | | { required: true, message: this.$t('hj209'), trigger: "blur" }, |
| | | ], |
| | |
| | | { required: true, message: this.$t('scsfz'), trigger: "blur" }, |
| | | ], |
| | | }, |
| | | admin: process.env.VUE_APP_ADMIN ? process.env.VUE_APP_ADMIN : "https://api.jumptalk.net/", |
| | | admin: process.env.VUE_APP_ADMIN ? process.env.VUE_APP_ADMIN : "https://api.barcblays.com", |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | { title: this.$t('hj3'), id: 7, link: '/newgu' }, |
| | | // { title: this.$t('hj261'), id: 9, link: '/dazongjiaoyi' }, |
| | | // { title: 'VIP抢筹', id: 10, link: '/vipqiangchou' }, |
| | | { title: this.$t('hj225'), id: 8, link: '' } |
| | | { title: this.$t('hj225'), id: 8, link: '/Qualification' } |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getUserInfo() |
| | | this.getMoney() |
| | | this.queryDkjg() |
| | | this.selectedOption = localStorage.getItem('language') |
| | | }, |
| | | methods: { |
| | | async dksubmit(){ |
| | | var opt = { |
| | | dkJgId:this.dkvalue, |
| | | dkPhone:this.sqnum, |
| | | dkMoney:this.sqprice |
| | | } |
| | | let data = await api.getdk(opt); |
| | | if (data.status == 0) { |
| | | this.$message.success(data.msg) |
| | | }else{ |
| | | this.$message.error(data.msg) |
| | | } |
| | | this.dialogdkVisible = false |
| | | }, |
| | | async queryDkjg() { |
| | | let data = await api.queryDkjg(); |
| | | if (data.status == 0) { |
| | | this.dklist = data.data; |
| | | } |
| | | }, |
| | | async getMoney() { |
| | | let data = await api.getMoney(); |
| | | if (data.status == 0) { |
| | | this.useritem = data.data; |
| | | } |
| | | }, |
| | | async Leverage(){ |
| | | var option = {} |
| | | option.userId = this.userData.id |
| | | option.lever = this.sgvalue |
| | | let data = await api.applyUserLever(option) |
| | | if (data.code === 200) { |
| | | this.dialogVisible = false |
| | | this.applyFlag = 1 |
| | | this.$message.success(data.msg) |
| | | } else { |
| | | this.dialogVisible = false |
| | | this.$message.error(data.msg) |
| | | } |
| | | }, |
| | | async ggloding(){ |
| | | let data = await api.onOffLeverageRatio() |
| | | if (data.status === 0) { |
| | | this.$message.success(data.msg) |
| | | this.getUserInfo() |
| | | // this.onlineService = data.data.onlineService |
| | | } else { |
| | | this.$message.error(data.msg) |
| | | } |
| | | }, |
| | | isgg(){ |
| | | this.dialogVisible = !this.dialogVisible |
| | | }, |
| | | isdk(){ |
| | | this.dialogdkVisible = !this.dialogdkVisible |
| | | }, |
| | | langclick(val){ |
| | | console.log(val); |
| | | this.$i18n.locale = val |
| | | localStorage.setItem('language', val) |
| | | }, |
| | | ggclick(val){ |
| | | console.log(val); |
| | | this.gg = val |
| | | }, |
| | | dkclick(val){ |
| | | console.log(val); |
| | | this.dk = val |
| | | }, |
| | | getaddauth(formName) { |
| | | this.$refs[formName].validate(async (valid) => { |
| | |
| | | pageNum: this.pageNum, |
| | | pageSize: 20, |
| | | keyWords: this.inputvalue, |
| | | stockType: 'in' |
| | | }; |
| | | var data = await api.getStock(opt); |
| | | this.shearchlist = data.data.list |
| | |
| | | this.inputvalue = '' |
| | | }, |
| | | getlink(item, index) { |
| | | if (item.id == 8) { |
| | | if (this.$route.path != '/hqchartdetail') { |
| | | this.isshare = true |
| | | this.getfirstsearch() |
| | | this.$nextTick(() => { |
| | | this.$refs.inputfocus.focus() |
| | | }) |
| | | } else { |
| | | this.$router.push({ |
| | | path: '/zhongzhuan', |
| | | query: { |
| | | code: this.$route.query.code, |
| | | is_zhishu: this.$route.query.is_zhishu, |
| | | sok: this.$route.query.sok, |
| | | stock_type: this.$route.query.stock_type, |
| | | tabidx: 1 |
| | | } |
| | | }) |
| | | } |
| | | return |
| | | } |
| | | // if (item.id == 8) { |
| | | // if (this.$route.path != '/hqchartdetail') { |
| | | // this.isshare = true |
| | | // this.getfirstsearch() |
| | | // this.$nextTick(() => { |
| | | // this.$refs.inputfocus.focus() |
| | | // }) |
| | | // } else { |
| | | // this.$router.push({ |
| | | // path: '/zhongzhuan', |
| | | // query: { |
| | | // code: this.$route.query.code, |
| | | // is_zhishu: this.$route.query.is_zhishu, |
| | | // sok: this.$route.query.sok, |
| | | // stock_type: this.$route.query.stock_type, |
| | | // tabidx: 1 |
| | | // } |
| | | // }) |
| | | // } |
| | | // return |
| | | // } |
| | | this.idx = index |
| | | this.$router.push(item.link) |
| | | }, |
| | |
| | | } |
| | | </script> |
| | | <style lang="less" scoped> |
| | | .dialogaa{ |
| | | /deep/.el-dialog--center .el-dialog__body{ |
| | | height: 85% !important; |
| | | } |
| | | /deep/.el-dialog{ |
| | | height: 630px !important; |
| | | } |
| | | } |
| | | |
| | | .page_box_right{ |
| | | width: 80%; |
| | | padding: 0 10px; |
| | | height: 50px; |
| | | line-height: 50px; |
| | | background-color: #E74240; |
| | | color: #fff; |
| | | border-radius: 8px; |
| | | text-align: center; |
| | | // margin-top: 20px; |
| | | } |
| | | .el-select{ |
| | | width: 100% ; |
| | | /deep/.el-select-dropdown__item{ |
| | | width: 100% !important; |
| | | } |
| | |
| | | margin-right: 20px; |
| | | |
| | | /deep/ .el-input__inner { |
| | | width: 100%; |
| | | background-color: #1c1d21 !important; |
| | | height: 26px; |
| | | line-height: 26px; |