| | |
| | | }
|
| | | var tmp = parseFloat(this.dto.price)
|
| | | if (isNaN(tmp) || parseFloat('' + tmp).toFixed(3) !== parseFloat('' + this.dto.price).toFixed(3)) {
|
| | | this.$message.showToast('商品价格格式错误,精确到分') |
| | | console.log('a1', ('' + tmp) ) |
| | | this.$message.showToast('商品价格格式错误,精确到分')
|
| | | console.log('a1', ('' + tmp) )
|
| | | console.log('a1', ('' + this.dto.price))
|
| | | return
|
| | | }
|
| | |
| | | uploadIcon(key) {
|
| | | console.log('that dto key', key)
|
| | | const that = this
|
| | | if (key == 'video') {
|
| | | if (key === 'video') {
|
| | | uni.chooseVideo({
|
| | | maxDuration: 30,
|
| | | sourceType: ['camera', 'album'],
|