修改价格

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. 8
      utils/request.js

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

@ -115,10 +115,8 @@
// 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,'************');
// 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);
// console.log(value,String(value).split('.')[1],'***');
// return 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,3)}`).toFixed(2) :Number(value).toFixed(2);
} else {
return Number(value).toFixed(2)
}

51
package-lock.json generated

@ -1,57 +1,8 @@
{
"name": "wechat-oil-company",
"version": "1.0.0",
"lockfileVersion": 2,
"lockfileVersion": 1,
"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": {
"axios": {
"version": "0.21.1",

@ -1,15 +1,15 @@
import axios from 'axios'
import utils from '@/utils/encode'
// const env = process.env.NODE_ENV
const env = 'production'/* */
// const env = 'production'/* */
// const env = 'test'
// const env = 'production'
const env = 'production'
// 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 = 'http://uat.xingoil.com/adminapi'
// const productUrl = 'http://192.168.0.191:38080'
// const productUrl = 'http://192.168.0.191:38080'
// const productUrl = 'http://121.196.213.68/adminapi'
const service = axios.create({
baseURL: env == 'production' ? productUrl : testUrl,

Loading…
Cancel
Save