Commit fc7f6e3b by 胡悦

Merge branch 'kuangyq_v2.10.0' of http://192.168.3.233:8090/saas/mini-program/ai…

…-card into kuangyq_v2.10.0
2 parents d1600036 927a9d8d
...@@ -116,7 +116,6 @@ Page({ ...@@ -116,7 +116,6 @@ Page({
wx.$util.showToast('敬请期待') wx.$util.showToast('敬请期待')
return true return true
} }
console.log(e.detail)
wx.$router.go('addTransformDetail', { proName: obj.proName, attrName: obj.detailAttrName }) wx.$router.go('addTransformDetail', { proName: obj.proName, attrName: obj.detailAttrName })
}, },
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<view class="tips">预估收益根据您的新车销量 {{ actualForm.sales || 0 }}台 测算所得</view> <view class="tips">预估收益根据您的新车销量 {{ actualForm.sales || 0 }}台 测算所得</view>
</view> </view>
<view wx:for="{{cardList}}" wx:key="index"> <view wx:for="{{cardList}}" wx:key="index">
<card cardForm="{{item}}" actualForm="{{actualForm}}" sales="{{sales}}" bindclick="handleCardClick"></card> <card cardForm="{{item}}" actualForm="{{actualForm}}" tagIndex="{{tagIndex}}" bindclick="handleCardClick"></card>
</view> </view>
</view> </view>
</add-tab-view> </add-tab-view>
......
...@@ -15,9 +15,15 @@ Component({ ...@@ -15,9 +15,15 @@ Component({
actualForm: { actualForm: {
type: Object, type: Object,
observer(n) { observer(n) {
      this.setData({       this.setData({
actualForm: n actualForm: n
      })       })
this.calcProfit()
}
},
tagIndex: {
type: Number,
observer(n) {
this.calcProfit() this.calcProfit()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!