discovery.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view style="text-align: center;" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  3. <image style="width: 180px;height: 150px" src="../../static/logo.png"></image>
  4. <view style="margin-top:24px"><text style="font-size:30px;">生物制药产业</text></view>
  5. <view><text style="font-size:30px">国际产品展示中心</text></view>
  6. <view style="margin-top:24px"><text style="font-size:20px;">生物制药产业一站式产品资源供需平台</text></view>
  7. <view style="display: flex;margin-top:32px">
  8. <view style="flex: 1;padding: 0 16px;">
  9. <button type="primary" style="background-color:#1d60b1;border-radius: 23px" @click="showAdd">我要什么</button>
  10. </view>
  11. <view style="flex: 1;padding: 0 16px;">
  12. <button type="primary" style="background-color:#1d60b1;border-radius: 23px" @click="showAdd2">我有什么</button>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. }
  22. },
  23. methods: {
  24. showAdd(){
  25. if(uni.getStorageSync('userNo')){
  26. uni.navigateTo({
  27. url:'/circlePages/circle'
  28. })
  29. }else{
  30. uni.navigateTo({
  31. url:'/pages/login/login'
  32. })
  33. }
  34. },
  35. showAdd2(){
  36. if(uni.getStorageSync('userNo')){
  37. uni.navigateTo({
  38. url:'/circlePages/addShare'
  39. })
  40. }else{
  41. uni.navigateTo({
  42. url:'/pages/login/login'
  43. })
  44. }
  45. }
  46. }
  47. }
  48. </script>
  49. <style>
  50. </style>