From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +0800
Subject: [PATCH] 获取验证码功能
---
qiye/record/compositeDetails.vue | 4
manifest.json | 194 +++++++-------
pages/companyLogin/companyLogin.vue | 570 +++++++++++++++++++++----------------------
3 files changed, 374 insertions(+), 394 deletions(-)
diff --git a/manifest.json b/manifest.json
index cd5e406..4289037 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,103 +1,103 @@
{
- "name": "鎯犱紒鎵ф硶",
- "appid": "__UNI__B034821",
- "description": "鎯犱紒鎵ф硶",
- "versionName": "1.0.0",
- "versionCode": "100",
- "transformPx": false,
- /* 5+App鐗规湁鐩稿叧 */
- "app-plus": {
- "usingComponents": true,
- "nvueStyleCompiler": "uni-app",
- "compilerVersion": 3,
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
- },
- /* 妯″潡閰嶇疆 */
- "modules": {},
- /* 搴旂敤鍙戝竷淇℃伅 */
- "distribute": {
- /* android鎵撳寘閰嶇疆 */
- "android": {
- "permissions": [
- "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
- "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
- "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
- "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CAMERA\"/>",
- "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
- "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
- "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
- "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
- "<uses-feature android:name=\"android.hardware.camera\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
- ]
- },
- /* ios鎵撳寘閰嶇疆 */
- "ios": {},
- /* SDK閰嶇疆 */
- "sdkConfigs": {}
- }
- },
- /* 蹇簲鐢ㄧ壒鏈夌浉鍏� */
- "quickapp": {},
- /* 灏忕▼搴忕壒鏈夌浉鍏� */
- "mp-weixin": {
- "appid": "wxec87cd0359014ce3",
- "setting": {
- "urlCheck": false,
- "minified": true
- },
- "usingComponents": true,
- "permission": {
- "scope.userLocation": {
- "desc": "鎮ㄧ殑浣嶇疆灏嗙敤浜庡尮閰嶆渶杩戦棬搴楁垨浼樻儬鍒�"
- }
- },
- "requiredPrivateInfos": ["getLocation", "chooseAddress"]
- },
- "mp-alipay": {
- "usingComponents": true
- },
- "mp-baidu": {
- "usingComponents": true
- },
- "mp-toutiao": {
- "usingComponents": true
- },
- "uniStatistics": {
- "enable": false
- },
- "vueVersion": "2",
- "h5": {
- "sdkConfigs": {
- "maps": {
- "qqmap": {
- "key": "2BUBZ-QGL33-2GO3Y-OLJDS-ZSUQZ-QCBTS"
+ "name" : "鎯犱紒鎵ф硶",
+ "appid" : "__UNI__B034821",
+ "description" : "鎯犱紒鎵ф硶",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ /* 5+App鐗规湁鐩稿叧 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 妯″潡閰嶇疆 */
+ "modules" : {},
+ /* 搴旂敤鍙戝竷淇℃伅 */
+ "distribute" : {
+ /* android鎵撳寘閰嶇疆 */
+ "android" : {
+ "permissions" : [
+ "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+ "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
+ "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+ "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
+ "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+ "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+ "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
+ "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+ "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+ "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+ "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+ "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+ "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+ "<uses-feature android:name=\"android.hardware.camera\"/>",
+ "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
+ ]
+ },
+ /* ios鎵撳寘閰嶇疆 */
+ "ios" : {},
+ /* SDK閰嶇疆 */
+ "sdkConfigs" : {}
}
- }
},
- "title": "鏁板瓧鍖栫敓鎬佸湀",
- "router": {
- "mode": "history",
- "base": "/ecosphere-user/"
+ /* 蹇簲鐢ㄧ壒鏈夌浉鍏� */
+ "quickapp" : {},
+ /* 灏忕▼搴忕壒鏈夌浉鍏� */
+ "mp-weixin" : {
+ "appid" : "wxec87cd0359014ce3",
+ "setting" : {
+ "urlCheck" : false,
+ "minified" : true
+ },
+ "usingComponents" : true,
+ "permission" : {
+ "scope.userLocation" : {
+ "desc" : "鎮ㄧ殑浣嶇疆灏嗙敤浜庡尮閰嶆渶杩戦棬搴楁垨浼樻儬鍒�"
+ }
+ },
+ "requiredPrivateInfos" : [ "getLocation", "chooseAddress" ]
},
- "optimization": {
- "treeShaking": {
- "enable": true
- }
+ "mp-alipay" : {
+ "usingComponents" : true
},
- "devServer": {
- "port": "",
- "https": false
+ "mp-baidu" : {
+ "usingComponents" : true
},
- "template": "index.html"
- }
-}
\ No newline at end of file
+ "mp-toutiao" : {
+ "usingComponents" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "2",
+ "h5" : {
+ "sdkConfigs" : {
+ "maps" : {
+ "qqmap" : {
+ "key" : "2BUBZ-QGL33-2GO3Y-OLJDS-ZSUQZ-QCBTS"
+ }
+ }
+ },
+ "title" : "鏁板瓧鍖栫敓鎬佸湀",
+ "router" : {
+ "mode" : "history",
+ "base" : "/ecosphere-user/"
+ },
+ "optimization" : {
+ "treeShaking" : {
+ "enable" : true
+ }
+ },
+ "devServer" : {
+ "port" : "",
+ "https" : false
+ },
+ "template" : "index.html"
+ }
+}
diff --git a/pages/companyLogin/companyLogin.vue b/pages/companyLogin/companyLogin.vue
index 9e35887..45a1e58 100644
--- a/pages/companyLogin/companyLogin.vue
+++ b/pages/companyLogin/companyLogin.vue
@@ -1,16 +1,16 @@
<!-- 浼佷笟鐧诲綍 -->
<template>
- <view class="companylogin">
- <u-navbar :autoBack="true" bgColor="transparent">
- <template slot="center">
-
- </template>
- </u-navbar>
- <view class="image-box">
- <image src="/static/policy/loginHeader.png" mode="widthFix"></image>
- </view>
- <view class="content-box">
- <!-- <u-form label-width="60" labelAlign="right" >
+ <view class="companylogin">
+ <u-navbar :autoBack="true" bgColor="transparent">
+ <template slot="center">
+
+ </template>
+ </u-navbar>
+ <view class="image-box">
+ <image src="/static/policy/loginHeader.png" mode="widthFix" ></image>
+ </view>
+ <view class="content-box">
+ <!-- <u-form label-width="60" labelAlign="right" >
<u-form-item label="鎵嬫満鍙�">
<u-input style="width: 80%;" v-model="form.phone" placeholder="璇疯緭鍏�"></u-input>
</u-form-item>
@@ -23,294 +23,274 @@
</u-input>
</u-form-item>
</u-form> -->
- <view class="form">
- <view class="form-item margin-bottom">
- <view class="form-label">
- 鎵嬫満鍙�
- </view>
- <view class="form-input">
- <input type="number" v-model="form.phone" placeholder="璇疯緭鍏�11浣嶆墜鏈哄彿" />
- </view>
- </view>
- <view class="form-item">
- <view class="form-label">
- 楠岃瘉鐮�
- </view>
- <view class="form-input set-flex set-flex-content-between">
- <input type="number" v-model="form.code" placeholder="璇疯緭鍏ラ獙璇佺爜" />
- <view>
- <text class="driver"></text>
- <text class="getcode">{{tips}}</text>
- </view>
- </view>
- </view>
- </view>
- <view style="margin-top: 56rpx;">
- <view class="per-button" @click="loging">鐧诲綍</view>
- </view>
- <view @click="goRegister" class="company-register" v-if="form.userType == '02'">
- 浼佷笟娉ㄥ唽
- </view>
- <!-- <u--text text="浼佷笟娉ㄥ唽" type="primary" @click="goRegister"></u--text> -->
- </view>
- <selectVue ref="selectVue" @select="select"></selectVue>
- </view>
+ <view class="form">
+ <view class="form-item margin-bottom">
+ <view class="form-label">
+ 鎵嬫満鍙�
+ </view>
+ <view class="form-input">
+ <input type="number" v-model="form.phone" placeholder="璇疯緭鍏�11浣嶆墜鏈哄彿"/>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="form-label">
+ 楠岃瘉鐮�
+ </view>
+ <view class="form-input set-flex set-flex-content-between">
+ <input type="number" v-model="form.code" placeholder="璇疯緭鍏ラ獙璇佺爜"/>
+ <view @tap='toGetCode'>
+ <text class="driver"></text>
+ <text class="getcode">{{tips}}</text>
+ </view>
+ </view>
+ </view>
+ </view>
+ <view style="margin-top: 56rpx;">
+ <view class="per-button" @click="loging">鐧诲綍</view>
+ </view>
+ <view @click="goRegister" class="company-register" v-if="form.userType == '02'">
+ 浼佷笟娉ㄥ唽
+ </view>
+ <!-- <u--text text="浼佷笟娉ㄥ唽" type="primary" @click="goRegister"></u--text> -->
+ </view>
+ <selectVue ref="selectVue" @select="select"></selectVue>
+ </view>
</template>
<script>
- // 00钀ュ晢鍔�,01鎵ф硶,02浼佷笟 鍖哄垎涓嶅悓鐨勭櫥闄嗛〉闈�
- import {
- getCode,
- codeLogin,
- getInfo,
- getCompanyList
- } from '@/api/auth.js'
- import selectVue from '@/components/select.vue'
- export default {
- components: {
- selectVue
- },
- data() {
- return {
- tips: '鑾峰彇楠岃瘉鐮�',
- form: {
- phone: '',
- code: '',
- userType: '01'
- },
- loginToken: '',
- isSendCode: false,
- countdownTime: 20,
- timer: '',
- sessionToken: "",
- userInfo: {}
- }
- },
- onLoad(options) {
- if (options.code) {
- this.form.userType = options.code
- }
- },
- onUnload() {
- if (this.timer) {
- clearTimeout(this.timer)
- this.timer = null
- }
- },
- methods: {
- getCode() {
- if (!this.form.phone) {
- uni.showToast({
- title: '璇疯緭鍏ユ墜鏈哄彿',
- icon: 'none'
- })
- return
- }
- if (!this.$u.test.mobile(this.form.phone)) {
- uni.showToast({
- title: '璇疯緭鍏ユ纭殑鎵嬫満鍙�',
- icon: 'none'
- })
- return
- }
- if (!this.isSendCode) {
- this.isSendCode = true
- uni.showLoading({
- title: '姝e湪鑾峰彇楠岃瘉鐮�'
- })
- getCode({
- phone: this.form.phone
- }).then(val => {
- if (val.data.code == 200) {
- this.startCountdown()
- uni.hideLoading();
- this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻
- uni.$u.toast('楠岃瘉鐮佸凡鍙戦��');
- }
- }).catch(err => {
- this.isSendCode = false
- })
- } else {
- uni.$u.toast('鍊掕鏃剁粨鏉熷悗鍐嶅彂閫�');
- }
- },
- startCountdown() {
- if (this.timer) {
- clearTimeout(this.timer)
- this.timer = null
- }
- if (this.countdownTime <= 0) {
- this.tips = "閲嶆柊鑾峰彇"
- this.isSendCode = false
- this.countdownTime = 20
- return
- }
- this.timer = setTimeout(() => {
- this.countdownTime--
- this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻
- this.startCountdown()
- }, 1000)
- },
- loging() {
- if (!this.form.phone) {
- uni.showToast({
- title: '璇疯緭鍏ユ墜鏈哄彿',
- icon: 'none'
- })
- return
- }
- // if(!this.form.code){
- // uni.showToast({
- // title: '璇疯緭鍏ラ獙璇佺爜',
- // icon: 'none'
- // })
- // return
- // }
- codeLogin(this.form).then(val => {
- if (val.data.token) {
- this.loginToken = val.data.token
- uni.setStorageSync('sessionToken', this.loginToken)
- this.getInfo()
- }
- })
- },
- getInfo() {
- getInfo().then(val => {
- // uni.setStorageSync('userInfo', val.data.data)
- if (val.data.code === 200) {
- this.userInfo = val.data.data
- if (this.form.userType == '02') {
- // 鑾峰彇浼佷笟
-
- this.getCompanyList(val.data.data.phonenumber)
- } else if (this.form.userType == '01') {
- uni.setStorageSync('userInfo', val.data.data)
- // uni.setStorageSync('sessionToken', this.loginToken)
- uni.reLaunch({
- url: `/policy/policyIndex/policyIndex`
- })
- } else {
- uni.setStorageSync('userInfo', val.data.data)
- // uni.setStorageSync('sessionToken', this.loginToken)
- uni.reLaunch({
- url: `/policy/policyIndex/policyIndex`
- })
- }
- } else {
- uni.removeStorageSync('sessionToken')
- uni.showToast({
- title: val.data.msg,
- icon: 'none'
- })
- }
-
- }).catch(err => {
- uni.removeStorageSync('sessionToken')
- })
- },
- goRegister() {
- uni.navigateTo({
- url: `/pages/registerCompany/registerCompany`
- })
- },
- getCompanyList(companyPhone) {
- getCompanyList({
- companyPhone,
- companyStatus: 0,
- checkStatus: 2
- }).then(val => {
- if (val.data.rows.length > 1) {
- this.$refs.selectVue.open(val.data.rows)
- } else {
- uni.setStorageSync('userInfo', this.userInfo)
- uni.reLaunch({
- url: `/qiye/qiyeIndex/qiyeIndex?id=${this.userInfo.deptId}`
- })
- }
- })
- },
- select(event) {
- uni.setStorageSync('userInfo', this.userInfo)
- uni.reLaunch({
- url: `/qiye/qiyeIndex/qiyeIndex?id=${event}`
- })
- }
- }
- }
+ // 00钀ュ晢鍔�,01鎵ф硶,02浼佷笟 鍖哄垎涓嶅悓鐨勭櫥闄嗛〉闈�
+ import { getCode, codeLogin, getInfo, getCompanyList } from '@/api/auth.js'
+ import selectVue from '@/components/select.vue'
+ export default {
+ components: {
+ selectVue
+ },
+ data() {
+ return {
+ tips: '鑾峰彇楠岃瘉鐮�',
+ form: {
+ phone: '',
+ code: '',
+ userType: '01'
+ },
+ loginToken: '',
+ isSendCode: false,
+ countdownTime: 20,
+ timer: '',
+ sessionToken: "",
+ userInfo: {}
+ }
+ },
+ onLoad(options) {
+ if(options.code) {
+ this.form.userType = options.code
+ }
+ },
+ onUnload() {
+ if(this.timer) {
+ clearTimeout(this.timer)
+ this.timer = null
+ }
+ },
+ methods: {
+ toGetCode() {
+ if(!this.form.phone){
+ uni.showToast({
+ title: '璇疯緭鍏ユ墜鏈哄彿',
+ icon: 'none'
+ })
+ return
+ }
+ if(!this.$u.test.mobile(this.form.phone)){
+ uni.showToast({
+ title: '璇疯緭鍏ユ纭殑鎵嬫満鍙�',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.isSendCode) {
+ this.isSendCode = true
+ uni.showLoading({
+ title: '姝e湪鑾峰彇楠岃瘉鐮�'
+ })
+ getCode({phone: this.form.phone }).then(val => {
+ if(val.data.code == 200) {
+ this.startCountdown()
+ uni.hideLoading();
+ this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻
+ uni.$u.toast('楠岃瘉鐮佸凡鍙戦��');
+ }
+ }).catch(err => {
+ this.isSendCode = false
+ })
+ } else {
+ uni.$u.toast('鍊掕鏃剁粨鏉熷悗鍐嶅彂閫�');
+ }
+ },
+ startCountdown() {
+ if(this.timer) {
+ clearTimeout(this.timer)
+ this.timer = null
+ }
+ if(this.countdownTime <= 0) {
+ this.tips = "閲嶆柊鑾峰彇"
+ this.isSendCode = false
+ this.countdownTime = 20
+ return
+ }
+ this.timer = setTimeout(() => {
+ this.countdownTime--
+ this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻
+ this.startCountdown()
+ }, 1000)
+ },
+ loging() {
+ if(!this.form.phone){
+ uni.showToast({
+ title: '璇疯緭鍏ユ墜鏈哄彿',
+ icon: 'none'
+ })
+ return
+ }
+ if(!this.form.code){
+ uni.showToast({
+ title: '璇疯緭鍏ラ獙璇佺爜',
+ icon: 'none'
+ })
+ return
+ }
+ codeLogin(this.form).then(val => {
+ if(val.data.token) {
+ this.loginToken = val.data.token
+ uni.setStorageSync('sessionToken', this.loginToken)
+ this.getInfo()
+ }
+ })
+ },
+ getInfo() {
+ getInfo().then(val => {
+ // uni.setStorageSync('userInfo', val.data.data)
+ if(val.data.code === 200) {
+ this.userInfo = val.data.data
+ if(this.form.userType == '02') {
+ // 鑾峰彇浼佷笟
+
+ this.getCompanyList(val.data.data.phonenumber)
+ } else if(this.form.userType == '01'){
+ uni.setStorageSync('userInfo', val.data.data)
+ // uni.setStorageSync('sessionToken', this.loginToken)
+ uni.reLaunch({
+ url:`/policy/policyIndex/policyIndex`
+ })
+ } else {
+ uni.setStorageSync('userInfo', val.data.data)
+ // uni.setStorageSync('sessionToken', this.loginToken)
+ uni.reLaunch({
+ url:`/policy/policyIndex/policyIndex`
+ })
+ }
+ } else {
+ uni.removeStorageSync('sessionToken')
+ uni.showToast({
+ title: val.data.msg,
+ icon: 'none'
+ })
+ }
+
+ }).catch(err => {
+ uni.removeStorageSync('sessionToken')
+ })
+ },
+ goRegister() {
+ uni.navigateTo({
+ url: `/pages/registerCompany/registerCompany`
+ })
+ },
+ getCompanyList(companyPhone) {
+ getCompanyList({companyPhone, companyStatus: 0, checkStatus: 2}).then(val => {
+ if(val.data.rows.length > 1){
+ this.$refs.selectVue.open(val.data.rows)
+ } else {
+ uni.setStorageSync('userInfo', this.userInfo)
+ uni.reLaunch({
+ url:`/qiye/qiyeIndex/qiyeIndex?id=${this.userInfo.deptId}`
+ })
+ }
+ })
+ },
+ select(event){
+ uni.setStorageSync('userInfo', this.userInfo)
+ uni.reLaunch({
+ url:`/qiye/qiyeIndex/qiyeIndex?id=${event}`
+ })
+ }
+ }
+ }
</script>
<style scoped lang="scss">
- .companylogin {
- &>.image-box {
- width: 100%;
- height: 345rpx;
- text-align: center;
- background-color: #111;
-
- &>image {
- width: 100%;
- height: 345rpx;
- }
- }
-
- .content-box {
- border-radius: 40rpx 40rpx 0 0;
- padding: 40rpx 32rpx;
- position: relative;
- top: 80rpx;
- background-color: white;
-
- .form {
- .form-item {
- .form-label {
- font-size: 34rpx;
- margin: 0 0 24rpx 16rpx;
- }
-
- .form-input {
- background-color: #F7F7F7;
- padding: 20rpx;
- border-radius: 20rpx;
- }
- }
- }
-
- .margin-bottom {
- margin-bottom: 36rpx;
- }
-
- .getcode {
- color: #1171E0;
- font-size: 34rpx;
- font-weight: 500;
- width: 20%;
- }
-
- .driver {
- display: inline-block;
- vertical-align: middle;
- margin-right: 20rpx;
- width: 2rpx;
- height: 48rpx;
- background-color: #C3C6CD;
- }
- }
-
- .company-register {
- position: fixed;
- bottom: 32rpx;
- left: 50%;
- transform: translateX(-50%);
- padding: 16rpx 46rpx;
- color: #1171E0;
- display: inline-block;
- border-radius: 12rpx;
- border: 2rpx solid #ABD2FF;
- background: #F0F8FF;
- }
- }
-
- ::v-deep .u-radio {
- margin-bottom: 20rpx;
- }
+ .companylogin {
+ &>.image-box {
+ width: 100%;
+ height: 345rpx;
+ text-align: center;
+ background-color: #111;
+ &>image{
+ width: 100%;
+ height: 345rpx;
+ }
+ }
+ .content-box{
+ border-radius: 40rpx 40rpx 0 0;
+ padding: 40rpx 32rpx;
+ position: relative;
+ top: 80rpx;
+ background-color: white;
+ .form {
+ .form-item{
+ .form-label{
+ font-size: 34rpx;
+ margin: 0 0 24rpx 16rpx;
+ }
+ .form-input{
+ background-color: #F7F7F7;
+ padding: 20rpx;
+ border-radius: 20rpx;
+ }
+ }
+ }
+ .margin-bottom{
+ margin-bottom: 36rpx;
+ }
+ .getcode{
+ color: #1171E0;
+ font-size: 34rpx;
+ font-weight: 500;
+ width: 20%;
+ }
+ .driver{
+ display: inline-block;
+ vertical-align: middle;
+ margin-right: 20rpx;
+ width: 2rpx;
+ height: 48rpx;
+ background-color: #C3C6CD;
+ }
+ }
+ .company-register{
+ position: fixed;
+ bottom: 32rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ padding: 16rpx 46rpx;
+ color: #1171E0;
+ display: inline-block;
+ border-radius: 12rpx;
+ border: 2rpx solid #ABD2FF;
+ background: #F0F8FF;
+ }
+ }
+ ::v-deep .u-radio {
+ margin-bottom: 20rpx;
+ }
</style>
\ No newline at end of file
diff --git a/qiye/record/compositeDetails.vue b/qiye/record/compositeDetails.vue
index 0a4f716..8e4a5fc 100644
--- a/qiye/record/compositeDetails.vue
+++ b/qiye/record/compositeDetails.vue
@@ -482,12 +482,12 @@
}
}
- /deep/.u-radio {
+ ::v-deep .u-radio {
margin-bottom: 20rpx;
margin-right: 20rpx !important;
}
- /deep/.u-radio-group {
+ ::v-deep .u-radio-group {
margin-top: 10rpx !important;
flex-wrap: wrap !important;
}
--
Gitblit v1.9.1