shop.vue 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="container">
  3. <!-- 图片区域 -->
  4. <img src="../../static/my/shopImg.png" />
  5. <!-- 文字信息区域 -->
  6. <view class="msg">您暂未绑定账户,请前往绑定</view>
  7. <!-- 按钮区域 -->
  8. <view class="btn" @click="handleBinding">前往绑定</view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {}
  15. },
  16. methods: {
  17. // 前往绑定按钮回调
  18. handleBinding() {
  19. uni.navigateTo({
  20. url: '/pages/binding/binding'
  21. })
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .container {
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. height: 100vh;
  32. background-color: #fff;
  33. img {
  34. width: 499rpx;
  35. height: 499rpx;
  36. }
  37. .msg {
  38. font-size: 32rpx;
  39. font-weight: bold;
  40. }
  41. .btn {
  42. position: absolute;
  43. bottom: 74rpx;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. width: 690rpx;
  48. height: 96rpx;
  49. color: #fff;
  50. font-size: 32rpx;
  51. border-radius: 64rpx;
  52. background-color: #096562;
  53. }
  54. }
  55. </style>