index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <view>
  4. <view class="help-content" style="padding: 10px;">
  5. <u-parse :content="helpHtmlParse"></u-parse>
  6. <!-- <text style="margin-right: 75%;"> 如何分销?</text>
  7. <text> 对于小程序所有授权用户,均可以进行分销推广产品以获得分销奖励</text>
  8. <text> 打开小程序可以看到产品列表,您可以从产品列表中选择某个产品点击分享按钮,分享给好友,好友授权后即关联为您的直属下级</text>
  9. <text> 1、本人购买过产品------可以分享直属下级的购买产品奖励-----拥有两个以上直属下级才可分享下级的下级的购买产品奖励;</text>
  10. <text> 2、本人未购买过产品-----可以分享直属下级的购买产品奖励------拥有5个以上直属下级才可以分享下级的下级的购买产品奖励</text> -->
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. var md5 = require('../../../common/md5.js')
  17. import uParse from '@/components/gaoyia-parse/parse.vue'
  18. export default {
  19. components: {
  20. uParse,
  21. },
  22. data() {
  23. return {
  24. helpHtmlParse:''
  25. }
  26. },
  27. onLoad() {
  28. this.getDetail()
  29. },
  30. methods: {
  31. getDetail(){
  32. uni.showLoading({
  33. title: '加载中',
  34. });
  35. let that = this;
  36. uni.request({
  37. url: getApp().globalData.shareUrl, //需要设置为全局
  38. method: 'POST',
  39. header: {
  40. 'content-type': 'application/x-www-form-urlencoded'
  41. },
  42. data: {
  43. method: 'getShareRule',
  44. timestamp: getApp().globalData.globalTimestamp, //Date.now()
  45. sign: md5('getShareRule' + getApp().globalData.globalTimestamp),
  46. id:1,
  47. },
  48. success: res => {
  49. if (res.data.code === 200) {
  50. uni.hideLoading();
  51. that.helpHtmlParse = res.data.msg.sharerule
  52. }
  53. }
  54. });
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. // @import url("../../../../components/gaoyia-parse/parse.css");
  61. .help-content {
  62. font-size: 30rpx;
  63. background: #fff;
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. }
  68. .help-content text {
  69. margin-bottom: 2%;
  70. }
  71. </style>