@ -0,0 +1,202 @@ |
|||||
|
<template> |
||||
|
<view class="index-header "> |
||||
|
<view class="con"> |
||||
|
<view class="tabbar_item" @click="goToPage(1)"> |
||||
|
<view class="uni-tabbar_bd"> |
||||
|
<view class="uni-tabbar_icon"> |
||||
|
<image :src="'/static/tabbar/'+(selectActive==1?'meun_icon_home_sel@3x':'meun_icon_home_nor@3x')+'.png'" mode="aspectFit" class="img1"></image> |
||||
|
</view> |
||||
|
<view class="uni-tabbar_label" :class="['text', selectActive==1?'active':'']"> |
||||
|
Home |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="tabbar_item" @click="goToPage(2)"> |
||||
|
<view class="uni-tabbar_bd"> |
||||
|
<view class="uni-tabbar_icon"> |
||||
|
<image :src="'/static/tabbar/'+(selectActive==2?'meun_icon_search_sel@3x':'meun_icon_search_nor@3x')+'.png'" mode="aspectFit" class="img1"></image> |
||||
|
</view> |
||||
|
<view class="uni-tabbar_label" :class="['text', selectActive==2?'active':'']"> |
||||
|
Search |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="tabbar_item" @click="goToPage(3)" v-if="status=='open'"> |
||||
|
<view class="uni-tabbar_bd"> |
||||
|
<view class="uni-tabbar_icon"> |
||||
|
<image :src="'/static/tabbar/'+(selectActive==3?'meun_icon_game_sel@2x':'meun_icon_game_nor@2x')+'.png'" mode="aspectFit" class="img1"></image> |
||||
|
</view> |
||||
|
<view class="uni-tabbar_label" :class="['text', selectActive==3?'active':'']"> |
||||
|
Game |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="tabbar_item" @click="goToPage(4)"> |
||||
|
<view class="uni-tabbar_bd"> |
||||
|
<view class="uni-tabbar_icon"> |
||||
|
<image :src="'/static/tabbar/'+(selectActive==4?'meun_icon_promotion_sel@2x':'meun_icon_promotion_nor@2x')+'.png'" mode="aspectFit" class="img1"></image> |
||||
|
</view> |
||||
|
<view class="uni-tabbar_label" :class="['text', selectActive==4?'active':'']"> |
||||
|
Promotion |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="tabbar_item" @click="goToPage(5)"> |
||||
|
<view class="uni-tabbar_bd"> |
||||
|
<view class="uni-tabbar_icon"> |
||||
|
<image :src="'/static/tabbar/'+(selectActive==5?'meun_icon_my_sel@2x':'meun_icon_my_nor@2x')+'.png'" mode="aspectFit" class="img1"></image> |
||||
|
</view> |
||||
|
<view class="uni-tabbar_label" :class="['text', selectActive==5?'active':'']"> |
||||
|
My |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
<script> |
||||
|
import api from '@/utils/api' |
||||
|
import utils from '@/utils' |
||||
|
import md5 from 'js-md5' |
||||
|
import store from '@/store' |
||||
|
const COMPONENT_NAME = 'tabBar' |
||||
|
export default { |
||||
|
name: COMPONENT_NAME, |
||||
|
|
||||
|
|
||||
|
|
||||
|
props: { |
||||
|
selectActive: { |
||||
|
type: Number, |
||||
|
default () { |
||||
|
return 1 |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
status:'' |
||||
|
} |
||||
|
}, |
||||
|
computed: { |
||||
|
|
||||
|
}, |
||||
|
mounted() { |
||||
|
this.openGame() |
||||
|
}, |
||||
|
methods: { |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
this.status=d.data.gameMenuStatus |
||||
|
|
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
|
goToPage(num) { |
||||
|
if(num == 1) { |
||||
|
this.selectActive = 1 |
||||
|
uni.switchTab({ |
||||
|
url: '/pages/menu/goods/index' |
||||
|
}) |
||||
|
} else if (num == 2) { |
||||
|
this.selectActive = 2 |
||||
|
uni.switchTab({ |
||||
|
url:'/pages/menu/search/index' |
||||
|
}) |
||||
|
} else if (num == 3) { |
||||
|
this.selectActive = 3 |
||||
|
uni.switchTab({ |
||||
|
url: '/pages/menu/color/index' |
||||
|
}) |
||||
|
}else if (num == 4) { |
||||
|
this.selectActive = 4 |
||||
|
uni.switchTab({ |
||||
|
url: '/pages/menu/promotion/index' |
||||
|
}) |
||||
|
}else if (num == 5) { |
||||
|
this.selectActive = 5 |
||||
|
uni.switchTab({ |
||||
|
url: '/pages/menu/My/index' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
.active{ |
||||
|
color: rgb(52, 2, 107) !important; |
||||
|
} |
||||
|
.uni-tabbar_label { |
||||
|
color: rgb(153, 153, 153); |
||||
|
font-size: 10px; |
||||
|
line-height: normal; |
||||
|
margin-top: 3px; |
||||
|
position: relative; |
||||
|
text-align: center; |
||||
|
font-size: 20rpx !important; |
||||
|
} |
||||
|
.uni-tabbar_icon{ |
||||
|
width: 24px !important; |
||||
|
height: 24px !important; |
||||
|
position: relative; |
||||
|
display: inline-block; |
||||
|
margin-top: 5px; |
||||
|
} |
||||
|
.uni-tabbar_icon image { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
.uni-tabbar_bd{ |
||||
|
height: 100rpx; |
||||
|
position: relative; |
||||
|
-webkit-flex-direction: column; |
||||
|
flex-direction: column; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
.con{ |
||||
|
width: 100%; |
||||
|
background-color: rgb(247, 247, 250); |
||||
|
position: fixed; |
||||
|
bottom: 0; |
||||
|
padding-top: 28rpx; |
||||
|
padding-bottom: 30rpx ; |
||||
|
background-image: -webkit-linear-gradient(bottom, #FAF8F8, #FFFFFF) !important; |
||||
|
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF) !important; |
||||
|
border-top: 2rpx solid #F7F4F4; |
||||
|
display: flex; |
||||
|
z-index: 998; |
||||
|
box-sizing: border-box; |
||||
|
} |
||||
|
.tabbar_item{ |
||||
|
display: -webkit-box; |
||||
|
width: 150rpx; |
||||
|
height: 100rpx; |
||||
|
display: -webkit-flex; |
||||
|
display: flex; |
||||
|
-webkit-box-pack: center; |
||||
|
-webkit-justify-content: center; |
||||
|
justify-content: center; |
||||
|
-webkit-box-align: center; |
||||
|
-webkit-align-items: center; |
||||
|
align-items: center; |
||||
|
-webkit-box-orient: vertical; |
||||
|
-webkit-box-direction: normal; |
||||
|
webkit-flex-direction: column; |
||||
|
flex-direction: column; |
||||
|
-webkit-box-flex: 1; |
||||
|
-webkit-flex: 1; |
||||
|
flex: 1; |
||||
|
font-size: 0; |
||||
|
text-align: center; |
||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0); |
||||
|
} |
||||
|
|
||||
|
</style> |
||||
@ -7,47 +7,86 @@ |
|||||
{ |
{ |
||||
"path": "pages/login/index", |
"path": "pages/login/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"path": "pages/redenvelopes", |
||||
|
"style": { |
||||
|
"navigationStyle": "custom" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"path": "pages/menu/re/list/index", |
||||
|
"style": { |
||||
|
"navigationStyle": "custom" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"path": "pages/menu/re/add/index", |
||||
|
"style": { |
||||
|
"navigationStyle": "custom" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"path": "pages/menu/address/index", |
||||
|
"style": { |
||||
|
"navigationStyle": "custom" |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
"path": "pages/menu/order/index", |
||||
|
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/about/RiskDisclosureAGREEMENT", |
"path": "pages/menu/about/RiskDisclosureAGREEMENT", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/about/privacyPolicy", |
"path": "pages/menu/about/privacyPolicy", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/search/index", |
"path": "pages/menu/search/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/goods/index", |
"path": "pages/menu/goods/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/goods/goodsDetail/index", |
"path": "pages/menu/goods/goodsDetail/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/bankCard/addAddress/index", |
"path": "pages/menu/address/addAddress/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/bankCard/addBankCard/index", |
"path": "pages/menu/bankCard/addBankCard/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/bankCard/index", |
"path": "pages/menu/bankCard/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -55,38 +94,43 @@ |
|||||
{ |
{ |
||||
"path": "pages/register/index", |
"path": "pages/register/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/color/index", |
"path": "pages/menu/color/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/colorMoni/index", |
"path": "pages/menu/colorMoni/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/promotion/applyRecord/index", |
"path": "pages/menu/promotion/applyRecord/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/promotion/bounsRecord/index", |
"path": "pages/menu/promotion/bounsRecord/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/withdrawl/transactions/index", |
"path": "pages/menu/withdrawl/transactions/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/recharge/rechargeRule", |
"path": "pages/menu/recharge/rechargeRule", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -94,17 +138,20 @@ |
|||||
{ |
{ |
||||
"path": "pages/menu/withdrawl/transactions/index", |
"path": "pages/menu/withdrawl/transactions/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/withdrawl/withdrawlRecord/index", |
"path": "pages/menu/withdrawl/withdrawlRecord/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/recharge/index", |
"path": "pages/menu/recharge/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -112,6 +159,7 @@ |
|||||
{ |
{ |
||||
"path": "pages/menu/recharge/record/index", |
"path": "pages/menu/recharge/record/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -120,43 +168,45 @@ |
|||||
{ |
{ |
||||
"path": "pages/menu/rule/arules/index", |
"path": "pages/menu/rule/arules/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/aplan/index", |
"path": "pages/menu/aplan/index", |
||||
"style": { |
"style": {} |
||||
} |
|
||||
}, |
}, |
||||
|
|
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/withdrawl/index", |
"path": "pages/menu/withdrawl/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
"path": "pages/menu/promotion/promotionRecord/index", |
"path": "pages/menu/promotion/promotionRecord/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/recharge/index", |
"path": "pages/menu/recharge/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/My/index", |
"path": "pages/menu/My/index", |
||||
"style": { |
"style": { |
||||
|
|
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/promotion/index", |
"path": "pages/menu/promotion/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -166,7 +216,7 @@ |
|||||
{ |
{ |
||||
"path": "pages/menu/index/index", |
"path": "pages/menu/index/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -175,20 +225,21 @@ |
|||||
{ |
{ |
||||
"path": "pages/login/resetPassword/index", |
"path": "pages/login/resetPassword/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/rule/index", |
"path": "pages/menu/rule/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
"path": "pages/menu/rule/inviteRule/index", |
"path": "pages/menu/rule/inviteRule/index", |
||||
"style": { |
"style": { |
||||
|
"navigationStyle": "custom" |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
@ -198,12 +249,16 @@ |
|||||
], |
], |
||||
"globalStyle": { |
"globalStyle": { |
||||
"navigationBarTextStyle": "white", |
"navigationBarTextStyle": "white", |
||||
"navigationBarBackgroundColor": "#34026B" |
"navigationBarBackgroundColor": "#34026B", |
||||
|
"style": { |
||||
|
"app-plus": { |
||||
|
"titleNView": false |
||||
|
} |
||||
|
} |
||||
}, |
}, |
||||
"tabBar": { |
"tabBar": { |
||||
"selectedColor": "#34026B", |
"selectedColor": "#34026B", |
||||
"list":[ |
"list": [{ |
||||
{ |
|
||||
"text": "Home", |
"text": "Home", |
||||
"pagePath": "pages/menu/goods/index", |
"pagePath": "pages/menu/goods/index", |
||||
"iconPath": "./static/tabbar/[email protected]", |
"iconPath": "./static/tabbar/[email protected]", |
||||
@ -216,10 +271,10 @@ |
|||||
"selectedIconPath": "./static/tabbar/[email protected]" |
"selectedIconPath": "./static/tabbar/[email protected]" |
||||
}, |
}, |
||||
{ |
{ |
||||
"text":"Game", |
"text": "Order", |
||||
"pagePath":"pages/menu/color/index", |
"pagePath":"pages/menu/order/index", |
||||
"iconPath":"./static/tabbar/meun_icon_game_nor@2x.png", |
"iconPath": "./static/tabbar/dorder.png", |
||||
"selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png" |
"selectedIconPath": "./static/tabbar/dorderS.png" |
||||
}, |
}, |
||||
|
|
||||
{ |
{ |
||||
|
|||||
@ -10,7 +10,7 @@ |
|||||
<span class="quhao">+{{areacode}}</span> |
<span class="quhao">+{{areacode}}</span> |
||||
</view> |
</view> |
||||
<input type="text" value="" placeholder="mobile number" |
<input type="text" value="" placeholder="mobile number" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="mobile" |
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" |
||||
@input="btnControl" /> |
@input="btnControl" /> |
||||
</view> |
</view> |
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
@ -20,7 +20,7 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<input class="input_pcod" value="" placeholder="Picture Code" |
<input class="input_pcod" value="" placeholder="Picture Code" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="picCode" /> |
placeholder-style="color: #BFC2CC;font-size:14px;" v-model="picCode" /> |
||||
<view class="login-sigh3 flex"> |
<view class="login-sigh3 flex"> |
||||
<image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image> |
<image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image> |
||||
<image src="../../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()"> |
<image src="../../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()"> |
||||
@ -52,15 +52,16 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<input type="password" value="" placeholder="new password" |
<input type="password" value="" placeholder="new password" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" |
placeholder-style="color: #BFC2CCFF;font-size:14px;" |
||||
v-model="newPassword" /> |
v-model="newPassword" /> |
||||
</view> |
</view> |
||||
<button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''" |
<button class="login-btn" @click="resetPassword()" :class="btnNum==1?'on':''" |
||||
:disabled="btnNum==1?false:true"> |
:disabled="btnNum==1?false:true"> |
||||
Continue |
Confirm |
||||
</button> |
</button> |
||||
|
|
||||
</view> |
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -149,10 +150,11 @@ |
|||||
post.then(res => { |
post.then(res => { |
||||
var that = this; |
var that = this; |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: res.errMsg, |
title: 'Successfully', |
||||
icon: 'none', |
icon: 'none', |
||||
duration: 2500 |
duration: 2500 |
||||
}) |
}) |
||||
|
this.getPicCode(); |
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -160,6 +162,7 @@ |
|||||
icon: 'none', |
icon: 'none', |
||||
duration: 2500 |
duration: 2500 |
||||
}) |
}) |
||||
|
this.getPicCode(); |
||||
}) |
}) |
||||
} else { |
} else { |
||||
this.$u.toast('Send after the countdown'); |
this.$u.toast('Send after the countdown'); |
||||
@ -167,8 +170,8 @@ |
|||||
|
|
||||
}, |
}, |
||||
getPicCode() { |
getPicCode() { |
||||
this.imgcodeUrl = "/start/api/home/imgCode?uuid=" + this.$u.guid(20); |
|
||||
console.log(this.imgcodeUrl) |
this.imgcodeUrl = "https://apitest.luck-work.com/api/home/imgCode?uuid=" + this.$u.guid(20); |
||||
}, |
}, |
||||
|
|
||||
resetPassword() { |
resetPassword() { |
||||
|
|||||
@ -21,8 +21,8 @@ |
|||||
Mobile: +{{areaCode}} {{MyInfo.mobile}} |
Mobile: +{{areaCode}} {{MyInfo.mobile}} |
||||
</view> |
</view> |
||||
<view class="my-bal flex"> |
<view class="my-bal flex"> |
||||
<view>Available Balance: {{currentBalance}}</view> |
<view>Available Balance: {{currencySymbol}}{{currentBalance}}</view> |
||||
<!-- <view class="my-ap"> |
<!-- <view class="my-ap" @click="goAplan()"> |
||||
A+ Plan |
A+ Plan |
||||
</view> --> |
</view> --> |
||||
</view> |
</view> |
||||
@ -31,9 +31,9 @@ |
|||||
<view class="my-btn1" @click="goRecharge()"> |
<view class="my-btn1" @click="goRecharge()"> |
||||
recharge |
recharge |
||||
</view> |
</view> |
||||
<view class="my-btn2" @click="go(3)"> |
<!-- <view class="my-btn2" @click="go(3)"> |
||||
Change Nick Name |
Change Nick Name |
||||
</view> |
</view> --> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
@ -55,6 +55,9 @@ |
|||||
<view class="text" @click="goTransactions()"> |
<view class="text" @click="goTransactions()"> |
||||
Transactions |
Transactions |
||||
</view> |
</view> |
||||
|
<view class="text" @click="gorEDenvelope()"> |
||||
|
Red Envelope |
||||
|
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
@ -124,8 +127,7 @@ |
|||||
fujiNum2: -1, |
fujiNum2: -1, |
||||
// 动态显示mask |
// 动态显示mask |
||||
mCode: -1, |
mCode: -1, |
||||
list: [ |
list: [{ |
||||
{ |
|
||||
name: 'male', |
name: 'male', |
||||
value: 1, |
value: 1, |
||||
disabled: false |
disabled: false |
||||
@ -142,8 +144,7 @@ |
|||||
currentBalance: '', |
currentBalance: '', |
||||
areaCode: '', |
areaCode: '', |
||||
androidUrl: '', |
androidUrl: '', |
||||
myAList: [ |
myAList: [{ |
||||
{ |
|
||||
id: '1', |
id: '1', |
||||
text: 'Bank card' |
text: 'Bank card' |
||||
}, |
}, |
||||
@ -168,6 +169,7 @@ |
|||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
this.openGame() |
||||
this.areaCode = uni.getStorageSync('siteInfo').areaCode; |
this.areaCode = uni.getStorageSync('siteInfo').areaCode; |
||||
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl; |
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl; |
||||
this.currentBalance = uni.getStorageSync('currentBalance'); |
this.currentBalance = uni.getStorageSync('currentBalance'); |
||||
@ -177,7 +179,6 @@ |
|||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
this.MyInfo = res.data; |
this.MyInfo = res.data; |
||||
console.log(this.MyInfo, 9990); |
|
||||
uni.setStorage({ |
uni.setStorage({ |
||||
key: 'MyInfo', |
key: 'MyInfo', |
||||
data: res.data, |
data: res.data, |
||||
@ -185,7 +186,6 @@ |
|||||
console.log('success') |
console.log('success') |
||||
} |
} |
||||
}); |
}); |
||||
console.log(res.data) |
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -196,6 +196,36 @@ |
|||||
}) |
}) |
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
// uni.setStorage({ |
||||
|
// key: 'Gamestatus', |
||||
|
// data: d.data.gameMenuStatus, |
||||
|
// }); |
||||
|
|
||||
|
if (d.data.gameMenuStatus == 'close') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Order', |
||||
|
pagePath: '/pages/menu/order/index', |
||||
|
iconPath: '/static/tabbar/dorder.png', |
||||
|
selectedIconPath: '/static/tabbar/dorderS.png' |
||||
|
}) |
||||
|
} else if (d.data.gameMenuStatus == 'open') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Game', |
||||
|
pagePath: "/pages/menu/color/index", |
||||
|
iconPath: "/static/tabbar/[email protected]", |
||||
|
selectedIconPath: "/static/tabbar/[email protected]" |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
goPrivacy() { |
goPrivacy() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url: '../about/privacyPolicy' |
url: '../about/privacyPolicy' |
||||
@ -226,8 +256,13 @@ |
|||||
// 前往不同页面 |
// 前往不同页面 |
||||
go(i) { |
go(i) { |
||||
if (i == 3) { |
if (i == 3) { |
||||
this.transferCode = 1 |
console.log(12313) |
||||
this.mCode=1 |
uni.reLaunch({ |
||||
|
url: '/pages/menu/order/index', |
||||
|
fail: (err) => { |
||||
|
console.log(err, 22222) |
||||
|
} |
||||
|
}) |
||||
} |
} |
||||
if (i == 0) { |
if (i == 0) { |
||||
this.transferCode = 2 |
this.transferCode = 2 |
||||
@ -240,7 +275,7 @@ |
|||||
} |
} |
||||
if (i == 2) { |
if (i == 2) { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url: '../bankCard/addAddress/index' |
url: '../address/index' |
||||
}) |
}) |
||||
} |
} |
||||
if (i == 1) { |
if (i == 1) { |
||||
@ -249,7 +284,6 @@ |
|||||
}) |
}) |
||||
} |
} |
||||
if (i == 5) { |
if (i == 5) { |
||||
console.log(this.androidUrl) |
|
||||
// #ifdef H5 |
// #ifdef H5 |
||||
window.location.href = this.androidUrl; |
window.location.href = this.androidUrl; |
||||
// #endif |
// #endif |
||||
@ -259,6 +293,11 @@ |
|||||
|
|
||||
} |
} |
||||
}, |
}, |
||||
|
gorEDenvelope() { |
||||
|
uni.navigateTo({ |
||||
|
url: '../re/list/index' |
||||
|
}) |
||||
|
}, |
||||
changeName() { |
changeName() { |
||||
uni.showLoading({ |
uni.showLoading({ |
||||
title: "loading" |
title: "loading" |
||||
@ -302,7 +341,11 @@ |
|||||
}) |
}) |
||||
|
|
||||
}, |
}, |
||||
|
goAplan() { |
||||
|
uni.navigateTo({ |
||||
|
url: '../aplan/index' |
||||
|
}) |
||||
|
}, |
||||
goRecharge() { |
goRecharge() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url: '../recharge/index' |
url: '../recharge/index' |
||||
@ -330,7 +373,7 @@ |
|||||
}) |
}) |
||||
if (res.success == true) { |
if (res.success == true) { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Log out successfully', |
title: 'Exit successful', |
||||
icon: 'success', |
icon: 'success', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
|
|||||
@ -0,0 +1,73 @@ |
|||||
|
.record_body{ |
||||
|
padding: 0 36rpx; |
||||
|
} |
||||
|
.flex{ |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.record_item{ |
||||
|
min-height: 200rpx; |
||||
|
border-bottom: 2rpx solid #F5F7FA; |
||||
|
word-break: break-word; |
||||
|
} |
||||
|
.numcon .img1{ |
||||
|
width: 40rpx; |
||||
|
height: 40rpx; |
||||
|
} |
||||
|
.num{ |
||||
|
width: 550rpx; |
||||
|
margin-left: 20rpx; |
||||
|
text-transform: capitalize; |
||||
|
} |
||||
|
.rec{ |
||||
|
color: #303133; |
||||
|
font-size: 32rpx; |
||||
|
} |
||||
|
.cpay{ |
||||
|
color: #909399; |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.time{ |
||||
|
width: 48rpx; |
||||
|
line-height: 48rpx; |
||||
|
text-align: center; |
||||
|
border-radius: 50%; |
||||
|
background-color: #BFC2CC; |
||||
|
color: #fff; |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
|
||||
|
.select_con{ |
||||
|
width: 750rpx; |
||||
|
height: 446rpx; |
||||
|
background-color: #fff; |
||||
|
border-radius: 40rpx 40rpx 0 0; |
||||
|
position: fixed; |
||||
|
bottom: 0; |
||||
|
left: 0; |
||||
|
z-index: 999; |
||||
|
padding-top: 48rpx; |
||||
|
} |
||||
|
.select{ |
||||
|
text-align: center; |
||||
|
color: #303133; |
||||
|
font-size: 36rpx; |
||||
|
} |
||||
|
|
||||
|
.ed_con{ |
||||
|
margin-top: 48rpx; |
||||
|
padding: 0 36rpx; |
||||
|
} |
||||
|
.ed{ |
||||
|
line-height: 96rpx; |
||||
|
} |
||||
|
.img{ |
||||
|
width: 48rpx; |
||||
|
height: 48rpx; |
||||
|
vertical-align: text-bottom; |
||||
|
} |
||||
|
.text{ |
||||
|
font-size: 32rpx; |
||||
|
margin-left: 24rpx; |
||||
|
} |
||||
@ -0,0 +1,185 @@ |
|||||
|
<template> |
||||
|
<view class=""> |
||||
|
<navigation> |
||||
|
Address |
||||
|
<view class="bread" slot="bread"> |
||||
|
<image src="../../../static/bankCard/[email protected]" mode="aspectFit" |
||||
|
@click="goAddAddress()"></image> |
||||
|
</view> |
||||
|
</navigation> |
||||
|
|
||||
|
<!-- v-for="item,index in record_list" :key="item.id" --> |
||||
|
<view class="record_body"> |
||||
|
<view class="record_item flex" v-for="item,index in record_list" :key="index"> |
||||
|
<view class="numcon flex"> |
||||
|
<image src="../../../static/bankCard/dizhi.png" mode="aspectFit" class="img1"> |
||||
|
</image> |
||||
|
<view class="num"> |
||||
|
<view class="flex"> |
||||
|
<view class="rec"> |
||||
|
{{item.name}} |
||||
|
</view> |
||||
|
<view class=""> |
||||
|
+{{areacode}} {{item.mobile}} |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="cpay"> |
||||
|
{{item.areaInfo}} |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="time" @click="keepId(item,item.id)"> |
||||
|
i |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<u-mask :z-index="10" :show="show" @click="show = false"></u-mask> |
||||
|
|
||||
|
<!-- 涓嬫媺閫夋嫨 --> |
||||
|
<view class="select_con" v-show="show"> |
||||
|
<view class="select"> |
||||
|
Select |
||||
|
</view> |
||||
|
|
||||
|
<view class="ed_con" > |
||||
|
<view class="ed"> |
||||
|
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
||||
|
<text class="text" @click="goAddCard2(card)">Edit</text> |
||||
|
</view> |
||||
|
<view class="ed"> |
||||
|
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
||||
|
<text class="text" @click="deleCard()">Delete</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<u-modal cancel-text="cancel" confirm-color="#954DE3" confirm-text="confirm" :show-title="false" :show-cancel-button="true" v-model="show2" :content="content" @confirm="confirm"></u-modal> |
||||
|
</view> |
||||
|
|
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
|
|
||||
|
</view> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import cont from "@/components/navigation/navigation.vue" |
||||
|
import Vue from 'vue'; |
||||
|
import api from '@/utils/api' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
show2: false, |
||||
|
content: 'Are you sure to delete', |
||||
|
record_list: [], |
||||
|
show: false, |
||||
|
// 拿银行卡item |
||||
|
card:null, |
||||
|
cardId:'', |
||||
|
areacode: '', |
||||
|
} |
||||
|
}, |
||||
|
onLoad() { |
||||
|
this.areacode = uni.getStorageSync('siteInfo').areaCode |
||||
|
this.init(); |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
init(){ |
||||
|
const post = api.addressList({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
this.record_list=res.data |
||||
|
for(var i=0;i<res.data.length;i++){ |
||||
|
|
||||
|
|
||||
|
// #ifdef H5 |
||||
|
res.data[i].name=res.data[i].name.replaceAll('%20',' ') |
||||
|
res.data[i].areaInfo=res.data[i].areaInfo.replaceAll('%20',' ') |
||||
|
|
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
res.data[i].name=res.data[i].name.replace(new RegExp('%20',"gm"),' ') |
||||
|
res.data[i].areaInfo=res.data[i].areaInfo.replace(new RegExp('%20',"gm"),' ') |
||||
|
// #endif |
||||
|
} |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
}, |
||||
|
// 拿卡id |
||||
|
keepId(i,c){ |
||||
|
this.show=true; |
||||
|
this.card=i; |
||||
|
this.cardId=c; |
||||
|
}, |
||||
|
deleCard(){ |
||||
|
this.show2=true; |
||||
|
}, |
||||
|
confirm(){ |
||||
|
const post = api.delAddress({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"addressId":this.cardId |
||||
|
}) |
||||
|
uni.showLoading({}) |
||||
|
post.then(res => { |
||||
|
if(res.errCode=='SUCCESS'){ |
||||
|
uni.showToast({ |
||||
|
title: 'Succeeded', |
||||
|
icon: 'success', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
this.show=false; |
||||
|
this.init(); |
||||
|
}else{ |
||||
|
uni.showToast({ |
||||
|
title: 'Failed', |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
}, |
||||
|
goAddAddress() { |
||||
|
uni.navigateTo({ |
||||
|
url:'addAddress/index', |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 给edit专用 |
||||
|
goAddCard2(i) { |
||||
|
var data=JSON.stringify(i) |
||||
|
uni.navigateTo({ |
||||
|
url:'addAddress/index?card='+data, |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
@import './index.css'; |
||||
|
|
||||
|
.bread image { |
||||
|
width: 28rpx; |
||||
|
height: 28rpx; |
||||
|
position: absolute; |
||||
|
right: 36rpx; |
||||
|
top: 60%; |
||||
|
transform: translateY(-50%); |
||||
|
} |
||||
|
</style> |
||||
@ -23,7 +23,7 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="time" @click="show=true"> |
<view class="time" @click="keepId(item,item.id)"> |
||||
i |
i |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -39,19 +39,20 @@ |
|||||
<view class="ed_con" > |
<view class="ed_con" > |
||||
<view class="ed"> |
<view class="ed"> |
||||
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
||||
<text class="text">Edit</text> |
<text class="text" @click="goAddCard2(card)">Edit</text> |
||||
</view> |
</view> |
||||
<view class="ed"> |
<view class="ed"> |
||||
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
<image src="/static/bankCard/[email protected]" mode="aspectFill" class="img"></image> |
||||
<text class="text">Delete</text> |
<text class="text" @click="deleCard()">Delete</text> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
<u-modal cancel-text="cancel" confirm-color="#954DE3" confirm-text="confirm" :show-title="false" :show-cancel-button="true" v-model="show2" :content="content" @confirm="confirm"></u-modal> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
|
|
||||
</template> |
</template> |
||||
@ -63,15 +64,38 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
show2: false, |
||||
|
content: 'Are you sure to delete', |
||||
record_list: [], |
record_list: [], |
||||
show: true |
show: false, |
||||
|
// ÄÃÒøÐп¨item |
||||
|
card:null, |
||||
|
cardId:'', |
||||
} |
} |
||||
}, |
}, |
||||
onLoad() { |
onLoad() { |
||||
|
this.init(); |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
init(){ |
||||
const post = api.bankcardList({ |
const post = api.bankcardList({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
|
for(var i=0;i<res.data.length;i++){ |
||||
|
// #ifdef H5 |
||||
|
res.data[i].acctId=res.data[i].acctId.replaceAll('%20',' ') |
||||
|
res.data[i].acctName=res.data[i].acctName.replaceAll('%20',' ') |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
res.data[i].acctId=res.data[i].acctId.replace(new RegExp('%20',"gm"),' ') |
||||
|
|
||||
|
res.data[i].bankName=res.data[i].acctName.replace(new RegExp('%20',"gm"),' ') |
||||
|
// #endif |
||||
|
|
||||
|
} |
||||
|
|
||||
this.record_list=res.data |
this.record_list=res.data |
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
@ -81,15 +105,64 @@ |
|||||
duration: 2500 |
duration: 2500 |
||||
}) |
}) |
||||
}) |
}) |
||||
|
}, |
||||
|
// Äÿ¨id |
||||
|
keepId(i,c){ |
||||
|
this.show=true; |
||||
|
this.card=i; |
||||
|
this.cardId=c; |
||||
|
|
||||
}, |
}, |
||||
methods: { |
deleCard(){ |
||||
|
this.show2=true; |
||||
|
}, |
||||
|
confirm(){ |
||||
|
const post = api.delBankCard({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"cardId":this.cardId |
||||
|
}) |
||||
|
uni.showLoading({}) |
||||
|
post.then(res => { |
||||
|
if(res.errCode=='SUCCESS'){ |
||||
|
uni.showToast({ |
||||
|
title: 'Succeeded', |
||||
|
icon: 'success', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
this.show=false; |
||||
|
this.init(); |
||||
|
}else{ |
||||
|
uni.showToast({ |
||||
|
title: 'Failed', |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
}, |
||||
goAddCard() { |
goAddCard() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url:'addBankCard/index', |
url:'addBankCard/index', |
||||
}) |
}) |
||||
}, |
}, |
||||
|
|
||||
|
// ¸øeditרÓà |
||||
|
goAddCard2(i) { |
||||
|
console.log(i,22222) |
||||
|
var data=JSON.stringify(i) |
||||
|
console.log(data,22222) |
||||
|
uni.navigateTo({ |
||||
|
url:'addBankCard/index?card='+data, |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
} |
} |
||||
} |
} |
||||
</script> |
</script> |
||||
@ -102,7 +175,7 @@ |
|||||
height: 28rpx; |
height: 28rpx; |
||||
position: absolute; |
position: absolute; |
||||
right: 36rpx; |
right: 36rpx; |
||||
top: 50%; |
top: 60%; |
||||
transform: translateY(-50%); |
transform: translateY(-50%); |
||||
} |
} |
||||
</style> |
</style> |
||||
|
|||||
@ -1,6 +1,6 @@ |
|||||
<template> |
<template> |
||||
<view class="content"> |
<view class="content"> |
||||
<navigation :showBack="showBack">color</navigation> |
<navigation :showBack="showBack">{{siteName}}</navigation> |
||||
<swit :switNum="1" /> |
<swit :switNum="1" /> |
||||
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"> |
<balance @send="getSonValue" :currencySymbol="currencySymbol" :currentBalance="currentBalance"> |
||||
<view class="rules-btn" slot="rules" @click="goRule()">rules</view> |
<view class="rules-btn" slot="rules" @click="goRule()">rules</view> |
||||
@ -8,7 +8,7 @@ |
|||||
<view class="bg_white"> |
<view class="bg_white"> |
||||
<view class="gNum flex"> |
<view class="gNum flex"> |
||||
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" |
<view class="ga" v-for="(item,index) in colorList" :key="item.id" :class="index==ganum?'gaactive':''" |
||||
@click="gaClick(index,item.name)"> |
@click="gaClick(index,item.name,item),myLottertRecord()"> |
||||
{{item.name}} |
{{item.name}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -30,15 +30,15 @@ |
|||||
{{nextBttingValue.period}} |
{{nextBttingValue.period}} |
||||
</view> |
</view> |
||||
<view class="count"> |
<view class="count"> |
||||
<u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false" |
<u-count-down :timestamp="nextBttingValue.remain" :show-days="false" :show-hours="false"> |
||||
></u-count-down> |
</u-count-down> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view v-show="canBuy"> |
<view v-show="canBuy"> |
||||
<view class="flex icon-con"> |
<view class="flex icon-con"> |
||||
<view class="ico" @click="xiazhu(item.color)" v-for="item,index in gameColor" :key="item.id"> |
<view class="ico" @click="xiazhu(item.color)" v-for="item,index in gameColor" :key="item.id" :class="{'greenbg': item.id === 1, 'purple': item.id === 2, redbg: item.id === 3}"> |
||||
<image :src="'../../../static/color/ico_apple_'+item.color+'@3x.png'" mode=""></image> |
{{item.color2}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="multiple"> |
<view class="multiple"> |
||||
@ -58,8 +58,9 @@ |
|||||
</view> |
</view> |
||||
<view class="canBuy" v-show="!canBuy"> |
<view class="canBuy" v-show="!canBuy"> |
||||
<view class="flex icon-con"> |
<view class="flex icon-con"> |
||||
<view class="ico" v-for="item,index in gameColor" :key="item.id"> |
<view class="ico gray" v-for="item,index in gameColor" :key="item.id"> |
||||
<image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> |
<!-- <image :src="'../../../static/color/ash_'+item.color+'@3x.png'" mode=""></image> --> |
||||
|
{{item.color2}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="multiple"> |
<view class="multiple"> |
||||
@ -103,7 +104,8 @@ |
|||||
{{item.text}} |
{{item.text}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :missingFrequency="missingFrequency"></gamecont> |
<gamecont v-if="gameNavNum==0" :gameRecordCont="gameRecordCont" :missingFrequency="missingFrequency"> |
||||
|
</gamecont> |
||||
<gamecont2 :gameRecordCont="gameRecordCont" v-if="gameNavNum==1"></gamecont2> |
<gamecont2 :gameRecordCont="gameRecordCont" v-if="gameNavNum==1"></gamecont2> |
||||
<gamecont3 :myGameRecord="myGameRecord" v-if="gameNavNum==2"></gamecont3> |
<gamecont3 :myGameRecord="myGameRecord" v-if="gameNavNum==2"></gamecont3> |
||||
</view> |
</view> |
||||
@ -278,8 +280,8 @@ |
|||||
<view class="btn1 btn" @click="xiazhuCode=false"> |
<view class="btn1 btn" @click="xiazhuCode=false"> |
||||
cancel |
cancel |
||||
</view> |
</view> |
||||
<view class="btn2 btn" @click="toLotter" :class="bettingNumber!=0?'on':''"> |
<view class="btn2 btn" @click="toLotter"> |
||||
comfierm |
Confirm |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -316,10 +318,12 @@ |
|||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" scroll-with-animation="true" scroll-top="0" > |
<scroll-view class="item" style="height:380rpx" scroll-y="true" show-scrollbar="true" |
||||
|
scroll-with-animation="true" scroll-top="0"> |
||||
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList" |
<view class="body_item" @click="gotoWeb(getLink(item))" v-for="(item,index) in whatAppList" |
||||
:key="item"> |
:key="item"> |
||||
<image src="../../../static/color/[email protected]" mode="aspectFit" class="img2"></image> |
<image src="../../../static/color/[email protected]" mode="aspectFit" class="img2"> |
||||
|
</image> |
||||
<view class="p2"> |
<view class="p2"> |
||||
{{getName(item)}} |
{{getName(item)}} |
||||
</view> |
</view> |
||||
@ -335,12 +339,21 @@ |
|||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
<image src="../../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" @click="keCode=0"></image> |
<image src="../../../static/color/pop_icon_close.png" mode="aspectFit" class="colseKefu" |
||||
|
@click="keCode=0"></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
|
<view v-if="upgrade" class="logout-div-bg"> |
||||
|
</view> |
||||
|
<view class="task-div" v-if="upgrade"> |
||||
|
<image class="upgrade-bg" src="../../../static/bankCard/upgrade.png"></image> |
||||
|
<view class="upgrade-div"> |
||||
|
<textarea class="upgrade-desc" disable v-html="upgradeInfo.info" /> |
||||
|
<span class="task-start" @click="toUpgrade()">Upgrade</span> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
@ -363,6 +376,11 @@ |
|||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
siteName: '', |
||||
|
// 传过去rules的值 |
||||
|
ruleDescription: '', |
||||
|
|
||||
|
|
||||
// 显示back或不显示 |
// 显示back或不显示 |
||||
showBack: false, |
showBack: false, |
||||
|
|
||||
@ -371,7 +389,6 @@ |
|||||
teList: [], |
teList: [], |
||||
whatAppList: [], |
whatAppList: [], |
||||
serviceTime: '', |
serviceTime: '', |
||||
|
|
||||
touzhuMoney: 0, |
touzhuMoney: 0, |
||||
currencySymbol: '', |
currencySymbol: '', |
||||
currentBalance: '', |
currentBalance: '', |
||||
@ -381,7 +398,7 @@ |
|||||
xia_body: [1, 2, 3], |
xia_body: [1, 2, 3], |
||||
follow_xiazhu_conOn: 0, |
follow_xiazhu_conOn: 0, |
||||
bettingPrice: '', |
bettingPrice: '', |
||||
bettingNumber: 0, |
bettingNumber: 1, |
||||
show: false, |
show: false, |
||||
showWhite: true, |
showWhite: true, |
||||
myName: '', |
myName: '', |
||||
@ -410,22 +427,27 @@ |
|||||
totalPage: 1, |
totalPage: 1, |
||||
gameNav: [], |
gameNav: [], |
||||
gNum: 'G2', |
gNum: 'G2', |
||||
|
|
||||
gameColor: [{ |
gameColor: [{ |
||||
id: 1, |
id: 1, |
||||
color: 'GREEN' |
color: 'GREEN', |
||||
|
color2: 'Join Green' |
||||
}, |
}, |
||||
{ |
{ |
||||
id: 2, |
id: 2, |
||||
color: 'VIOLET' |
color: 'VIOLET', |
||||
|
color2: 'Join Violet' |
||||
}, |
}, |
||||
{ |
{ |
||||
id: 3, |
id: 3, |
||||
color: 'RED' |
color: 'RED', |
||||
|
color2: 'Join Red' |
||||
}, |
}, |
||||
], |
], |
||||
|
|
||||
gameColorNumber1: [{ |
gameColorNumber1: [{ |
||||
num: 0, |
num: 0, |
||||
cla: 'bg_jb2' |
cla: 'bg_jb1' |
||||
}, |
}, |
||||
{ |
{ |
||||
num: 1, |
num: 1, |
||||
@ -446,7 +468,7 @@ |
|||||
], |
], |
||||
gameColorNumber2: [{ |
gameColorNumber2: [{ |
||||
num: 5, |
num: 5, |
||||
cla: 'bg_jb1' |
cla: 'bg_jb2' |
||||
}, |
}, |
||||
{ |
{ |
||||
num: 6, |
num: 6, |
||||
@ -462,12 +484,12 @@ |
|||||
}, |
}, |
||||
{ |
{ |
||||
num: 9, |
num: 9, |
||||
cla: 'bg_red' |
cla: 'bg_green' |
||||
}, |
}, |
||||
], |
], |
||||
bettingValue: '', |
bettingValue: '', |
||||
nextBttingValue: [], |
nextBttingValue: [], |
||||
numindex: -1, |
numindex: 0, |
||||
ganumArr: [], |
ganumArr: [], |
||||
gg: 3, |
gg: 3, |
||||
lotteryData: {}, |
lotteryData: {}, |
||||
@ -487,13 +509,82 @@ |
|||||
totalPage2: '', |
totalPage2: '', |
||||
lotteryNum: [], |
lotteryNum: [], |
||||
|
|
||||
missingFrequency:{} |
missingFrequency: {}, |
||||
|
upgrade: false, |
||||
|
close_mask: true, |
||||
|
upgradeInfo: {}, |
||||
|
logoUrl: '', |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
|
||||
|
const siteInfo = api.siteInfo() |
||||
|
siteInfo.then(d => { |
||||
|
this.logoUrl = d.data.siteDomain + d.data.siteLogo |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
this.siteName = uni.getStorageSync('siteInfo').siteName; |
||||
|
|
||||
|
this.currencySymbol = uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
const post = api.withdrawConfig({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
if (res.data != undefined) { |
||||
|
this.currentBalance = res.data.currentBalance; |
||||
|
this.currentBalance = parseFloat(this.currentBalance).toFixed(2) |
||||
|
uni.setStorage({ |
||||
|
key: 'currentBalance', |
||||
|
data: this.currentBalance, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
|
||||
|
const post2 = api.userInfo({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post2.then(res => { |
||||
|
uni.setStorage({ |
||||
|
key: 'MyInfo', |
||||
|
data: res.data, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
console.log(res.data) |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
this.initializationMissingFrequency(); |
this.initializationMissingFrequency(); |
||||
// 客服 |
// 客服 |
||||
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
||||
@ -530,6 +621,10 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
toUpgrade() { |
||||
|
plus.runtime.openURL(this.upgradeInfo.appUrl) |
||||
|
}, |
||||
|
|
||||
initializationMissingFrequency() { |
initializationMissingFrequency() { |
||||
for (var i = 0; i < 10; i++) { |
for (var i = 0; i < 10; i++) { |
||||
this.missingFrequency[i.toString()] = { |
this.missingFrequency[i.toString()] = { |
||||
@ -586,9 +681,10 @@ |
|||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
|
|
||||
this.betting_amount = res.data.betting_amount.split(','); |
this.betting_amount = res.data.betting_amount.split(','); |
||||
|
this.bettingPrice = this.betting_amount[0]; |
||||
this.betting_rule = res.data.tips; |
this.betting_rule = res.data.tips; |
||||
|
this.tmoney(); |
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
console.log(e) |
console.log(e) |
||||
@ -603,6 +699,7 @@ |
|||||
this.colorData = this.colorList[0]; |
this.colorData = this.colorList[0]; |
||||
this.gameNav2[1].text = this.colorData.name + " record" |
this.gameNav2[1].text = this.colorData.name + " record" |
||||
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
this.gameNav2[2].text = 'My ' + this.colorData.name + " record" |
||||
|
this.ruleDescription = this.colorList[0].description; |
||||
this.gNum = this.colorList[0].name |
this.gNum = this.colorList[0].name |
||||
this.setlotteryData(); |
this.setlotteryData(); |
||||
this.gg = this.colorData.id |
this.gg = this.colorData.id |
||||
@ -646,8 +743,7 @@ |
|||||
|
|
||||
} |
} |
||||
this.timeChange(this.lotteryData[this.gNum].remain); |
this.timeChange(this.lotteryData[this.gNum].remain); |
||||
} |
}, |
||||
, |
|
||||
setlotteryData() { |
setlotteryData() { |
||||
for (let i = 0; i < this.colorList.length; i++) { |
for (let i = 0; i < this.colorList.length; i++) { |
||||
this.nextBtting(this.colorList[i].name) |
this.nextBtting(this.colorList[i].name) |
||||
@ -660,13 +756,14 @@ |
|||||
xiazhu(val) { |
xiazhu(val) { |
||||
this.xiazhuCode = true; |
this.xiazhuCode = true; |
||||
this.bettingValue = val; |
this.bettingValue = val; |
||||
this.numindex = -1; |
this.numindex = 0; |
||||
this.list[0].checked = false; |
this.list[0].checked = true; |
||||
}, |
}, |
||||
folLisNumFn(i) { |
folLisNumFn(i) { |
||||
this.folLisNum = i; |
this.folLisNum = i; |
||||
}, |
}, |
||||
numColor(i, j) { |
numColor(i, j) { |
||||
|
console.log(i, j, 5555555) |
||||
this.numindex = i; |
this.numindex = i; |
||||
this.bettingPrice = j; |
this.bettingPrice = j; |
||||
this.touzhuMoney = j; |
this.touzhuMoney = j; |
||||
@ -690,6 +787,9 @@ |
|||||
}, |
}, |
||||
|
|
||||
toLotter() { |
toLotter() { |
||||
|
uni.showLoading({ |
||||
|
title: 'loading' |
||||
|
}) |
||||
if (this.bettingPrice == 0) { |
if (this.bettingPrice == 0) { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Please select bet amount', |
title: 'Please select bet amount', |
||||
@ -724,9 +824,6 @@ |
|||||
"bettingNumber": this.bettingNumber, |
"bettingNumber": this.bettingNumber, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
uni.showLoading({ |
|
||||
title:'loading' |
|
||||
}) |
|
||||
if (res.success == true) { |
if (res.success == true) { |
||||
// this.xiaSul = 1; |
// this.xiaSul = 1; |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -734,12 +831,14 @@ |
|||||
icon: 'success', |
icon: 'success', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
|
this.xiazhuCode = false |
||||
//更新余额 |
//更新余额 |
||||
const post = api.withdrawConfig({ |
const post = api.withdrawConfig({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
if (res.data) { |
if (res.data) { |
||||
|
res.data.currentBalance = parseFloat(res.data.currentBalance).toFixed(2) |
||||
this.currentBalance = res.data.currentBalance; |
this.currentBalance = res.data.currentBalance; |
||||
uni.setStorage({ |
uni.setStorage({ |
||||
key: 'currentBalance', |
key: 'currentBalance', |
||||
@ -749,7 +848,7 @@ |
|||||
} |
} |
||||
}); |
}); |
||||
} |
} |
||||
|
uni.hideLoading() |
||||
}) |
}) |
||||
|
|
||||
} else { |
} else { |
||||
@ -779,13 +878,28 @@ |
|||||
if (res.data == '' || res.data.content == null) { |
if (res.data == '' || res.data.content == null) { |
||||
return |
return |
||||
} |
} |
||||
|
// console.log(res.data.content,5555555555888) |
||||
|
if (res.data.content != '' || res.data.content != undefined) { |
||||
this.myGameRecord = res.data.content; |
this.myGameRecord = res.data.content; |
||||
this.totalPage = res.data.totalElements; |
|
||||
for (var i = 0; i < this.myGameRecord.length; i++) { |
for (var i = 0; i < this.myGameRecord.length; i++) { |
||||
// this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13); |
// this.myGameRecord[i].period = this.myGameRecord[i].period.substring(2, 13); |
||||
this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i] |
this.myGameRecord[i].addTime = index.formatyymmddhhmmss(this.myGameRecord[i] |
||||
.addTime); |
.addTime); |
||||
|
|
||||
|
this.myGameRecord[i].bettingFee = parseFloat(this.myGameRecord[i].bettingFee).toFixed( |
||||
|
2) |
||||
|
this.myGameRecord[i].bettingPrice = parseFloat(this.myGameRecord[i].bettingPrice) |
||||
|
.toFixed(2) |
||||
|
this.myGameRecord[i].bettingAmount = parseFloat(this.myGameRecord[i].bettingAmount) |
||||
|
.toFixed(2) |
||||
|
this.myGameRecord[i].realAmount = parseFloat(this.myGameRecord[i].realAmount).toFixed( |
||||
|
2) |
||||
} |
} |
||||
|
} else { |
||||
|
this.myGameRecord = ''; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
@ -808,9 +922,12 @@ |
|||||
this.totalPage = res.data.totalElements; |
this.totalPage = res.data.totalElements; |
||||
this.totalPage2 = res.data.totalPages; |
this.totalPage2 = res.data.totalPages; |
||||
for (var i = 0; i < this.gameRecordCont.length; i++) { |
for (var i = 0; i < this.gameRecordCont.length; i++) { |
||||
// this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(2, 13); |
// this.gameRecordCont[i].period = this.gameRecordCont[i].period.substring(0, 2)+'...'+this.gameRecordCont[i].period.substring(10, 17); |
||||
|
|
||||
this.gameRecordCont[i].lotteryColor = this.gameRecordCont[i].lotteryColor.split(','); |
this.gameRecordCont[i].lotteryColor = this.gameRecordCont[i].lotteryColor.split(','); |
||||
if(!this.gameRecordCont[i].lotteryResult){ |
|
||||
|
if (!this.gameRecordCont[i].lotteryResult && this.gameRecordCont[i].lotteryColor != |
||||
|
undefined) { |
||||
this.gameRecordCont[i].lotteryResult = 0 |
this.gameRecordCont[i].lotteryResult = 0 |
||||
} |
} |
||||
|
|
||||
@ -822,7 +939,8 @@ |
|||||
break; |
break; |
||||
} |
} |
||||
|
|
||||
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency=this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency+1; |
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency = this |
||||
|
.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency + 1; |
||||
if (!this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen) { |
if (!this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen) { |
||||
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing = i |
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing = i |
||||
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen = true |
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].isOpen = true |
||||
@ -839,7 +957,7 @@ |
|||||
|
|
||||
|
|
||||
|
|
||||
gaClick(i, j) { |
gaClick(i, j, item) { |
||||
this.ganum = i |
this.ganum = i |
||||
this.gNum = j; |
this.gNum = j; |
||||
this.colorData = this.colorList[i]; |
this.colorData = this.colorList[i]; |
||||
@ -850,11 +968,12 @@ |
|||||
this.gg = this.colorList[i].id |
this.gg = this.colorList[i].id |
||||
this.getLottertRecord(); |
this.getLottertRecord(); |
||||
this.timeChange(this.lotteryData[j].remain) |
this.timeChange(this.lotteryData[j].remain) |
||||
|
this.ruleDescription = item.description; |
||||
|
|
||||
}, |
}, |
||||
goRule() { |
goRule() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url: '../rule/index' |
url: '../rule/index?des=' + this.ruleDescription |
||||
}) |
}) |
||||
}, |
}, |
||||
showMas() { |
showMas() { |
||||
|
|||||
@ -3,6 +3,19 @@ |
|||||
<navigation :showBack="false"> |
<navigation :showBack="false"> |
||||
Home |
Home |
||||
</navigation> |
</navigation> |
||||
|
<!-- #ifdef H5 --> |
||||
|
<view class="top_item" @click="goDown()"> |
||||
|
<view class="one"> |
||||
|
<view class="white"> |
||||
|
<image :src="logoUrl" mode="aspectFit"></image> |
||||
|
</view> |
||||
|
<view class="dtext"> |
||||
|
Open With An App |
||||
|
</view> |
||||
|
</view> |
||||
|
<image src="../../../static/home/[email protected]" mode="aspectFit" class="dimg"></image> |
||||
|
</view> |
||||
|
<!-- #endif --> |
||||
<u-swiper :list="list" height="1000" mode="none"></u-swiper> |
<u-swiper :list="list" height="1000" mode="none"></u-swiper> |
||||
|
|
||||
<view class="goods_list_con"> |
<view class="goods_list_con"> |
||||
@ -12,7 +25,7 @@ |
|||||
{{item.goodsName}} |
{{item.goodsName}} |
||||
</view> |
</view> |
||||
<view class="price"> |
<view class="price"> |
||||
₹ {{item.goodsPrice}} |
{{currencySymbol}} {{item.goodsPrice}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -28,15 +41,50 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
logoUrl:'', |
||||
|
androidUrl: '', |
||||
// banner |
// banner |
||||
list: [], |
list: [], |
||||
// 商品 |
// 商品 |
||||
goods_list:[], |
goods_list:[], |
||||
ticket:'', |
ticket:'', |
||||
|
currencySymbol:'', |
||||
|
currentBalance:'', |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
|
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
const post = api.withdrawConfig({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
if(res.data!=undefined){ |
||||
|
this.currentBalance=res.data.currentBalance; |
||||
|
uni.setStorage({ |
||||
|
key: 'currentBalance', |
||||
|
data: this.currentBalance, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
}) |
||||
|
.catch(e => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
// #ifdef APP-PLUS |
||||
|
this.appVersion(); |
||||
|
// #endif |
||||
|
this.openGame(); |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
this.androidUrl = uni.getStorageSync('siteInfo').androidUrl; |
||||
this.ticket= uni.getStorageSync('logInfo').data; |
this.ticket= uni.getStorageSync('logInfo').data; |
||||
this.init(); |
this.init(); |
||||
}, |
}, |
||||
@ -45,6 +93,77 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
// 校驗版本號 |
||||
|
appVersion() { |
||||
|
|
||||
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { |
||||
|
console.log('当前版本号' + wgtinfo.versionCode) |
||||
|
console.log('服务器版本号:'+ res.data.versionId) |
||||
|
console.log((wgtinfo.versionCode < res.data.versionId)) |
||||
|
var param = { |
||||
|
'appId': 'android', |
||||
|
'versionCode': wgtinfo.versionName, |
||||
|
} |
||||
|
console.log(param,"版本号版本号版本号") |
||||
|
const post = api.appVersion(param) |
||||
|
post.then(d => { |
||||
|
console.log('zzzzzzzzzzzzzz') |
||||
|
console.log(d) |
||||
|
this.upgradeInfo = d.data |
||||
|
|
||||
|
if (d.data.isUpgrade != undefined && d.data.isUpgrade) { |
||||
|
this.upgrade = true |
||||
|
this.close_mask = false |
||||
|
} else { |
||||
|
this.upgrade = false |
||||
|
//this.isFirstLogin() |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}); |
||||
|
|
||||
|
}, |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
// uni.setStorage({ |
||||
|
// key: 'Gamestatus', |
||||
|
// data: d.data.gameMenuStatus, |
||||
|
// }); |
||||
|
|
||||
|
if (d.data.gameMenuStatus == 'close') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Order', |
||||
|
pagePath:'/pages/menu/order/index', |
||||
|
iconPath: '/static/tabbar/dorder.png', |
||||
|
selectedIconPath: '/static/tabbar/dorderS.png' |
||||
|
}) |
||||
|
}else if (d.data.gameMenuStatus == 'open'){ |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Game', |
||||
|
pagePath: "/pages/menu/color/index", |
||||
|
iconPath: "/static/tabbar/[email protected]", |
||||
|
selectedIconPath: "/static/tabbar/[email protected]" |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
|
goDown(){ |
||||
|
// #ifdef H5 |
||||
|
window.location.href = this.androidUrl; |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
plus.runtime.openURL(this.androidUrl); |
||||
|
// #endif |
||||
|
}, |
||||
|
|
||||
goGoodsDetail(i){ |
goGoodsDetail(i){ |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url:'goodsDetail/index?id='+i |
url:'goodsDetail/index?id='+i |
||||
@ -65,9 +184,30 @@ |
|||||
const post2 = api.goodsList({}) |
const post2 = api.goodsList({}) |
||||
.then(res =>{ |
.then(res =>{ |
||||
this.goods_list=res.data; |
this.goods_list=res.data; |
||||
|
for(var i=0;i<this.goods_list.length;i++){ |
||||
|
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2) |
||||
|
} |
||||
}).catch(err =>{ |
}).catch(err =>{ |
||||
console.log(err) |
console.log(err) |
||||
}) |
}) |
||||
|
|
||||
|
// 获取logo |
||||
|
const siteInfo = api.siteInfo() |
||||
|
siteInfo.then(d => { |
||||
|
let that = this |
||||
|
uni.setStorage({ |
||||
|
key: 'siteInfo', |
||||
|
data: d.data, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
that.logoUrl = d.data.siteDomain + d.data.siteLogo |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
}, |
}, |
||||
}, |
}, |
||||
|
|
||||
|
|||||
@ -0,0 +1,108 @@ |
|||||
|
<template> |
||||
|
<view class=""> |
||||
|
<navigation :showBack="false"> |
||||
|
Orders |
||||
|
<image src="../../../static/color/[email protected]" mode="aspectFit" class="back" @click="back()"></image> |
||||
|
</navigation> |
||||
|
<view class=""> |
||||
|
<u-tabs :bold="false" active-color="#fff" inactive-color="rgba(135,109,164)" bg-color="#300261" height="108" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> |
||||
|
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
|
</view> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Vue from 'vue'; |
||||
|
import balance from "@/components/balance/balance.vue" |
||||
|
import api from '@/utils/api' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
list: [{ |
||||
|
name: 'All' |
||||
|
}, { |
||||
|
name: 'Undeliver' |
||||
|
}, { |
||||
|
name: 'Unreceive', |
||||
|
}, |
||||
|
{ |
||||
|
name: 'Success', |
||||
|
}, |
||||
|
], |
||||
|
current: 0 |
||||
|
} |
||||
|
}, |
||||
|
onLoad() { |
||||
|
this.openGame() |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
// uni.setStorage({ |
||||
|
// key: 'Gamestatus', |
||||
|
// data: d.data.gameMenuStatus, |
||||
|
// }); |
||||
|
|
||||
|
if (d.data.gameMenuStatus == 'close') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Order', |
||||
|
pagePath:'/pages/menu/order/index', |
||||
|
iconPath: '/static/tabbar/dorder.png', |
||||
|
selectedIconPath: '/static/tabbar/dorderS.png' |
||||
|
}) |
||||
|
}else if (d.data.gameMenuStatus == 'open'){ |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Game', |
||||
|
pagePath: "/pages/menu/color/index", |
||||
|
iconPath: "./static/tabbar/[email protected]", |
||||
|
selectedIconPath: "./static/tabbar/[email protected]" |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
|
change(index) { |
||||
|
this.current = index; |
||||
|
}, |
||||
|
back(){ |
||||
|
uni.switchTab({ |
||||
|
url:'/pages/menu/My/index' |
||||
|
}) |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
/deep/ .u-tab-bar{ |
||||
|
background-color: #954DE3 !important; |
||||
|
} |
||||
|
/* #ifdef APP-PLUS */ |
||||
|
.back{ |
||||
|
width: 42rpx; |
||||
|
height: 42rpx; |
||||
|
position: absolute; |
||||
|
left:36rpx; |
||||
|
top: 60%; |
||||
|
transform: translateY(-50%) rotate(-180deg) ; |
||||
|
|
||||
|
} |
||||
|
/* #endif */ |
||||
|
.back{ |
||||
|
width: 42rpx; |
||||
|
height: 42rpx; |
||||
|
position: absolute; |
||||
|
left:36rpx; |
||||
|
top: 50%; |
||||
|
transform: translateY(-50%) rotate(-180deg) ; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
</style> |
||||
@ -129,13 +129,13 @@ |
|||||
} |
} |
||||
}, |
}, |
||||
onLoad() { |
onLoad() { |
||||
|
this.openGame(); |
||||
const post = api.inviteCode({ |
const post = api.inviteCode({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
this.inviteRule = res.data; |
this.inviteRule = res.data; |
||||
this.copyText = this.inviteRule.qrcodeUrl; |
this.copyText = this.inviteRule.qrcodeUrl; |
||||
console.log(res.data, 9999); |
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -147,6 +147,36 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
// uni.setStorage({ |
||||
|
// key: 'Gamestatus', |
||||
|
// data: d.data.gameMenuStatus, |
||||
|
// }); |
||||
|
|
||||
|
if (d.data.gameMenuStatus == 'close') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Order', |
||||
|
pagePath:'/pages/menu/order/index', |
||||
|
iconPath: '/static/tabbar/dorder.png', |
||||
|
selectedIconPath: '/static/tabbar/dorderS.png' |
||||
|
}) |
||||
|
}else if (d.data.gameMenuStatus == 'open'){ |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Game', |
||||
|
pagePath: "/pages/menu/color/index", |
||||
|
iconPath: "/static/tabbar/[email protected]", |
||||
|
selectedIconPath: "/static/tabbar/[email protected]" |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
goInviteRule() { |
goInviteRule() { |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url: '../rule/inviteRule/index' |
url: '../rule/inviteRule/index' |
||||
@ -203,12 +233,25 @@ |
|||||
}, |
}, |
||||
copyTextMethod() { |
copyTextMethod() { |
||||
|
|
||||
|
// #ifdef H5 |
||||
this.$copyText(this.copyText).then(res => { |
this.$copyText(this.copyText).then(res => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Copy succeeded', |
title: 'Copy Success', |
||||
icon: 'success' |
icon: 'success' |
||||
}) |
}) |
||||
}) |
}) |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
uni.setClipboardData({ |
||||
|
data: this.copyText, |
||||
|
success() { |
||||
|
uni.showToast({ |
||||
|
title: 'Copy Success', |
||||
|
icon: 'success' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
// #endif |
||||
}, |
}, |
||||
leaIdChange(index) { |
leaIdChange(index) { |
||||
this.leaId = index; |
this.leaId = index; |
||||
@ -217,6 +260,19 @@ |
|||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style lang="scss" scoped> |
||||
|
/* #ifdef APP-PLUS */ |
||||
|
.pro-head{ |
||||
|
padding-top: 30rpx; |
||||
|
} |
||||
|
.pro-hea-rig{ |
||||
|
position: absolute; |
||||
|
right: 36rpx; |
||||
|
top: 60%; |
||||
|
transform: translateY(-50%); |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
} |
||||
|
/* #endif */ |
||||
@import url("./index.css"); |
@import url("./index.css"); |
||||
</style> |
</style> |
||||
|
|||||
@ -0,0 +1,28 @@ |
|||||
|
.big{ |
||||
|
position: relative; |
||||
|
} |
||||
|
.login-body{ |
||||
|
padding: 36rpx 36rpx; |
||||
|
} |
||||
|
.login-body .big .text{ |
||||
|
color: #BFC2CC; |
||||
|
font-size: 24rpx; |
||||
|
position: absolute; |
||||
|
top: 16rpx; |
||||
|
} |
||||
|
.login-btn{ |
||||
|
margin-top: 60rpx; |
||||
|
background-color: #34026B; |
||||
|
color: #fff; |
||||
|
font-size: 28rpx; |
||||
|
line-height: 96rpx; |
||||
|
border-radius: 20rpx; |
||||
|
} |
||||
|
.u-form-item{ |
||||
|
height: 110rpx !important; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/deep/ .u-input__right-icon{ |
||||
|
display: none !important; |
||||
|
} |
||||
@ -0,0 +1,115 @@ |
|||||
|
<template> |
||||
|
<view class="goods_con"> |
||||
|
<navigation> |
||||
|
ADD Red Envelope |
||||
|
</navigation> |
||||
|
<view class="login-body"> |
||||
|
<u-form :model="form" ref="uForm" :rules="rules"> |
||||
|
<view class="big"> |
||||
|
<view class="text"> |
||||
|
Fixed Money |
||||
|
</view> |
||||
|
<u-form-item prop="amount"> |
||||
|
|
||||
|
<u-input v-model="form.amount" :placeholder="''" /> |
||||
|
</u-form-item> |
||||
|
</view> |
||||
|
<view class="big"> |
||||
|
|
||||
|
|
||||
|
<view class="text"> |
||||
|
Enter Your Login Password |
||||
|
</view> |
||||
|
<u-form-item prop="password"> |
||||
|
|
||||
|
<u-input type="password" v-model="form.password" :placeholder="''" /> |
||||
|
</u-form-item> |
||||
|
</view> |
||||
|
</u-form> |
||||
|
<button @click="submit" class="login-btn"> |
||||
|
Confirm |
||||
|
</button> |
||||
|
</view> |
||||
|
<tab-bar></tab-bar> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import api from '@/utils/api' |
||||
|
import utils from '@/utils' |
||||
|
import md5 from 'js-md5' |
||||
|
import store from '@/store' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
form: { |
||||
|
password: '', |
||||
|
amount: '', |
||||
|
ticket: '', |
||||
|
}, |
||||
|
rules: { |
||||
|
amount: [{ |
||||
|
amount: true, |
||||
|
message: 'Please enter your amount', |
||||
|
// 可以单个或者同时写两个触发验证方式 |
||||
|
trigger: ['blur'], |
||||
|
}, |
||||
|
|
||||
|
], |
||||
|
password: [{ |
||||
|
required: true, |
||||
|
// min: 5, |
||||
|
message: 'Please enter password', |
||||
|
trigger: 'blur' |
||||
|
}], |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
onLoad(i) { |
||||
|
this.form.ticket = uni.getStorageSync('logInfo').data |
||||
|
}, |
||||
|
|
||||
|
onReady() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
submit() { |
||||
|
this.$refs.uForm.validate(valid => { |
||||
|
if (valid) { |
||||
|
uni.showLoading({}) |
||||
|
const post = api.launchRedEnvelop(this.form) |
||||
|
post.then(res => { |
||||
|
if(res.errCode=='SUCCESS'){ |
||||
|
uni.showToast({ |
||||
|
title: 'Successfully', |
||||
|
icon: 'success', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
setTimeout(()=>{ |
||||
|
uni.navigateTo({ |
||||
|
url:'../list/index' |
||||
|
}) |
||||
|
},1500) |
||||
|
} |
||||
|
}).catch((e)=>{ |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
|
||||
|
} else { |
||||
|
console.log('验证失败'); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
@import './index.css'; |
||||
|
</style> |
||||
@ -0,0 +1,117 @@ |
|||||
|
|
||||
|
|
||||
|
.flex{ |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
align-items: flex-start; |
||||
|
} |
||||
|
.bread image { |
||||
|
width: 28rpx; |
||||
|
height: 28rpx; |
||||
|
position: absolute; |
||||
|
right: 36rpx; |
||||
|
top: 60%; |
||||
|
transform: translateY(-50%); |
||||
|
} |
||||
|
.record_item{ |
||||
|
height: 144rpx; |
||||
|
margin-top: 30rpx; |
||||
|
} |
||||
|
.numcon .img1{ |
||||
|
width: 40rpx; |
||||
|
height: 40rpx; |
||||
|
vertical-align: middle; |
||||
|
margin-right: 20rpx; |
||||
|
} |
||||
|
.num{ |
||||
|
margin-left: 20rpx; |
||||
|
} |
||||
|
.rec{ |
||||
|
color: #303133; |
||||
|
font-size: 32rpx; |
||||
|
} |
||||
|
|
||||
|
.time{ |
||||
|
color: #909399; |
||||
|
font-size: 28rpx; |
||||
|
margin-top: 16rpx; |
||||
|
} |
||||
|
|
||||
|
.status{ |
||||
|
font-size: 28rpx; |
||||
|
} |
||||
|
.red{ |
||||
|
color: #F25B5B !important; |
||||
|
} |
||||
|
.green{ |
||||
|
color:#00B977 !important; |
||||
|
} |
||||
|
.noRes{ |
||||
|
position: absolute; |
||||
|
left: 50%; |
||||
|
top: 50%; |
||||
|
transform: translate(-50%,-50%); |
||||
|
} |
||||
|
.noRes .imgcon{ |
||||
|
width: 72rpx; |
||||
|
height: 72rpx; |
||||
|
margin: 0 auto; |
||||
|
} |
||||
|
.noRes .imgcon image{ |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
.noRes .res{ |
||||
|
text-align: center; |
||||
|
color: #BFC2CC; |
||||
|
font-size: 28rpx; |
||||
|
margin-top: 24rpx; |
||||
|
} |
||||
|
page{ |
||||
|
height: 100% !important; |
||||
|
} |
||||
|
.content{ |
||||
|
padding-bottom: 200rpx; |
||||
|
background-color: #F5F7FA; |
||||
|
} |
||||
|
.record_body{ |
||||
|
height: 100%; |
||||
|
background-color: #F5F7FA; |
||||
|
} |
||||
|
.item{ |
||||
|
margin-bottom: 20rpx; |
||||
|
background-color: #fff; |
||||
|
padding: 36rpx; |
||||
|
} |
||||
|
.link{ |
||||
|
color: #909399; |
||||
|
font-size: 28rpx; |
||||
|
margin-top: 16rpx; |
||||
|
word-break: break-all; |
||||
|
} |
||||
|
.copy{ |
||||
|
text-align: center; |
||||
|
width: 88rpx; |
||||
|
line-height: 40rpx; |
||||
|
border: 3rpx solid #954DE3; |
||||
|
border-radius: 8rpx; |
||||
|
color: #954DE3; |
||||
|
font-size: 24rpx; |
||||
|
} |
||||
|
.top{ |
||||
|
border-bottom: 2rpx solid #EDEFF2; |
||||
|
padding-bottom: 20rpx; |
||||
|
} |
||||
|
.no{ |
||||
|
display: none; |
||||
|
} |
||||
|
.bottom{ |
||||
|
text-align: center; |
||||
|
color: #303133; |
||||
|
line-height: 52rpx; |
||||
|
border-radius: 25rpx; |
||||
|
margin-top: 15rpx; |
||||
|
} |
||||
|
.bg{ |
||||
|
background-color: #F5F7FA; |
||||
|
} |
||||
@ -0,0 +1,200 @@ |
|||||
|
<template> |
||||
|
<view class="content"> |
||||
|
<navigation> |
||||
|
Red Envelope |
||||
|
<view class="bread" slot="bread"> |
||||
|
<image src="../../../../static/bankCard/[email protected]" mode="aspectFit" |
||||
|
@click="goAdd()"></image> |
||||
|
</view> |
||||
|
</navigation> |
||||
|
<view class="record_body" > |
||||
|
<view class="item" v-for="item,index in record_list" :key:="index"> |
||||
|
<view class="top"> |
||||
|
<view class="flex"> |
||||
|
<view class="money"> |
||||
|
{{currencySymbol}} {{item.amount}} |
||||
|
</view> |
||||
|
<view class="status" :class="item.status=='unreceive'?'green':'red'"> |
||||
|
{{item.status}} |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="time"> |
||||
|
{{item.addTime}} |
||||
|
</view> |
||||
|
<view class="flex"> |
||||
|
<view class="link"> |
||||
|
https://apitest.luck-work.com/#/pages/redenvelopes?code={{item.no}} |
||||
|
<!-- https://localhost:8080/#/pages/redenvelopes?code={{item.no}} --> |
||||
|
</view> |
||||
|
<view class="copy" @click="copyTextMethod(item)"> |
||||
|
Copy |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="bottom flex" :class="item.status=='unreceive'?'no':''"> |
||||
|
<view class="time"> |
||||
|
{{item.operatorName}} |
||||
|
</view> |
||||
|
<view class="time"> |
||||
|
{{item.addTime}} |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="bottom bg" :class="item.status!='unreceive'?'no':''" @click="showModel(item)"> |
||||
|
Cancel |
||||
|
</view> |
||||
|
|
||||
|
</view> |
||||
|
<u-modal v-model="show" confirm-color="#954DE3" @confirm="cancel()" confirm-text='confirm' cancel-text="cancel" :show-cancel-button="true" :show-title="false" :content="content"></u-modal> |
||||
|
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
|
</view> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import api from '@/utils/api' |
||||
|
import utils from '@/utils' |
||||
|
import cont from "@/components/navigation/navigation.vue" |
||||
|
import index from '@/utils/index.js' |
||||
|
export default{ |
||||
|
data(){ |
||||
|
return{ |
||||
|
content:'Are you sure to cancel', |
||||
|
show:false, |
||||
|
pageNumber:1, |
||||
|
pageSize:10, |
||||
|
record_list:[], |
||||
|
totalPage:0, |
||||
|
currencySymbol:'', |
||||
|
copyText:'', |
||||
|
lingshi:{}, |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
onLoad() { |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
|
||||
|
|
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
this.getRechardRecord() |
||||
|
}, |
||||
|
onReachBottom() { |
||||
|
this.pageSize += 8; |
||||
|
if(this.pageSize>this.totalPage){ |
||||
|
return; |
||||
|
} |
||||
|
this.getRechardRecord(); |
||||
|
}, |
||||
|
|
||||
|
methods:{ |
||||
|
showModel(i){ |
||||
|
this.show=true; |
||||
|
this.lingshi=i |
||||
|
}, |
||||
|
cancel(){ |
||||
|
const post2 = api.cancelRedEnvelop({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"code":this.lingshi.no, |
||||
|
}) |
||||
|
post2.then(res => { |
||||
|
uni.showToast({ |
||||
|
title: 'Successfully', |
||||
|
icon: 'success', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
window.location.reload() |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
// #ifdef APP-PLUS |
||||
|
setTimeout(()=>{ |
||||
|
uni.navigateTo({ |
||||
|
url:"/pages/menu/re/list/index" |
||||
|
}) |
||||
|
},2000) |
||||
|
|
||||
|
// #endif |
||||
|
// #ifdef H5 |
||||
|
setTimeout(()=>{ |
||||
|
window.location.reload(); |
||||
|
},2000) |
||||
|
// #endif |
||||
|
|
||||
|
|
||||
|
}) |
||||
|
}, |
||||
|
copyTextMethod(i) { |
||||
|
|
||||
|
// https://apitest.luck-work.com |
||||
|
// #ifdef H5 |
||||
|
this.copyText="https:localhost:8080/#/pages/redenvelopes?code="+i.no; |
||||
|
this.$copyText(this.copyText).then(res => { |
||||
|
uni.showToast({ |
||||
|
title: 'Copy Success', |
||||
|
icon: 'success' |
||||
|
}) |
||||
|
}) |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
this.copyText="https://apitest.luck-work.com/#/pages/redenvelopes?code="+i.no; |
||||
|
uni.setClipboardData({ |
||||
|
data: this.copyText, |
||||
|
success() { |
||||
|
uni.showToast({ |
||||
|
title: 'Copy Success', |
||||
|
icon: 'success' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
// #endif |
||||
|
}, |
||||
|
goAdd(){ |
||||
|
uni.navigateTo({ |
||||
|
url:'../add/index' |
||||
|
}) |
||||
|
}, |
||||
|
getRechardRecord(){ |
||||
|
|
||||
|
const post2 = api.redEnvelopList({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"pageNumber":this.pageNumber, |
||||
|
"pageSize":this.pageSize, |
||||
|
}) |
||||
|
post2.then(res => { |
||||
|
if(res.data.content!=undefined){ |
||||
|
this.record_list=res.data.content; |
||||
|
for(var i=0;i<this.record_list.length;i++){ |
||||
|
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); |
||||
|
this.record_list[i].amount=this.record_list[i].amount.toFixed(2); |
||||
|
} |
||||
|
this.totalPage=res.data.totalElements; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
}, |
||||
|
}, |
||||
|
onReachBottom(){ |
||||
|
this.pageSize+=10; |
||||
|
this.getRechardRecord() |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
@import './index.css'; |
||||
|
</style> |
||||
@ -2,23 +2,38 @@ |
|||||
<view class="content"> |
<view class="content"> |
||||
<navigation> |
<navigation> |
||||
Recharge Record |
Recharge Record |
||||
|
<!-- --> |
||||
</navigation> |
</navigation> |
||||
<view class="record_body" :class="totalPage>0?'auto':''"> |
<view class="record_body" :class="totalPage>0?'auto':''"> |
||||
<view class="record_item flex" v-for="(item,index) in record_list" :key="item.orderNo"> |
<view class="record_item flex" v-for="(item,index) in record_list" :key="index"> |
||||
<view class="numcon flex"> |
<view class="numcon"> |
||||
<image src="../../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> |
|
||||
<view class="num"> |
<view class=""> |
||||
<view class="rec"> |
<view class="rec"> |
||||
{{item.tranAmt}} Wait |
<view class=""> |
||||
</view> |
<!-- <image src="../../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> --> |
||||
<view class="cpay"> |
{{currencySymbol}}{{item.tranAmt}} |
||||
CPAY |
|
||||
</view> |
|
||||
</view> |
</view> |
||||
|
<view class="time"> |
||||
|
{{item.orderNo}} |
||||
</view> |
</view> |
||||
<view class="time"> |
<view class="time"> |
||||
{{item.addTime}} |
{{item.addTime}} |
||||
</view> |
</view> |
||||
|
</view> |
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
<!-- --> |
||||
|
<view class="status_con"> |
||||
|
<view class="status" :class="item.orderStatus=='pay_unpaid'?'red':'green'"> |
||||
|
<text v-if="item.orderStatus=='pay_unpaid'">Unpaid</text> |
||||
|
<text v-if="item.orderStatus=='pay_success'">Paid</text> |
||||
|
</view> |
||||
|
<view class="cpay"> |
||||
|
{{item.payTypeName}} |
||||
|
</view> |
||||
|
</view> |
||||
</view> |
</view> |
||||
<view class="noRes" v-show="totalPage<0"> |
<view class="noRes" v-show="totalPage<0"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
@ -29,7 +44,7 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
|
|
||||
</template> |
</template> |
||||
@ -43,13 +58,15 @@ |
|||||
data(){ |
data(){ |
||||
return{ |
return{ |
||||
pageNumber:1, |
pageNumber:1, |
||||
pageSize:8, |
pageSize:10, |
||||
record_list:[], |
record_list:[], |
||||
totalPage:0, |
totalPage:0, |
||||
|
currencySymbol:'', |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
this.getRechardRecord() |
this.getRechardRecord() |
||||
}, |
}, |
||||
onReachBottom() { |
onReachBottom() { |
||||
@ -63,21 +80,20 @@ |
|||||
methods:{ |
methods:{ |
||||
getRechardRecord(){ |
getRechardRecord(){ |
||||
|
|
||||
|
|
||||
|
|
||||
const post2 = api.rechargeList({ |
const post2 = api.rechargeList({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"pageNumber":this.pageNumber, |
"pageNumber":this.pageNumber, |
||||
"pageSize":this.pageSize, |
"pageSize":this.pageSize, |
||||
}) |
}) |
||||
post2.then(res => { |
post2.then(res => { |
||||
if(res.data.content){ |
if(res.data.content!=undefined){ |
||||
this.record_list=res.data.content; |
this.record_list=res.data.content; |
||||
for(var i=0;i<this.record_list[i].addTime;i++){ |
for(var i=0;i<this.record_list.length;i++){ |
||||
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); |
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); |
||||
|
this.record_list[i].tranAmt=this.record_list[i].tranAmt.toFixed(2); |
||||
} |
} |
||||
this.totalPage=res.data.totalElements; |
this.totalPage=res.data.totalElements; |
||||
|
console.log(this.record_list,3333333333) |
||||
} |
} |
||||
|
|
||||
|
|
||||
@ -93,6 +109,10 @@ |
|||||
|
|
||||
}, |
}, |
||||
}, |
}, |
||||
|
onReachBottom(){ |
||||
|
this.pageSize+=10; |
||||
|
this.getRechardRecord() |
||||
|
} |
||||
|
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
|||||
@ -6,9 +6,24 @@ |
|||||
<view class="sea_con"> |
<view class="sea_con"> |
||||
<u-form-item :border-bottom="false" class="sea_item"> |
<u-form-item :border-bottom="false" class="sea_item"> |
||||
<image src="../../../static/home/[email protected]" mode="aspectFit" class="img" ></image> |
<image src="../../../static/home/[email protected]" mode="aspectFit" class="img" ></image> |
||||
<u-input :placeholder="'Search'" :border="false" :height="80" class="item_input"/></u-form-item> |
<u-input v-model="name" :placeholder="'Search'" :border="false" :height="80" class="item_input" @input="search()"/></u-form-item> |
||||
</view> |
</view> |
||||
|
|
||||
|
<view class="goods_list_con"> |
||||
|
<view class="good_item" v-for="item,index in goods_list" :key="item.index" @click="goGoodsDetail(item.id)"> |
||||
|
<image :src="'https://apitest.luck-work.com'+item.goodsImgThumbUrl" mode="aspectFit"></image> |
||||
|
<view class="text"> |
||||
|
{{item.goodsName}} |
||||
|
</view> |
||||
|
<view class="price"> |
||||
|
{{currencySymbol}} {{item.goodsPrice}} |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -20,19 +35,90 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
name:"", |
||||
|
goods_list:[], |
||||
|
currencySymbol:'', |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
|
||||
|
this.openGame() |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
|
||||
|
const post2 = api.goodsList({}) |
||||
|
.then(res =>{ |
||||
|
this.goods_list=res.data; |
||||
|
for(var i=0;i<this.goods_list.length;i++){ |
||||
|
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2) |
||||
|
} |
||||
|
}).catch(err =>{ |
||||
|
console.log(err) |
||||
|
}) |
||||
}, |
}, |
||||
|
|
||||
onReady() { |
onReady() { |
||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
openGame() { |
||||
|
const post = api.info() |
||||
|
post.then(d => { |
||||
|
// uni.setStorage({ |
||||
|
// key: 'Gamestatus', |
||||
|
// data: d.data.gameMenuStatus, |
||||
|
// }); |
||||
|
|
||||
|
if (d.data.gameMenuStatus == 'close') { |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Order', |
||||
|
pagePath:'/pages/menu/order/index', |
||||
|
iconPath: '/static/tabbar/dorder.png', |
||||
|
selectedIconPath: '/static/tabbar/dorderS.png' |
||||
|
}) |
||||
|
}else if (d.data.gameMenuStatus == 'open'){ |
||||
|
uni.setTabBarItem({ |
||||
|
index: 2, |
||||
|
text: 'Game', |
||||
|
pagePath: "/pages/menu/color/index", |
||||
|
iconPath: "/static/tabbar/[email protected]", |
||||
|
selectedIconPath: "/static/tabbar/[email protected]" |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
.catch((e) => { |
||||
|
console.log(e) |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
goGoodsDetail(i){ |
||||
|
uni.navigateTo({ |
||||
|
url:'../goods/goodsDetail/index?id='+i |
||||
|
}) |
||||
|
}, |
||||
|
search(){ |
||||
|
const post = api.goodsList({ |
||||
|
"name": this.name, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
var that = this; |
||||
|
if (res.errCode == "SUCCESS") { |
||||
|
this.goods_list=res.data; |
||||
|
for(var i=0;i<this.goods_list.length;i++){ |
||||
|
this.goods_list[i].goodsPrice=parseFloat(this.goods_list[i].goodsPrice).toFixed(2) |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
|
||||
|
} |
||||
}, |
}, |
||||
|
|
||||
} |
} |
||||
|
|||||
@ -4,12 +4,12 @@ |
|||||
withdrawal |
withdrawal |
||||
<view class="bread" slot="bread"> |
<view class="bread" slot="bread"> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" |
<image src="../../../static/promo/[email protected]" mode="aspectFit" |
||||
@click="invMore=true,msShow=true"></image> |
@click="goWithRecord()"></image> |
||||
</view> |
</view> |
||||
</navigation> |
</navigation> |
||||
<view class="rech-body"> |
<view class="rech-body"> |
||||
<view class="pro-body-p1">Balance:<span data-v-642729fd="" |
<view class="pro-body-p1">Balance:<span data-v-642729fd="" |
||||
class="category-sigh">{{currentBalance}}</span><span class="s1"></span></view> |
class="category-sigh">{{currencySymbol}}{{currentBalance}}</span><span class="s1"></span></view> |
||||
<view> |
<view> |
||||
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" |
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" |
||||
confirm-color="#954DE3FF"> |
confirm-color="#954DE3FF"> |
||||
@ -19,9 +19,7 @@ |
|||||
|
|
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
{{currencySymbol}} |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit"></image> |
|
||||
</view> |
|
||||
</view> |
</view> |
||||
<input value="" placeholder="enter withdrawal amount" |
<input value="" placeholder="enter withdrawal amount" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" |
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" |
||||
@ -29,10 +27,10 @@ |
|||||
</view> |
</view> |
||||
<view class="p_con"> |
<view class="p_con"> |
||||
<view class="fee"> |
<view class="fee"> |
||||
FEE:{{this.fee}}, TO ACCOUNT {{this.trueMoney}} |
FEE: {{currencySymbol}}{{this.fee}}, TO ACCOUNT: {{currencySymbol}}{{this.trueMoney}} |
||||
</view> |
</view> |
||||
<view class="minnum"> |
<view class="minnum"> |
||||
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_limit_min}} |
MINIMUM WITHDRAWAL AMOUNT: {{currencySymbol}}{{withdrawConfig.withdraw_limit_min}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="rech-capy"> |
<view class="rech-capy"> |
||||
@ -52,11 +50,11 @@ |
|||||
</view> |
</view> |
||||
|
|
||||
</view> --> |
</view> --> |
||||
<view class="xiala_con" :class="fujiNum==1?'activeErji':''" > |
<view class="xiala_con" :class="fujiNum==1?'activeErji':''" v-if="BankValue"> |
||||
<view class="fuji " @click="fuji()"> |
<view class="fuji " @click="fuji()"> |
||||
<image src="../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> |
<image src="../../../static/login/[email protected]" mode="aspectFit" class="img1"></image> |
||||
<text class="text1"> |
<text class="text1"> |
||||
My Card:3480****6675 |
{{nameOne}}:{{cardOne}} |
||||
</text> |
</text> |
||||
<text class="text2"> |
<text class="text2"> |
||||
Select |
Select |
||||
@ -64,11 +62,10 @@ |
|||||
</text> |
</text> |
||||
</view> |
</view> |
||||
<view class="erji"> |
<view class="erji"> |
||||
<view class="item item-active"> |
<view class="item" v-for="item,index in itemList" :key="index" :class="index==itemActive?'item-active':''" @click="toCardOne(item.id,item.acctName,item.acctId,index)"> |
||||
My Card:3480****6675 |
<text v-if="index==0?true:false">My Card:</text> |
||||
</view> |
<text v-if="index!=0?true:false">Card{{index+1}}:</text> |
||||
<view class="item"> |
{{item.acctId}} |
||||
Card 2:9200****4028 |
|
||||
</view> |
</view> |
||||
<view class="item" @click="goAddBankCard()" > |
<view class="item" @click="goAddBankCard()" > |
||||
Add Bank Card |
Add Bank Card |
||||
@ -76,9 +73,9 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="longey_item" @click="goAddBankCard()"> |
<view class="longey_item" @click="goAddBankCard()" v-if="BankValue==false"> |
||||
<image src="../../../static/bankCard/[email protected]" mode="aspectFit" class="img1"></image> |
<image src="../../../static/bankCard/[email protected]" mode="aspectFit" class="img1"></image> |
||||
<text class="text1">Add Bank Card</text> |
<text class="text1" @click="goAddBankCard()" >Add Bank Card</text> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
@ -127,6 +124,7 @@ |
|||||
</view> |
</view> |
||||
<view class="msg-box-bg" v-show="invMore"> |
<view class="msg-box-bg" v-show="invMore"> |
||||
</view> |
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -138,35 +136,82 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
// 银行卡主键id 提现用 |
||||
|
cid:-1, |
||||
|
// 判断是否有银行卡列表返回 |
||||
|
BankValue:false, |
||||
|
// 判断选择卡的数字 |
||||
|
itemActive:0, |
||||
|
// 第一张卡 |
||||
|
cardOne:'', |
||||
|
// 第一张卡的名字 |
||||
|
nameOne:'', |
||||
|
currencySymbol:'', |
||||
fujiNum:-1, |
fujiNum:-1, |
||||
i:0, |
i:0, |
||||
// 银行卡信息列表 |
// 银行卡信息列表 |
||||
|
|
||||
|
itemList:[], |
||||
currentBalance: '', |
currentBalance: '', |
||||
currencySymbol: '', |
|
||||
withdrawConfig: [], |
withdrawConfig: [], |
||||
show: false, |
show: false, |
||||
content: '', |
content: '', |
||||
password: '', |
password: '', |
||||
tranAmt: '', |
tranAmt: '', |
||||
mobile: '', |
mobile: '', |
||||
fee: '', |
fee: 0.00, |
||||
trueMoney: '', |
trueMoney: 0.00, |
||||
btncol: 0, |
btncol: 0, |
||||
invMore: false, |
invMore: false, |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
this.currentBalance = uni.getStorageSync('currentBalance'); |
this.currentBalance = uni.getStorageSync('currentBalance'); |
||||
this.mobile = uni.getStorageSync('loginMobile'); |
this.mobile = uni.getStorageSync('loginMobile'); |
||||
this.init(); |
this.init(); |
||||
|
this.calulate() |
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
ba(){ |
||||
|
//更新余额 |
||||
|
const post3 = api.withdrawConfig({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post3.then(res=>{ |
||||
|
|
||||
|
res.data.currentBalance= parseFloat(res.data.currentBalance).toFixed(2) |
||||
|
this.currentBalance=res.data.currentBalance; |
||||
|
uni.setStorage({ |
||||
|
key: 'currentBalance', |
||||
|
data: res.data.balance, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
}) |
||||
|
}, |
||||
|
goWithRecord(){ |
||||
|
uni.navigateTo({ |
||||
|
url:'withdrawlRecord/index' |
||||
|
}) |
||||
|
}, |
||||
|
// 赋值给第一张卡 |
||||
|
toCardOne(a,b,i,d){ |
||||
|
this.itemActive=i; |
||||
|
this.cardOne=i; |
||||
|
this.nameOne=b; |
||||
|
this.cid=d; |
||||
|
}, |
||||
|
goGoodsDetail(i){ |
||||
|
uni.navigateTo({ |
||||
|
url:'goodsDetail/index?id='+i |
||||
|
}) |
||||
|
}, |
||||
goAddBankCard(){ |
goAddBankCard(){ |
||||
uni.navigateTo({ |
uni.navigateTo({ |
||||
url:'../bankCard/addAddress/index' |
url:'../bankCard/addBankCard/index?wid='+'widthdrawl' |
||||
}) |
}) |
||||
}, |
}, |
||||
// 判断下拉函数 |
// 判断下拉函数 |
||||
@ -184,9 +229,8 @@ |
|||||
}) |
}) |
||||
post2.then(res => { |
post2.then(res => { |
||||
this.withdrawConfig = res.data; |
this.withdrawConfig = res.data; |
||||
|
this.withdrawConfig.withdraw_limit_min=parseFloat(this.withdrawConfig.withdraw_limit_min).toFixed(2) |
||||
this.content = this.withdrawConfig.tips; |
this.content = this.withdrawConfig.tips; |
||||
console.log(res.data, 8880); |
|
||||
console.log(this.withdrawConfig, 9990); |
|
||||
this.show = true; |
this.show = true; |
||||
|
|
||||
}) |
}) |
||||
@ -202,7 +246,29 @@ |
|||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
// this.itemList=res.data |
if(res.data.length!=0){ |
||||
|
for(var i=0;i<res.data.length;i++){ |
||||
|
// #ifdef H5 |
||||
|
res.data[i].acctId=res.data[i].acctId.replaceAll('%20',' ') |
||||
|
res.data[i].acctName=res.data[i].acctName.replaceAll('%20',' ') |
||||
|
// #endif |
||||
|
// #ifdef APP-PLUS |
||||
|
res.data[i].acctId=res.data[i].acctId.replace(new RegExp('%20',"gm"),' ') |
||||
|
res.data[i].acctName=res.data[i].acctName.replace(new RegExp('%20',"gm"),' ') |
||||
|
// #endif |
||||
|
|
||||
|
} |
||||
|
this.BankValue=true; |
||||
|
this.cardOne=res.data[0].acctId |
||||
|
this.nameOne=res.data[0].acctName |
||||
|
this.cid=res.data[0].id; |
||||
|
this.itemList=res.data; |
||||
|
|
||||
|
|
||||
|
}else{ |
||||
|
this.BankValue=false; |
||||
|
} |
||||
|
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -231,6 +297,7 @@ |
|||||
this.fee = this.tranAmt * 0.1; |
this.fee = this.tranAmt * 0.1; |
||||
this.fee = parseFloat(this.fee).toFixed(2) |
this.fee = parseFloat(this.fee).toFixed(2) |
||||
this.trueMoney = this.tranAmt - this.fee; |
this.trueMoney = this.tranAmt - this.fee; |
||||
|
this.trueMoney= parseFloat(this.trueMoney).toFixed(2) |
||||
this.btncol = 1; |
this.btncol = 1; |
||||
if (this.tranAmt == '') { |
if (this.tranAmt == '') { |
||||
this.btncol = 0; |
this.btncol = 0; |
||||
@ -240,58 +307,6 @@ |
|||||
this.show = true; |
this.show = true; |
||||
}, |
}, |
||||
widthDrawl() { |
widthDrawl() { |
||||
// if(this.mobile==''){ |
|
||||
// uni.showToast({ |
|
||||
// title: 'Please input mobile phone number', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
// var a= /^[0-9]{4,14}$/; |
|
||||
// if(!a.test(this.mobile)){ |
|
||||
// uni.showToast({ |
|
||||
// title: 'Wrong format of mobile phone number', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
// if (this.password == '') { |
|
||||
// uni.showToast({ |
|
||||
// title: 'password is empty', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
// var a= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/; |
|
||||
// if(!a.test(this.password)){ |
|
||||
// uni.showToast({ |
|
||||
// title: 'Incorrect password format,a password requires a combination of numbers and letters', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
|
|
||||
// if(this.tranAmt<withdrawConfig.withdraw_min_amt){ |
|
||||
// uni.showToast({ |
|
||||
// title: 'The withdrawal amount cannot be less than the minimum withdrawal amount', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
|
|
||||
// if(this.tranAmt<withdrawConfig.withdraw_max_amt){ |
|
||||
// uni.showToast({ |
|
||||
// title: 'The withdrawal amount cannot be greater than the maximum withdrawal amount', |
|
||||
// icon: 'none', |
|
||||
// duration: 1500 |
|
||||
// }) |
|
||||
// return; |
|
||||
// } |
|
||||
uni.showLoading({ |
uni.showLoading({ |
||||
title: 'loading' |
title: 'loading' |
||||
}); |
}); |
||||
@ -309,7 +324,8 @@ |
|||||
|
|
||||
const post2 = api.withdraw({ |
const post2 = api.withdraw({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
// 'password': md5(this.password), |
'password': md5(this.password), |
||||
|
'cardId':this.cid, |
||||
"tranAmt": this.tranAmt, |
"tranAmt": this.tranAmt, |
||||
}) |
}) |
||||
post2.then(res => { |
post2.then(res => { |
||||
@ -319,15 +335,13 @@ |
|||||
icon: 'none', |
icon: 'none', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
|
this.ba(); |
||||
const post = api.withdrawServiceCharge({ |
const post = api.withdrawServiceCharge({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
// 'password': md5(this.password), |
// 'password': md5(this.password), |
||||
"tranAmt": this.tranAmt, |
"tranAmt": this.tranAmt, |
||||
"ticket": uni.getStorageSync('logInfo').data, |
|
||||
}) |
}) |
||||
post.then(res => { |
post.then(res => { |
||||
console.log(res.data, '45464654646446'); |
|
||||
|
|
||||
}) |
}) |
||||
.catch(e => { |
.catch(e => { |
||||
|
|||||
@ -2,25 +2,26 @@ |
|||||
<view class="content"> |
<view class="content"> |
||||
<navigation> |
<navigation> |
||||
transactions |
transactions |
||||
<view class="bread" slot="bread"> |
<!-- <view class="bread" slot="bread"> |
||||
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> |
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> |
||||
</view> |
</view> --> |
||||
</navigation> |
</navigation> |
||||
<view class="record_body"> |
<view class="record_body"> |
||||
|
<!-- --> |
||||
<view class="record_item flex" v-for="item,index in record_list" :key="item.id"> |
<view class="record_item flex" v-for="item,index in record_list" :key="item.id"> |
||||
<view class="numcon flex"> |
<view class="numcon flex"> |
||||
<image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> |
<!-- <image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> --> |
||||
<view class="num" > |
<view class="num" > |
||||
<view class="rec"> |
<view class="rec"> |
||||
Join period |
{{item.witTypeName}} |
||||
</view> |
</view> |
||||
<view class="cpay"> |
<view class="cpay"> |
||||
{{item.addTime}} |
{{item.addTime}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="time"> |
<view class="time" :class="item.type=='out'?'red':'green'"> |
||||
-{{item.tranAmt}} |
<text v-if="item.type=='out'">-</text><text v-if="item.type=='in'">+</text>{{currencySymbol}}<span>{{k}}</span>{{item.tranAmt}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -46,6 +47,7 @@ |
|||||
</view> |
</view> |
||||
<view class="msg-box-bg" v-show="invMore"> |
<view class="msg-box-bg" v-show="invMore"> |
||||
</view> |
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -57,16 +59,17 @@ |
|||||
export default{ |
export default{ |
||||
data(){ |
data(){ |
||||
return{ |
return{ |
||||
|
k:' ', |
||||
pageNumber:1, |
pageNumber:1, |
||||
pageSize:20, |
pageSize:20, |
||||
record_list:[], |
record_list:[], |
||||
invMore:false, |
invMore:false, |
||||
|
currencySymbol:'', |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
|
|
||||
const post = api.billList({ |
const post = api.billList({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"pageNumber":this.pageNumber, |
"pageNumber":this.pageNumber, |
||||
@ -77,6 +80,7 @@ |
|||||
this.record_list=res.data.content; |
this.record_list=res.data.content; |
||||
for(var i=0;i<this.record_list.length;i++){ |
for(var i=0;i<this.record_list.length;i++){ |
||||
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); |
this.record_list[i].addTime=index.formatyymmddhhmmss(this.record_list[i].addTime); |
||||
|
this.record_list[i].tranAmt=parseFloat(this.record_list[i].tranAmt).toFixed(2); |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
@ -184,7 +188,6 @@ |
|||||
height: 40rpx; |
height: 40rpx; |
||||
} |
} |
||||
.num{ |
.num{ |
||||
margin-left: 20rpx; |
|
||||
text-transform: capitalize; |
text-transform: capitalize; |
||||
} |
} |
||||
.rec{ |
.rec{ |
||||
@ -196,7 +199,12 @@ |
|||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
} |
} |
||||
.time{ |
.time{ |
||||
color: #F25B5B; |
|
||||
font-size: 28rpx; |
font-size: 28rpx; |
||||
} |
} |
||||
|
.red{ |
||||
|
color: #F25B5B; |
||||
|
} |
||||
|
.green{ |
||||
|
color:green; |
||||
|
} |
||||
</style> |
</style> |
||||
|
|||||
@ -1,26 +1,36 @@ |
|||||
<template> |
<template> |
||||
<view class="content"> |
<view class="content"> |
||||
<navigation> |
<navigation> |
||||
withdrawal |
withdrawal Record |
||||
<view class="bread" slot="bread"> |
<!-- <view class="bread" slot="bread"> |
||||
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> |
<image src="../../../../static/promo/[email protected]" mode="" @click="invMore=true"></image> |
||||
</view> |
</view> --> |
||||
</navigation> |
</navigation> |
||||
|
<!-- --> |
||||
<view class="record_body"> |
<view class="record_body"> |
||||
<view class="record_item flex" v-for="(item,index) in record_list" :key="item.id"> |
<view class="record_item flex" v-for="(item,index) in record_list" :key="item.id"> |
||||
<view class="numcon flex"> |
<view class="numcon flex"> |
||||
<image src="../../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> |
|
||||
<view class="num"> |
<view class="num"> |
||||
<view class="rec"> |
<view class="rec"> |
||||
{{item.tranAmt}} Wait |
{{currencySymbol}}{{item.tranAmt}} |
||||
|
|
||||
|
</view> |
||||
|
<view class="cpay"> |
||||
|
{{item.acctName}} |
||||
</view> |
</view> |
||||
<view class="cpay" @click="goBalance"> |
<view class="cpay"> |
||||
Back to balance |
{{item.createTime}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="time"> |
<view class="time"> |
||||
{{item.createTime}} |
<view class="wait"> |
||||
|
Wait |
||||
|
</view> |
||||
|
<view> |
||||
|
{{item.orderNo}} |
||||
|
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
@ -45,6 +55,7 @@ |
|||||
</view> |
</view> |
||||
<view class="msg-box-bg" v-show="invMore"> |
<view class="msg-box-bg" v-show="invMore"> |
||||
</view> |
</view> |
||||
|
<tab-bar :selectActive="5"></tab-bar> |
||||
</view> |
</view> |
||||
|
|
||||
</template> |
</template> |
||||
@ -65,6 +76,7 @@ |
|||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
const post = api.withdrawList({ |
const post = api.withdrawList({ |
||||
"ticket": uni.getStorageSync('logInfo').data, |
"ticket": uni.getStorageSync('logInfo').data, |
||||
"pageNumber":this.pageNumber, |
"pageNumber":this.pageNumber, |
||||
@ -75,6 +87,7 @@ |
|||||
this.record_list=res.data.content; |
this.record_list=res.data.content; |
||||
for(var i=0;i<this.record_list.length;i++){ |
for(var i=0;i<this.record_list.length;i++){ |
||||
this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime); |
this.record_list[i].createTime=index.formatyymmddhhmmss(this.record_list[i].createTime); |
||||
|
this.record_list[i].tranAmt=parseFloat(this.record_list[i].tranAmt).toFixed(2) |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
@ -123,6 +136,11 @@ goBalance(){ |
|||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style> |
||||
|
.wait{ |
||||
|
color: #303133; |
||||
|
margin-bottom: 20rpx; |
||||
|
text-align: right; |
||||
|
} |
||||
.invite-more{ |
.invite-more{ |
||||
width: 750rpx; |
width: 750rpx; |
||||
height: 480rpx; |
height: 480rpx; |
||||
@ -175,14 +193,13 @@ goBalance(){ |
|||||
} |
} |
||||
.record_item{ |
.record_item{ |
||||
height: 144rpx; |
height: 144rpx; |
||||
|
margin-bottom: 30rpx; |
||||
} |
} |
||||
.numcon .img1{ |
.numcon .img1{ |
||||
width: 40rpx; |
width: 40rpx; |
||||
height: 40rpx; |
height: 40rpx; |
||||
} |
} |
||||
.num{ |
|
||||
margin-left: 20rpx; |
|
||||
} |
|
||||
.rec{ |
.rec{ |
||||
color: #303133; |
color: #303133; |
||||
font-size: 32rpx; |
font-size: 32rpx; |
||||
|
|||||
@ -0,0 +1,138 @@ |
|||||
|
<template> |
||||
|
<view class="content"> |
||||
|
<navigation :showBack="false"> |
||||
|
Red Envelopes |
||||
|
<image src="../static/color/[email protected]" mode="aspectFit" class="back" @click="back()"></image> |
||||
|
|
||||
|
</navigation> |
||||
|
<view class="money"> |
||||
|
{{bo.currencySymbol}}{{k}}{{bo.amount}} |
||||
|
</view> |
||||
|
<view class="btn" @click="receive()"> |
||||
|
Continue |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import api from '@/utils/api' |
||||
|
import utils from '@/utils' |
||||
|
import cont from "@/components/navigation/navigation.vue" |
||||
|
import index from '@/utils/index.js' |
||||
|
export default{ |
||||
|
data(){ |
||||
|
return{ |
||||
|
code:'', |
||||
|
k:' ', |
||||
|
ticket:'', |
||||
|
bo:{}, |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
onLoad(i) { |
||||
|
this.ticket=uni.getStorageSync('logInfo').data; |
||||
|
this.code=i.code |
||||
|
this.getRedInfo(); |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
methods:{ |
||||
|
back(){ |
||||
|
uni.switchTab({ |
||||
|
url:'/pages/menu/My/index' |
||||
|
}) |
||||
|
}, |
||||
|
receive(){ |
||||
|
const post2 = api.receiveRedEnvelop({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"code":this.code, |
||||
|
}) |
||||
|
post2.then(res => { |
||||
|
|
||||
|
uni.showToast({ |
||||
|
title: 'Successfully', |
||||
|
icon: 'success', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
}) |
||||
|
.catch(e => { |
||||
|
uni.showToast({ |
||||
|
title: e, |
||||
|
icon: 'none', |
||||
|
duration: 2500 |
||||
|
}) |
||||
|
}) |
||||
|
}, |
||||
|
getRedInfo(){ |
||||
|
|
||||
|
const post2 = api.redEnvelop({ |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
"code":this.code, |
||||
|
}) |
||||
|
post2.then(res => { |
||||
|
this.bo=res.data; |
||||
|
}) |
||||
|
.catch(e => { |
||||
|
|
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
page{ |
||||
|
height: 100%; |
||||
|
} |
||||
|
/* #ifdef APP-PLUS */ |
||||
|
.back{ |
||||
|
width: 42rpx; |
||||
|
height: 42rpx; |
||||
|
position: absolute; |
||||
|
left:36rpx; |
||||
|
top: 60%; |
||||
|
transform: translateY(-50%) rotate(-180deg) ; |
||||
|
|
||||
|
} |
||||
|
/* #endif */ |
||||
|
.back{ |
||||
|
width: 42rpx; |
||||
|
height: 42rpx; |
||||
|
position: absolute; |
||||
|
left:36rpx; |
||||
|
top: 50%; |
||||
|
transform: translateY(-50%) rotate(-180deg) ; |
||||
|
|
||||
|
} |
||||
|
.content{ |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
background: url('../static/bankCard/redBJ.png')no-repeat; |
||||
|
background-position: center center; |
||||
|
background-size: cover; |
||||
|
position: relative; |
||||
|
} |
||||
|
.money{ |
||||
|
font-size: 100rpx; |
||||
|
color: #fff; |
||||
|
text-align: center; |
||||
|
margin-top: 60rpx; |
||||
|
} |
||||
|
.btn{ |
||||
|
width: 678rpx; |
||||
|
line-height: 96rpx; |
||||
|
text-align: center; |
||||
|
color: 28rpx; |
||||
|
background-color: #EED19E; |
||||
|
border-radius: 24rpx; |
||||
|
position: absolute; |
||||
|
bottom: 360rpx; |
||||
|
left: 50%; |
||||
|
transform: translateX(-50%); |
||||
|
} |
||||
|
</style> |
||||
@ -13,38 +13,6 @@ |
|||||
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" |
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" |
||||
@input="btnControl" /> |
@input="btnControl" /> |
||||
</view> |
</view> |
||||
<view class="input-item flex"> |
|
||||
<view class="login-sigh login-sigh2 flex"> |
|
||||
<view class="imgcon"> |
|
||||
<image src="../../static/login/[email protected]" mode=""></image> |
|
||||
</view> |
|
||||
</view> |
|
||||
<input class="input_pcod" value="" placeholder="Picture Code" |
|
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" v-model="picCode" /> |
|
||||
<view class="login-sigh3 flex"> |
|
||||
<image :src="imgcodeUrl" mode="scaleToFill" class="img1"></image> |
|
||||
<image src="../../static/login/[email protected]" mode="" class="img2" @click="getPicCode()"> |
|
||||
</image> |
|
||||
</view> |
|
||||
|
|
||||
</view> |
|
||||
<view class="input-item flex"> |
|
||||
<view class="login-sigh login-sigh2 flex"> |
|
||||
<view class="imgcon"> |
|
||||
<image src="../../static/login/[email protected]" mode=""></image> |
|
||||
</view> |
|
||||
</view> |
|
||||
<input value="" placeholder="Verification code" |
|
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform: capitalize;" |
|
||||
v-model="infoCode" /> |
|
||||
<view class="wrap"> |
|
||||
<u-toast ref="uToast"></u-toast> |
|
||||
<u-verification-code :seconds="seconds" ref="uCode" @change="codeChange" |
|
||||
start-text="OTP" change-text="xs" end-text="OTP"></u-verification-code> |
|
||||
<u-button @tap="getCode" style="color: #954DE3FF; border-radius: 4px;font-size: 15px;width: 20px; height: 24px;line-height: 40px;">{{tips}}</u-button> |
|
||||
|
|
||||
</view> |
|
||||
</view> |
|
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
@ -114,7 +82,8 @@ |
|||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad(invite) { |
||||
|
this.inviteCode=invite.inviteCode |
||||
this.getPicCode(); |
this.getPicCode(); |
||||
this.areacode = uni.getStorageSync('siteInfo').areaCode; |
this.areacode = uni.getStorageSync('siteInfo').areaCode; |
||||
}, |
}, |
||||
|
|||||
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 881 B |
|
After Width: | Height: | Size: 847 B |
|
After Width: | Height: | Size: 834 B |
@ -1 +1 @@ |
|||||
https://service.dcloud.net.cn/build/download/eb346f90-00d6-11ec-976e-dfd868741ab5 |
https://service.dcloud.net.cn/build/download/2e81c670-1169-11ec-8f72-fb2a1f12c767 |
||||
@ -1,3 +1,3 @@ |
|||||
andrCertfile=C:/Users/Administrator/Desktop/zwf88z |
andrCertfile=D:/zwf88z |
||||
andrCertAlias=zwf88z |
andrCertAlias=zwf88z |
||||
andrCertPass=zYkNtsJvQswSIoDx0UnmWw== |
andrCertPass=zYkNtsJvQswSIoDx0UnmWw== |
||||
|
|||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 49 KiB |
@ -1,8 +1,8 @@ |
|||||
|
|
||||
var isReady=false;var onReadyCallbacks=[]; |
var isReady=false;var onReadyCallbacks=[]; |
||||
var isServiceReady=false;var onServiceReadyCallbacks=[]; |
var isServiceReady=false;var onServiceReadyCallbacks=[]; |
||||
var __uniConfig = {"pages":["pages/login/index","pages/register/index","pages/menu/color/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/meun_icon_game_nor@2x.png","selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"first","compilerVersion":"3.1.13","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
var __uniConfig = {"pages":["pages/login/index","pages/redenvelopes","pages/menu/re/list/index","pages/menu/re/add/index","pages/menu/address/index","pages/menu/order/index","pages/menu/about/RiskDisclosureAGREEMENT","pages/menu/about/privacyPolicy","pages/menu/search/index","pages/menu/goods/index","pages/menu/goods/goodsDetail/index","pages/menu/address/addAddress/index","pages/menu/bankCard/addBankCard/index","pages/menu/bankCard/index","pages/register/index","pages/menu/color/index","pages/menu/colorMoni/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B","style":{"app-plus":{"titleNView":false}}},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/meun_icon_home_nor@3x.png","selectedIconPath":"./static/tabbar/meun_icon_[email protected]g"},{"text":"Search","pagePath":"pages/menu/search/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/meun_icon_search_sel@3x.png"},{"text":"Order","pagePath":"pages/menu/order/index","iconPath":"./static/tabbar/dorder.png","selectedIconPath":"./static/tabbar/dorderS.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"Win Gold","compilerVersion":"3.1.18","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
||||
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/register/index","meta":{},"window":{}},{"path":"/pages/menu/color/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/index/index","meta":{},"window":{}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{}},{"path":"/pages/menu/rule/index","meta":{},"window":{}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{}}]; |
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/redenvelopes","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/re/list/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/re/add/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/address/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/order/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/about/RiskDisclosureAGREEMENT","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/about/privacyPolicy","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/search/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/goods/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/goods/goodsDetail/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/address/addAddress/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/bankCard/addBankCard/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/bankCard/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/register/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/color/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/colorMoni/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/index/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/index","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{"navigationStyle":"custom"}}]; |
||||
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
||||
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
||||
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); |
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); |
||||
|
|||||
@ -1 +1 @@ |
|||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"first","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNI7E21D6D","password":"zYkNtsJvQswSIoDx0UnmWw==","aliasname":"zwf88z","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"],"icons":{"ios":{"prerendered":"false","iphone":{"app@2x":"","app@3x":"","spotlight@2x":"","spotlight@3x":"","settings@2x":"","settings@3x":"","notification@2x":"","notification@3x":""},"appstore":"","ipad":{"app":"","app@2x":"","proapp@2x":"","spotlight":"","spotlight@2x":"","settings":"","settings@2x":"","notification":"","notification@2x":""}},"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"}},"splashscreen":{}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.13","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/meun_icon_game_nor@2x.png","selectedIconPath":"./static/tabbar/meun_icon_game_sel@2x.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html","adid":"127964190008"}} |
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"Win Gold","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","proapp@2x":"unpackage/res/icons/167x167.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png"},"prerendered":"false"}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNI7E21D6D","password":"zYkNtsJvQswSIoDx0UnmWw==","aliasname":"zwf88z","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"],"splashscreen":{}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.18","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Search","pagePath":"pages/menu/search/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Order","pagePath":"pages/menu/order/index","iconPath":"./static/tabbar/dorder.png","selectedIconPath":"./static/tabbar/dorderS.png"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html","adid":"127964190008"}} |
||||
|
After Width: | Height: | Size: 7.1 KiB |
0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
unpackage/dist/dev/app-plus/static/bankCard/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/bankCard/[email protected]
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 81 KiB |
0
unpackage/dist/dev/app-plus/static/home/[email protected] → unpackage/cache/wgt/__UNI__7E21D6D/static/home/[email protected]
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 881 B |
|
After Width: | Height: | Size: 847 B |
|
After Width: | Height: | Size: 834 B |