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.221:8000'
let baseUrl = 'http://192.168.66.16:8084' let baseUrl = 'http://192.168.66.16:8084'
// let baseUrl = '' // baseUrl = ''
let API = { let API = {
baseUrl: baseUrl, baseUrl: baseUrl,

2
pages/about/bonusSet/bonusList.vue

@ -3,7 +3,7 @@
<view class="nav_area"></view> <view class="nav_area"></view>
<view class="setPage"> <view class="setPage">
<view class="switch_item" v-for="(item, index) in datasList" @click="toSet(item.id)"> <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 style="flex:1;">
<view class=""><text>面值</text>{{item.price}}</view> <view class=""><text>面值</text>{{item.price}}</view>
<view style="font-size: 12px;"><text>最高中奖金额</text>{{item.max_awards_amount | formatAmount}}</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 userType: 'background',//user|agent|background
bannerList: [], bannerList: [],
goodsList: [], goodsList: [],
recordsList: [1,2,3,4,5,6], recordsList: [],
chartIndex: 1,//12 chartIndex: 1,//12
myChart: null, myChart: null,
pieChart: null, pieChart: null,
@ -139,20 +139,20 @@
update_time: '2023/08/30 19:00', update_time: '2023/08/30 19:00',
down_scores_quota: { down_scores_quota: {
title: '待下分额度', title: '待下分额度',
quota: '10010.00' quota: ''
} }
}, },
userStatistics: { userStatistics: {
agent: { agent: {
num: '7', num: '0',
rate: '36.84%' rate: '0%'
}, },
user: { user: {
num: '12', num: '0',
rate: '63.16%' rate: '0%'
}, },
sum: { sum: {
num: "19人" // num: "0人" //
} }
}, },
UpDownSta: { UpDownSta: {
@ -411,10 +411,14 @@
API.getAwardRecords({ API.getAwardRecords({
page:page, limit: limit page:page, limit: limit
}, res=>{ }, res=>{
this.recordsList = res.data.list;
if(res.data.list.length<10){ if(res.data.list.length<10){
this.nomore = true; 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> <template>
<view class="about"> <view class="about">
<view class="box"> <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 appName">{{about.appName}}</text>
<text class="tip">Version {{version}}</text> <text class="tip">Version {{version}}</text>
<view class="qrcode"> <view class="qrcode">

17
pages/ucenter/ucenter.vue

@ -19,9 +19,9 @@
<view class="balance_area" v-if="userType=='user'||userType=='agent'"> <view class="balance_area" v-if="userType=='user'||userType=='agent'">
<view class="item"> <view class="item">
<text style="font-size: 20px;margin-bottom: 10rpx;">{{userInfo.balance}}</text> <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>余额</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> </view>
<view class="line"></view> <view class="line"></view>
@ -218,12 +218,12 @@
"icon": "compose", "icon": "compose",
"iconN": "lock" "iconN": "lock"
}, },
{ // {
"title": '关于', // "title": '',
"to": '/pages/ucenter/about/about', // "to": '/pages/ucenter/about/about',
"icon": "compose", // "icon": "compose",
"iconN": "list" // "iconN": "list"
}, // },
], ],
[ [
{ {
@ -310,7 +310,6 @@
"radius": "100%" // "radius": "100%" //
} }
}, },
showRecharge: true,
userInfo: {}, userInfo: {},
} }
}, },

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

@ -1,6 +1,6 @@
<!-- 账号密码登录页 --> <!-- 账号密码登录页 -->
<template> <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="nav_area"></view>
<view class="logo_area"> <view class="logo_area">
<image src="../../../../static/home/logo.png" mode=""></image> <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">{{config.isAdmin ? '注册管理员账号': '新注册'}}</text>
<!-- <text class="link" @click="toRegister" v-if="!config.isAdmin">注册账号</text> --> <!-- <text class="link" @click="toRegister" v-if="!config.isAdmin">注册账号</text> -->
</view> </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/> 温馨提示<br/>
忘记密码请联系平台 忘记密码请联系平台
</view> </view>

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

@ -1,6 +1,6 @@
<!-- 找回密码页 --> <!-- 找回密码页 -->
<template> <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"> <match-media :min-width="690">
<view class="login-logo"> <view class="login-logo">
<image :src="logo"></image> <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, password: this.formData.newPassword,
repassword: this.formData.repassword repassword: this.formData.repassword
} }
API.modifyPassword(data, res=>{ if(uni.getStorageSync('userType')=='user'){
uni.showToast({ API.modifyPassword(data, res=>{
title: '修改成功' uni.showToast({
title: '修改成功'
})
setTimeout(()=>{
uni.navigateBack({
delta: 1
})
}, 1000)
}) })
setTimeout(()=>{ }else{
uni.navigateBack({ API.request('/agentTeam/modifyPassword', data, res=>{
delta: 1 uni.showToast({
title: '修改成功'
}) })
}, 1000) setTimeout(()=>{
}) uni.navigateBack({
delta: 1
})
}, 1000)
})
}
return; return;
let { let {
oldPassword, oldPassword,

Loading…
Cancel
Save