jufubao-admin-library 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,6 @@ import JfbPage from "./JfbPage";
5
5
  const install = function (Vue, opt) {
6
6
  if (install.installed) return;
7
7
  install.installed = true;
8
-
9
8
  Vue.prototype.JfbPage = ($vm , ele, options) => {
10
9
  return JfbPage($vm, ele, Object.assign({}, opt, options), Vue);
11
10
  };
@@ -263,12 +263,15 @@ export default {
263
263
  let info = await this.getOnePriceInfo({ product_id });
264
264
  this.priceTypeList = info.data['price_options'];
265
265
  let params = info.data['formula']['price'];
266
+ debugger
266
267
  params = {
267
268
  ...params,
268
269
  product_id, product_name,
269
270
  modifyprice_method_name: info.data['modifyprice_method_name'],
270
- value: this.$xdHelper.divisionFloatNumber(params['value'], 100)
271
271
  };
272
+ //设置调价值
273
+ if(params.unit === 'money') params['moneyValue'] = this.$xdHelper.divisionFloatNumber(params['value'], 100);
274
+ else params['ratioValue'] = this.$xdHelper.divisionFloatNumber(params['value'], 100);
272
275
  this.getAdjustForm(params);
273
276
  this.adjustStatus = true;
274
277
  this.showAdjust = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {
@@ -14,6 +14,7 @@
14
14
  "entry": "node ./build/commands/entry.init.js",
15
15
  "app": "node ./build/commands/appcss.js",
16
16
  "coder": "node ./build/commands/coder.js",
17
+ "watch": "node ./watch.js",
17
18
  "coder:check": "node ./build/commands/coder.check.js",
18
19
  "coder:page": "node ./build/commands/coder.page.js",
19
20
  "coder:router": "node ./build/commands/coder.router.js"
package/watch.js ADDED
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+ const {watch} = require("fs");
3
+ const {execSync} = require("child_process");
4
+ const clog = require('./build/clog')
5
+ let loading = false;
6
+ let time = null;
7
+ const fileHelper = require('./build/fileHepler');
8
+ const utils = require('./build/lib/utils');
9
+
10
+ watch(__dirname + '/library',{recursive:true}, (eventType, filename) => {
11
+ if(time) {
12
+ clearTimeout(time);
13
+ time = null;
14
+ }
15
+ if(loading) return;
16
+ time = setTimeout(()=>{
17
+ loading = true;
18
+ execSync('gulp', {stdio: 'inherit'});
19
+ clog(`更新完成`, 'cyan')
20
+ utils.logsLine(clog);
21
+ loading = false
22
+ }, 2000)
23
+ });
24
+ console.log('\n')
25
+ clog(`开始监听文件夹`, 'cyanBG')
26
+ utils.logsLine(clog, 'start');
27
+ clog(`当前监听文件夹: ${fileHelper.getPlatformSurePath(__dirname + '/library')}`, 'green')
28
+ utils.logsLine(clog);
29
+
30
+
31
+
32
+