|
@@ -134,23 +134,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<uni-popup type="bottom" ref="popup" :mask-click="false" @maskClick='colsePayPassword'>
|
|
<uni-popup type="bottom" ref="popup" :mask-click="false" @maskClick='colsePayPassword'>
|
|
|
- <view class="page">
|
|
|
|
|
- <view>
|
|
|
|
|
- <view class="pay-title">
|
|
|
|
|
- <text>{{$t('enter.b3')}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="pay-password" @click="onPayUp">
|
|
|
|
|
- <view class="list" v-for="item in 6">
|
|
|
|
|
- <text v-show="upOnBtnData.passwordArr.length >= item">●</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="hint">
|
|
|
|
|
- <text @click="nav('/pages/user/set/transaction')">忘记支付密码?</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <cc-defineKeyboard ref="CodeKeyboard" passwrdType="pay" @KeyInfo="KeyInfo"
|
|
|
|
|
- :viewShow="true"></cc-defineKeyboard>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <inputPassword @commit='KeyInfo'></inputPassword>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
<uni-popup type="center" ref="popupDetail">
|
|
<uni-popup type="center" ref="popupDetail">
|
|
|
<view class="alert-detail">
|
|
<view class="alert-detail">
|
|
@@ -205,7 +189,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import LEchart from '@/uni_modules/lime-echart/components/l-echart/l-echart.vue';
|
|
|
|
|
import * as echarts from '@/uni_modules/lime-echart/static/echarts.min'
|
|
import * as echarts from '@/uni_modules/lime-echart/static/echarts.min'
|
|
|
import {
|
|
import {
|
|
|
getGame,
|
|
getGame,
|
|
@@ -227,14 +210,11 @@
|
|
|
import {
|
|
import {
|
|
|
getTime
|
|
getTime
|
|
|
} from '@/utils/rocessor.js';
|
|
} from '@/utils/rocessor.js';
|
|
|
- import {
|
|
|
|
|
- clearInterval,
|
|
|
|
|
- setInterval
|
|
|
|
|
- } from 'timers';
|
|
|
|
|
|
|
+ import inputPassword from "@/components/input-password/input-password.vue";
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
taber,
|
|
taber,
|
|
|
- LEchart
|
|
|
|
|
|
|
+ inputPassword
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapState("user", ["hasLogin"]),
|
|
...mapState("user", ["hasLogin"]),
|
|
@@ -280,7 +260,7 @@
|
|
|
show: false,
|
|
show: false,
|
|
|
type: '',
|
|
type: '',
|
|
|
// 当前输入的密码
|
|
// 当前输入的密码
|
|
|
- passwordArr: [],
|
|
|
|
|
|
|
+ passwordArr: '',
|
|
|
value: '',
|
|
value: '',
|
|
|
},
|
|
},
|
|
|
// 弹窗数据像晴
|
|
// 弹窗数据像晴
|
|
@@ -370,30 +350,11 @@
|
|
|
this.upOnBtnData.show = false;
|
|
this.upOnBtnData.show = false;
|
|
|
this.$refs.popup.close();
|
|
this.$refs.popup.close();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ // 密码输入完成后调用下注
|
|
|
KeyInfo(val) {
|
|
KeyInfo(val) {
|
|
|
- console.log(val);
|
|
|
|
|
- let arr = this.upOnBtnData.passwordArr;
|
|
|
|
|
- if (val.index >= 6) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- // 判断是否输入的是删除键
|
|
|
|
|
- if (val.keyCode === 8) {
|
|
|
|
|
- // 删除最后一位
|
|
|
|
|
- arr.splice(val.index + 1, 1)
|
|
|
|
|
- }
|
|
|
|
|
- // 判断是否输入的是取消案件
|
|
|
|
|
- else if (val.keyCode == 190) {
|
|
|
|
|
- this.colsePayPassword();
|
|
|
|
|
- // 输入.无效
|
|
|
|
|
- } else {
|
|
|
|
|
- arr.push(val.key);
|
|
|
|
|
- }
|
|
|
|
|
- // 开始交易
|
|
|
|
|
- if (arr.length == 6) {
|
|
|
|
|
- this.colsePayPassword();
|
|
|
|
|
- this.gameBetIn();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.upOnBtnData.passwordArr = val;
|
|
|
|
|
+ this.colsePayPassword();
|
|
|
|
|
+ this.gameBetIn();
|
|
|
},
|
|
},
|
|
|
// 参与压住
|
|
// 参与压住
|
|
|
gameBetIn(type) {
|
|
gameBetIn(type) {
|
|
@@ -402,9 +363,8 @@
|
|
|
id: that.history.next.id,
|
|
id: that.history.next.id,
|
|
|
bet: that.upOnBtnData.type,
|
|
bet: that.upOnBtnData.type,
|
|
|
num: that.upOnBtnData.value,
|
|
num: that.upOnBtnData.value,
|
|
|
- trade_password: that.upOnBtnData.passwordArr.join("")
|
|
|
|
|
|
|
+ trade_password: that.upOnBtnData.passwordArr
|
|
|
};
|
|
};
|
|
|
- this.upOnBtnData.passwordArr = [];
|
|
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
mask: true
|
|
mask: true
|
|
|
})
|
|
})
|
|
@@ -432,11 +392,6 @@
|
|
|
async opTiem() {
|
|
async opTiem() {
|
|
|
const that = this;
|
|
const that = this;
|
|
|
try {
|
|
try {
|
|
|
- console.log('kaishidaojishi');
|
|
|
|
|
- // 关闭循环
|
|
|
|
|
- // if (that.time.t) {
|
|
|
|
|
- // clearInterval(that.time.t);
|
|
|
|
|
- // }
|
|
|
|
|
// 判斷是否有游戲信息并且有正在進行中游戏
|
|
// 判斷是否有游戲信息并且有正在進行中游戏
|
|
|
if (that.history.base.id && that.history.next) {
|
|
if (that.history.base.id && that.history.next) {
|
|
|
console.log(that.history.base.id, that.history.next,
|
|
console.log(that.history.base.id, that.history.next,
|
|
@@ -451,7 +406,6 @@
|
|
|
},
|
|
},
|
|
|
// 获取倒计时时间
|
|
// 获取倒计时时间
|
|
|
getOutTime() {
|
|
getOutTime() {
|
|
|
- console.log('计算');
|
|
|
|
|
const that = this;
|
|
const that = this;
|
|
|
const da = (new Date()).getTime();
|
|
const da = (new Date()).getTime();
|
|
|
const timenum = that.history.next.open_time * 1000 - da;
|
|
const timenum = that.history.next.open_time * 1000 - da;
|
|
@@ -472,6 +426,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ // 游戏tab切换
|
|
|
changeTab(item, ind) {
|
|
changeTab(item, ind) {
|
|
|
const that = this;
|
|
const that = this;
|
|
|
if (ind != this.actionIndex) {
|
|
if (ind != this.actionIndex) {
|
|
@@ -484,10 +439,10 @@
|
|
|
},
|
|
},
|
|
|
// 初始化
|
|
// 初始化
|
|
|
async gameInit() {
|
|
async gameInit() {
|
|
|
- // 获取游戏列表
|
|
|
|
|
- await this.getGameList();
|
|
|
|
|
- // 加载游戏数据
|
|
|
|
|
- this.gameDataInit(this.history.base.id || this.gameList[0].id)
|
|
|
|
|
|
|
+ // 获取游戏列表
|
|
|
|
|
+ await this.getGameList();
|
|
|
|
|
+ // 加载游戏数据
|
|
|
|
|
+ this.gameDataInit(this.history.base.id || this.gameList[0].id)
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
// 加载游戏列表
|
|
// 加载游戏列表
|
|
@@ -796,66 +751,6 @@
|
|
|
padding-bottom: 30rpx;
|
|
padding-bottom: 30rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $base: orangered; // 基础颜色
|
|
|
|
|
-
|
|
|
|
|
- .page {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- background-color: #FFFFFF;
|
|
|
|
|
-
|
|
|
|
|
- .pay-title {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 200rpx;
|
|
|
|
|
-
|
|
|
|
|
- text {
|
|
|
|
|
- font-size: 28rpx;
|
|
|
|
|
- color: #555555;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .pay-password {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- width: 90%;
|
|
|
|
|
- height: 80rpx;
|
|
|
|
|
- margin: 20rpx auto;
|
|
|
|
|
- border: 2rpx solid $base;
|
|
|
|
|
-
|
|
|
|
|
- .list {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- width: 16.666%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- border-right: 2rpx solid #EEEEEE;
|
|
|
|
|
-
|
|
|
|
|
- text {
|
|
|
|
|
- font-size: 32rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .list:nth-child(6) {
|
|
|
|
|
- border-right: none;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .hint {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100rpx;
|
|
|
|
|
-
|
|
|
|
|
- text {
|
|
|
|
|
- font-size: 28rpx;
|
|
|
|
|
- color: $base;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
.tab {
|
|
.tab {
|
|
|
padding: 30rpx 20rpx;
|
|
padding: 30rpx 20rpx;
|
|
|
margin: 0 30rpx;
|
|
margin: 0 30rpx;
|