resourceApplySuccess.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="rf-category" style="position: relative;">
  3. <!--导航栏-->
  4. <view class="icoStyle">
  5. <u-navbar :back-text="i18n('return')" :title="$i18n.locale=='zh'?'提交成功':'submit successfully'" :background="barBackground"
  6. back-icon-color="white" title-color="white" :back-text-style="backStyle"></u-navbar>
  7. </view>
  8. <view style="padding: 0 24upx;">
  9. <view style="width: 270upx;height: 270upx;border-radius: 24upx;background-color: #3D7FFF;margin: 328upx 216upx 400upx 216upx;">
  10. <view style="text-align: center;">
  11. <view style="padding:50upx 0 24upx 0;">
  12. <u-icon name="checkmark-circle" size="77" color="#fff"></u-icon>
  13. </view>
  14. <view>
  15. <text style="font-size: 32upx;color: white;">
  16. {{$i18n.locale=='zh'?'提交成功':'submit successfully'}}
  17. </text>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- <u-button type="primary" size="" style="margin-bottom: 30upx;" shape="circle">{{$i18n.locale=='zh'?'查看详情':'view details'}}</u-button>-->
  22. <u-button style="margin-bottom: 30upx;" shape="circle" @click="toBackDetail">{{i18n('return')}}</u-button>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import rfSearchBar from '@/components/rf-search-bar';
  28. export default {
  29. data() {
  30. return {
  31. // bar
  32. barBackground: {
  33. backgroundImage: 'linear-gradient(270deg, #4BC0E2 0%, #538BE7 100%)',
  34. },
  35. backStyle: {
  36. color: '#fff'
  37. },
  38. entityId:'',
  39. }
  40. },
  41. onLoad:function(options){
  42. this.entityId = options.entityId;
  43. },
  44. async onShow() {
  45. },
  46. onLoad:function(options){
  47. this.entityId = options.entityId;
  48. },
  49. computed:{
  50. token(){
  51. return 'Bearer '+uni.getStorageSync('Auth-Token');
  52. }
  53. },
  54. methods: {
  55. toBackDetail(){
  56. uni.redirectTo({
  57. url: `/pages/resourceSharing/resourceDetails?entityId=${this.entityId}`,
  58. });
  59. },
  60. back() {
  61. uni.navigateBack();
  62. },
  63. //中英文切换
  64. i18n (data) {
  65. return this.$t('common.'+data);
  66. },
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .rf-category {
  72. background-color: #F3F4F5;
  73. /* #ifdef APP-PLUS */
  74. /*margin-top: calc(20upx + var(--status-bar-height));*/
  75. /* #endif */
  76. .icoStyle {
  77. display: flex;
  78. align-items:center;
  79. }
  80. }
  81. </style>