You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sigManage.vue 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div>
  3. <div v-for="(item,index) in itemData" :key="index" class="as-radius-8px" style="margin: 10px 10px 0 10px;background-color: #ECECEC" @click="listItem(item)">
  4. <div class="as-gravity-center" style="background-color: #1A73E8;color: #FFFFFF;border-radius: 8px 8px 0 0;padding: 16rpx">{{item.channelName}}</div>
  5. <div style="padding: 16rpx">
  6. <div style="flex: 1">渠道编号:{{item.channelCode}}</div>
  7. <div class="top">渠道描述:{{item.channelDesc}}</div>
  8. <div class="top">是否支持信用卡:{{item.isSupportCredit === 1 ? '支持' : '不支持'}}</div>
  9. <div class="top">是否支持借记卡:{{item.isSupportDebit === 1 ? '支持' : '不支持'}}</div>
  10. <div class="as-layout-horizontal top">
  11. <div style="flex: 1">设备费:{{item.equipFee * 0.01}} 元</div>
  12. <div style="flex: 1">服务费比例:{{item.serviceFeeRatio}} %</div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup lang='ts'>
  19. import {
  20. request
  21. } from '../../static/js/network/request'
  22. import {
  23. storageKey
  24. } from '../../static/data/storageKey'
  25. import {
  26. ref,
  27. reactive
  28. } from 'vue'
  29. let param = {
  30. channelCode: '',
  31. userType: null,
  32. userIdNum: uni.getStorageSync(storageKey.userIdNum),
  33. userIdType: uni.getStorageSync(storageKey.userIdType)
  34. }
  35. let itemData = reactive([])
  36. //查询签约渠道
  37. request('IF01001202209060882', {
  38. data: param
  39. }).then((res) => {
  40. itemData.push(...res.rd.data.signChannels)
  41. })
  42. function listItem(item: any) {
  43. uni.setStorageSync(storageKey.signChannel, item);
  44. let signChannel = uni.getStorageSync(storageKey.signChannel);
  45. param.channelCode = item.channelCode
  46. param.userType = '1'
  47. //签约申请
  48. request('IF01001202209060891', {
  49. data: param
  50. }).then((res) => {
  51. uni.setStorageSync(storageKey.signId, res.rd.data.signId);
  52. uni.navigateTo({
  53. url: '/pages/sigManage/signAContract?signId=' + res.rd.data.signId,
  54. animationType: 'pop-in',
  55. animationDuration: 500
  56. })
  57. })
  58. }
  59. </script>
  60. <!-- 签约管理 -->
  61. <style lang='scss' scoped>
  62. .top{
  63. margin-top: 4px;
  64. }
  65. </style>