1.修改样式

yj-dev
杨杰 3 years ago
parent 7236348a72
commit 551b1ccb1e
  1. 2
      pages.json
  2. 2
      pages/goods/refuel-confirm/refuel-confirm.vue
  3. 41
      pages/login/updatePas/updatePas.vue
  4. 6
      pages/order/confirmation.vue
  5. 2
      pages/pay/payment/payment.vue
  6. 36
      pages/tabBar/home/home.vue
  7. 4
      pages/tabBar/user/user.vue
  8. 48
      pages/userLogin/userLogin.vue
  9. 4
      uni.scss

@ -497,7 +497,7 @@
"path" : "pages/user/bindingCard/bindingCard", "path" : "pages/user/bindingCard/bindingCard",
"style" : "style" :
{ {
"navigationBarTitleText": "绑定卡号", "navigationBarTitleText": "绑定卡号",
"navigationBarBackgroundColor": "#0083f5", "navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",

@ -59,7 +59,7 @@
<view class="line1"></view> <view class="line1"></view>
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='gonghuika'"> <view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='gonghuika'">
<view class="width60 flleft fontwig6"> <view class="width60 flleft fontwig6">
工会卡支付<text class="font14 fcor666 margle">余额: {{tongCardPrice}}</text> 汇联通工会卡<text class="font14 fcor666 margle">余额: {{tongCardPrice}}</text>
</view> </view>
<view class="flright width30 fotct"> <view class="flright width30 fotct">
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> <radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" />

@ -9,8 +9,14 @@
<!-- 账号密码输入框 --> <!-- 账号密码输入框 -->
<view class="form"> <view class="form">
<view class="password"> <view class="password">
<image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;"></image><input <image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;margin-right: 10px;"></image>
placeholder="请输入密码" type="number" maxlength="6" v-model="passwd" password=true placeholder-style="color: #333333;" /> <input placeholder="请输入密码" type="number" maxlength="6" v-model="passwd" password=true
placeholder-style="color: #333333;" />
</view>
<view class="password">
<image src="../../../static/img/pas.png" style="width: 40rpx;height: 40rpx;margin-right: 10px;"></image>
<input placeholder="请确认密码" type="number" maxlength="6" v-model="qrpasswd" password=true
placeholder-style="color: #333333;" />
</view> </view>
<view class="btn mart50" @tap="setUserPayPwd"> </view> <view class="btn mart50" @tap="setUserPayPwd"> </view>
</view> </view>
@ -26,6 +32,7 @@
data() { data() {
return { return {
passwd: '', passwd: '',
qrpasswd: ''
} }
}, },
methods: { methods: {
@ -36,8 +43,27 @@
title: '请填写密码', title: '请填写密码',
icon: "none" icon: "none"
}); });
return false; return;
}
if (this.qrpasswd == '') {
uni.showToast({
title: '请确认密码',
icon: "none"
});
return;
} }
if (this.qrpasswd != this.passwd) {
uni.showToast({
title: '您输入的两次密码不相同',
icon: "none"
});
return;
}
uni.showModal({
title: '设置密码',
content: '是否确认设置密码',
success: (res) => {
if (res.confirm) {
uni.showLoading({ uni.showLoading({
title: '设置中...' title: '设置中...'
}) })
@ -61,8 +87,7 @@
.object .object
.highUser .highUser
}) })
uni.navigateBack({ uni.navigateBack({})
})
} else { } else {
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
@ -71,6 +96,11 @@
}) })
} }
}) })
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} }
} }
} }
@ -78,6 +108,7 @@
<style lang="scss"> <style lang="scss">
@import "../../../static/css/login.scss"; @import "../../../static/css/login.scss";
.form { .form {
.res { .res {
display: flex; display: flex;

@ -97,7 +97,7 @@
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3 "></view> <view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3 "></view>
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'"> <view class="height50 width100 backcorfff" @tap="paytype='gonghuika'">
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;"> <view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;">
工会卡支付<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text> 汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text>
</view> </view>
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" <view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;"> style="align-items: center;">
@ -106,7 +106,7 @@
</view> </view>
</view> </view>
<view class="width94 comorder mart10"> <!-- <view class="width94 comorder mart10">
<view class="height50 width100 backcorfff"> <view class="height50 width100 backcorfff">
<view class="width80p flleft fcor333 fontwig6 font14" style="padding-left: 4%;"> <view class="width80p flleft fcor333 fontwig6 font14" style="padding-left: 4%;">
<text style="color: #0083F5;">条约协议</text>点击立即支付即代表同意 <text style="color: #0083F5;">条约协议</text>点击立即支付即代表同意
@ -115,7 +115,7 @@
<image class="jtcs" src="../../static/img/jt.png"></image> <image class="jtcs" src="../../static/img/jt.png"></image>
</view> </view>
</view> </view>
</view> </view> -->
<view class="width100 height60"></view> <view class="width100 height60"></view>
<view class="footer"> <view class="footer">

@ -34,7 +34,7 @@
<image style="border-radius: 50%;" src="../../../static/img/ghkpay.png"></image> <image style="border-radius: 50%;" src="../../../static/img/ghkpay.png"></image>
</view> </view>
<view class="center"> <view class="center">
工会卡支付(余额:{{tongCardPrice}}) 汇联通工会卡(余额:{{tongCardPrice}})
</view> </view>
<view class="right"> <view class="right">
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> <radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" />

@ -694,31 +694,45 @@
uni.navigateTo({ uni.navigateTo({
url:'../../userLogin/userLogin' url:'../../userLogin/userLogin'
}) })
return false; return;
}
if (!app.globalData.userInfo.phone) {
uni.navigateTo({
url:'../../userLogin/userLogin'
})
return;
} }
uni.navigateTo({ uni.navigateTo({
url: '/pages/tabBar/order/order?id=1' url: '/pages/tabBar/order/order?id=1'
}) })
} else if (item.name == '电影票') { } else if (item.name == '电影票') {
if (!app.globalData.userInfo) { if (!app.globalData.userInfo) {
uni.navigateTo({ uni.navigateTo({
url:'../../userLogin/userLogin' url:'../../userLogin/userLogin'
}) })
return false; return;
}
if (!app.globalData.userInfo.phone) {
uni.navigateTo({
url:'../../userLogin/userLogin'
})
return;
} }
uni.navigateTo({ uni.navigateTo({
url: '/pages/tabBar/order/order?id=2' url: '/pages/tabBar/order/order?id=2'
}) })
} else if (item.name == '话费充值') { } else if (item.name == '话费充值') {
if (!app.globalData.userInfo) { if (!app.globalData.userInfo) {
uni.navigateTo({ uni.navigateTo({
url:'../../userLogin/userLogin' url:'../../userLogin/userLogin'
}) })
return false; return;
}
if (!app.globalData.userInfo.phone) {
uni.navigateTo({
url:'../../userLogin/userLogin'
})
return;
} }
uni.navigateTo({ uni.navigateTo({
url: '/pages/tabBar/order/order?id=3' url: '/pages/tabBar/order/order?id=3'
@ -738,7 +752,13 @@
uni.navigateTo({ uni.navigateTo({
url:'../../userLogin/userLogin' url:'../../userLogin/userLogin'
}) })
return false; return;
}
if (!app.globalData.userInfo.phone) {
uni.navigateTo({
url:'../../userLogin/userLogin'
})
return;
} }
uni.navigateTo({ uni.navigateTo({
url: '/pages/tabBar/order/order?id=' + item url: '/pages/tabBar/order/order?id=' + item

@ -249,7 +249,7 @@
this.czList = [{ this.czList = [{
url: '../../user/unionCard/unionCard', url: '../../user/unionCard/unionCard',
text: '工会卡', text: '工会卡',
img: '../../../static/img/ghk.png' img: '../../../static/img/ghkpay.png'
}, },
{ {
url: '../../login/updatePas/updatePas', url: '../../login/updatePas/updatePas',
@ -262,7 +262,7 @@
this.czList = [{ this.czList = [{
url: '../../user/unionCard/unionCard', url: '../../user/unionCard/unionCard',
text: '工会卡', text: '工会卡',
img: '../../../static/img/ghk.png' img: '../../../static/img/ghkpay.png'
}, },
{ {
url: '../../login/updatePas/resetPas', url: '../../login/updatePas/resetPas',

@ -1,13 +1,14 @@
<template> <template>
<view> <view>
<image mode="widthFix" class="width90 mart20" src="../../static/img/login.png"></image> <image mode="widthFix" class="width90 mart20" v-if="!user" :src="imagewxUrl+imgadres"></image>
<image mode="widthFix" class="width90 mart20" v-if="!user.phone && user" :src="imagewxUrl+imgadres1"></image>
<!-- #ifdef MP --> <!-- #ifdef MP -->
<view class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" v-if="!user" @click="getuserinfo"> <view class="mart30 width90 height50 fcorfff backcor008 fotct btns font16 fontlet" v-if="!user" @click="getuserinfo">
授权并登录</view> 授权并登录</view>
<button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" v-if="!user.phone && user" <button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16 fontlet" v-if="!user.phone && user"
open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权手机号</button> open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权手机号</button>
<button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" v-if="user.phone && user" <!-- <button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" v-if="user.phone && user"
@click="reqmessage">授权获取消息通知</button> @click="reqmessage">授权获取消息通知</button> -->
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16" <button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16"
@ -25,9 +26,15 @@
export default { export default {
data() { data() {
return { return {
user: '' user: '',
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'login.png',
imgadres1: 'loginphone.png',
} }
}, },
onLoad() {
this.user = app.globalData.userInfo;
},
methods: { methods: {
getuserinfo() { getuserinfo() {
let that = this; let that = this;
@ -57,7 +64,10 @@
key: "token", key: "token",
data: res.return_data.uniqueCode data: res.return_data.uniqueCode
}) })
if (res.return_data.object.highUser.phone) {} if (res.return_data.object.highUser.phone) {
uni.navigateBack({
})
}
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg title: res.return_msg
@ -75,17 +85,17 @@
that.isShowAuth = false that.isShowAuth = false
}, },
// //
reqmessage() { // reqmessage() {
uni.requestSubscribeMessage({ // uni.requestSubscribeMessage({
tmplIds: ['oUvaCPeeOg4wH6HTvCcSabU6FnzXUXOBXsqBYAPOV-U'], // tmplIds: ['oUvaCPeeOg4wH6HTvCcSabU6FnzXUXOBXsqBYAPOV-U'],
success(res) { // success(res) {
uni.navigateBack({}) // uni.navigateBack({})
}, // },
fail: (res) => { // fail: (res) => {
uni.navigateBack({}) // uni.navigateBack({})
} // }
}) // })
}, // },
// //
getPhoneNumber(PhoneNumber) { getPhoneNumber(PhoneNumber) {
let params = { let params = {
@ -100,6 +110,8 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
uni.navigateBack({
})
this.user = res.return_data.object.highUser; this.user = res.return_data.object.highUser;
app.globalData.userInfo = res.return_data app.globalData.userInfo = res.return_data
.object .object

@ -87,6 +87,10 @@ $uni-font-size-paragraph:30upx;
font-size: 13px; font-size: 13px;
} }
.fontlet{
letter-spacing: 2px;
}
.font14 { .font14 {
font-size: 14px; font-size: 14px;
} }

Loading…
Cancel
Save