| | |
| | | <view class="form-item bottom-border-no">
|
| | | <view class="label">商品描述</view>
|
| | | <view class="m-l-a m-r-0 flex">
|
| | | <!-- <u-input type="textarea" v-model="dto.description" placeholder="请输入商品描述" type="number"
|
| | | ></u-input> -->
|
| | | <!-- <u--textarea v-model="dto.description" style="margin-top: 16px;"
|
| | | placeholder="请输入商品描述" count></u--textarea> -->
|
| | | <!-- <uni-easyinput v-model="dto.description" placeholder="请输入商品描述" ></uni-easyinput> -->
|
| | |
|
| | | </view>
|
| | | </view>
|
| | |
| | | }
|
| | | }
|
| | | },
|
| | | mapCategoryTree(node, arr) {
|
| | | mapCategoryTree(node, arr,parentCheckTrue=false) {
|
| | | var has = true
|
| | | if (arr) {
|
| | | var hasTrue = false
|
| | |
| | | has = true
|
| | | if (this.columns_categorys_search) {
|
| | | has = false
|
| | | } |
| | | if(parentCheckTrue){ |
| | | has = true |
| | | }
|
| | | var tmp = {
|
| | | ...item,
|
| | |
| | | // }
|
| | | this.columns_categorys_dict['@' + item.id] = item
|
| | | if (item.children && item.children.length > 0) {
|
| | | tmp.children = []
|
| | | var childrenhas = this.mapCategoryTree(tmp.children, item.children)
|
| | | if (childrenhas) {
|
| | | has = true
|
| | | hasTrue = true
|
| | | //如果上级已经有了,下级都包含
|
| | | tmp.children = [] |
| | | var childrenhas = this.mapCategoryTree(tmp.children, item.children,has) |
| | | if (childrenhas) { |
| | | has = true |
| | | hasTrue = true |
| | | }
|
| | |
|
| | | } else {
|
| | | tmp.children = undefined
|
| | | }
|
| | |
| | | }
|
| | | 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'],
|
| | |
| | | // height: 100px;
|
| | |
|
| | | .label {
|
| | | width: 300rpx;
|
| | | line-height: 60px;
|
| | | width: 240rpx;
|
| | | line-height: 60px; |
| | | min-width: 240rpx;
|
| | |
|
| | | }
|
| | |
|