timelist.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view>
  3. <times @change="getTime" :stylecolor="pagestyleconfig.appstylecolor" :selectedTabColor="pagestyleconfig.appstylecolor" :selectedItemColor="pagestyleconfig.appstylecolor" :buynowinfoid="buynowinfoid" :technicalId="technicalId"></times>
  4. </view>
  5. </template>
  6. <script>
  7. import times from '@/components/pretty-times/pretty-times.vue'
  8. export default {
  9. components: {
  10. times
  11. },
  12. data() {
  13. return {
  14. pagestyleconfig: [],
  15. dataList: [],
  16. technicalId: '',
  17. buynowinfoid:'',
  18. }
  19. },
  20. onLoad: function(options) {
  21. let _this = this
  22. this.technicalId = options.technicalId;
  23. this.buynowinfoid = options.buynowinfoid;
  24. _this.$request.post('config', {
  25. mo: 'pagestyle'
  26. }).then(res => {
  27. if (res.errno == 0) {
  28. _this.pagestyleconfig = res.data
  29. }
  30. });
  31. },
  32. onShow: function() {
  33. },
  34. methods: {
  35. getTime(e) {
  36. console.log(e)
  37. uni.setStorageSync('servicetime', e);
  38. uni.navigateBack({});
  39. }
  40. },
  41. /**
  42. * 页面相关事件处理函数--监听用户下拉动作
  43. */
  44. onPullDownRefresh: function() {
  45. setTimeout(() => {
  46. uni.stopPullDownRefresh()
  47. }, 200);
  48. },
  49. }
  50. </script>
  51. <style>
  52. </style>