当前位置: 首页 > news >正文

用路由器建设网站小程序怎么找出来

用路由器建设网站,小程序怎么找出来,免费的进销存软件哪个简单好用,网站备案变更开发准备 上一节我们实现了回收金提现的功能#xff0c;并且成功展示了当前账户的支出列表#xff0c;但是我们的提现相关的记录并没有很好的给用户做出展示#xff0c;用户只知道当前账户提现扣款#xff0c;并不知道回收金的去向#xff0c;这一节我们就要实现回收金记…开发准备 上一节我们实现了回收金提现的功能并且成功展示了当前账户的支出列表但是我们的提现相关的记录并没有很好的给用户做出展示用户只知道当前账户提现扣款并不知道回收金的去向这一节我们就要实现回收金记录的查询添加、查询、展示 功能分析 要实现这些功能我们需要新建一张表根据当前用户绑定的信息去填充对应的信息把提现的银行卡提现状态提现时间提现金额都先添加到表里在用户进入提现记录页面之后通过userid去查询当前用户的记录然后在列表里进行展示 代码实现 首先我们创建对应的提现记录表 {objectTypeName: withdrawal_record,fields: [{fieldName: id, fieldType: Integer, notNull: true, belongPrimaryKey: true},{fieldName: user_id, fieldType: Integer, notNull: true, defaultValue: 0},{fieldName: bank_name, fieldType: String},{fieldName: bank_num, fieldType: String},{fieldName: creat_time, fieldType: String},{fieldName: type_str, fieldType: String},{fieldName: money, fieldType: Double}],indexes: [{indexName: field1Index, indexList: [{fieldName:id,sortType:ASC}]}],permissions: [{role: World, rights: [Read, Upsert, Delete]},{role: Authenticated, rights: [Read, Upsert, Delete]},{role: Creator, rights: [Read, Upsert, Delete]},{role: Administrator, rights: [Read, Upsert, Delete]}] }我们生成对应的实体和db类之后在提现成功的提交记录里把我们表需要的信息添加进去 let recordnew withdrawal_record()record.idMath.floor(Math.random() * 1000000)record.user_idthis.user!.user_idrecord.bank_namethis.bankList[0].bank_namerecord.bank_numthis.bankList[0].bank_cardrecord.creat_timethis.year-this.month-this.day this.timerecord.type_str0record.moneythis.moneyNumlet status await databaseZone.upsert(record);添加完成之后我们新建一个提现记录展示页面 Entry Component struct WithdrawalRecordPage {State user: User|nullnullbuild() {Column() {CommonTopBar({ title: 提现记录, alpha: 0, titleAlignment: TextAlign.Center ,backButton:true})}.backgroundColor(#F1F3F5).height(100%).width(100%)} }首先进行数据的查询 State user: User|nullnullState withdrawalRecordList:WithdrawalRecord[][]async aboutToAppear(): Promisevoid {const value await StorageUtils.getAll(user);if (value ! ) {this.user JSON.parse(value)}let databaseZone cloudDatabase.zone(default);let condition new cloudDatabase.DatabaseQuery(withdrawal_record);condition.equalTo(user_id, this.user?.user_id)let listData await databaseZone.query(condition);let json JSON.stringify(listData)let data: WithdrawalRecord[] JSON.parse(json)if (data.length0) {this.withdrawalRecordListdata}}然后把我们查询到的数据展示到列表组件中 List({space:10}){ForEach(this.withdrawalRecordList,(item:WithdrawalRecord,index:number){ListItem(){Column({space:10}){Row(){Text(item.type_str0?提现成功:提现中).fontColor(item.type_str0?Color.Green:Color.Black).fontSize(16).fontWeight(FontWeight.Bold)Text(¥item.money).fontSize(16).fontWeight(FontWeight.Bold).fontColor(Color.Black)}.width(100%).justifyContent(FlexAlign.SpaceBetween)Row(){Text(item.bank_name (item.bank_num)).fontColor(Color.Black).fontSize(14).fontWeight(FontWeight.Bold)Text(item.creat_time).fontSize(14).fontWeight(FontWeight.Bold).fontColor(Color.Grey)}.width(100%).justifyContent(FlexAlign.SpaceBetween)}.padding(10).width(100%).borderRadius(10).backgroundColor(Color.White)}})}.padding(10)现在让我们运行代码查看效果
http://www.hkea.cn/news/14372039/

相关文章:

  • 企业网站可以个人备案一个网站平台建设得多少钱
  • wordpress 会员管理插件阿里网站seo
  • 二手房网站建设书上海专业制作电子商务网站
  • 网站营销策略烟台做网站的价格
  • 凯杰建设有限公司官方网站舟山网站建设费用
  • 专业网站开发哪里找问卷调查网站赚钱
  • 阿里云网站备案入口安卓手机网站开发
  • 网站推广的方法有sem推广深圳罗湖企业网站建设报价
  • 网站运营 流程滁州网站建设推广
  • 做外贸没有网站需要什么条件施工企业资质证书延期
  • 400元网站建设建设网站需要多少钱济南兴田德润o地址
  • 网站建设思维小说排行榜2020前十名
  • 东莞网站设计如何形容网站做的好
  • 网站开发的阶段网络营销方案策划论文
  • 手机编程appseo社区
  • 龙岗网站设计公司一个销售网站的设计 应当是要
  • 做婚礼邀请函网站企业官网建站费用
  • 长沙专业网站设计18款禁用软件app排行
  • 个人网站设计与开发公司网站维护怎么做
  • 珠海模板网站建设今天最新新闻10条
  • wordpress可视化插件下载企业网站如何做seo
  • wordpress双语网站wordpress用户部门
  • 公司建设网站的步骤如何自学做网站
  • 哪些网站可以赚钱wordpress 如何购买主题
  • 企业网站做seo的优势怎么编写自己的网站
  • 做移动网站首页软餐饮企业网站建设方案书
  • 河南网站建设路怎么样子做网站
  • 网站界面设计欣赏企业培训机构网站源码
  • 织梦网站上传及安装良品铺子网站建设
  • 重庆网站设计方案网站建设起来还需要花钱吗