微信小店联盟带货小程序

rules.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. const app = getApp()
  2. Page({
  3. data: {
  4. settleDay: 7, // 结算天数
  5. minWithdraw: 50, // 最低提现金额
  6. withdrawTimes: 3, // 每月提现次数
  7. levelList: [{
  8. name: '普通推广员',
  9. commission: 10,
  10. teamCommission: 0
  11. }, {
  12. name: '高级推广员',
  13. commission: 15,
  14. teamCommission: 3
  15. }, {
  16. name: '金牌推广员',
  17. commission: 20,
  18. teamCommission: 5
  19. }, {
  20. name: '钻石推广员',
  21. commission: 25,
  22. teamCommission: 8
  23. }]
  24. },
  25. onLoad() {
  26. this.getRulesConfig()
  27. },
  28. // 获取规则配置
  29. getRulesConfig() {
  30. // TODO: 调用后端API获取规则配置
  31. // 这里使用模拟数据
  32. },
  33. // 联系客服
  34. contactService() {
  35. wx.openCustomerServiceChat({
  36. extInfo: { url: '' }, // 客服页面路径
  37. corpId: '', // 企业ID
  38. success(res) {
  39. console.log('打开客服会话成功')
  40. },
  41. fail(err) {
  42. wx.showToast({
  43. title: '打开客服会话失败',
  44. icon: 'none'
  45. })
  46. }
  47. })
  48. },
  49. onShareAppMessage() {
  50. return {
  51. title: '分销规则说明',
  52. path: '/pages/distribution/rules'
  53. }
  54. }
  55. })