page-foot.vue 724 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template name="page-foot">
  2. <view class="page-share-title">
  3. <text>感谢{{name}}提供本示例,</text>
  4. <text class="submit" @click="submit">我也提交</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "page-foot",
  10. props: {
  11. name: {
  12. type: String,
  13. default: ""
  14. }
  15. },
  16. methods: {
  17. submit() {
  18. uni.showModal({
  19. content:"hello uni-app开源地址为https://github.com/dcloudio/uni-app/tree/master/examples,请在这个开源项目上贡献你的代码",
  20. showCancel:false
  21. })
  22. }
  23. }
  24. }
  25. </script>
  26. <style>
  27. .page-share-title {
  28. text-align: center;
  29. font-size: 30rpx;
  30. color: #BEBEBE;
  31. padding: 20rpx 0;
  32. }
  33. .submit {
  34. border-bottom: 1rpx solid #BEBEBE;
  35. }
  36. </style>