|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * @Author: gaorf30153 gaorf30153@hundsun.com
- * @Date: 2024-07-03 13:14:28
- * @LastEditors: gaorf30153 gaorf30153@hundsun.com
- * @LastEditTime: 2024-07-08 14:21:45
- * @FilePath: \wxminipro\plugin\pages\accountList\accountList.js
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- // plugin/pages/accountList/accountList.js
- import { getAccountList } from "../../utils/commonReq.js"
- import { setStore } from "../../utils/index.js"
- import { certificatesMap } from "../../utils/systemConstant.js"
- Page({
- data: {
- isLoading: false,
- accountList: [],
- },
- onLoad() {
- this.setData({
- isLoading: true,
- })
- getAccountList((hasPersion, list) => {
- for (let obj of list) {
- obj.idTypeName = certificatesMap.get(obj.idType)
- }
- this.setData({
- isLoading: false,
- accountList: list,
- })
- })
- },
- // 选择户去办理车辆
- uploadCar(e) {
- let item = e.currentTarget.dataset.item
- // 企业户
- if (item.accountType == "2") {
- setStore("accountId", item.accountId)
- wx.redirectTo({
- url: `plugin://issuer-plugin/useProtocol?accountId=${item.accountId}`,
- })
- }
- },
- // 企业户开户
- openCorp() {
- wx.navigateTo({
- url: "plugin://issuer-plugin/uploadPersion?type=corpHandle",
- })
- },
- })
|