Commit d381557c by 张立顺

字段补齐

1 parent a1e1cc87
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -83,14 +83,18 @@ Component({
handleInput(e) {
let value = e.detail
let { attr } = e.target.dataset
const trimValue = value.trim()
if (value != trimValue ) {
value = trimValue
}
let { dataAttrName } = this.data
if (attr=='price') {
value = value>=2000000?'2000000':value
if (attr=='price' && value>=2000000) {
value = '2000000'
wx.$eventbus.emit('delete_goodsSelect')
}
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
[dataAttrName + '.' + attr]: value.trim()
[dataAttrName + '.' + attr]: value
// [dataAttrName + '.' + attr]: value
})
......
......@@ -33,6 +33,11 @@ Component({
label: '交易金额',
prop: 'totalFee',
type: 'price'
},
{
label: '商户名称',
prop: 'yqMerchantName',
// type: 'price'
}
],
currentPage: 1,
......
......@@ -18,7 +18,7 @@
<view class="order_no_item {{item.active?'active':''}}" bindtap="changeOrderNo" data-target="{{item}}">
<view class="message">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<view class="item">
<view class="item" wx:if="{{item[subItem.prop]}}">
<view class="label">{{subItem.label}}</view>
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<view class="value" wx:else>{{item[subItem.prop]}}</view>
......
......@@ -37,7 +37,7 @@
}
.order_no_item{
height: 160rpx;
/* height: 160rpx; */
box-sizing: border-box;
background: #F7F8FA;
border-radius: 16rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!