service.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="container">
  3. <view class="banner"><image src="http://shicai.liuniu946.com/static/img/img21.png"></image></view>
  4. <!-- <view class="service">
  5. <view class="title">扫描下方二维码添加客服微信</view>
  6. <view class="time">服务时间(8:30-18:00)</view>
  7. <view class="image"><image src="http://shicai.liuniu946.com/static/img/img20.png"></image></view>
  8. <view class="time">任何有关产品咨询、订单查询、售后退款意见反馈的</br> 问题您都可以咨询美天选菜客服哦!</view>
  9. </view> -->
  10. </view>
  11. </template>
  12. <script>
  13. import { saveUrl } from '@/utils/loginUtils.js';
  14. export default {
  15. data() {
  16. return {
  17. id:'',
  18. list:"",
  19. spread:"",
  20. show:false,
  21. scrollTop: 0,
  22. description:'',
  23. old: {
  24. scrollTop: 0
  25. }
  26. };
  27. },
  28. async onLoad(options) {
  29. // 判断有无邀请人
  30. if (options.spread) {
  31. uni.setStorageSync('spread', options.spread);
  32. }
  33. saveUrl();
  34. },
  35. methods: {
  36. //分享
  37. // #ifdef MP
  38. onShareAppMessage: function(res) {
  39. let userInfo = uni.getStorageSync('userInfo');
  40. let GetInfo = uni.getStorageSync('GetInfo');
  41. // 来自页面内分享按钮
  42. let pages = getCurrentPages();
  43. // 获取当前页面
  44. let page = pages[pages.length - 1];
  45. let path = '/pages/service/service?';
  46. // 保存邀请人
  47. path += 'spread=' + userInfo.uid;
  48. let data = {
  49. path: path,
  50. imageUrl: GetInfo.img,
  51. title: GetInfo.title
  52. };
  53. console.log(data)
  54. return data;
  55. },
  56. // #endif
  57. }
  58. };
  59. </script>
  60. <style lang="scss">
  61. page{
  62. background: #F4F4F4;
  63. height: 100%;
  64. .container{
  65. background: #F4F4F4;
  66. height: 100%;
  67. font-size: 24rpx;
  68. }
  69. }
  70. .banner{
  71. width: 100%;
  72. height: 100%;
  73. image{
  74. width: 100%;
  75. height: 100%;
  76. }
  77. }
  78. .service{
  79. padding: 54rpx 0rpx;
  80. background: #FFFFFF;
  81. text-align: center;
  82. font-size: 24rpx;
  83. width: 712rpx;
  84. margin: 0rpx auto;
  85. border:1px solid rgba(231, 231, 231, 0.96);
  86. box-shadow:0px 3px 2px 0px rgba(219,219,219,0.75);
  87. .image{
  88. width: 260rpx;
  89. height: 260rpx;
  90. margin: 0rpx auto;
  91. image{
  92. width: 260rpx;
  93. height: 260rpx;
  94. }
  95. }
  96. }
  97. </style>