hookehuyr

feat(收款设置): 添加分账协议照片字段并替换箭头图标为组件

- 在用户信息接口和状态管理中新增division_agree_pic字段
- 将页面中的文本箭头替换为RectRight图标组件
/*
* @Date: 2023-12-22 10:29:37
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-07 14:42:13
* @LastEditTime: 2025-08-07 15:28:56
* @FilePath: /jgdl/src/api/index.js
* @Description: 用户相关API接口
*/
......@@ -47,6 +47,7 @@ export const payCheckAPI = (params) => fn(fetch.post(Api.PAY_CHECK, params));
* @param idcard_effect_end 身份证有效期结束
* @param idcard_address 身份证地址
* @param is_signed 是否阅读协议
* @param division_agree_pic 分账协议照片
* @returns
*/
export const updateProfileAPI = (params) => fn(fetch.post(Api.UPDATE_PROFILE, params));
......
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-07 15:16:21
* @LastEditTime: 2025-08-07 15:36:39
* @FilePath: /jgdl/src/pages/collectionSettings/index.vue
* @Description: 收款设置
-->
......@@ -19,7 +19,8 @@
<text class="setting-status" :class="{ 'status-set': accountInfo.bankName }">
{{ accountInfo.bankName ? '已设置' : '未设置' }}
</text>
<text class="arrow">></text>
<!-- <text class="arrow">></text> -->
<RectRight color="#999" size="10" />
</view>
</view>
......@@ -32,7 +33,8 @@
<text class="setting-status" :class="{ 'status-set': identityInfo.userName }">
{{ identityInfo.userName ? '已设置' : '未设置' }}
</text>
<text class="arrow">></text>
<!-- <text class="arrow">></text> -->
<RectRight color="#999" size="10" />
</view>
</view>
</view>
......@@ -59,7 +61,8 @@
<text class="bank-text" :class="{ 'bank-selected': tempAccountInfo.bankName }">
{{ getBankNameById(tempAccountInfo.bankName) || '请选择银行' }}
</text>
<text class="arrow-down">></text>
<!-- <text class="arrow-down">></text> -->
<RectRight color="#999" size="10" />
</view>
</view>
......@@ -224,7 +227,8 @@
<text class="date-text" :class="{ 'date-selected': tempIdentityInfo.idcard_effect_begin }">
{{ tempIdentityInfo.idcard_effect_begin || '请选择开始日期' }}
</text>
<text class="arrow-down">></text>
<!-- <text class="arrow-down">></text> -->
<RectRight color="#999" size="10" />
</view>
</view>
......@@ -235,7 +239,8 @@
<text class="date-text" :class="{ 'date-selected': tempIdentityInfo.idcard_effect_end }">
{{ tempIdentityInfo.idcard_effect_end || '请选择结束日期' }}
</text>
<text class="arrow-down">></text>
<!-- <text class="arrow-down">></text> -->
<RectRight color="#999" size="10" />
</view>
</view>
......@@ -318,6 +323,8 @@ import { ref, onMounted, computed } from "vue";
import Taro from "@tarojs/taro";
import "./index.less";
import { RectRight } from '@nutui/icons-vue-taro'
// 导入接口
import { updateProfileAPI, getProfileAPI } from '@/api/index'
import { getBanksAPI } from '@/api/other'
......
/*
* @Date: 2025-01-08 18:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-07 14:43:22
* @LastEditTime: 2025-08-07 15:29:21
* @FilePath: /jgdl/src/stores/user.js
* @Description: 用户状态管理
*/
......@@ -35,6 +35,7 @@ export const useUserStore = defineStore('user', {
idcard_effect_begin: '',
idcard_effect_end: '',
idcard_address: '',
division_agree_pic: '',
},
isAuthenticated: false,
isLoading: false
......@@ -136,6 +137,7 @@ export const useUserStore = defineStore('user', {
idcard_effect_begin: '',
idcard_effect_end: '',
idcard_address: '',
division_agree_pic: '',
}
this.isAuthenticated = false
},
......