2.肯德基和星巴克新增用户选择数量 3.星巴克肯德基新增打烊时间 4.肯德基订单详情新增手机点击查看 5.肯德基和星巴克修改文字位置 6.绑定工会卡优化 7.修改贵州柴油汽油专区 8.优化积分支付密码功能 9..新增话费充值弹master
parent
815337acc7
commit
cfb0389f82
@ -1,103 +1,164 @@ |
||||
<template> |
||||
<view> |
||||
<view class="logo"> |
||||
<view class="img"> |
||||
<image mode="widthFix" src="../../../static/img/logo2.jpg"> |
||||
</image> |
||||
</view> |
||||
</view> |
||||
<!-- 账号密码输入框 --> |
||||
<view class="form"> |
||||
<view class="password"> |
||||
<image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;"></image><input |
||||
placeholder="请输入旧密码" type="number" maxlength="6" v-model="jpasswd" password=true placeholder-style="color: #333333;" /> |
||||
</view> |
||||
<view class="password"> |
||||
<image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;"></image><input |
||||
placeholder="请输入新密码" type="number" maxlength="6" v-model="xpasswd" password=true placeholder-style="color: #333333;" /> |
||||
</view> |
||||
<view class="btn mart50" @tap="updateUserPayPwd">确 认</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
updateUserPayPwd |
||||
} from "../../../Utils/Api.js"; |
||||
let app =getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
jpasswd: '', |
||||
xpasswd: '', |
||||
} |
||||
}, |
||||
methods: { |
||||
updateUserPayPwd() { |
||||
uni.hideKeyboard(); |
||||
if (this.jpasswd == '') { |
||||
uni.showToast({ |
||||
title: '请填写旧密码', |
||||
icon: "none" |
||||
}); |
||||
return false; |
||||
} |
||||
if (this.xpasswd == '') { |
||||
uni.showToast({ |
||||
title: '请填写新密码', |
||||
icon: "none" |
||||
}); |
||||
return false; |
||||
} |
||||
uni.showLoading({ |
||||
title: '设置中...' |
||||
}) |
||||
let datas = { |
||||
"password": this.jpasswd, |
||||
"newPassword":this.xpasswd |
||||
} |
||||
updateUserPayPwd(datas).then(res => { |
||||
if (res.return_code == '000000') { |
||||
uni.hideLoading(); |
||||
uni.showToast({ |
||||
title: '修改成功', |
||||
<template> |
||||
<view> |
||||
<view class="logo"> |
||||
<view class="img"> |
||||
<image mode="widthFix" src="../../../static/img/logo2.jpg"> |
||||
</image> |
||||
</view> |
||||
</view> |
||||
<!-- 账号密码输入框 --> |
||||
<view class="form re"> |
||||
<view class="username"> |
||||
<view class="get-code" style="color: #676767;" @click.stop="getCode()">{{getCodeText}}</view> |
||||
<input placeholder="请输入手机号" disabled="true" v-model="phoneNumber" placeholder-style="color: #676767;" /> |
||||
</view> |
||||
<view class="code"> |
||||
<input placeholder="请输入验证码" v-model="code" placeholder-style="color: #676767;" /> |
||||
</view> |
||||
<!-- <view class="password"> |
||||
<image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;"></image> |
||||
<input placeholder="请输入旧密码" type="number" maxlength="6" v-model="jpasswd" password=true |
||||
placeholder-style="color: #333333;" /> |
||||
</view> --> |
||||
<view class="password"> |
||||
<!-- <image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;"></image> --> |
||||
<input placeholder="请输入新密码" type="number" maxlength="6" v-model="xpasswd" password=true |
||||
placeholder-style="color: #676767;" /> |
||||
</view> |
||||
<view class="btn mart50" @tap="updateUserPayPwd">确 认</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
updateUserPayPwd, |
||||
sendSmsCodeByHw |
||||
} from "../../../Utils/Api.js"; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
phoneNumber: "", |
||||
code: '', |
||||
getCodeText: '获取验证码', |
||||
getCodeisWaiting: false, |
||||
jpasswd: '', |
||||
xpasswd: '', |
||||
} |
||||
}, |
||||
onLoad() { |
||||
this.phoneNumber = app.globalData.userInfo.phone; |
||||
}, |
||||
methods: { |
||||
//发送短信 |
||||
getCode() { |
||||
uni.hideKeyboard() |
||||
if (this.getCodeisWaiting) { |
||||
return; |
||||
} |
||||
uni.showLoading({ |
||||
title: '发送中...' |
||||
}) |
||||
let params = { |
||||
phone: this.phoneNumber, |
||||
HWMSG: 6 |
||||
} |
||||
sendSmsCodeByHw(params).then(res => { |
||||
if (res.return_code == '000000') { |
||||
this.getCodeisWaiting = true; |
||||
uni.showToast({ |
||||
title: '验证码已发送', |
||||
icon: "none" |
||||
}); |
||||
this.setTimer(); |
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
duration: 2000, |
||||
icon: "none" |
||||
}) |
||||
uni.hideLoading() |
||||
} |
||||
}) |
||||
}, |
||||
//发送验证码 |
||||
setTimer() { |
||||
let holdTime = 60; |
||||
this.getCodeText = "重新获取(60)" |
||||
this.Timer = setInterval(() => { |
||||
if (holdTime <= 0) { |
||||
this.getCodeisWaiting = false; |
||||
this.getCodeBtnColor = "#ffffff"; |
||||
this.getCodeText = "获取验证码" |
||||
clearInterval(this.Timer); |
||||
return; |
||||
} |
||||
this.getCodeText = "重新获取(" + holdTime + ")" |
||||
holdTime--; |
||||
|
||||
}, 1000) |
||||
}, |
||||
//修改密码 |
||||
updateUserPayPwd() { |
||||
uni.hideKeyboard(); |
||||
if (this.code == '') { |
||||
uni.showToast({ |
||||
title: '请填写验证码', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
return false; |
||||
} |
||||
|
||||
if (this.xpasswd == '') { |
||||
uni.showToast({ |
||||
title: '请填写新的积分支付密码', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
return false; |
||||
} |
||||
uni.showLoading({ |
||||
title: '设置中...' |
||||
}) |
||||
let datas = { |
||||
"code": this.code, |
||||
"newPassword": this.xpasswd |
||||
} |
||||
updateUserPayPwd(datas).then(res => { |
||||
if (res.return_code == '000000') { |
||||
uni.hideLoading(); |
||||
uni.showToast({ |
||||
title: '修改成功', |
||||
icon: "none", |
||||
duration: 2000 |
||||
}); |
||||
uni.navigateBack({}) |
||||
} else { |
||||
uni.hideLoading(); |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
icon: "none", |
||||
duration:2000 |
||||
}); |
||||
app.globalData.userInfo = res.return_data |
||||
.object |
||||
.highUser; |
||||
uni.setStorage({ |
||||
key: "user", |
||||
data: res.return_data |
||||
.object |
||||
.highUser |
||||
}) |
||||
uni.navigateBack({ |
||||
}) |
||||
} else { |
||||
uni.hideLoading(); |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
icon: "none" |
||||
}) |
||||
} |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
@import "../../../static/css/login.scss"; |
||||
.form { |
||||
.res { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
height: 100upx; |
||||
color: rgba($color: #ffffff, $alpha: 0.8); |
||||
} |
||||
} |
||||
duration: 2000 |
||||
}) |
||||
} |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
@import '../../../static/css/login.scss'; |
||||
|
||||
.form { |
||||
.res { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
height: 100upx; |
||||
color: rgba($color: #ffffff, $alpha: 0.8); |
||||
} |
||||
} |
||||
</style> |
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,68 @@ |
||||
<template> |
||||
<view> |
||||
<image class="width100" mode="widthFix" src="../../../static/img/unionimg/upay3.jpg"></image> |
||||
<image class="width94 mart20" mode="widthFix" src="../../../static/img/unionimg/upay4.jpg" @click="jumprecent(1)"></image> |
||||
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay2.jpg" @click="jumprecent(2)"></image> |
||||
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay1.jpg" @click="jumprecent(3)"></image> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
|
||||
} |
||||
}, |
||||
methods: { |
||||
//跳转充值 |
||||
jumprecent(item){ |
||||
uni.navigateTo({ |
||||
url: '../recharge-centre/recharge-centre?id='+ item |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
|
||||
<template> |
||||
<view> |
||||
<image class="width100" mode="widthFix" src="../../../static/img/unionimg/upay3.jpg"></image> |
||||
<image class="width94 mart20" mode="widthFix" src="../../../static/img/unionimg/upay4.jpg" |
||||
@click="jumprecent(1)"></image> |
||||
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay2.jpg" |
||||
@click="jumprecent(2)"></image> |
||||
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay1.jpg" |
||||
@click="jumprecent(3)"></image> |
||||
<wybPopup ref="popup" type="center" height="850" width="600" bgColor="" radius="6" :showCloseIcon="true"> |
||||
<image class="popImg" :src="imageUrl+imgadres1"></image> |
||||
</wybPopup> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getCmsContent |
||||
} from '../../../Utils/Api.js' |
||||
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; |
||||
let app = getApp(); |
||||
export default { |
||||
components: { |
||||
wybPopup |
||||
}, |
||||
data() { |
||||
return { |
||||
imageUrl: app.globalData.imgUrl, |
||||
imgadres1: '', |
||||
} |
||||
}, |
||||
onLoad() { |
||||
this.getCmsAactibity(); |
||||
}, |
||||
methods: { |
||||
//跳转充值 |
||||
jumprecent(item) { |
||||
uni.navigateTo({ |
||||
url: '../recharge-centre/recharge-centre?id=' + item |
||||
}) |
||||
}, |
||||
//查询弹窗 |
||||
getCmsAactibity() { |
||||
let params = { |
||||
regionId: app.globalData.cityId, |
||||
categoryCode: 'CMS_TELEPHONE_POP_UP' |
||||
} |
||||
getCmsContent(params).then(res => { |
||||
if (res.return_code == '000000' && res.return_data != '') { |
||||
//弹窗首页广告 |
||||
this.imgadres1 = res.return_data[0].imgData; |
||||
this.showPopup(); |
||||
} |
||||
}); |
||||
}, |
||||
//显示弹出 |
||||
showPopup() { |
||||
this.$refs.popup.show(); |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
<style lang="scss"> |
||||
.popImg { |
||||
width: 100%; |
||||
height: 430px; |
||||
} |
||||
</style> |
||||
|
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.4 KiB |
Loading…
Reference in new issue