支付

parent 83a95827
...@@ -18,25 +18,26 @@ ...@@ -18,25 +18,26 @@
<image src="@/static/shop/wx-icon.png"></image> <image src="@/static/shop/wx-icon.png"></image>
微信 微信
</view> </view>
<radio class="radio" color="#F12A2A" value="'wx'" :checked="'wx' == selectType" /> <radio class="radio" color="#F12A2A" value="TENPAY" :checked="'TENPAY' == selectType" />
</view> </view>
<view class="pay-item"> <view class="pay-item">
<view class="icon"> <view class="icon">
<image src="@/static/shop/yzf-icon.png"></image> <image src="@/static/shop/yzf-icon.png"></image>
翼支付 翼支付
</view> </view>
<radio class="radio" color="#F12A2A" value="'yzf'" :checked="'yzf' == selectType" /> <radio class="radio" color="#F12A2A" value="BESTPAY" :checked="'BESTPAY' == selectType" />
</view> </view>
</radio-group> </radio-group>
<view class="footer"> <view class="footer">
<wd-button type="error">危险按钮</wd-button> <wd-button type="error" @tap="toPay">危险按钮</wd-button>
</view> </view>
</view> </view>
</wd-popup> </wd-popup>
</template> </template>
<script setup> <script setup>
const selectType = ref('wx'); const emits = defineEmits(['payment']);
const selectType = ref('TENPAY');
const show = ref(false); const show = ref(false);
function radioChange(evt) { function radioChange(evt) {
...@@ -44,6 +45,11 @@ function radioChange(evt) { ...@@ -44,6 +45,11 @@ function radioChange(evt) {
selectType.value = value; selectType.value = value;
} }
const toPay = () => {
emits('payment', selectType.value);
show.value = false;
};
const open = () => { const open = () => {
show.value = true; show.value = true;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment