diff --git a/common/css/iconfont.css b/common/css/iconfont.css index 5f87d64..bdd489e 100644 --- a/common/css/iconfont.css +++ b/common/css/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4503426 */ - src: url('//at.alicdn.com/t/c/font_4503426_iai3d7mxog.woff2?t=1712816649291') format('woff2'), - url('//at.alicdn.com/t/c/font_4503426_iai3d7mxog.woff?t=1712816649291') format('woff'), - url('//at.alicdn.com/t/c/font_4503426_iai3d7mxog.ttf?t=1712816649291') format('truetype'); + src: url('//at.alicdn.com/t/c/font_4503426_46km7g1hjg9.woff2?t=1716779352968') format('woff2'), + url('//at.alicdn.com/t/c/font_4503426_46km7g1hjg9.woff?t=1716779352968') format('woff'), + url('//at.alicdn.com/t/c/font_4503426_46km7g1hjg9.ttf?t=1716779352968') format('truetype'); } .iconfont { @@ -13,6 +13,10 @@ -moz-osx-font-smoothing: grayscale; } +.icon-chakanxiangqing:before { + content: "\e64c"; +} + .icon-xiangyou1:before { content: "\e775"; } diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 939d93b..117cf88 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -21,8 +21,8 @@ const install = (Vue, vm) => { // }); Vue.prototype.$u.http.setConfig({ // baseUrl: 'http://61.174.243.28:15861', - // baseUrl: 'http://192.168.2.6:8080', - baseUrl: 'https://dianche.chuantewulian.cn/prod-api', + baseUrl: 'http://192.168.2.6:8080', + // baseUrl: 'https://dche.ccttiot.com/prod-api', loadingText: '努力加载中~', loadingTime: 800, // 设置自定义头部content-type @@ -90,26 +90,26 @@ const install = (Vue, vm) => { // return res.result; - // uni.login({ - // success: function(ret) { - // console.log("main.js==>res", ret) - // // vm.$u.post('/user/login',{"js_code": ret.code}).then(res=>{ - // // if (res.code == 10003) { - // // // console.log("新用户登录") - // // uni.setStorageSync('token', res.data); + // uni.login({ + // success: function(ret) { + // console.log("main.js==>res", ret) + // // vm.$u.post('/user/login',{"js_code": ret.code}).then(res=>{ + // // if (res.code == 10003) { + // // // console.log("新用户登录") + // // uni.setStorageSync('token', res.data); - // // } else if (res.code == 200) { - // // // console.log("老用户登录",res.data) - // // uni.setStorageSync('token', res.data); + // // } else if (res.code == 200) { + // // // console.log("老用户登录",res.data) + // // uni.setStorageSync('token', res.data); - // // } - // // }); - // } + // // } + // // }); + // } + // }); + // uni.showLoading({ + // title: '登录中...', + // mask: true // Set to true if you want to prevent user interactions while loading // }); - uni.showLoading({ - title: '登录中...', - mask: true // Set to true if you want to prevent user interactions while loading - }); wx.login({ success(res) { if (res.code) { @@ -117,19 +117,20 @@ const install = (Vue, vm) => { let data = { wxOpenId: res.code, - }; - vm.$u.post('/loginByopenid?jsCode='+res.code).then(res=>{ + }; + let areaId=uni.getStorageSync('areaId'); + vm.$u.post('/loginByopenid?jsCode='+res.code+'&areaId='+areaId).then(res=>{ uni.hideLoading(); if (res.code == 200) { uni.setStorageSync('token', res.token); - // uni.switchTab({ - // url:'/pages/index/index' - // }) + uni.navigateTo({ + url:'/pages/index/index' + }) } else { // console.log("老用户登录",res.data) - uni.navigateTo({ + uni.redirectTo({ url:'/pages/login/login' }) } diff --git a/manifest.json b/manifest.json index f95f42c..cad1f86 100644 --- a/manifest.json +++ b/manifest.json @@ -51,7 +51,7 @@ /* 小程序特有相关 */ "mp-weixin" : { "libVersion" : "latest", - "appid" : "wxbbe52b5414ab65ac", + "appid" : "wx3428c498d5061192", "setting" : { "urlCheck" : false }, diff --git a/package-lock.json b/package-lock.json index 5245a62..044955a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,23 +1,90 @@ { "name": "dianbiao", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "dianbiao", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "crypto-js": "^4.1.1", + "fast-xml-parser": "^4.0.12", + "js-base64": "^3.7.3", + "js-md5": "^0.7.3", + "mp-html": "^2.4.2", + "mpvue-echarts": "^0.3.2", + "uview-ui": "^1.8.8", + "weapp-cookie": "^1.4.8" + } + }, + "node_modules/crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" + }, + "node_modules/fast-xml-parser": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz", + "integrity": "sha512-rmrXUXwbJedoXkStenj1kkljNF7ugn5ZjR9FJcwmCfcCbtOMDghPajbc+Tck6vE6F5XsDmx+Pr2le9fw8+pXBg==", + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/js-base64": { + "version": "3.7.5", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.5.tgz", + "integrity": "sha512-3MEt5DTINKqfScXKfJFrRbxkrnk2AxPWGBL/ycjz4dK8iqiSJ06UxD8jh8xuh6p10TX4t2+7FsBYVxxQbMg+qA==" + }, + "node_modules/js-md5": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz", + "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==" + }, + "node_modules/mp-html": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/mp-html/-/mp-html-2.4.2.tgz", + "integrity": "sha512-MSfJh5ckuaI2uibeO4qiUl2e/j5fpXy6cmW/ZzSkb+U3rTJfMSNzODqrDwG0YWOd8BVI+tD9/jLZiBhJbMupUg==" + }, + "node_modules/mpvue-echarts": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/mpvue-echarts/-/mpvue-echarts-0.3.2.tgz", + "integrity": "sha512-KULGS1DOMNhXu3nBkBv6BtmnqjyHLc+2Dur7eW+2s2aic1NCOygglCMmAmMEU6/TGSR67ttFA2NYxXPUYbNhWQ==" + }, + "node_modules/set-cookie-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.6.0.tgz", + "integrity": "sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==" + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" + }, + "node_modules/uview-ui": { + "version": "1.8.8", + "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.8.8.tgz", + "integrity": "sha512-Osal3yzXiHor0In9OPTZuXTaqTbDglMZ9RGK/MPYDoQQs+y0hrBCUD0Xp5T70C8i2lLu2X6Z11zJhmsQWMR7Jg==" + }, + "node_modules/weapp-cookie": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/weapp-cookie/-/weapp-cookie-1.4.8.tgz", + "integrity": "sha512-YksOnCI4mM+MAlAf/5iL0aSzwfePHZTUS9NorL0RerAxJMOpzzrEZrMBF+wKS1usH/UQqkZTMSxjiWs0ZcAE9g==", + "dependencies": { + "set-cookie-parser": "^2.4.8" + } + } + }, "dependencies": { "crypto-js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, - "echarts": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.3.tgz", - "integrity": "sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==", - "requires": { - "tslib": "2.3.0", - "zrender": "5.4.4" - } - }, "fast-xml-parser": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz", @@ -56,11 +123,6 @@ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" }, - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, "uview-ui": { "version": "1.8.8", "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.8.8.tgz", @@ -73,14 +135,6 @@ "requires": { "set-cookie-parser": "^2.4.8" } - }, - "zrender": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.4.tgz", - "integrity": "sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==", - "requires": { - "tslib": "2.3.0" - } } } } diff --git a/package.json b/package.json index 01b5e97..c6477e8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "homepage": "https://github.com/lchighpass/lchighpass-speaking#readme", "dependencies": { "crypto-js": "^4.1.1", - "echarts": "^5.4.0", "fast-xml-parser": "^4.0.12", "js-base64": "^3.7.3", "js-md5": "^0.7.3", diff --git a/page_user/good_list.vue b/page_user/good_list.vue index e334599..0827d0a 100644 --- a/page_user/good_list.vue +++ b/page_user/good_list.vue @@ -1,124 +1,175 @@ - diff --git a/page_user/idcard_test.vue b/page_user/idcard_test.vue new file mode 100644 index 0000000..63d98ab --- /dev/null +++ b/page_user/idcard_test.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/page_user/yj.vue b/page_user/yj.vue index 3239b77..f6d3fd3 100644 --- a/page_user/yj.vue +++ b/page_user/yj.vue @@ -136,10 +136,10 @@ }, onShow() { - this.$store.dispatch('fetchFeeRules', this.$u).then(() => { + // this.$store.dispatch('fetchFeeRules', this.$u).then(() => { - // 执行其他操作... - }); + // // 执行其他操作... + // }); this.getinfo() }, @@ -216,10 +216,10 @@ this.userinfo = res.user this.getlist() } else { - setTimeout(()=>{ - this.getinfo() - this.getlist() - },1000) + // setTimeout(()=>{ + // this.getinfo() + // this.getlist() + // },1000) } }); }, diff --git a/pages.json b/pages.json index f162c1c..528d158 100644 --- a/pages.json +++ b/pages.json @@ -302,6 +302,15 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + }, + { + "path" : "idcard_test", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false, + "navigationStyle": "custom" + } } // 其他 userpages 目录下的页面... diff --git a/pages/index/index.vue b/pages/index/index.vue index d3496a7..d78c899 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@