index.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const _Http = getApp().globalData.http;
  2. Component({
  3. data: {
  4. types: [{
  5. value: '经销商协议',
  6. name: '经销商协议',
  7. }, {
  8. value: '医院协议',
  9. name: '医院协议',
  10. }],
  11. actionShow: false,
  12. },
  13. lifetimes: {
  14. attached: function () {
  15. getApp().globalData.Language.getLanguagePackage(this)
  16. }
  17. },
  18. methods: {
  19. /* 挑选新增合作协议类型 */
  20. onSelect() {
  21. wx.navigateTo({
  22. url: '/prsx/contract/insert?type=' + '经销商协议',
  23. })
  24. // this.setData({
  25. // actionShow: true
  26. // })
  27. },
  28. /* 选择合作协议类型 */
  29. selectType({
  30. detail
  31. }) {
  32. wx.navigateTo({
  33. url: '/prsx/contract/insert?type=' + detail.value,
  34. })
  35. this.onCancel();
  36. },
  37. /* 取消选择合作协议类型 */
  38. onCancel() {
  39. this.setData({
  40. actionShow: false
  41. })
  42. },
  43. }
  44. })