buy.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. let s={'name':'喜喜',age:'18'}
  30. let arr=Object.create(s);
  31. },
  32. methods: {
  33. init() {
  34. this.$dd.biz.util.openSlidePanel({
  35. url: 'https://h5.dingtalk.com/open-market/share.html?shareGoodsCode=D34E5A30A9AC7FC6327AB5E6D2D145418457E59F16C3FC969F1A50AEF2E5E320588012470F1AB045&token=d37751d45abad15178adf60f936d7c28&shareUid=C5EB7B5C85793F3D909B2AC4771E12D7', //打开侧边栏的url
  36. title: 'title', //侧边栏顶部标题
  37. onSuccess : function(result) {
  38. },
  39. onFail : function() {
  40. }
  41. })
  42. },
  43. add(){
  44. this.$axios('get', 'api/order/goods/sku', { callback: 'https://test-ding.g107.com/#/index', goods_code: 'DT_GOODS_881607043109331' }).then(res => {
  45. });
  46. }
  47. }
  48. };
  49. </script>
  50. <style scoped lang="scss">
  51. .all{
  52. padding: 20px;
  53. }
  54. .widthInput {
  55. width: 150px;
  56. }
  57. .title {
  58. margin: 10px 0;
  59. margin-top: 0;
  60. font-size: 14px;
  61. font-weight: 700;
  62. padding-left: 13px;
  63. }
  64. .initia_title {
  65. font-size: 20px;
  66. color: rgba(48, 49, 51, 1);
  67. font-family: PingFangSC-Regular;
  68. }
  69. .initia_title_1 {
  70. color: #e6a23c;
  71. font-size: 14px;
  72. margin-top: 10px;
  73. }
  74. .lookQrcode {
  75. color: #606266;
  76. cursor: pointer;
  77. transition: all 0.3s;
  78. font-weight: 700;
  79. }
  80. .lookQrcode:hover {
  81. color: #2490fd;
  82. }
  83. .name {
  84. max-width: 200px;
  85. margin-right: 10px;
  86. }
  87. </style>