<view class="whole_page">
<view class="voucher_image">
<image src="/static/bcg@2x.png" mode="heightFix" />
</view>
<view class="popup">
<form>
<view class="popup_phone">
<image class="icon" src="/static/icon_phone@2x.png" />
<input name="phone" value="{{phoneValue}}" type="number" class="popup_input" placeholder="输入手机号" />
</view>
<view class="popup_coupon">
<image class="icon" src="/static/icon_code@2x.png" />
<input name="coupon" class="popup_input" placeholder="输入兑换码" />
</view>
<view>
<button class="popup_change" form-type="submit" onTap="handleSubmit">立即兑换</button>
</view>
</form>
</view>
<view class="guide">
<text>查看详情指引 ></text>
</view>
</view>
<input name="phone" value="{{phoneValue}}" type="number" class="popup_input" placeholder="输入手机号" />
value="{{phoneValue}}"的 phoneValue是全局变量,你可以获取,兑换卷也可以这样做。