支付

parent 83a95827
......@@ -18,25 +18,26 @@
<image src="@/static/shop/wx-icon.png"></image>
微信
</view>
<radio class="radio" color="#F12A2A" value="'wx'" :checked="'wx' == selectType" />
<radio class="radio" color="#F12A2A" value="TENPAY" :checked="'TENPAY' == selectType" />
</view>
<view class="pay-item">
<view class="icon">
<image src="@/static/shop/yzf-icon.png"></image>
翼支付
</view>
<radio class="radio" color="#F12A2A" value="'yzf'" :checked="'yzf' == selectType" />
<radio class="radio" color="#F12A2A" value="BESTPAY" :checked="'BESTPAY' == selectType" />
</view>
</radio-group>
<view class="footer">
<wd-button type="error">危险按钮</wd-button>
<wd-button type="error" @tap="toPay">危险按钮</wd-button>
</view>
</view>
</wd-popup>
</template>
<script setup>
const selectType = ref('wx');
const emits = defineEmits(['payment']);
const selectType = ref('TENPAY');
const show = ref(false);
function radioChange(evt) {
......@@ -44,6 +45,11 @@ function radioChange(evt) {
selectType.value = value;
}
const toPay = () => {
emits('payment', selectType.value);
show.value = false;
};
const open = () => {
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