You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
17 KiB
1 lines
17 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?0fab","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?875e","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?da26","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?b33b","uni-app:///pages/user/agreement/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?810f","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/user/agreement/index.vue?f817"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sG;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAizB,CAAgB,i0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0Br0B;AACA,mB;;AAEA;AACA,MADA,kBACA;AACA;AACA,6EADA;AAEA,oBAFA;AAGA,0DAHA;AAIA,kCAJA;AAKA,cALA;AAMA,wBANA;;AAQA,GAVA;;AAYA,gBAZA;A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;AACA,gDADA;;AAGA,KA3FA,EAxFA,E;;;;;;;;;;;;;AC7BA;AAAA;AAAA;AAAA;AAAupC,CAAgB,0oCAAG,EAAC,C;;;;;;;;;;;ACA3qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/agreement/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/user/agreement/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=2bed99c2&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/agreement/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=2bed99c2&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n<!--pages/user/agreement/index.wxml-->\r\n<view>\r\n <view class=\"back-btn\" :style=\"'top:' + navTopHeight + 'rpx'\" @tap=\"backPage\">\r\n\t\t\t<image src=\"/static/images/back.png\" mode></image>\r\n\t</view>\r\n <view class=\"pay-box\" v-if=\"userInfo.nickname != '' && userInfo.isVip == 1\">\r\n <image src=\"https://download.cyjyyjy.com/pay1.png\" class=\"img1\"></image>\r\n <image src=\"https://download.cyjyyjy.com/pay2.png\" class=\"img2\"></image>\r\n </view>\r\n <view class=\"agreement-box\" v-else>\r\n <image src=\"https://download.cyjyyjy.com/agreement1.png\" class=\"img1\"></image>\r\n <image src=\"https://download.cyjyyjy.com/agreement2.png\" class=\"img2\"></image>\r\n <image src=\"https://download.cyjyyjy.com/agreement3.png\" class=\"img3\"></image>\r\n <!-- <image src=\"../../../images/agreement.png\" class=\"img\"></image> -->\r\n <view class=\"btn-box\" @tap=\"toPay\" v-if=\"userInfo.nickname\"></view>\r\n <block v-else>\r\n <button class=\"btn-box\" v-if=\"canIUseGetUserProfile\" @tap=\"getUserProfile\"></button>\r\n <button class=\"btn-box\" v-else-if=\"canIUse\" open-type=\"getUserInfo\" @getuserinfo=\"getUserInfo\"></button>\r\n <view v-else> 请使用1.4.4及以上版本基础库 </view>\r\n </block>\r\n </view>\r\n</view>\r\n</template>\r\n\r\n<script>\r\n// pages/user/agreement/index.js\r\nconst app = getApp();\r\n\r\nexport default {\r\n data() {\r\n return {\r\n navTopHeight: app.globalData.menuTop + app.globalData.navTopHeight + 10,\r\n userInfo: null,\r\n canIUse: uni.canIUse('button.open-type.getUserInfo'),\r\n canIUseGetUserProfile: false,\r\n code: \"\",\r\n hasUserInfo: false\r\n };\r\n },\r\n\r\n components: {},\r\n props: {},\r\n\r\n /**\r\n * 生命周期函数--监听页面加载\r\n */\r\n onLoad: function (options) {\r\n if (uni.getUserProfile) {\r\n this.setData({\r\n canIUseGetUserProfile: true\r\n });\r\n }\r\n\r\n uni.login({\r\n success: res => {\r\n // 发送 res.code 到后台换取 openId, sessionKey, unionId\r\n this.setData({\r\n code: res.code\r\n });\r\n }\r\n });\r\n let pages = getCurrentPages();\r\n app.http('get', 'userinfo').then(res => {\r\n if (res.data.success) {\r\n uni.setStorageSync('userInfo', res.data.data);\r\n this.setData({\r\n userInfo: res.data.data\r\n });\r\n }\r\n }).then(() => {\r\n if (pages[pages.length - 2]) {\r\n \r\n } else {\r\n if (this.userInfo.isVip) {\r\n setTimeout(() => {\r\n uni.reLaunch({\r\n url: '/pages/user/mine/index'\r\n });\r\n }, 2000);\r\n }\r\n }\r\n });\r\n },\r\n\r\n /**\r\n * 生命周期函数--监听页面初次渲染完成\r\n */\r\n onReady: function () {},\r\n onShow: function () {\r\n app.getInfo();\r\n },\r\n\r\n /**\r\n * 生命周期函数--监听页面隐藏\r\n */\r\n onHide: function () {},\r\n\r\n /**\r\n * 生命周期函数--监听页面卸载\r\n */\r\n onUnload: function () {},\r\n\r\n /**\r\n * 页面相关事件处理函数--监听用户下拉动作\r\n */\r\n onPullDownRefresh: function () {},\r\n\r\n /**\r\n * 页面上拉触底事件的处理函数\r\n */\r\n onReachBottom: function () {},\r\n\r\n /**\r\n * 用户点击右上角分享\r\n */\r\n onShareAppMessage: function () {},\r\n methods: {\r\n getUserProfile(e) {\r\n // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗\r\n uni.getUserProfile({\r\n desc: '展示用户信息',\r\n // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写\r\n success: response => {\r\n uni.showLoading({\r\n title: '登陆中...'\r\n });\r\n let data = {\r\n code: this.code,\r\n iv: response.iv,\r\n encryptedData: response.encryptedData,\r\n spread: 0,\r\n login_type: 0\r\n };\r\n app.http('POST', 'wxapp/auth', data).then(result => {\r\n if (result.data.success) {\r\n uni.hideLoading();\r\n uni.setStorageSync('token', 'Bearer ' + result.data.data.token);\r\n uni.setStorageSync('userInfo', result.data.data.user);\r\n uni.showModal({\r\n title: \"提示\",\r\n content: '登陆成功!点击确定按钮完善信息',\r\n success: res => {\r\n if (res.confirm) {\r\n if (result.data.data.user.isVip == false) {\r\n uni.navigateTo({\r\n url: '../personalData/index'\r\n });\r\n } else {\r\n setTimeout(() => {\r\n uni.reLaunch({\r\n url: '/pages/user/index'\r\n });\r\n }, 1000);\r\n }\r\n } else {\r\n if (result.data.data.user.isVip == false) {\r\n uni.navigateTo({\r\n url: '../personalData/index'\r\n });\r\n } else {\r\n setTimeout(() => {\r\n uni.reLaunch({\r\n url: '/pages/user/index'\r\n });\r\n }, 1000);\r\n }\r\n }\r\n }\r\n });\r\n } else {\r\n uni.showToast({\r\n title: result.data.msg,\r\n icon: 'none'\r\n });\r\n }\r\n });\r\n }\r\n });\r\n },\r\n\r\n getUserInfo(e) {\r\n // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息\r\n this.setData({\r\n userInfo: e.detail.userInfo,\r\n hasUserInfo: true\r\n });\r\n },\r\n\r\n toPay() {\r\n uni.navigateTo({\r\n url: '../personalData/index'\r\n });\r\n },\r\n\r\n backPage() {\r\n uni.navigateBack({\r\n delta: 1\r\n });\r\n },\r\n\r\n /**\r\n * 生命周期函数--监听页面显示\r\n */\r\n getUser() {\r\n this.setData({\r\n userInfo: uni.getStorageSync('userInfo')\r\n });\r\n }\r\n\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* pages/user/agreement/index.wxss */\r\n.agreement-box{\r\n width: 100%;\r\n position: relative;\r\n}\r\n.agreement-box image{\r\n width: 100%;\r\n display: block;\r\n}\r\n.agreement-box .img{\r\n height: 2848rpx;\r\n}\r\n.agreement-box .img1{\r\n height: 924rpx;\r\n}\r\n.agreement-box .img2{\r\n height: 834rpx;\r\n}\r\n.agreement-box .img3{\r\n height: 1090rpx;\r\n}\r\n\r\n.btn-box{\r\n width: 440rpx !important;\r\n height: 142rpx !important;\r\n padding: 0 !important;\r\n position: absolute;\r\n top: 658rpx;\r\n left: 50%;\r\n margin-left: -220rpx !important;\r\n background: none !important;\r\n}\r\n\r\n.pay-box{\r\n width: 100%;\r\n min-height: 100vh;\r\n}\r\n.pay-box image{\r\n width: 100%;\r\n display: block;\r\n}\r\n.pay-box .img1{\r\n height: 609rpx;\r\n}\r\n.pay-box .img2{\r\n height: 1235rpx;\r\n}\r\n</style>","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1634867348022\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |