Browse Source

价格限制两位数

master
Enzo 4 years ago
parent
commit
14c9e93183
  1. 2
      common/api.js
  2. 7
      components/lf-price/lf-price.vue
  3. 2
      manifest.json

2
common/api.js

@ -1,5 +1,5 @@
// appId: 正式 null | 测试 wxeb58570b5e04d147 // appId: 正式 null | 测试 wxeb58570b5e04d147
export const DEV = "dev"; // dev 测试 | prod 正式
export const DEV = "prod"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号 export const VERSION = '1.0.0'; // 版本号
export const DEVURL = 'https://yytx.eugyl.com'; // 测试服请求地址 export const DEVURL = 'https://yytx.eugyl.com'; // 测试服请求地址
// export const DEVURL = 'http://hainan.com'; // 测试服请求地址 // export const DEVURL = 'http://hainan.com'; // 测试服请求地址

7
components/lf-price/lf-price.vue

@ -2,7 +2,7 @@
<view> <view>
<block v-if="isPoint"> <block v-if="isPoint">
<text class="text-price lf-font-48 lf-font-bold lf-color-price">{{ showPrice(1) }}</text> <text class="text-price lf-font-48 lf-font-bold lf-color-price">{{ showPrice(1) }}</text>
<text class="lf-font-28 lf-font-bold lf-color-price">.{{ showPrice(2) }}</text>
<text class="lf-font-28 lf-font-bold lf-color-price">.{{ showPrice(2) | formDate }}</text>
</block> </block>
<block v-else> <block v-else>
<text class="text-price lf-font-48 lf-font-bold lf-color-price">{{ showPrice() }}</text> <text class="text-price lf-font-48 lf-font-bold lf-color-price">{{ showPrice() }}</text>
@ -18,6 +18,11 @@
default: '' default: ''
} }
}, },
filters: {
formDate(val) {
return val.slice(0,2)
}
},
computed: { computed: {
// //
isPoint(){ isPoint(){

2
manifest.json

@ -50,7 +50,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx5bd5789ad8f89524",
"appid" : "wxeb58570b5e04d147",
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : true,
"es6" : false, "es6" : false,

Loading…
Cancel
Save