修改价格

pull/2/head
caolc 2 years ago
parent 70ad823ba2
commit b431e3c7dd
  1. 15
      AppletCode/pages/index/index.vue
  2. 6
      BagStation/pages/components/price-tab.vue
  3. 51
      package-lock.json
  4. 6
      utils/request.js

@ -187,13 +187,14 @@
}) })
return return
} }
if (!this.replace.verification) { // if (!this.replace.verification) {
uni.showToast({ // uni.showToast({
title: '请输入验证码', // title: '',
icon: 'none' // icon: 'none'
}) // })
return // return
} // }
// this.postData.phone = this.replace.phone; // this.postData.phone = this.replace.phone;
// this.animation = true; // this.animation = true;
// this.postData.name = ''; // this.postData.name = '';

@ -115,10 +115,8 @@
// console.log(String(value).split('.')[1].substring(2,4),String(value).split('.')[1].length,'*-*-*-*-'); // console.log(String(value).split('.')[1].substring(2,4),String(value).split('.')[1].length,'*-*-*-*-');
// console.log( Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01,'************'); // console.log( Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01,'************');
// return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01 :Number(value).toFixed(2); // return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01 :Number(value).toFixed(2);
return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,1)}${ Number(String(value).split('.')[1].substring(1,2)) + 1}`) :Number(value).toFixed(2); return String(value).split('.')[1]&&String(value).split('.')[1].length>2?
// console.log(value,String(value).split('.')[1],'***'); Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,3)}`).toFixed(2) :Number(value).toFixed(2);
// return Number(value).toFixed(2)
} else { } else {
return Number(value).toFixed(2) return Number(value).toFixed(2)
} }

51
package-lock.json generated

@ -1,57 +1,8 @@
{ {
"name": "wechat-oil-company", "name": "wechat-oil-company",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 2, "lockfileVersion": 1,
"requires": true, "requires": true,
"packages": {
"": {
"name": "wechat-oil-company",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"axios": "^0.21.1",
"crypto-js": "^4.0.0",
"js-md5": "^0.7.3"
}
},
"node_modules/axios": {
"version": "0.21.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
"integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
"dependencies": {
"follow-redirects": "^1.10.0"
}
},
"node_modules/crypto-js": {
"version": "4.0.0",
"resolved": "https://registry.nlark.com/crypto-js/download/crypto-js-4.0.0.tgz",
"integrity": "sha1-KQSrJnep0EKFai6i74DekuSjbcw="
},
"node_modules/follow-redirects": {
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.2.tgz",
"integrity": "sha512-yLR6WaE2lbF0x4K2qE2p9PEXKLDjUjnR/xmjS3wHAYxtlsI9MLLBJUZirAHKzUZDGLxje7w/cXR49WOUo4rbsA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/js-md5": {
"version": "0.7.3",
"resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz",
"integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I="
}
},
"dependencies": { "dependencies": {
"axios": { "axios": {
"version": "0.21.1", "version": "0.21.1",

@ -1,11 +1,11 @@
import axios from 'axios' import axios from 'axios'
import utils from '@/utils/encode' import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
const env = 'production'/* */ // const env = 'production'/* */
// const env = 'test' // const env = 'test'
// const env = 'production' const env = 'production'
// 45 // 45
const testUrl = 'http://192.168.0.45:38080' const testUrl = 'http://192.168.0.54:38080'
// const productUrl = 'https://www.xingoil.com/adminapi' // const productUrl = 'https://www.xingoil.com/adminapi'
const productUrl = 'http://uat.xingoil.com/adminapi' const productUrl = 'http://uat.xingoil.com/adminapi'

Loading…
Cancel
Save