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
16 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?730d","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?dbec","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?d5d6","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?584b","uni-app:///pages/user/agreement/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?9ce4","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/agreement/index.vue?06ec"],"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;AACmN;AACnN,gBAAgB,iNAAU;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;AAAk1B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0Bt2B;AACA,mB;;AAEA;AACA,MADA,kBACA;AACA;AACA,6EADA;AAEA,oBAFA;AAGA,0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8EA;AACA;AACA,gBADA;;AAGA,KAlFA;;AAoFA;;;AAGA,WAvFA,qBAuFA;AACA;AACA,gDADA;;AAGA,KA3FA,EAxFA,E;;;;;;;;;;;;;AC7BA;AAAA;AAAA;AAAA;AAAqsC,CAAgB,gmCAAG,EAAC,C;;;;;;;;;;;ACAztC;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 \"!../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n<!--pages/user/agreement/index.wxml-->\n<view>\n <view class=\"back-btn\" :style=\"'top:' + navTopHeight + 'rpx'\" @tap=\"backPage\">\n\t\t\t<image src=\"/static/images/back.png\" mode></image>\n\t</view>\n <view class=\"pay-box\" v-if=\"userInfo.nickname != '' && userInfo.isVip == 1\">\n <image src=\"https://download.cyjyyjy.com/pay1.png\" class=\"img1\"></image>\n <image src=\"https://download.cyjyyjy.com/pay2.png\" class=\"img2\"></image>\n </view>\n <view class=\"agreement-box\" v-else>\n <image src=\"https://download.cyjyyjy.com/agreement1.png\" class=\"img1\"></image>\n <image src=\"https://download.cyjyyjy.com/agreement2.png\" class=\"img2\"></image>\n <image src=\"https://download.cyjyyjy.com/agreement3.png\" class=\"img3\"></image>\n <!-- <image src=\"../../../images/agreement.png\" class=\"img\"></image> -->\n <view class=\"btn-box\" @tap=\"toPay\" v-if=\"userInfo.nickname\"></view>\n <block v-else>\n <button class=\"btn-box\" v-if=\"canIUseGetUserProfile\" @tap=\"getUserProfile\"></button>\n <button class=\"btn-box\" v-else-if=\"canIUse\" open-type=\"getUserInfo\" @getuserinfo=\"getUserInfo\"></button>\n <view v-else> 请使用1.4.4及以上版本基础库 </view>\n </block>\n </view>\n</view>\n</template>\n\n<script>\n// pages/user/agreement/index.js\nconst app = getApp();\n\nexport default {\n data() {\n return {\n navTopHeight: app.globalData.menuTop + app.globalData.navTopHeight + 10,\n userInfo: null,\n canIUse: uni.canIUse('button.open-type.getUserInfo'),\n canIUseGetUserProfile: false,\n code: \"\",\n hasUserInfo: false\n };\n },\n\n components: {},\n props: {},\n\n /**\n * 生命周期函数--监听页面加载\n */\n onLoad: function (options) {\n if (uni.getUserProfile) {\n this.setData({\n canIUseGetUserProfile: true\n });\n }\n\n uni.login({\n success: res => {\n // 发送 res.code 到后台换取 openId, sessionKey, unionId\n this.setData({\n code: res.code\n });\n }\n });\n let pages = getCurrentPages();\n app.http('get', 'userinfo').then(res => {\n if (res.data.success) {\n uni.setStorageSync('userInfo', res.data.data);\n this.setData({\n userInfo: res.data.data\n });\n }\n }).then(() => {\n if (pages[pages.length - 2]) {\n \n } else {\n if (this.userInfo.isVip) {\n setTimeout(() => {\n uni.reLaunch({\n url: '/pages/user/mine/index'\n });\n }, 2000);\n }\n }\n });\n },\n\n /**\n * 生命周期函数--监听页面初次渲染完成\n */\n onReady: function () {},\n onShow: function () {\n app.getInfo();\n },\n\n /**\n * 生命周期函数--监听页面隐藏\n */\n onHide: function () {},\n\n /**\n * 生命周期函数--监听页面卸载\n */\n onUnload: function () {},\n\n /**\n * 页面相关事件处理函数--监听用户下拉动作\n */\n onPullDownRefresh: function () {},\n\n /**\n * 页面上拉触底事件的处理函数\n */\n onReachBottom: function () {},\n\n /**\n * 用户点击右上角分享\n */\n onShareAppMessage: function () {},\n methods: {\n getUserProfile(e) {\n // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗\n uni.getUserProfile({\n desc: '展示用户信息',\n // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写\n success: response => {\n uni.showLoading({\n title: '登陆中...'\n });\n let data = {\n code: this.code,\n iv: response.iv,\n encryptedData: response.encryptedData,\n spread: 0,\n login_type: 0\n };\n app.http('POST', 'wxapp/auth', data).then(result => {\n if (result.data.success) {\n uni.hideLoading();\n uni.setStorageSync('token', 'Bearer ' + result.data.data.token);\n uni.setStorageSync('userInfo', result.data.data.user);\n uni.showModal({\n title: \"提示\",\n content: '登陆成功!点击确定按钮完善信息',\n success: res => {\n if (res.confirm) {\n if (result.data.data.user.isVip == false) {\n uni.navigateTo({\n url: '../personalData/index'\n });\n } else {\n setTimeout(() => {\n uni.reLaunch({\n url: '/pages/user/index'\n });\n }, 1000);\n }\n } else {\n if (result.data.data.user.isVip == false) {\n uni.navigateTo({\n url: '../personalData/index'\n });\n } else {\n setTimeout(() => {\n uni.reLaunch({\n url: '/pages/user/index'\n });\n }, 1000);\n }\n }\n }\n });\n } else {\n uni.showToast({\n title: result.data.msg,\n icon: 'none'\n });\n }\n });\n }\n });\n },\n\n getUserInfo(e) {\n // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息\n this.setData({\n userInfo: e.detail.userInfo,\n hasUserInfo: true\n });\n },\n\n toPay() {\n uni.navigateTo({\n url: '../personalData/index'\n });\n },\n\n backPage() {\n uni.navigateBack({\n delta: 1\n });\n },\n\n /**\n * 生命周期函数--监听页面显示\n */\n getUser() {\n this.setData({\n userInfo: uni.getStorageSync('userInfo')\n });\n }\n\n }\n};\n</script>\n<style>\n/* pages/user/agreement/index.wxss */\n.agreement-box{\n width: 100%;\n position: relative;\n}\n.agreement-box image{\n width: 100%;\n display: block;\n}\n.agreement-box .img{\n height: 2848rpx;\n}\n.agreement-box .img1{\n height: 924rpx;\n}\n.agreement-box .img2{\n height: 834rpx;\n}\n.agreement-box .img3{\n height: 1090rpx;\n}\n\n.btn-box{\n width: 440rpx !important;\n height: 142rpx !important;\n padding: 0 !important;\n position: absolute;\n top: 658rpx;\n left: 50%;\n margin-left: -220rpx !important;\n background: none !important;\n}\n\n.pay-box{\n width: 100%;\n min-height: 100vh;\n}\n.pay-box image{\n width: 100%;\n display: block;\n}\n.pay-box .img1{\n height: 609rpx;\n}\n.pay-box .img2{\n height: 1235rpx;\n}\n</style>","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/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 // 1635513139180\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}