index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view>
  3. <view>
  4. <view class="help-content">
  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(options) {
  28. this.getDetail(options.qId)
  29. },
  30. methods: {
  31. getDetail(id){
  32. let that = this;
  33. uni.request({
  34. url: getApp().globalData.shareUrl, //需要设置为全局
  35. method: 'POST',
  36. header: {
  37. 'content-type': 'application/x-www-form-urlencoded'
  38. },
  39. data: {
  40. method: 'getHelpInfo',
  41. timestamp: getApp().globalData.globalTimestamp, //Date.now()
  42. sign: md5('getHelpInfo' + getApp().globalData.globalTimestamp),
  43. id:id,
  44. },
  45. success: res => {
  46. if (res.data.code === 200) {
  47. that.helpHtmlParse = res.data.msg.content
  48. console.log(res.data.msg)
  49. }
  50. }
  51. });
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss">
  57. // @import url("../../../../components/gaoyia-parse/parse.css");
  58. .help-content {
  59. padding: 15px;
  60. font-size: 30rpx;
  61. background: #fff;
  62. display: flex;
  63. flex-direction: column;
  64. align-items: center;
  65. }
  66. .help-content text {
  67. margin-bottom: 2%;
  68. }
  69. </style>