修改代码

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

@ -28,55 +28,55 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/index", "path": "pages/user/index",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/attention", "path": "pages/user/compontents/attention",
"style": { "style": {
"navigationBarTitleText": "关注列表", "navigationBarTitleText": "关注列表",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/recharge", "path": "pages/user/compontents/recharge",
"style": { "style": {
"navigationBarTitleText": "充值", "navigationBarTitleText": "充值",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/discount", "path": "pages/user/compontents/discount",
"style": { "style": {
"navigationBarTitleText": "打折活动", "navigationBarTitleText": "打折活动",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/purchasedPlan", "path": "pages/user/compontents/purchasedPlan",
"style": { "style": {
"navigationBarTitleText": "已购方案", "navigationBarTitleText": "已购方案",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/integralShop", "path": "pages/user/compontents/integralShop",
"style": { "style": {
"navigationBarTitleText": "积分商城", "navigationBarTitleText": "积分商城",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/user/compontents/VIPMember", "path": "pages/user/compontents/VIPMember",
"style": { "style": {
"navigationBarTitleText": "VIP", "navigationBarTitleText": "VIP",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/index/compontents/bigMaster", "path": "pages/index/compontents/bigMaster",
"style": { "style": {
@ -91,27 +91,34 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/login/index", "path": "pages/login/index",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/index/compontents/billingPage", "path": "pages/index/compontents/billingPage",
"style": { "style": {
"navigationBarTitleText": "结算页面", "navigationBarTitleText": "结算页面",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/index/compontents/integralGuess", "path": "pages/index/compontents/integralGuess",
"style": { "style": {
"navigationBarTitleText": "积分竞猜", "navigationBarTitleText": "积分竞猜",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} },
{
"path": "pages/index/compontents/scheme",
"style": {
"navigationBarTitleText": "积分竞猜",
"navigationStyle": "custom"
}
}
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",

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>