|
@@ -35,6 +35,7 @@ export default function ShangPinDuiHuan () {
|
35
|
35
|
setDataLock(true)
|
36
|
36
|
request({ ...apis.exchangeGoods, args: { id: CurrnetId } }).then(() => {
|
37
|
37
|
Taro.showToast({ title: `兑换成功`, icon: 'none' })
|
|
38
|
+ Taro.navigateTo({ url: `/pages/WoDe/WoDeDingDan/index` })
|
38
|
39
|
setDataLock(false)
|
39
|
40
|
}).catch((res) => {
|
40
|
41
|
Taro.showToast({ title: res, icon: 'none' })
|
|
@@ -45,35 +46,35 @@ export default function ShangPinDuiHuan () {
|
45
|
46
|
return (
|
46
|
47
|
<Page>
|
47
|
48
|
<view className='ShangPinDuiHuan'>
|
48
|
|
- <view className='Info'>
|
49
|
|
- <view className='Item flex-h'>
|
50
|
|
- <view className='Img'>
|
51
|
|
- <image mode='aspectFill' src={GoodsDetail === null ? null : GoodsDetail.imgUrl} className='centerLabel'></image>
|
52
|
|
- </view>
|
53
|
|
- <view className='flex-item'>
|
54
|
|
- <text>{GoodsDetail === null ? '' : GoodsDetail.goodsName}</text>
|
55
|
|
- <view className='Num'>
|
56
|
|
- <text>{GoodsDetail === null ? '' : GoodsDetail.totalNum}</text>
|
57
|
|
- <text>人已兑换</text>
|
|
49
|
+ <view className='Info'>
|
|
50
|
+ <view className='Item flex-h'>
|
|
51
|
+ <view className='Img'>
|
|
52
|
+ <image mode='aspectFill' src={GoodsDetail === null ? null : GoodsDetail.imgUrl} className='centerLabel'></image>
|
58
|
53
|
</view>
|
59
|
|
- <view className='flex-h'>
|
60
|
|
- <text>{GoodsDetail === null ? '' : GoodsDetail.pointPrice}</text>
|
61
|
|
- <text>积分</text>
|
62
|
|
- <view className='flex-item'></view>
|
63
|
|
- <view className='EditNum flex-h'>
|
64
|
|
- <text className='iconfont iconjian' onClick={() => { setCount(Count > 1 ? Count - 1 : 1) }}></text>
|
65
|
|
- <Input type='number' value={Count} onInput={CountChange}></Input>
|
66
|
|
- <text className='iconfont iconjia1' onClick={() => { setCount(Count - 0 + 1) }}></text>
|
|
54
|
+ <view className='flex-item'>
|
|
55
|
+ <text>{GoodsDetail === null ? '' : GoodsDetail.goodsName}</text>
|
|
56
|
+ <view className='Num'>
|
|
57
|
+ <text>{GoodsDetail === null ? '' : GoodsDetail.totalNum}</text>
|
|
58
|
+ <text>人已兑换</text>
|
|
59
|
+ </view>
|
|
60
|
+ <view className='flex-h'>
|
|
61
|
+ <text>{GoodsDetail === null ? '' : GoodsDetail.pointPrice}</text>
|
|
62
|
+ <text>积分</text>
|
|
63
|
+ <view className='flex-item'></view>
|
|
64
|
+ <view className='EditNum flex-h'>
|
|
65
|
+ <text className='iconfont iconjian' onClick={() => { setCount(Count > 1 ? Count - 1 : 1) }}></text>
|
|
66
|
+ <Input type='number' value={Count} onInput={CountChange}></Input>
|
|
67
|
+ <text className='iconfont iconjia1' onClick={() => { setCount(Count - 0 + 1) }}></text>
|
|
68
|
+ </view>
|
67
|
69
|
</view>
|
68
|
70
|
</view>
|
69
|
71
|
</view>
|
|
72
|
+ <view className='InfoBottom'></view>
|
|
73
|
+ </view>
|
|
74
|
+ <view className='BottomBtn'>
|
|
75
|
+ <text className={DataLock ? '' : 'active'} onClick={Submit}>{DataLock ? '正在提交...' : '确认兑换'}</text>
|
70
|
76
|
</view>
|
71
|
|
- <view className='InfoBottom'></view>
|
72
|
|
- </view>
|
73
|
|
- <view className='BottomBtn'>
|
74
|
|
- <text className={DataLock ? '' : 'active'} onClick={Submit}>{DataLock ? '正在提交...' : '确认兑换'}</text>
|
75
|
77
|
</view>
|
76
|
|
- </view>
|
77
|
78
|
</Page>
|
78
|
79
|
)
|
79
|
80
|
}
|