From ffa17b763083d50128580eaea0af9e23f899d832 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Wed, 15 Mar 2023 13:17:16 +0800
Subject: [PATCH] 0315
---
.hbuilderx/launch.json | 46 +--
manifest.json | 2 +-
pages/peanut/opeVip.vue | 181 +++++++++++-
pages/peanut/reCharge.vue | 605 +++++++++++++++++++++++++-------------
4 files changed, 608 insertions(+), 226 deletions(-)
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 4bbcf3c..f3a5ba7 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -1,24 +1,26 @@
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
- // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
- "version": "0.0",
- "configurations": [{
- "app-plus" :
- {
- "launchtype" : "local"
- },
- "default" :
- {
- "launchtype" : "local"
- },
- "h5" :
- {
- "launchtype" : "local"
- },
- "mp-weixin" :
- {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
- }
+{
+ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version" : "0.0",
+ "configurations" : [
+ {
+ "app-plus" : {
+ "launchtype" : "local"
+ },
+ "default" : {
+ "launchtype" : "local"
+ },
+ "h5" : {
+ "launchtype" : "local"
+ },
+ "mp-weixin" : {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ },
+ {
+ "playground" : "custom",
+ "type" : "uni-app:app-ios"
+ }
]
}
diff --git a/manifest.json b/manifest.json
index 8a545bb..0f610ae 100644
--- a/manifest.json
+++ b/manifest.json
@@ -85,7 +85,7 @@
}
},
"splashscreen" : {
- "iosStyle" : "storyboard",
+ "iosStyle" : "common",
"androidStyle" : "default",
"useOriginalMsgbox" : true
},
diff --git a/pages/peanut/opeVip.vue b/pages/peanut/opeVip.vue
index 06dbccd..414317a 100644
--- a/pages/peanut/opeVip.vue
+++ b/pages/peanut/opeVip.vue
@@ -6,14 +6,14 @@
-
+
疯子读书会员
VIPFENGZIDUSHU
加入会员立项4项特权
-
+
@@ -75,11 +75,27 @@
- * 我已阅读并同意《会员服务协议》
+
+
+
+
+
+
+
+ * 我已阅读并同意《会员服务协议》
立即开通会员
+
+
+
+ 会员服务协议
+
+
+
+
+
@@ -95,6 +111,16 @@
export default {
data() {
return {
+ xieyiShow : false,
+ xieyi:{
+ title:'',
+ content:''
+ },
+ argee:[
+ {value:false,id:'1'}
+
+ ] ,// 同意权限
+ radioValue:'',
stepsVc: {},
vcList: [],
userMes:{},
@@ -135,7 +161,29 @@
},
//方法
methods: {
+ showXieyi(){
+ this.$http
+ .get(`sys/agreement/list?key=member`)
+ .then(res => {
+ this.xieyi = res.page.list[0]
+ this.xieyiShow = true
+ })
+
+ },
+ radioCheck (index) {
+ this.argee.forEach((item =>{
+ item.isCheck = false
+ }))
+ if(this.radioValue==this.argee[index].id) {
+ this.radioValue =null
+ }else {
+ this.radioValue = this.argee[index].id
+ }
+ // console.log(this.radioValue)
+ },
goPoinBuy(){
+ if(this.radioValue == '1'){
+
if(this.stepsVc.money > this.userMes.peanutCoin){
uni.showToast({
title:'疯币不足,请充值',
@@ -146,6 +194,13 @@
}else{
this.kaiVip()
}
+ }else{
+ uni.showToast({
+ title:'请勾选服务协议',
+ icon:'error'
+ })
+ return false
+ }
},
// 充值疯币
buPoint() {
@@ -290,6 +345,115 @@