diff --git a/common/js/api.js b/common/js/api.js
index 4751318..0f096c7 100644
--- a/common/js/api.js
+++ b/common/js/api.js
@@ -2,6 +2,7 @@
let baseUrl = 'http://192.168.66.16:8084'
let API = {
+ baseUrl: baseUrl,
// 注册
register(data, success, fail){
API.sendRequest('post', data, '/passport/register', success, fail)
diff --git a/pages/NoticeDetails/NoticeDetails.vue b/pages/NoticeDetails/NoticeDetails.vue
index 33c93ba..a18d7f6 100644
--- a/pages/NoticeDetails/NoticeDetails.vue
+++ b/pages/NoticeDetails/NoticeDetails.vue
@@ -16,7 +16,7 @@
export default {
data() {
return {
- title: '关于中奖概率调整问题',
+ title: '关于中奖概率调整问题关于中奖概率问题关于中奖概率调整问题关于中奖概率调整问题',
create_time: '发布时间:2023.08.10 23:00:00',
content: `关于中奖概率调整问题关于中奖概率调整问题关于中奖概率调整问题关于中奖概率调整问题关于中奖概率
调整问题关于中奖概率调整问题`
@@ -62,7 +62,8 @@
.title{
font-size: 16px;
- line-height: 50px;
+ line-height: 30px;
+ padding: 10px 0px;
}
.time{
font-size: 12px;
diff --git a/pages/about/bannerManage/addBanner.vue b/pages/about/bannerManage/addBanner.vue
index 8f85da7..89dbeac 100644
--- a/pages/about/bannerManage/addBanner.vue
+++ b/pages/about/bannerManage/addBanner.vue
@@ -49,7 +49,7 @@
success: (chooseImageRes) => {
const tempFilePaths = chooseImageRes.tempFilePaths;
uni.uploadFile({
- url: 'http://192.168.66.221:8000'+'/rotationChart/upload',
+ url: API.baseUrl+'/rotationChart/upload',
filePath: tempFilePaths[0],
name: 'file',
header: {
diff --git a/pages/about/bonusSet/bonusList.vue b/pages/about/bonusSet/bonusList.vue
index 792eb77..ae8de36 100644
--- a/pages/about/bonusSet/bonusList.vue
+++ b/pages/about/bonusSet/bonusList.vue
@@ -8,7 +8,7 @@
面值:{{item.price}}
最高中奖金额:{{item.max_awards_amount}}
-
+
@@ -21,9 +21,9 @@
return {
id: '',
datasList: [
- {price: '20',status: true,max_awards_amount: '20万'},
- {price: '20',status: true,max_awards_amount: '20万'},
- {price: '20',status: true,max_awards_amount: '20万'}
+ // {price: '20',status: true,max_awards_amount: '20万'},
+ // {price: '20',status: true,max_awards_amount: '20万'},
+ // {price: '20',status: true,max_awards_amount: '20万'}
],
noMore: false,
page: 1,
diff --git a/pages/goodslist/goodslist.vue b/pages/goodslist/goodslist.vue
index 35a1df6..d6b9bba 100644
--- a/pages/goodslist/goodslist.vue
+++ b/pages/goodslist/goodslist.vue
@@ -78,6 +78,8 @@
display: flex;
flex-direction: column;
justify-content: space-between;
+ margin: 0px 5px;
+ flex: 1;
}
.btn{
width: 78px;
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 9f8cd99..81dc349 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -1,7 +1,7 @@
-
-
+
公告:
{{notice.title}}
@@ -149,7 +149,7 @@
data: [155, 250, 360, 100, 180, 204]
},
notice: {
- title: '公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告公告'
+ title: ''
}
}
},
diff --git a/pages/list/agent.vue b/pages/list/agent.vue
index 5f7c8a0..83aac7e 100644
--- a/pages/list/agent.vue
+++ b/pages/list/agent.vue
@@ -7,7 +7,7 @@
-
+
@@ -72,7 +72,7 @@
可提余额:{{scoreInfo.withdrawal_balance}}
-
+
@@ -89,7 +89,6 @@
export default {
data(){
return {
- keyword: '',
listsData: [
{id:111,phone:'135XXXX7777',balance:'1000.00',withdrawal_balance:'1000.00'},
{id:123,phone:'135XXXX7777',balance:'1000.00',withdrawal_balance:'1000.00'},
@@ -115,7 +114,7 @@
},
methods: {
getAgentList(){
- API.request('/adminTeam/agentList', {
+ API.request('/adminAgentTeam/agentList', {
limit: 10,title: this.account,page: this.page
}, res=>{
if(res.data.list.length<10){
@@ -227,7 +226,7 @@
})
return;
}
- let url = this.modifyType===1?'/adminTeam/agentUpScores':'/adminTeam/agentDownScores'
+ let url = this.modifyType===1?'/adminAgentTeam/agentUpScores':'/adminAgentTeam/agentDownScores'
API.request(url, {
aid: this.scoreInfo.id,
quota: this.limit
@@ -245,7 +244,7 @@
this.getAgentList();
}
},
- onLoad() {
+ onShow() {
this.getAgentList();
},
onReachBottom() {
diff --git a/pages/list/user.vue b/pages/list/user.vue
index bf587c6..02a65d3 100644
--- a/pages/list/user.vue
+++ b/pages/list/user.vue
@@ -73,7 +73,7 @@
可提余额:{{scoreInfo.withdrawal_balance}}
-
+
@@ -115,7 +115,7 @@
},
methods: {
getUserList(){
- API.request('/adminTeam/userList', {
+ API.request('/adminUserTeam/userList', {
limit: 10,title: this.account,page: this.page
}, res=>{
if(res.data.list.length<10){
@@ -142,7 +142,7 @@
title:'温馨提示',
content:"确定是否删除该用户信息",
success() {
- API.request('/adminTeam/deleteUser', {
+ API.request('/adminUserTeam/deleteUser', {
user_id: val.id
}, res=>{
uni.showToast({
@@ -172,17 +172,32 @@
icon: 'none'
})
}
- API.request('/adminTeam/editUser', {
- user_id: this.editInfo.id,
- phone: this.editInfo.phone,
- password: this.editInfo.password
- }, res=>{
- uni.showToast({
- title: res.msg
+ if(this.editType=='add'){
+ API.request('/adminUserTeam/addUser', {
+ phone: this.editInfo.phone,
+ password: this.editInfo.password
+ }, res=>{
+ uni.showToast({
+ title: res.msg
+ })
+ this.account = '';
+ this.search();
})
- this.account = '';
- this.search();
- })
+ }else if(this.editType=='edit'){
+ API.request('/adminUserTeam/editUser', {
+ user_id: this.editInfo.id,
+ phone: this.editInfo.phone,
+ password: this.editInfo.password
+ }, res=>{
+ uni.showToast({
+ title: res.msg
+ })
+ this.account = '';
+ this.search();
+ })
+ }
+ this.showEdit = false;
+
},
add(){
this.title = "新增用户";
@@ -212,7 +227,7 @@
})
return;
}
- let url = this.modifyType===1?'/adminTeam/upScores':'/adminTeam/downScores'
+ let url = this.modifyType===1?'/adminUserTeam/upScores':'/adminUserTeam/downScores'
API.request(url, {
user_id: this.scoreInfo.id,
quota: this.limit
@@ -230,7 +245,7 @@
this.getUserList();
}
},
- onLoad() {
+ onShow() {
this.getUserList();
},
onReachBottom() {
diff --git a/pages/scratchCard/scratchCard.vue b/pages/scratchCard/scratchCard.vue
index 8a172c7..ed8a97a 100644
--- a/pages/scratchCard/scratchCard.vue
+++ b/pages/scratchCard/scratchCard.vue
@@ -1,15 +1,17 @@
-
+
面值{{ticketInfo.price}}元
面值{{ticketInfo.price}}元
-
-
-
- ¥{{item.amount}}
+
+
+
+
+ ¥{{lineItem.amount}}
+
@@ -66,19 +68,24 @@ export default {
},
awards_amount: '20',
dataList: [
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'},
- {image: '',amount:'100.00'}
+ [
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'}
+ ],
+ [
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'}
+ ],
+ [
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'},
+ {image: '',amount:'100.00'}
+ ],
],
+ // dataList: [],
toDraw: false, // 是否开始刮奖
showResult: false, // 是否显示抽奖结果
isWin: false, // 是否中奖
@@ -91,7 +98,8 @@ export default {
isThank: false,
// show: false,
guaCanvas: null,
- isShow: false
+ isShow: false,
+ c_r_id: '',
}
},
updated() {
@@ -137,13 +145,17 @@ export default {
beginLottery(){
API.beginLottery({zone_goods_id: this.id}, res=>{
this.dataList = res.data.list;
+ this.c_r_id = res.data.c_r_id;
+ this.toDraw = true;
+ this.initCanvas();
+ // console.log(this.dataList, 'dataList----');
})
},
// 请求刮奖结果
doPrizeScratchTicketFun () {
// this.isWin = true;
// this.isThank = true;
- API.endLottery({c_r_id: this.id}, res=>{
+ API.endLottery({c_r_id: this.c_r_id}, res=>{
this.awards_amount = res.data.awards_amount;
this.isWin = true;
}, fail=>{
@@ -154,8 +166,7 @@ export default {
},
// 点击按钮开始刮奖
scratchStart () {
- this.toDraw = true
- this.initCanvas()
+
this.beginLottery()
},
// 再刮一次
@@ -204,6 +215,7 @@ export default {
.scratch {
position: relative;
padding-top: 380px;
+ // padding-top: 280px;
width: 330px;
height: 280px;
margin: 0px auto;
@@ -223,9 +235,14 @@ export default {
z-index: -1;
background-color: #DCDEDD;
display: flex;
- flex-wrap: wrap;
- align-content: space-around;
+ flex-direction: column;
+ justify-content: space-around;
+ .img_row{
+ display: flex;
+ flex-wrap: wrap;
+ align-content: space-around;
+ }
&.zIndex1{
z-index: 1;
}
@@ -238,7 +255,7 @@ export default {
image{
width: 80rpx;
height: 60rpx;
- background-color: #000;
+ // background-color: #000;
}
}
}
diff --git a/pages/ucenter/ucenter.vue b/pages/ucenter/ucenter.vue
index 50f0293..f42b9b8 100644
--- a/pages/ucenter/ucenter.vue
+++ b/pages/ucenter/ucenter.vue
@@ -13,8 +13,8 @@
ID: {{userInfo.id}}
点击登陆
-
+
+
@@ -400,7 +400,25 @@
// })
},
logoOut(e){
+ let url = '/user/LogOut';
+ if(this.userType=='agent'){
+ url = '/agentTeam/logOut';
+ }else if(this.userType=='background'){
+ url = '/adminUser/logOut';
+ }
+ API.request(url, {}, res=>{
+ uni.showToast({
+ title: res.msg
+ })
+
+ uni.removeStorageSync('user_token');
+ setTimeout(()=>{
+ uni.reLaunch({
+ url: '/uni_modules/uni-id-pages/pages/login/login-withpwd'
+ })
+ }, 1000)
+ })
},
tapGrid(index) {
uni.showToast({
@@ -554,11 +572,12 @@
title:'温馨提示',
content:"确定后,将清除所有缓存数据",
success() {
- let tk = uni.getStorageSync('user_token');
- let ut = uni.getStorageSync('userType');
- uni.clearStorageSync();
- uni.setStorageSync('user_token', tk);
- uni.setStorageSync('userType', ut);
+
+ // let tk = uni.getStorageSync('user_token');
+ // let ut = uni.getStorageSync('userType');
+ // uni.clearStorageSync();
+ // uni.setStorageSync('user_token', tk);
+ // uni.setStorageSync('userType', ut);
}
})
},
diff --git a/uni_modules/uni-id-pages/pages/login/login-withpwd.vue b/uni_modules/uni-id-pages/pages/login/login-withpwd.vue
index f5d97b7..13c6d6a 100644
--- a/uni_modules/uni-id-pages/pages/login/login-withpwd.vue
+++ b/uni_modules/uni-id-pages/pages/login/login-withpwd.vue
@@ -29,7 +29,7 @@
-
+
@@ -37,9 +37,9 @@
{{config.isAdmin ? '注册管理员账号': '新注册'}}
-
+
温馨提示:
- 验证码需要跟代理/平台客服获取
+ 忘记密码,请联系平台
@@ -109,19 +109,19 @@
if (!this.username.length) {
this.focusUsername = true
return uni.showToast({
- title: '请输入手机号',
- icon: 'none',
- duration: 3000
- });
- }
- if (!/^1\d{10}$/.test(this.username)) {
- this.focusUsername = true
- return uni.showToast({
- title: '请输入正确格式的手机号',
+ title: '请输入手机号/账号',
icon: 'none',
duration: 3000
});
}
+ // if (!/^1\d{10}$/.test(this.username)) {
+ // this.focusUsername = true
+ // return uni.showToast({
+ // title: '请输入正确格式的手机号',
+ // icon: 'none',
+ // duration: 3000
+ // });
+ // }
if (!this.password.length) {
this.focusPassword = true
return uni.showToast({
@@ -188,6 +188,9 @@
title: res.msg
})
uni.setStorageSync('user_token', res.data.token);
+ let accounts = uni.getStorageSync('accounts') || [];
+ accounts.push(this.username);
+ uni.setStorageSync('accounts', accounts);
uni.setStorageSync('userType', 'agent');
// updateTabBar.changeAgent();
setTimeout(()=>{
@@ -208,6 +211,9 @@
title: res.msg
})
uni.setStorageSync('user_token', res.data.token);
+ let accounts = uni.getStorageSync('accounts') || [];
+ accounts.push(this.username);
+ uni.setStorageSync('accounts', accounts);
uni.setStorageSync('userType', 'background');
// updateTabBar.changebackground();
setTimeout(()=>{
diff --git a/uni_modules/uni-id-pages/pages/register/register.vue b/uni_modules/uni-id-pages/pages/register/register.vue
index 4fedb90..b8833b9 100644
--- a/uni_modules/uni-id-pages/pages/register/register.vue
+++ b/uni_modules/uni-id-pages/pages/register/register.vue
@@ -26,11 +26,11 @@
-
+
获取验证码
-
+
@@ -38,22 +38,23 @@
+
-
+
@@ -266,13 +267,14 @@
/deep/ .uni-easyinput__content-input{
padding-left: 0px !important;
}
- .uni-forms .uni-forms-item.is-direction-left:nth-of-type(1) /deep/ .uni-easyinput__content-input{
- flex: 0.6;
- }
- .uni-forms .uni-forms-item.is-direction-left:nth-of-type(1) /deep/ .content-clear-icon{
- flex: 0.4;
- text-align: left;
- }
+ // .uni-forms .uni-forms-item.is-direction-left:nth-of-type(1) /deep/ .uni-easyinput__content-input{
+ // flex: 0.6;
+ // }
+ // .uni-forms .uni-forms-item.is-direction-left:nth-of-type(1) /deep/ .content-clear-icon{
+ // flex: 0.4;
+ // text-align: left;
+ // }
+ // 搭配验证码使用
.getCaptchaCode{
position: absolute;
top: 0px;
@@ -283,6 +285,7 @@
}
.register-btn{
border-radius: 10px;
+ margin-top: 100px;
}
button {
margin-top: 15px;
diff --git a/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue b/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
index 2a6ce01..341f11f 100644
--- a/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
+++ b/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
@@ -50,18 +50,18 @@
'newPassword2': '',
},
rules: {
- oldPassword: {
+ newPassword: {
rules: [{
required: true,
errorMessage: '请输入新密码',
},
- {
- pattern: /^.{6,20}$/,
- errorMessage: '密码为6 - 20位',
- }
+ // {
+ // pattern: /^.{6,20}$/,
+ // errorMessage: '密码为6 - 20位',
+ // }
]
},
- ...passwordMod.getPwdRules('newPassword', 'newPassword2')
+ // ...passwordMod.getPwdRules('newPassword', 'newPassword2')
},
logo: "/static/logo.png"
}