buy.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="all">
  3. <div style="margin-bottom: 30px;">
  4. <div class="initia_title">工作日志积分</div>
  5. <div class="initia_title_1">
  6. 1、启用后,在钉钉发布工作日志,系统自动按“日志积分规则”奖分
  7. <br />
  8. 2、日志名称必须与“钉钉日志模板名称”一致,否则奖分不会生效
  9. <br />
  10. 3、日志支持每月、每周、每次汇报,可自行根据需要设置“日志积分规则
  11. </div>
  12. <div class="flex-box-end" style="margin-top: 20px;">
  13. <el-button size="small" plain @click="add()">购买</el-button>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import openLink from 'dingtalk-jsapi/api/biz/util/openLink';
  20. export default {
  21. data() {
  22. return {
  23. loading: false,
  24. };
  25. },
  26. watch:{
  27. },
  28. mounted() {
  29. this.init();
  30. },
  31. methods: {
  32. init() {
  33. this.$dd.biz.util.openSlidePanel({
  34. url: 'https://h5.dingtalk.com/open-market/share.html?shareGoodsCode=D34E5A30A9AC7FC6327AB5E6D2D145418457E59F16C3FC969F1A50AEF2E5E320588012470F1AB045&token=d37751d45abad15178adf60f936d7c28&shareUid=C5EB7B5C85793F3D909B2AC4771E12D7', //打开侧边栏的url
  35. title: 'title', //侧边栏顶部标题
  36. onSuccess : function(result) {
  37. },
  38. onFail : function() {
  39. }
  40. })
  41. },
  42. add(){
  43. this.$axios('get', 'api/order/goods/sku', { callback: 'https://test-ding.g107.com/#/index', goods_code: 'DT_GOODS_881607043109331' }).then(res => {
  44. });
  45. }
  46. }
  47. };
  48. </script>
  49. <style scoped lang="scss">
  50. .all{
  51. padding: 20px;
  52. }
  53. .widthInput {
  54. width: 150px;
  55. }
  56. .title {
  57. margin: 10px 0;
  58. margin-top: 0;
  59. font-size: 14px;
  60. font-weight: 700;
  61. padding-left: 13px;
  62. }
  63. .initia_title {
  64. font-size: 20px;
  65. color: rgba(48, 49, 51, 1);
  66. font-family: PingFangSC-Regular;
  67. }
  68. .initia_title_1 {
  69. color: #e6a23c;
  70. font-size: 14px;
  71. margin-top: 10px;
  72. }
  73. .lookQrcode {
  74. color: #606266;
  75. cursor: pointer;
  76. transition: all 0.3s;
  77. font-weight: 700;
  78. }
  79. .lookQrcode:hover {
  80. color: #2490fd;
  81. }
  82. .name {
  83. max-width: 200px;
  84. margin-right: 10px;
  85. }
  86. </style>