Browse Source

no message

featrue/v.4.0
xpz2018 5 years ago
parent
commit
67c41b5f9e
5 changed files with 7 additions and 6 deletions
  1. 2
      app.js
  2. 3
      components/dialog/index.js
  3. 2
      components/dialog/index.wxml
  4. 2
      components/input-number/index.js
  5. 4
      pages/mall/detail/index.js

2
app.js

@ -1,7 +1,7 @@
//app.js
App({
//----------------------------------------------globalData--------------------------------------
release: 1,
release: 0,
httpUrl: 'https://api.qniao.cn',
tmplIds: ['SUjEgwDopCv9xkkSZ4KbS0L7XbAiVQor6GmPg14K760'],
agentMsgIds: ['kG8DErWDpyzBHCFaLlSKYMF7xVy8UpgogCwV_WSNt10', 'oLbv-IyJOia2tenh64_Lc8xeAzwgzu3gh1vFJ1Se-ME'],

3
components/dialog/index.js

@ -110,7 +110,6 @@ baseComponent({
runCallbacks(e, method) {
const { index } = e.currentTarget.dataset
const button = this.originalButtons[index]
if (!button.disabled) {
this.hide(() => typeof button[method] === 'function' && button[method](e))
}
@ -260,7 +259,7 @@ baseComponent({
}
}
if(opts.step){
this.$$setData({ step: Number(opts.step), min: Number(opts.value) })
this.$$setData({ step: Number(opts.step), min: Number(opts.min) })
}
return this.open(Object.assign({
prompt: prompt,

2
components/dialog/index.wxml

@ -14,7 +14,7 @@
</view>
<text wx:else>{{ content }}</text>
<view style="display: flex;margin-top:24rpx;margin-bottom:12rpx;justify-content: center;" wx:if="{{ prompt && offer }}">
<wux-input-number value="{{ prompt.response }}" longpress="{{true}}" offer="true" disabled="{{false}}" min="{{min}}" step="{{ step }}" bind:change="onNumChange" />
<wux-input-number value="{{ prompt.response }}" controlled longpress="{{true}}" offer="true" disabled="{{false}}" min="{{min}}" step="{{ step }}" bind:change="onNumChange" />
</view>
</view>
<view slot="footer" class="{{ classes.buttons }}">

2
components/input-number/index.js

@ -283,7 +283,7 @@ baseComponent({
attached() {
const { defaultValue, value, controlled } = this.data
const inputValue = controlled ? value : defaultValue
this.setValue(inputValue, false)
},
detached() {

4
pages/mall/detail/index.js

@ -242,10 +242,12 @@ Page({
} else {
var that = this
// this.biddingDialog.showBidding(this.data.orderInfo)
var price = this.data.offered || that.data.orderInfo.unitPrice
this.wuxDialog.prompt({
offer: true,
title: '商品报价',
value: that.formatePrice(that.data.orderInfo.unitPrice, app.globalData.kg),
min: that.formatePrice(that.data.orderInfo.unitPrice, app.globalData.kg),
value: that.formatePrice(price, app.globalData.kg),
step: that.formatePrice(that.data.orderInfo.biddingRange, app.globalData.kg),
content: '请输入您的报价(元/' + (app.globalData.kg ? 'KG' : '吨') + ')',
fieldtype: app.globalData.kg ? 'digit' : 'numger',

Loading…
Cancel
Save