liudan 4 months ago
parent c4d4c58bba
commit 037a86c086
  1. 291
      components/weikuan.vue
  2. 6
      pages.json
  3. 38
      pages/goods/order_details/index.vue
  4. 18
      pages/goods/order_list/index.vue
  5. 18
      pages/user/index.vue
  6. 557
      pages/users/mima/index.vue
  7. 11
      pages/users/user_info/index.vue

@ -1,108 +1,95 @@
<template> <template>
<view> <view>
<view class="address-window" :class="address.address==true?'on':''"> <view class="address-window" :class="show==true?'on':''">
<view class='title'>{{$t(`选择地址`)}}<text class='iconfont icon-guanbi' @tap='close'></text></view> <view class="weikuan">
<view class='list'> <view class="title">
<view class='item acea-row row-between-wrapper' :class='active==index?"font-num":""' 确认商品数量
v-for="(item,index) in addressList" @tap='tapAddress(index,item.id)' :key='index'> </view>
<text class='iconfont icon-ditu' :class='active==index?"font-num":""'></text> <view v-for="item in info.cartInfo">
<view class='address'> <view class="product">
<view class='name' :class='active==index?"font-num":""'>{{item.real_name}}<text <image :src="item.productInfo.image" mode=""></image>
class='phone'>{{item.phone}}</text></view> <view class="details">
<view class='line1'>{{item.province}}{{item.city}}{{item.district}}{{item.detail}}</view> <view class="pTitle">
{{item.productInfo.store_name}}
</view>
<view class="price">
{{item.attrInfo.price}}
</view>
</view>
</view>
<view class="num">
<text>数量:{{item.cart_num}}</text>
</view> </view>
<text class='iconfont icon-complete' :class='active==index?"font-num":""'></text>
</view>
<view class="totalInfo">
<view class="totalItem">
<text class="totalTitle">总计:</text>
<text class="totalDesc">¥{{info.total_price}}</text>
</view>
<view class="totalItem">
<text class="totalTitle">已支付:</text>
<text class="totalDesc">¥{{info.pay_price}}</text>
</view>
<view class="totalItem">
<text class="totalTitle">剩余尾款:</text>
<text class="totalDesc">¥{{info.pay_money_wei}}</text>
</view>
</view>
<view class="btnPay" @click="payHandle">
支付尾款
</view> </view>
</view> </view>
<!-- 无地址 -->
<view class='pictrue' v-if="!is_loading && !addressList.length">
<image :src="imgHost + '/statics/images/noAddress.png'"></image>
</view>
<view class='addressBnt bg-color' @tap='goAddressPages'>{{$t(`选择其它地址`)}}</view>
</view> </view>
<view class='mask' catchtouchmove="true" :hidden='address.address==false' @tap='close'></view> <view class='mask' catchtouchmove="true" :hidden='show==false' @tap='close'></view>
</view> </view>
</template> </template>
<script> <script>
import {
getAddressList
} from '@/api/user.js';
import { import {
HTTP_REQUEST_URL HTTP_REQUEST_URL
} from '@/config/app'; } from '@/config/app';
export default { export default {
props: { props: {
pagesUrl: { show: {
type: String,
default: '',
},
address: {
type: Object,
default: function() {
return {
address: true,
addressId: 0,
};
}
},
isLog: {
type: Boolean, type: Boolean,
default: false, default: true
}, },
info:{
type:Object,
default:()=>{
return {}
}
}
}, },
data() { data() {
return { return {
imgHost: HTTP_REQUEST_URL,
active: 0,
//
addressList: [],
is_loading: true
}; };
}, },
methods: { methods: {
tapAddress: function(e, addressid) {
this.active = e;
this.$emit('OnChangeAddress', addressid);
},
close: function() { close: function() {
this.$emit('changeClose'); this.$emit("close")
this.$emit('changeTextareaStatus');
}, },
goAddressPages: function() { payHandle(){
this.$emit('changeClose'); this.$emit("weikuanPay")
this.$emit('changeTextareaStatus');
uni.navigateTo({
url: this.pagesUrl
});
},
getAddressList: function() {
let that = this;
getAddressList({
page: 1,
limit: 5
}).then(res => {
let addressList = res.data;
//
for (let i = 0, leng = addressList.length; i < leng; i++) {
if (addressList[i].id == that.address.addressId) {
that.active = i;
}
}
that.$set(that, 'addressList', addressList);
that.is_loading = false;
if (addressList.length) {
this.$emit('onHaveAddressList', true)
}
})
} }
}
},
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.address-window { .address-window {
border-radius: 20rpx 20rpx 0 0;
background-color: #fff; background-color: #fff;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -116,77 +103,91 @@
.address-window.on { .address-window.on {
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.weikuan{
.address-window .title { padding:30rpx 24rpx 53rpx 24rpx;
font-size: 32rpx; .title {
font-weight: bold; text-align: center;
text-align: center; font-family: Alibaba PuHuiTi;
height: 123rpx; font-weight: 400;
line-height: 123rpx; font-size: 34rpx;
position: relative; color: #333333;
}
}
.address-window .title .iconfont { .product{
position: absolute; display: flex;
right: 30rpx; margin-top:36rpx;
color: #8a8a8a; image{
font-size: 35rpx; width: 160rpx;
} height: 160rpx;
background: #EEEEEE;
.address-window .list .item { border-radius: 20rpx;
margin-left: 30rpx; }
padding-right: 30rpx; .details{
border-bottom: 1px solid #eee;
height: 129rpx; flex:1;
font-size: 25rpx; margin-left:20rpx;
color: #333; .pTitle{
}
margin-top: 16rpx;
.address-window .list .item .iconfont { font-weight: 400;
font-size: 37rpx; font-size: 30rpx;
color: #2c2c2c; color: #333333;
} }
.price{
.address-window .list .item .iconfont.icon-complete { font-family: Alibaba PuHuiTi;
font-size: 30rpx; font-weight: 400;
color: #fff; font-size: 24rpx;
} color: #E4884E;
margin-top:25rpx;
.address-window .list .item .address { }
width: 560rpx; }
} }
.num{
.address-window .list .item .address .name { margin-top:60rpx;
font-size: 28rpx;
font-weight: bold; font-family: Alibaba PuHuiTi;
color: #282828; font-weight: 400;
margin-bottom: 4rpx; font-size: 28rpx;
} color: #999999;
.address-window .list .item .address .name .phone { }
margin-left: 18rpx; .totalInfo{
} display: flex;
margin-top:40rpx;
.address-window .addressBnt { .totalItem{
font-size: 30rpx; margin-right:31rpx;
font-weight: bold; .totalTitle{
color: #fff; font-family: Alibaba PuHuiTi;
width: 690rpx; font-weight: 400;
height: 86rpx; font-size: 24rpx;
border-radius: 43rpx; color: #999999;
text-align: center;
line-height: 86rpx; }
margin: 85rpx auto; .totalDesc{
} font-family: Alibaba PuHuiTi;
font-weight: 400;
.address-window .pictrue { font-size: 24rpx;
width: 414rpx; color: #333333;
height: 336rpx;
margin: 0 auto; }
} }
}
.address-window .pictrue image { .btnPay{
width: 100%; margin-top:50rpx;
height: 100%; line-height: 98rpx;
height: 98rpx;
background: #A8D178;
border-radius: 49px;
border: 1px solid #A8D178;
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 30rpx;
color: #FFFFFF;
text-align: center;
}
} }
</style> </style>

@ -342,6 +342,12 @@
"navigationBarTitleText": "实名认证" "navigationBarTitleText": "实名认证"
} }
}, },
{
"path": "mima/index",
"style": {
"navigationBarTitleText": "密码设置"
}
},
{ {
"path": "user_vip_areer/index", "path": "user_vip_areer/index",
"style": { "style": {

@ -221,13 +221,13 @@
<span class="iconfont icon-kefu"></span> <span class="iconfont icon-kefu"></span>
<span>{{ $t(`联系客服`) }}</span> <span>{{ $t(`联系客服`) }}</span>
</button> </button>
</div> </div> -->
<div class="goodCall" v-else> <div class="goodCall">
<button hover-class="none" open-type="contact"> <button hover-class="none" open-type="contact">
<span class="iconfont icon-kefu"></span> <span class="iconfont icon-kefu"></span>
<span>{{ $t(`联系客服`) }}</span> <span>{{ $t(`联系客服`) }}</span>
</button> </button>
</div> --> </div>
<!-- #endif --> <!-- #endif -->
<view class="wrapper" v-if="isReturen == 1"> <view class="wrapper" v-if="isReturen == 1">
<view class="item acea-row row-between"> <view class="item acea-row row-between">
@ -433,6 +433,14 @@
> >
{{ cartInfo.length > 1 ? $t(`批量退款`) : $t(`申请退款`) }} {{ cartInfo.length > 1 ? $t(`批量退款`) : $t(`申请退款`) }}
</view> --> </view> -->
<navigator
class="bnt bg-color"
v-if="status.type == 6"
hover-class="none"
:url="'/pages/goods/cashier/index?order_id=' + orderInfo.order_id+'&from_type=order'"
>
{{ $t(`支付尾款`) }}
</navigator>
<navigator <navigator
class="bnt cancel" class="bnt cancel"
v-if="orderInfo.delivery_type == 'express' && status.class_status == 3 && status.type == 2 && !split.length" v-if="orderInfo.delivery_type == 'express' && status.class_status == 3 && status.type == 2 && !split.length"
@ -1397,13 +1405,13 @@ export default {
.goodCall { .goodCall {
color: var(--view-theme); color: var(--view-theme);
text-align: center; text-align: center;
width: 100%; width: auto;
height: 86rpx; height: 86rpx;
padding: 0 30rpx; margin: 0 24rpx;
border-top: 1rpx solid #eee; border-top: 1rpx solid #eee;
font-size: 30rpx; font-size: 30rpx;
line-height: 86rpx; line-height: 86rpx;
background: #fff; border-radius: 20rpx;
.icon-kefu { .icon-kefu {
font-size: 36rpx; font-size: 36rpx;
@ -1902,15 +1910,15 @@ export default {
} }
.goodCall { .goodCall {
color: var(--view-theme); // color: var(--view-theme);
text-align: center; // text-align: center;
width: 100%; // width: 100%;
height: 86rpx; // height: 86rpx;
padding: 0 30rpx; // padding: 0 30rpx;
border-bottom: 1rpx solid #eee; // border-bottom: 1rpx solid #eee;
font-size: 30rpx; // font-size: 30rpx;
line-height: 86rpx; // line-height: 86rpx;
background: #fff; // background: #fff;
.icon-kefu { .icon-kefu {
font-size: 36rpx; font-size: 36rpx;

@ -156,7 +156,7 @@
</view> </view>
</view> </view>
<zmm-watermark></zmm-watermark> <zmm-watermark></zmm-watermark>
<weikuan></weikuan> <weikuan @close="weikuanShow=false" ref="weikuan" :show="weikuanShow" @weikuanPay="weikuanPayHandle" :info="info"></weikuan>
<!-- #ifndef MP --> <!-- #ifndef MP -->
<home></home> <home></home>
<!-- #endif --> <!-- #endif -->
@ -212,7 +212,9 @@
totalPrice: '0', totalPrice: '0',
initIn: false, initIn: false,
isAuto: false, // isAuto: false, //
isShowAuth: false // isShowAuth: false, //
weikuanShow:false,
info:{}
}; };
}, },
computed: mapGetters(['isLogin']), computed: mapGetters(['isLogin']),
@ -336,7 +338,17 @@
}) })
}, },
goPayWei(item){ goPayWei(item){
console.log(item,"777")
this.info = item
this.weikuanShow = true;
this.$refs.weikuan.info = this.info
console.log(this.$refs.weikuan.info,"hjhj")
},
weikuanPayHandle(){
this.weikuanShow = false;
this.goPay(this.info.pay_price, this.info.order_id)
}, },
/** /**
* 去订单详情 * 去订单详情

@ -71,21 +71,15 @@
<image src="/static/images/svip.png"></image> <image src="/static/images/svip.png"></image>
</view> </view>
</view> </view>
<view class="num" v-if="isLogin" @click="goEdit()" style="justify-content: space-between;"> <view class="num" v-if="isLogin" @click="goEdit()" style="justify-content: space-between;margin-top: 16rpx;">
<view class="num-txt">{{userInfo.phone}}</view> <view class="num-txt" v-if="userInfo.phone">{{userInfo.phone}}</view>
<button class="phone" v-if="!userInfo.phone" open-type="getPhoneNumber"
@getphonenumber.stop="getphonenumber">{{$t(`绑定手机号`)}}</button>
<view style="position: relative;right: -38rpx;" @click.stop="goShiming"> <view style="position: relative;right: -38rpx;" @click.stop="goShiming">
{{userInfo.renzheng.status?(userInfo.renzheng.status==0?'未认证':userInfo.renzheng.status==1?'已通过':userInfo.renzheng.status==2?'已拒绝':userInfo.renzheng.status==3?'审核中':''):'未认证'}} {{userInfo.renzheng.status?(userInfo.renzheng.status==0?'未认证':userInfo.renzheng.status==1?'已通过':userInfo.renzheng.status==2?'已拒绝':userInfo.renzheng.status==3?'审核中':''):'未认证'}}
</view> </view>
</view> </view>
<!-- #ifdef MP -->
<button class="phone" v-if="!userInfo.phone && isLogin" open-type="getPhoneNumber"
@getphonenumber="getphonenumber">{{$t(`绑定手机号`)}}</button>
<!-- #endif -->
<!-- #ifndef MP -->
<view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">
{{$t('绑定手机号')}}
</view>
<!-- #endif -->
</view> </view>
<view class="message"> <view class="message">
<navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none"> <navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none">
@ -1107,6 +1101,8 @@
z-index: 20; z-index: 20;
position: relative; position: relative;
display: flex; display: flex;
position: relative;
top: 30rpx;
.headwear { .headwear {
position: absolute; position: absolute;

@ -0,0 +1,557 @@
<template>
<view class="wrapper" :style="colorStyle">
<view class="page-form">
<view style="margin:24rpx;border-radius:20rpx;overflow: hidden;">
<view class="item">
<view class="itemTitle">
手机号码
</view>
<input type='number' :placeholder='$t(`填写手机号码`)' placeholder-class='placeholder' v-model="phone"
:maxlength="11"></input>
</view>
<view class="item acea-row row-between-wrapper">
<view class="itemTitle">
短信验证码
</view>
<input type='number' :placeholder='$t(`填写验证码`)' placeholder-class='placeholder' :maxlength="6"
class="codeIput" v-model="captcha"></input>
<view class="line">
</view>
<button class="code font-num" :class="disabled === true ? 'on' : ''" :disabled='disabled' @click="code">
{{ text }}
</button>
</view>
</view>
<view class="newPsd" style="margin:24rpx;border-radius:20rpx;overflow: hidden;">
<view class="item">
<view class="itemTitle">
新密码
</view>
<input :placeholder='$t(`请输入`)' placeholder-class='placeholder' v-model="newPsd"
></input>
</view>
<view class="item">
<view class="itemTitle">
确认密码
</view>
<input type='number' :placeholder='$t(`请输入`)' placeholder-class='placeholder' v-model="renewPsd"
></input>
</view>
</view>
<view class="btn" @click="submitData">
确认
</view>
</view>
<view class="protocol" v-if="pageType == 0 && !canGetPrivacySetting">
<checkbox-group @click.stop='ChangeIsDefault'>
<checkbox :class="inAnimation?'trembling':''" @animationend='inAnimation=false'
:checked="protocol ? true : false" /> <text @click.stop='ChangeIsDefault'>{{$t(`已阅读并同意`)}}</text>
<text class="main-color" @click.stop="privacy(4)">{{$t(`《用户协议》`)}}</text>
{{$t(``)}}<text class="main-color" @click.stop="privacy(3)">{{$t(`《隐私协议》`)}}</text>
</checkbox-group>
</view>
<Verify @success="success" :captchaType="'clickWord'" :imgSize="{ width: '330px', height: '155px' }"
ref="verify"></Verify>
<editUserModal :isShow="isShow" @closeEdit="closeEdit" @editSuccess="editSuccess">
</editUserModal>
<!-- #ifdef MP -->
<privacyAgreementPopup v-if="canGetPrivacySetting" @onReject="onReject" @onAgree="onAgree">
</privacyAgreementPopup>
<!-- #endif -->
</view>
</template>
<script>
const app = getApp();
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
import sendVerifyCode from "@/mixins/SendVerifyCode";
import colors from '@/mixins/color.js';
import editUserModal from '@/components/eidtUserModal/index.vue'
import privacyAgreementPopup from '@/components/privacyAgreementPopup/index.vue'
import {
bindingUserPhone,
verifyCode,
registerVerify,
updatePhone
} from '@/api/api.js';
import {
loginMobile,
getCodeApi,
getUserInfo,
phoneSilenceAuth
} from "@/api/user.js";
import {
phoneLogin,
wechatBindingPhone
} from '@/api/public.js'
import Routine from '@/libs/routine';
import Verify from '../components/verify/index.vue';
import Cache from '@/utils/cache';
export default {
mixins: [sendVerifyCode, colors],
components: {
Verify,
editUserModal,
privacyAgreementPopup
},
data() {
return {
statusBarHeight: statusBarHeight,
pageType: 1, // 0 1
phone: '',
captcha: '',
text: '获取验证码',
isShow: false,
protocol: false,
inAnimation: false,
authKey: "",
backUrl: "",
pageTitle: '绑定手机号',
configData: Cache.get('BASIC_CONFIG'),
canGetPrivacySetting: false,
newPsd:null,
renewPsd:null,
}
},
onLoad(options) {
if (options.authKey) {
this.authKey = options.authKey
}
// #ifdef MP
if (wx.getPrivacySetting) {
this.canGetPrivacySetting = true
}
// #endif
this.backUrl = options.backUrl || ''
if (options.pageType) {
this.pageType = options.pageType || 1
this.pageTitle = options.pageType == 1 ? '绑定手机号' : '手机号登录'
}
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
if (prePage && prePage.route == 'pages/order_addcart/order_addcart') {
this.isHome = true;
} else {
this.isHome = false;
}
},
methods: {
onAgree() {
this.protocol = true
},
submitData() {
let that = this;
if (this.pageType == 0) {
this.isLogin()
return
}
if (!this.rules()) return
if (!this.authKey) {
let key = this.$Cache.get('snsapiKey');
this.phoneAuth(key)
} else {
this.phoneAuth(this.authKey)
}
},
rules() {
let that = this;
if (!this.protocol && this.pageType == 0) {
uni.showToast({
title: this.$t('请先阅读并同意协议'),
icon: 'none',
duration: 2000
});
return false
}
if (!that.phone) {
that.$util.Tips({
title: that.$t(`请填写手机号码`)
});
return false
}
if (!(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.phone))) {
that.$util.Tips({
title: that.$t(`请输入正确的手机号码`)
});
return false
}
if (!that.captcha) {
return that.$util.Tips({
title: that.$t(`请填写验证码`)
});
return false
}
return true
},
isLogin() {
if (!this.rules()) return
uni.showLoading({
title: this.$t(`正在登录中`)
});
Routine.getCode()
.then(code => {
phoneLogin({
code,
spread_spid: app.globalData.spid,
spread_code: app.globalData.code,
phone: this.phone,
captcha: this.captcha,
}).then(res => {
uni.hideLoading();
let time = res.data.expires_time - this.$Cache.time();
this.$store.commit('LOGIN', {
token: res.data.token,
time: time
});
this.getUserInfo(res.data.bindName);
})
.catch(err => {
uni.hideLoading();
uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
});
})
.catch(err => {
console.log(err)
});
},
phoneAuth(key) {
uni.showLoading({
title: this.$t(`正在登录中`)
});
let met
// #ifdef MP
met = phoneLogin
// #endif
// #ifndef MP
met = wechatBindingPhone
// #endif
met({
phone: this.phone,
captcha: this.captcha,
key
}).then(res => {
let time = res.data.expires_time - this.$Cache.time();
this.$store.commit('LOGIN', {
token: res.data.token,
time: time
});
this.getUserInfo(res.data.bindName);
}).catch(error => {
uni.hideLoading()
this.$util.Tips({
title: error
})
})
},
/**
* 获取个人用户信息
*/
getUserInfo(new_user) {
let that = this;
getUserInfo().then(res => {
uni.hideLoading();
that.userInfo = res.data;
uni.setStorageSync('mark',res.data.renzheng.company_name)
that.$store.commit('SETUID', res.data.uid);
that.$store.commit('UPDATE_USERINFO', res.data);
if (new_user) {
this.isShow = true
} else {
// // #ifdef MP
// that.$util.Tips({
// title: that.$t(``),
// icon: 'success'
// }, {
// tab: 3,
// url: this.configData.wechat_auth_switch ? 2 : 1
// });
// // #endif
// // #ifndef MP
// that.$util.Tips({
// title: that.$t(``),
// icon: 'success'
// }, {
// url: this.backUrl || 'pages/user/index'
// });
// // #endif
if(res.data.renzheng.status==1){
uni.showToast({
title: '登录成功',
icon: 'none',
duration: 2000
});
uni.switchTab({
url:"/pages/user/index",
})
}else{
uni.showToast({
title: '登录成功',
icon: 'none',
duration: 2000
});
uni.redirectTo({
url:"/pages/users/shiming/index"
})
}
}
});
},
success(data) {
this.$refs.verify.hide()
let that = this;
verifyCode().then(res => {
registerVerify(that.phone, 'reset', res.data.key, this.captchaType, data.captchaVerification)
.then(res => {
that.$util.Tips({
title: res.msg
});
that.sendCode();
}).catch(err => {
return that.$util.Tips({
title: err
});
});
});
},
/**
* 发送验证码
*
*/
async code() {
let that = this;
if (!that.phone) return that.$util.Tips({
title: that.$t(`请填写手机号码`)
});
if (!(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.phone))) return that.$util.Tips({
title: that.$t(`请输入正确的手机号码`)
});
this.$refs.verify.show();
return;
},
ChangeIsDefault() {
this.$set(this, 'protocol', !this.protocol);
},
closeEdit() {
this.isShow = false
this.$util.Tips({
title: this.$t(`登录成功`),
icon: 'success'
}, {
tab: 3,
url: 2
});
},
editSuccess() {
this.isShow = false
},
back() {
uni.navigateBack({
delta: this.configData.wechat_auth_switch ? 2 : 1
})
},
privacy(type) {
uni.navigateTo({
url: "/pages/users/privacy/index?type=" + type
})
},
}
}
</script>
<style lang="scss" scoped>
.wrapper {
background-color: #F5F6F7;
min-height: 100vh;
position: relative;
.bag {
position: absolute;
top: 0;
left: 0;
width: 750rpx;
height: 460rpx;
background: var(--view-linear);
}
.page-msg {
padding-top: 160rpx;
margin-left: 72rpx;
.title {
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 68rpx;
}
.tip {
font-size: 28rpx;
font-weight: 400;
color: #333333;
line-height: 40rpx;
}
}
.page-form {
.item {
// width: 100%;
/* height: 88rpx; */
// background: #F5F5F5;
/* border-radius: 45rpx; */
padding: 40rpx 30rpx;
// margin-bottom: 32rpx;
display: flex;
border-bottom: 1px solid #EAEAEA;
background-color: #fff;
.itemTitle{
width:200rpx;
}
input {
flex:1;
height: 100%;
font-size: 32rpx;
}
.placeholder {
color: #BBBBBB;
font-size: 28rpx;
}
input.codeIput {
width: 300rpx;
}
.line {
width: 2rpx;
height: 28rpx;
background: #CCCCCC;
}
.code {
font-size: 28rpx;
color: var(--view-theme);
background-color: rgba(255, 255, 255, 0);
}
.code.on {
color: #BBBBBB !important;
}
}
.btn {
margin: 80rpx 24rpx;
height: 98rpx;
background: var(--view-theme);
border-radius: 200rpx 200rpx 200rpx 200rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 32rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
line-height: 44rpx;
letter-spacing: 1px;
}
}
}
.title-bar {
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-size: 34rpx;
font-weight: 500;
color: #333333;
line-height: 48rpx;
}
.icon {
position: absolute;
left: 30rpx;
top: 0;
display: flex;
align-items: center;
justify-content: center;
width: 80rpx;
height: 80rpx;
image {
width: 35rpx;
height: 35rpx;
}
}
.protocol {
position: fixed;
bottom: 52rpx;
left: 0;
width: 100%;
margin: 0 auto;
color: #999999;
font-size: 24rpx;
line-height: 22rpx;
text-align: center;
bottom: calc(52rpx+ constant(safe-area-inset-bottom)); /// IOS<11.2/
bottom: calc(52rpx + env(safe-area-inset-bottom)); /// IOS>11.2/
.main-color {
color: var(--view-theme);
}
.trembling {
animation: shake 0.6s;
}
}
/deep/ uni-checkbox .uni-checkbox-input {
width: 28rpx;
height: 28rpx;
}
/deep/ uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
font-size: 24rpx;
}
/deep/ uni-checkbox .uni-checkbox-wrapper {
margin-bottom: 1px;
}
/*checkbox 选项框大小 */
/deep/ checkbox .wx-checkbox-input {
width: 28rpx;
height: 28rpx;
}
/*checkbox选中后样式 */
/deep/ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
background: white;
}
/*checkbox选中后图标样式 */
/deep/ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
width: 28rpx;
height: 28rpx;
line-height: 28rpx;
text-align: center;
font-size: 22rpx;
background: transparent;
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}
</style>

@ -128,6 +128,12 @@
{{userInfo.renzheng.status?(userInfo.renzheng.status==0?'未认证':userInfo.renzheng.status==1?'已通过':userInfo.renzheng.status==2?'已拒绝':userInfo.renzheng.status==3?'审核中':''):'未认证'}}<text class="iconfont icon-xiangyou"></text> {{userInfo.renzheng.status?(userInfo.renzheng.status==0?'未认证':userInfo.renzheng.status==1?'已通过':userInfo.renzheng.status==2?'已拒绝':userInfo.renzheng.status==3?'审核中':''):'未认证'}}<text class="iconfont icon-xiangyou"></text>
</navigator> </navigator>
</view> </view>
<view class="item acea-row row-between-wrapper">
<view>{{$t(`支付密码`)}}</view>
<navigator url="/pages/users/mima/index" hover-class="none" class="input">
{{$t(`设置密码`)}}<text class="iconfont icon-xiangyou"></text>
</navigator>
</view>
<view class="item acea-row row-between-wrapper"> <view class="item acea-row row-between-wrapper">
<view>{{$t(`用户协议`)}}</view> <view>{{$t(`用户协议`)}}</view>
<navigator url="/pages/users/privacy/index?type=4" hover-class="none" class="input"> <navigator url="/pages/users/privacy/index?type=4" hover-class="none" class="input">
@ -440,8 +446,11 @@
.then(res => { .then(res => {
// uni.clearStorage() // uni.clearStorage()
that.$store.commit("LOGOUT"); that.$store.commit("LOGOUT");
// uni.reLaunch({
// url: '/pages/index/index'
// })
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index' url:'/pages/users/wechat_login/index'
}) })
}) })
.catch(err => {}); .catch(err => {});

Loading…
Cancel
Save