tb-discount-info.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>折扣管理-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel">
  28. <el-form v-if="m">
  29. <sa-info name="标题" br>{{m.title}}</sa-info>
  30. <sa-info name="类型" br>
  31. <label v-if="m.type==1">折扣</label>
  32. <label v-if="m.type==2">满减</label>
  33. </sa-info>
  34. <sa-info name="充值金额" br>{{m.money}}</sa-info>
  35. <sa-info v-if="m.type==1" name="折扣" br>{{m.discount}}折</sa-info>
  36. <sa-info v-if="m.type==2" name="优惠" br>{{m.subtract}}元</sa-info>
  37. <sa-info name="状态" br>
  38. <label v-if="m.status==0">禁用</label>
  39. <label v-if="m.status==1">启用</label>
  40. </sa-info>
  41. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  42. </el-form>
  43. </div>
  44. </div>
  45. <!-- ------- 底部按钮 ------- -->
  46. <div class="s-foot">
  47. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  48. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  49. </div>
  50. </div>
  51. <script>
  52. var app = new Vue({
  53. components: {
  54. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  55. },
  56. el: '.vue-box',
  57. data: {
  58. id: sa.p('id', 0), // 获取数据ID
  59. m: null
  60. },
  61. methods: {},
  62. mounted: function () {
  63. sa.ajax('/TbDiscount/getById?id=' + this.id, function (res) {
  64. this.m = res.data;
  65. if (res.data == null) {
  66. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  67. }
  68. }.bind(this))
  69. }
  70. })
  71. </script>
  72. </body>
  73. </html>