From 99c229cd5bccd937dd42e43b6774b76e9ce42ef4 Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Thu, 24 Aug 2023 15:13:52 +0800 Subject: [PATCH] upload --- src/pages.json | 6 + src/pages/index/buyCoin.vue | 39 +++--- src/pages/login/index.vue | 19 ++- src/pages/protocol/coin.vue | 257 ++++++++++++++++++++++++++++++++++++ 4 files changed, 298 insertions(+), 23 deletions(-) create mode 100644 src/pages/protocol/coin.vue diff --git a/src/pages.json b/src/pages.json index 7f2ae35..a5bdb78 100644 --- a/src/pages.json +++ b/src/pages.json @@ -66,6 +66,12 @@ "navigationBarTitleText": "智像相机用户使用协议" } }, + { + "path": "pages/protocol/coin", + "style": { + "navigationBarTitleText": "慧拍金币充值协议" + } + }, { "path": "pages/generateVideo/index", "style": { diff --git a/src/pages/index/buyCoin.vue b/src/pages/index/buyCoin.vue index c31e377..ddd48de 100644 --- a/src/pages/index/buyCoin.vue +++ b/src/pages/index/buyCoin.vue @@ -11,7 +11,9 @@ 金币{{ item.num }}枚 ¥{{ item.money }} - 立刻购买 + + 立刻购买 + @@ -30,22 +32,22 @@ const orderList = ref([ function select(item) { active.value = item.num; } -//#endregion -------------- - -//#region - -//#endregion -------------- +const goPro = () => { + uni.navigateTo({ + url: "/pages/protocol/coin", + }); +}; diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 1af2289..b03d197 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -23,16 +23,22 @@ class="bottomBtn" open-type="getPhoneNumber" type="default" + id="getPhoneNumber" @getphonenumber="toCreate" > 开始制作我的数字分身 - + @@ -62,11 +68,10 @@ const pageClass = computed(() => { } }); //#region 勾选 -const checkboxValue1 = ref([]); -const checkboxList1 = ref([ +const checkboxValue = ref([]); +const checkboxList = ref([ { name: "同意智像相机用户使用协议", - disabled: false, }, ]); @@ -106,7 +111,7 @@ async function getphonenumber(e) { } async function toCreate(e) { - if (checkboxValue1.value[0]) { + if (checkboxValue.value[0]) { // await handleLogin(); await getphonenumber(e); } else { @@ -115,7 +120,7 @@ async function toCreate(e) { content: "同意慧图相机用户使用协议?", success: function (res) { if (res.confirm) { - checkboxList1.value[0].disabled = true; + checkboxValue.value[0] = true; // handleLogin(); getphonenumber(e); } else if (res.cancel) { diff --git a/src/pages/protocol/coin.vue b/src/pages/protocol/coin.vue new file mode 100644 index 0000000..4fac2e7 --- /dev/null +++ b/src/pages/protocol/coin.vue @@ -0,0 +1,257 @@ + + + + +