disabled.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <app-layout>
  3. <view class='dir-top-nowrap cross-center box'>
  4. <image class='disabled_img' :src='picUrl'></image>
  5. <text class='title'>{{text}}</text>
  6. <text class='content'>请联系管理员</text>
  7. </view>
  8. </app-layout>
  9. </template>
  10. <script>
  11. import {mapGetters} from "vuex";
  12. export default {
  13. data() {
  14. return {
  15. picUrl: '',
  16. text: '',
  17. }
  18. },
  19. computed: {
  20. ...mapGetters('mallConfig', {
  21. __wxapp_img: 'getWxappImg',
  22. })
  23. },
  24. onLoad(options) {
  25. let self = this;
  26. let picUrl = self.__wxapp_img.mall.disabled;
  27. self.picUrl = picUrl;
  28. self.text = options.text;
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .box {
  34. position: absolute;
  35. width: 100%;
  36. height: 100%;
  37. }
  38. .disabled_img {
  39. width: 380#{rpx};
  40. height: 380#{rpx};
  41. margin-top: 200#{rpx};
  42. }
  43. .title {
  44. margin-top: 56#{rpx};
  45. font-size: 13pt;
  46. color: #5292ed;
  47. }
  48. .content {
  49. margin-top: 24#{rpx};
  50. font-size: 9pt;
  51. color: $uni-general-color-two;
  52. }
  53. </style>