From 97ff3915c0941d33bf78708fe1cb42c71b6199d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=93=BC=E5=94=A7L?= Date: Wed, 6 Dec 2023 16:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E5=AE=A2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/z-navigation/z-navigation.vue | 30 +- config/baseUrl.js | 4 +- config/html5Utils.js | 14 +- config/requestConfig.js | 9 +- pages/bookShop/commodityDetail.vue | 22 +- pages/library/library.vue | 1 + pages/peanut/home.vue | 748 +++++++++++++---------- pages/peanut/mine.vue | 180 +++--- static/播放 (1).png | Bin 3538 -> 0 bytes static/暂停 (1).png | Bin 3262 -> 0 bytes 10 files changed, 603 insertions(+), 405 deletions(-) delete mode 100644 static/播放 (1).png delete mode 100644 static/暂停 (1).png diff --git a/components/z-navigation/z-navigation.vue b/components/z-navigation/z-navigation.vue index fb51b66..7e0834e 100644 --- a/components/z-navigation/z-navigation.vue +++ b/components/z-navigation/z-navigation.vue @@ -2,7 +2,7 @@ - + @@ -49,7 +49,7 @@ iconPath: 'static/tab/icon2_n.png', selectedIconPath: 'static/tab/icon2_y.png', text: '我的订单' - + }, { pagePath: 'pages/peanut/mine', @@ -69,11 +69,23 @@ }, //方法 methods: { - onPageJump(url) { - if (this.path !== url) { - uni.switchTab({ - url: '/' + url - }); + onPageJump(url,num) { + if (uni.getStorageSync("anonymous") == '0000000000' && (num == 2 || num == 3)) { + uni.showToast({ + icon: 'none', + title: '请先登录' + }) + // setTimeout(() => { + // uni.navigateTo({ + // url: "/pages/user/login" + // }); + // }, 1000) + } else { + if (this.path !== url) { + uni.switchTab({ + url: '/' + url + }); + } } }, } @@ -159,10 +171,10 @@ } } - + .footer_item_text_active { color: #079307; font-weight: bold; } - + \ No newline at end of file diff --git a/config/baseUrl.js b/config/baseUrl.js index 401df91..21d482f 100644 --- a/config/baseUrl.js +++ b/config/baseUrl.js @@ -6,10 +6,10 @@ if (process.env.NODE_ENV === 'development') { // socketUrl = "ws://localhost:6001/"; // baseUrl = "https://twin-ui.com/demo/"; // baseUrl = "http://59.110.212.44:9200/pb/"; - // baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境 + baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境 // baseUrl = "https://api.nuttyreading.com/"; // 线上正式 // baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑 - baseUrl = "http://192.168.110.110:9200/pb/"; + // baseUrl = "http://192.168.110.110:9200/pb/"; // baseUrl = "http://192.168.110.38:9200/pb/"; // 吴春磊笔记本1 // socketUrl = "ws://8.129.186.35:6001/"; } else if (process.env.NODE_ENV === 'production') { diff --git a/config/html5Utils.js b/config/html5Utils.js index b82e439..35463d2 100644 --- a/config/html5Utils.js +++ b/config/html5Utils.js @@ -240,13 +240,13 @@ export const h5Login = function(type = "judge", callback) { appMutual("jumpLogin", null, function() { if (type == "force") { // 没登录跳转回登录页 - uni.showToast({ - icon: 'none', - title: '用户信息失效,请重新登陆。' - }) - uni.navigateTo({ - url: "/pages/user/login" - }); + // uni.showToast({ + // icon: 'none', + // title: '用户信息失效,请重新登陆。' + // }) + // uni.navigateTo({ + // url: "/pages/user/login" + // }); }else{ uni.showModal({ title:"提示", diff --git a/config/requestConfig.js b/config/requestConfig.js index 5d19a7d..715bd98 100644 --- a/config/requestConfig.js +++ b/config/requestConfig.js @@ -125,9 +125,11 @@ $http.requestStart = function(options) { let storeUserInfo = store.state.userInfo; if (!storeUserInfo.token) { // nvue页面读取不到vuex里面数据,将取缓存 storeUserInfo = uni.getStorageSync("userInfo"); + uni.setStorageSync('anonymous', '0000000000'); } if (storeUserInfo.token) { options.header['token'] = storeUserInfo.token; + uni.setStorageSync('anonymous', storeUserInfo.token); }; return options; } @@ -161,8 +163,9 @@ $http.dataFactory = async function(res) { // 返回正确的结果(then接受数据) return Promise.resolve(httpData); } else if (httpData.code == "401") { + console.log(uni.getStorageSync("anonymous")) // token失效 - if (uni.getStorageSync('guidePages') == 2) { + if (uni.getStorageSync('guidePages') == 2 && uni.getStorageSync("anonymous") != '0000000000') { uni.showToast({ title: '登录失效,请重新登录', icon: 'none' @@ -295,7 +298,7 @@ $http.dataFactory = async function(res) { }); } else { //其他错误提示 console.log(httpData.info || httpData.msg) - if (res.isPrompt && res.data.loadAnimate != 'none') { + if (res.isPrompt && res.data.loadAnimate != 'none') { uni.showToast({ title: httpData.info || httpData.msg, icon: "none", @@ -334,4 +337,4 @@ $http.requestError = function(e) { // }); } } -export default $http; +export default $http; \ No newline at end of file diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue index bca8187..1b4c9c5 100644 --- a/pages/bookShop/commodityDetail.vue +++ b/pages/bookShop/commodityDetail.vue @@ -110,7 +110,7 @@ - + @@ -225,7 +225,7 @@ options: [{ icon: 'cart', text: '购物车' - }], + }], buttonGroup: [{ text: '加入购物车', backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)', @@ -448,8 +448,18 @@ url: '../peanut/shopping' }); }, + // 关联商品点击按钮组件 buttonClickLink(e) { + // 游客跳转 + if (uni.getStorageSync("anonymous") == '0000000000') { + uni.showToast({ + icon: 'none', + title: '请先登录' + }) + return + } + console.log('点击的是关联商品的组件') if (e.index == 0) { // 点击的是加入购物车 @@ -484,6 +494,14 @@ }, // 点击按钮组间 buttonClick(e) { + // 游客跳转 + if (uni.getStorageSync("anonymous") == '0000000000') { + uni.showToast({ + icon: 'none', + title: '请先登录' + }) + return + } // console.log(e) if (e.index == 0) { // 点击的是加入购物车 diff --git a/pages/library/library.vue b/pages/library/library.vue index 2cbe13f..1c8568c 100644 --- a/pages/library/library.vue +++ b/pages/library/library.vue @@ -67,6 +67,7 @@ + diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue index e7bbc91..fbb8c78 100644 --- a/pages/peanut/home.vue +++ b/pages/peanut/home.vue @@ -3,17 +3,17 @@ - - - - - - - - + + + + + + + + -
- +
+ 经穴检索
-
+
书名检索
- + - + - - - - - - - + + + + + + + - - - - + + + + - - + + - - - + + + - + - - - - + + - - - - - - {{item.productName}} + + + + + {{item.productName}} + - + + --> - - + + - {{item.labelName}} + {{item.labelName}} - - - - - - - - {{item.productName}} - - - ¥{{item.activityPrice}} - ¥{{item.price}} - 已售:{{item.sumSales}} 件 + + + + + + + + {{item.productName}} + + + ¥{{item.activityPrice}} + ¥{{item.price}} + 已售:{{item.sumSales}} 件 + + - - - - - - 努力加载中 + + + + 努力加载中 + + + + + - - - - - - - + + + @@ -268,7 +271,7 @@ - + @@ -278,23 +281,24 @@ import repciptData from '@/static/json/repcipt.json' import $http from '@/config/requestConfig.js'; import { - mapState,mapMutations + mapState, + mapMutations } from 'vuex'; export default { data() { return { - myList:[], - showEbook:false, // 显示电子书相关 + myList: [], + showEbook: false, // 显示电子书相关 transaction: { // 成功回调 - - }, - tabsNumber : null, - scrollLeft:0, - maxTimes:1, // 轮询最大次数 - ComplateRequestInterval:null, // 轮询定时器 - checking:false, // 正在检测 - ComplateRequestArr:[], - iapChannel:null, + + }, + tabsNumber: null, + scrollLeft: 0, + maxTimes: 1, // 轮询最大次数 + ComplateRequestInterval: null, // 轮询定时器 + checking: false, // 正在检测 + ComplateRequestArr: [], + iapChannel: null, scrollTop: 0, list3: [ // '../../static/icon/home_ban_1.jpg', @@ -306,23 +310,24 @@ limiTist: [], jingList: [], seckillList: [], - offSaleList:[], // 折扣列表 + offSaleList: [], // 折扣列表 goodsList: [], bgiStyle: { background: '#fff' }, - newBookList:[], + newBookList: [], iconStyle: { fontSize: '40rpx', fontWeight: 'bold', color: '#54a966', }, - tagList:[] ,// 推荐标签列表 - pageSize:10, - page:1, - totalPage:0, - tjProList:[], - status : 3 + tagList: [], // 推荐标签列表 + pageSize: 10, + page: 1, + totalPage: 0, + tjProList: [], + status: 3, + anonymous: false, //游客 }; }, onPageScroll(e) { @@ -332,7 +337,7 @@ onLoad(e) { // 隐藏原生的tabbar uni.hideTabBar(); - // this.requestIapOrder() + // this.requestIapOrder() }, onHide() { this.page = 1 @@ -346,8 +351,9 @@ // 隐藏原生的tabbar this.tjProList = [] uni.hideTabBar(); - this.getData(); - this.getTags() + this.getData(); + this.getTags(); + this.anonyMo(); }, // 页面加载完毕 onReady() { @@ -361,19 +367,19 @@ this.getTags() // this.requestIapOrder() uni.stopPullDownRefresh() - + }, onReachBottom() { this.loadingNow = true console.log('到底了') - if(this.page+1 <= this.totalPage){ + if (this.page + 1 <= this.totalPage) { this.status = 0 this.page++ this.getJtData() - }else{ + } else { this.status = 1 } - + }, filters: { @@ -392,165 +398,175 @@ computed: { ...mapState(['userInfo']), }, - components:{ + components: { musicPlay }, //方法 methods: { ...mapMutations(['setUserInfo']), // ...mapMutations(['setLoadingShow']), + // 游客模式 + anonyMo() { + if (uni.getStorageSync("anonymous") == '0000000000') { + this.anonymous = true + } else { + this.anonymous = false + } + }, // 获取商品标签 - getTags() { - this.loadingNow = false - this.$http + getTags() { + this.loadingNow = false + this.$http .post('book/label/getLabels') .then(res => { - console.log(res,'标签列表') - if(res.code == 0 && res.result.labels.length > 0){ + console.log(res, '标签列表') + if (res.code == 0 && res.result.labels.length > 0) { this.tagList = res.result.labels this.tabsid = this.tagList[0].splId this.getJtData() - } + } }).catch(e => { - console.log(e,'e') + console.log(e, 'e') }); - }, - tabsChange(item){ - this.tjProList = [] - this.tabsid = item.splId - this.page = 1 - // 获取推荐数据 - this.getJtData() }, - getJtData(){ + tabsChange(item) { + this.tjProList = [] + this.tabsid = item.splId + this.page = 1 + // 获取推荐数据 + this.getJtData() + }, + getJtData() { this.$http - // .post('book/label/list',{ - .post('book/label/getProductsByLabel',{ - 'splId': this.tabsid, - 'limit': this.pageSize, - 'page': this.page - }) - .then(res => { - - if(res.code == 0 && res.page.records.length > 0){ - this.tjProList = this.tjProList.concat(res.page.records) - this.totalPage = res.page.pages - this.status = 3 - console.log(this.tjProList,'按标签检索结果') - }else{ - this.tjProList = [] - this.totalPage = 0 - } - }).catch(e => { - console.log(e,'标签检索报错') - }); + // .post('book/label/list',{ + .post('book/label/getProductsByLabel', { + 'splId': this.tabsid, + 'limit': this.pageSize, + 'page': this.page + }) + .then(res => { + + if (res.code == 0 && res.page.records.length > 0) { + this.tjProList = this.tjProList.concat(res.page.records) + this.totalPage = res.page.pages + this.status = 3 + console.log(this.tjProList, '按标签检索结果') + } else { + this.tjProList = [] + this.totalPage = 0 + } + }).catch(e => { + console.log(e, '标签检索报错') + }); }, // 获取折扣图书 - getOffSale(){ + getOffSale() { this.$http .post('book/shopproduct/listactivityprice?limit=10&page=1') .then(res => { - console.log(res,'折扣') - if(res.code == 0 && res.page.list.length > 0){ + console.log(res, '折扣') + if (res.code == 0 && res.page.list.length > 0) { this.offSaleList = res.page.list this.tabsNumber = 0 - } - + } + }).catch(e => { - console.log(e,'e') + console.log(e, 'e') }); }, // 新书上市 - getNewBook(){ + getNewBook() { this.$http - .post('book/shopproduct/getNewBook',{ + .post('book/shopproduct/getNewBook', { 'limit': 4, - 'page':1 + 'page': 1 }) .then(res => { - console.log(res,'xinshu') - this.newBookList = res.page.list + console.log(res, 'xinshu') + this.newBookList = res.page.list }).catch(e => { - console.log(e,'新书上市报错') + console.log(e, '新书上市报错') }); }, // 检测未完成订单 - requestIapOrder(){ + requestIapOrder() { console.log('检测支付环境...') plus.payment.getChannels((channels) => { console.log(channels, 'channels') //this.setUserInfo({channelList:channels}); // 将支付通道保存到本地 - for (var i in channels) { + for (var i in channels) { // 判断是否苹果支付1 if (channels[i].id === 'appleiap') { - this.iapChannel = channels[i] + this.iapChannel = channels[i] // console.log(this.userInfo.restoreFlag,'this.userInfo.restoreFlag') - if(this.userInfo.restoreFlag){ // 如果存在异常回调订单 + if (this.userInfo.restoreFlag) { // 如果存在异常回调订单 this.restoreComplateRequest() } } - } + } }) }, - // 查询未关闭订单 - restoreComplateRequest(){ + // 查询未关闭订单 + restoreComplateRequest() { let that = this console.log('检测未完成订单') - console.log(this.iapChannel,'this.iapChannel') + console.log(this.iapChannel, 'this.iapChannel') this.iapChannel.restoreComplateRequest({ manualFinishTransaction: true - }, function(results) { - if(!that.checking){ - that.checking = true - // console.log(that.checking) - // results 格式为数组存放恢复的IAP商品交易信息对象 IAPTransaction,通用需将返回的支付凭证传给后端进行二次认证 + }, function(results) { + if (!that.checking) { + that.checking = true + // console.log(that.checking) + // results 格式为数组存放恢复的IAP商品交易信息对象 IAPTransaction,通用需将返回的支付凭证传给后端进行二次认证 that.ComplateRequestArr = results - console.log(that.ComplateRequestArr,'未完成订单数组') - if(results && results.length>0){ - - results.map((item,index)=>{ - // "0"为正在支付;"1"为支付成功;"2"为支付失败;"3"为支付已恢复。 - if(item.transactionState == '1'){ - // 已经支付,但是没有走逻辑的内购订单 - that.iapCheck(item,index) - }else{ - // 其他状态的内购订单 - that.finishTransaction(item) - - } - }) + console.log(that.ComplateRequestArr, '未完成订单数组') + if (results && results.length > 0) { + + results.map((item, index) => { + // "0"为正在支付;"1"为支付成功;"2"为支付失败;"3"为支付已恢复。 + if (item.transactionState == '1') { + // 已经支付,但是没有走逻辑的内购订单 + that.iapCheck(item, index) + } else { + // 其他状态的内购订单 + that.finishTransaction(item) + + } + }) } - } - }); - - + } + }); + + }, // 关闭交易订单 - finishTransaction(trans,index){ + finishTransaction(trans, index) { this.iapChannel.finishTransaction(trans, (success) => { - console.log('关闭订单成功',index); - - if(index == this.ComplateRequestArr.length-1){ // 最后一个支付订单 - this.setUserInfo({restoreFlag:false}); + console.log('关闭订单成功', index); + + if (index == this.ComplateRequestArr.length - 1) { // 最后一个支付订单 + this.setUserInfo({ + restoreFlag: false + }); // console.log(this.userInfo.restoreFlag,'this.ComplateRequestArr.length+++') } - - }, (fail) => { - console.log('关闭订单失败'); - }); + + }, (fail) => { + console.log('关闭订单失败'); + }); }, - iapCheck(result,index) { - const that = this + iapCheck(result, index) { + const that = this console.log('进入后台验证') let data = { transactionId: result.transactionIdentifier, // 支付交易id - customerOid: that.userInfo.id, + customerOid: that.userInfo.id, productId: result.payment.productid, // 产品id orderId: result.payment.username, // 系统订单号 - receiptData: result.transactionReceipt ,// 苹果返回收据 - loadAnimate:'none', // 请求加载动画 - } - console.log(data,'data') + receiptData: result.transactionReceipt, // 苹果返回收据 + loadAnimate: 'none', // 请求加载动画 + } + console.log(data, 'data') $http.request({ url: "/Ipa/veri", method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 @@ -559,54 +575,54 @@ 'Content-Type': 'application/json' }, }).then(res => { - console.log(JSON.stringify(res)) + console.log(JSON.stringify(res)) console.log(res.code) - if(res.code == 0){ + if (res.code == 0) { // uni.hideLoading() - console.log('充值订单已处理,请留意账户金额变动....') - // 服务器验证票据有效后在客户端关闭订单 - that.finishTransaction(result,index) - }else if(res.code == 200){ // 重复验证订单 + console.log('充值订单已处理,请留意账户金额变动....') + // 服务器验证票据有效后在客户端关闭订单 + that.finishTransaction(result, index) + } else if (res.code == 200) { // 重复验证订单 console.log('重复验证....') - that.finishTransaction(result,index) + that.finishTransaction(result, index) } - }).catch(e => { + }).catch(e => { console.log('支付验证失败,进入轮询程序...') - that.getIapPayResult(result,index) - }) + that.getIapPayResult(result, index) + }) console.log('--------------') }, - + // 轮询验证支付结果 - getIapPayResult(result,index){ + getIapPayResult(result, index) { // let interval = null - this.ComplateRequestInterval = setTimeout(() => { - if(this.maxTimes <= 3){ - this.iapCheck(result,index) - console.log('执行1', this.maxTimes,this.ComplateRequestInterval) - this.maxTimes += 1 - }else{ + this.ComplateRequestInterval = setTimeout(() => { + if (this.maxTimes <= 3) { + this.iapCheck(result, index) + console.log('执行1', this.maxTimes, this.ComplateRequestInterval) + this.maxTimes += 1 + } else { this.maxTimes = 0 - console.log('停止轮询', this.maxTimes,this.ComplateRequestInterval, this.maxTimes) + console.log('停止轮询', this.maxTimes, this.ComplateRequestInterval, this.maxTimes) this.checking = false - this.saveErrorIapOrder(result,index) + this.saveErrorIapOrder(result, index) clearTimeout(this.ComplateRequestInterval) - + } - },10000) - + }, 10000) + }, // 轮询失败接口 - saveErrorIapOrder(result,index){ + saveErrorIapOrder(result, index) { console.log('提交到充值问题单里面...') let data = { - transactionId : result.transactionIdentifier, + transactionId: result.transactionIdentifier, failureflag: 1, - orderId:result.payment.username, - receiptData:result.transactionReceipt, - productId:result.payment.productid, - customerOid:this.userInfo.id - } + orderId: result.payment.username, + receiptData: result.transactionReceipt, + productId: result.payment.productid, + customerOid: this.userInfo.id + } $http.request({ url: "Ipa/failure", method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 @@ -615,17 +631,17 @@ 'Content-Type': 'application/json' }, }).then(res => { - console.log(JSON.stringify(res)) - if(res.code == 200){ + console.log(JSON.stringify(res)) + if (res.code == 200) { console.log('提交成功,关闭订单') - this.finishTransaction(result,index) + this.finishTransaction(result, index) } - }).catch(e => { - console.log(e) - if(e.statusCode == 0){ // 重复提交,直接关闭订单 - this.finishTransaction(result,index) + }).catch(e => { + console.log(e) + if (e.statusCode == 0) { // 重复提交,直接关闭订单 + this.finishTransaction(result, index) } - }) + }) }, // 获取列表数据 getData() { @@ -694,7 +710,7 @@ url: '../bookShop/commodityDetail?id=' + id }); }, - + // 列表跳页 onShopMore(e) { uni.navigateTo({ @@ -709,7 +725,13 @@ }); }, - + // 游客跳转 + onYouAlert() { + uni.showToast({ + icon: 'none', + title: '请先登录' + }) + }, }, @@ -717,46 +739,115 @@ + \ No newline at end of file diff --git a/pages/peanut/mine.vue b/pages/peanut/mine.vue index 8a330e0..10f8899 100644 --- a/pages/peanut/mine.vue +++ b/pages/peanut/mine.vue @@ -5,12 +5,12 @@ - + {{userMes.nickname}} - 未设置 + 未登录 - ({{userMes.tel}}) + ({{userMes.tel}}) - + 我的账户 > @@ -55,54 +55,64 @@ - - 我的订单 - - - - 我的听书 - - - 听书设置 - - - 我的评价 - - - 购物车 - - - - - 修改个人资料 - - - 地址管理 - - - - - - 分享App + --> + + + 分享App + + + 关于我们 + + + 退出登录 + + + 注销帐号 + - - 关于我们 + + + + 分享App + + + 关于我们 + - - 退出登录 - - - 注销帐号 - - - + + @@ -123,26 +134,28 @@ import $http from '@/config/requestConfig.js'; // import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare'; import { - mapState,mapMutations + mapState, + mapMutations } from 'vuex'; export default { data() { return { - showEbook:false, // 显示电子书相关 + showEbook: false, // 显示电子书相关 userMes: {}, signShow: false, signContent: '是否要退出登录?', - playData:{}, - isAndorid:true, - platform : null, // 设备系统 + playData: {}, + isAndorid: true, + platform: null, // 设备系统 + anonymous: false, //游客 }; }, //第一次加载 onLoad(e) { // 隐藏原生的tabbar - uni.hideTabBar(); + uni.hideTabBar(); // #ifdef APP-PLUS - this.getOS() + this.getOS() this.platform = uni.getSystemInfoSync().platform // console.log('操纵系统',this.platform) // #endif @@ -155,27 +168,28 @@ // 隐藏原生的tabbar uni.hideTabBar(); this.getData(); + this.anonyMo(); }, - components: { + components: { musicPlay }, //方法 methods: { ...mapMutations(['setUserInfo']), // 获得操作系统 - getOS(){ - let oprateOs = '' + getOS() { + let oprateOs = '' oprateOs = uni.getSystemInfoSync().platform // console.log(oprateOs) - if(oprateOs == 'android'){ + if (oprateOs == 'android') { this.isAndorid = true - }else{ + } else { this.isAndorid = false } }, - haveSelected(data){ - console.log(data,' 选择的是') - if(data.index == 0){ + haveSelected(data) { + console.log(data, ' 选择的是') + if (data.index == 0) { // 分享到好友 uni.share({ provider: "weixin", @@ -185,14 +199,14 @@ title: "疯子读书", summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!", imageUrl: "static/fengziIcon.jpg", - success: function (res) { + success: function(res) { console.log("success:" + JSON.stringify(res)); }, - fail: function (err) { + fail: function(err) { console.log("fail:" + JSON.stringify(err)); } }); - }else if(data.index == 1){ + } else if (data.index == 1) { // 分享到朋友圈 uni.share({ provider: "weixin", @@ -202,20 +216,32 @@ title: "疯子读书", summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!", imageUrl: "static/fengziIcon.jpg", - success: function (res) { + success: function(res) { console.log("success:" + JSON.stringify(res)); }, - fail: function (err) { + fail: function(err) { console.log("fail:" + JSON.stringify(err)); } }); } }, - switchTab(url){ + switchTab(url) { uni.switchTab({ url: url }); }, + + // 游客模式 + anonyMo() { + if (uni.getStorageSync("anonymous") == '0000000000') { + this.anonymous = true + } else { + this.anonymous = false + } + + }, + + getData() { // 获取个人信息 if (this.userInfo.id != undefined) { @@ -232,25 +258,25 @@ } }, - + // 新写分享 - newOnShare(){ + newOnShare() { this.$refs.share.open() - }, - + }, + // 注销账户 - logout(){ + logout() { let that = this uni.showModal({ title: '提示', content: '确定要注销当前账户吗?', - success: function (res) { + success: function(res) { if (res.confirm) { uni.showModal({ title: '提示', - showCancel:false, + showCancel: false, content: `注销申请已提交成功,请联系客服进行后续操作:022-24142321`, - success: function (res1) { + success: function(res1) { if (res1.confirm) { that.signOut() } @@ -270,7 +296,7 @@ }) }, onPageJump(url) { - console.log(url,'url') + console.log(url, 'url') uni.navigateTo({ url: url }); @@ -280,7 +306,9 @@ // 退出登录 signOut() { this.signShow = false - this.setUserInfo({'token': null}) + this.setUserInfo({ + 'token': null + }) uni.reLaunch({ url: '../user/login' }); @@ -447,4 +475,4 @@ border-bottom: 0; } } - + \ No newline at end of file diff --git a/static/播放 (1).png b/static/播放 (1).png deleted file mode 100644 index e5166362d32145339aa3885e948cd67e66cb8e01..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3538 zcmXX}c{tSF`#zr;%e<&&WZxPidxp0~V_zDCND?7SlC35!W8a3*Ac|y(DL<0zB}ks-ks!ltxs03VJ+ z5C{UeR3sG8GzTdGE^QcmF}xRU16ZCMedR7qt;@^Hd*t^=Pz&er7Wiy9(Asx~k!D`) zk$-C7htJ~0Z&VF^4*t+stCz>|XH85YUz-n%LVy=?jR0PAW@4B|k=U_!5WK zI!&W=d}D>q4m#==_YSpIlsrMM1OglcjCpCFWx%om(8fk@*|*eH70xRH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QRg;1>1tl?@?1}i5!DrnLe-Gd)~Bv>Htgo(uJmGt`Dm|Nd|m;ZHJATJn3 zD*F&BW>RXarNj5}1ad`1mUodt4)m0|w-K~GcoCdCz_BzY9y{j7)$;A#e>lvZCf`TB z%V~ZOCU9>D7d-sdN|Jcyba9>}^`%e}wgoodC;6mma&(H=e8q z>#U{xsx<8xEK>y;SoHImQz{(}$d)(kQBw~5`l5#)UQyjAlWQ&p#YK>}+&1^Yn`I!~;3y{?Y-_%VPPJJ4Lt>5AyRd_0R?kIt~2X7C4 wvID6)XEf+`(Bpfg4s0VV=a*>vU}FS)e9r4@*(X&2_9qRP8d>7Y3|*uC2S=!THvj+t diff --git a/static/暂停 (1).png b/static/暂停 (1).png deleted file mode 100644 index c83878fcedae2263183540b16de4ac804e5fa554..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3262 zcmYLMc{mi>|2{Jenv3B!*^!oJ64++a?mdrD4GqI zMHOLmgU91uAF-c^{CL-URmdXvPS~!7E;A?d+K}|##Kvac%-CKpYF~2zK8wAwk;sjp z5{+gdUjc73l*5&B9vTj~oMRx$_uP}g+DP^BEWL;=b=+jTT(RLVW$;D1ARy9TGusK` z?j#a7!Syha!huSj9}?I^7SoR;naqcybqoSY@9RS3(KRv!JK)tE_4j?$)#Gt#nQvd?q`>Oteb

=^f7cYl?~Gn+EGsC>sO^b zugL9~32;i;Au;nd-ho~WaqyS8TP*1upo%KN?NOyN8F)*l>XC7%zQxS2C|g)P$@d6w zc8tte*P4U@OHso4pwp*iKni}kDBUrZl;$E>!qCgn7Nf(lTa~{hz}*JVw=N;=i6ly& zc6(|6f*%J;dvvXzc^iHq>;^irZ0v?ore;7^G;cuLFqA03&;>#DJAPAq`(kLN_yXUD zEMzqY>OnXZ=zEa|TuG)lOKoP;c<-=0FeLe;F?TfmzcgOmQ>9Tn6|VaO9?3&4ATuFf z)itm8K_uI!kV}D$g#s%129j>7YOhLLvUjmv{Ex>6Hpq{bkQjoX<4W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