修改代码

This commit is contained in:
sundongyu 2024-04-19 17:54:54 +08:00
parent 78502d1580
commit af4abe71d6
2 changed files with 89 additions and 71 deletions

View File

@ -111,6 +111,13 @@
"navigationBarTitleText": "积分竞猜", "navigationBarTitleText": "积分竞猜",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/index/compontents/scheme",
"style": {
"navigationBarTitleText": "积分竞猜",
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {

View File

@ -99,7 +99,12 @@
</view> </view>
</view> </view>
<view class="purchase-four"> <view class="purchase-four">
<u-button color="#ff275e" type="primary" text="立即购买"></u-button> <u-button
@click="purchase"
color="#ff275e"
type="primary"
text="立即购买"
></u-button>
</view> </view>
</view> </view>
<!-- 已购买 --> <!-- 已购买 -->
@ -151,6 +156,12 @@
const cancel = () => { const cancel = () => {
onswitch.value = !onswitch.value onswitch.value = !onswitch.value
} }
const purchase = () => {
uni.navigateTo({
url: '/pages/index/compontents/billingPage',
animationDuration: '300',
})
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>