discovery.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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;"><tn-button size="lg" width="100%" backgroundColor="#3a96d7" fontColor="#ffffff" @click="showAdd">我要什么</tn-button></view>
  9. <view style="flex: 1;padding: 0 16px;"><tn-button size="lg" width="100%" backgroundColor="#1d60b1" fontColor="#ffffff" @click="showAdd2">我有什么</tn-button></view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. }
  18. },
  19. methods: {
  20. showAdd(){
  21. if(uni.getStorageSync('userNo')){
  22. uni.navigateTo({
  23. url:'/circlePages/circle'
  24. })
  25. }else{
  26. uni.navigateTo({
  27. url:'/pages/login/login'
  28. })
  29. }
  30. },
  31. showAdd2(){
  32. if(uni.getStorageSync('userNo')){
  33. uni.navigateTo({
  34. url:'/circlePages/addShare'
  35. })
  36. }else{
  37. uni.navigateTo({
  38. url:'/pages/login/login'
  39. })
  40. }
  41. }
  42. }
  43. }
  44. </script>
  45. <style>
  46. </style>