luyisha 3 years ago
parent
commit
a09e67d1af
  1. 2
      common/js/api.js
  2. 2
      pages/about/bonusSet/bonusList.vue
  3. 20
      pages/home/home.vue
  4. 2
      pages/ucenter/about/about.vue
  5. 17
      pages/ucenter/ucenter.vue
  6. 6
      uni_modules/uni-id-pages/pages/login/login-withpwd.vue
  7. 2
      uni_modules/uni-id-pages/pages/retrieve/retrieve.vue
  8. 30
      uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue

2
common/js/api.js

@ -1,6 +1,6 @@
// let baseUrl = 'http://192.168.66.221:8000'
let baseUrl = 'http://192.168.66.16:8084'
// let baseUrl = ''
// baseUrl = ''
let API = {
baseUrl: baseUrl,

2
pages/about/bonusSet/bonusList.vue

@ -3,7 +3,7 @@
<view class="nav_area"></view>
<view class="setPage">
<view class="switch_item" v-for="(item, index) in datasList" @click="toSet(item.id)">
<view class="icon_new"><image :src="item.cover_image" mode=""></image></view>
<view class="icon_new"><image :src="item.cover_image" mode="aspectFill"></image></view>
<view style="flex:1;">
<view class=""><text>面值</text>{{item.price}}</view>
<view style="font-size: 12px;"><text>最高中奖金额</text>{{item.max_awards_amount | formatAmount}}</view>

20
pages/home/home.vue

@ -127,7 +127,7 @@
userType: 'background',//user|agent|background
bannerList: [],
goodsList: [],
recordsList: [1,2,3,4,5,6],
recordsList: [],
chartIndex: 1,//12
myChart: null,
pieChart: null,
@ -139,20 +139,20 @@
update_time: '2023/08/30 19:00',
down_scores_quota: {
title: '待下分额度',
quota: '10010.00'
quota: ''
}
},
userStatistics: {
agent: {
num: '7',
rate: '36.84%'
num: '0',
rate: '0%'
},
user: {
num: '12',
rate: '63.16%'
num: '0',
rate: '0%'
},
sum: {
num: "19人" //
num: "0人" //
}
},
UpDownSta: {
@ -411,10 +411,14 @@
API.getAwardRecords({
page:page, limit: limit
}, res=>{
this.recordsList = res.data.list;
if(res.data.list.length<10){
this.nomore = true;
}
if(page>1){
this.recordsList = this.recordsList.concat(res.data.list);
}else{
this.recordsList = res.data.list;
}
})
},
/*总后台待办*/

2
pages/ucenter/about/about.vue

@ -1,7 +1,7 @@
<template>
<view class="about">
<view class="box">
<image class="logoImg" :src="about.logo"></image>
<image class="logoImg" src="../../../static/home/logo.png"></image>
<text class="tip appName">{{about.appName}}</text>
<text class="tip">Version {{version}}</text>
<view class="qrcode">

17
pages/ucenter/ucenter.vue

@ -19,9 +19,9 @@
<view class="balance_area" v-if="userType=='user'||userType=='agent'">
<view class="item">
<text style="font-size: 20px;margin-bottom: 10rpx;">{{userInfo.balance}}</text>
<view class="item_btn" :style="showRecharge?'justify-content: space-between;':''">
<view class="item_btn" :style="userInfo.recharge?'justify-content: space-between;':''">
<text>余额</text>
<text v-if="showRecharge" @click="toRecharge()" style="color: #4976FF;">充值</text>
<text v-if="userInfo.recharge" @click="toRecharge()" style="color: #4976FF;">充值</text>
</view>
</view>
<view class="line"></view>
@ -218,12 +218,12 @@
"icon": "compose",
"iconN": "lock"
},
{
"title": '关于',
"to": '/pages/ucenter/about/about',
"icon": "compose",
"iconN": "list"
},
// {
// "title": '',
// "to": '/pages/ucenter/about/about',
// "icon": "compose",
// "iconN": "list"
// },
],
[
{
@ -310,7 +310,6 @@
"radius": "100%" //
}
},
showRecharge: true,
userInfo: {},
}
},

6
uni_modules/uni-id-pages/pages/login/login-withpwd.vue

@ -1,6 +1,6 @@
<!-- 账号密码登录页 -->
<template>
<view class="uni-content" style="padding: 0px 53px;">
<view class="uni-content" style="padding: 0px 53px;margin: 0px auto;">
<view class="nav_area"></view>
<view class="logo_area">
<image src="../../../../static/home/logo.png" mode=""></image>
@ -37,7 +37,9 @@
<text class="link" @click="toRegister">{{config.isAdmin ? '注册管理员账号': '新注册'}}</text>
<!-- <text class="link" @click="toRegister" v-if="!config.isAdmin">注册账号</text> -->
</view>
<view v-if="this.userType=='user'" style="width: 100vw;text-align: center;color: #dcdcdc;font-size: 14px;line-height: 28px;position: fixed;bottom: 50px;left:0px">
<view v-if="this.userType=='user'"
style="width: 100vw;text-align: center;color: #dcdcdc;font-size: 14px;
line-height: 28px;position: fixed;top: calc(100vh - 100px);left:0px;">
温馨提示<br/>
忘记密码请联系平台
</view>

2
uni_modules/uni-id-pages/pages/retrieve/retrieve.vue

@ -1,6 +1,6 @@
<!-- 找回密码页 -->
<template>
<view class="uni-content" style="padding: 0px 53px;">
<view class="uni-content" style="padding: 0px 53px;margin: 0px auto;">
<match-media :min-width="690">
<view class="login-logo">
<image :src="logo"></image>

30
uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue

@ -92,16 +92,30 @@
password: this.formData.newPassword,
repassword: this.formData.repassword
}
API.modifyPassword(data, res=>{
uni.showToast({
title: '修改成功'
if(uni.getStorageSync('userType')=='user'){
API.modifyPassword(data, res=>{
uni.showToast({
title: '修改成功'
})
setTimeout(()=>{
uni.navigateBack({
delta: 1
})
}, 1000)
})
setTimeout(()=>{
uni.navigateBack({
delta: 1
}else{
API.request('/agentTeam/modifyPassword', data, res=>{
uni.showToast({
title: '修改成功'
})
}, 1000)
})
setTimeout(()=>{
uni.navigateBack({
delta: 1
})
}, 1000)
})
}
return;
let {
oldPassword,

Loading…
Cancel
Save