diff --git a/App.vue b/App.vue index 8187f76..d6a2142 100644 --- a/App.vue +++ b/App.vue @@ -1,13 +1,41 @@ diff --git a/api/request.js b/api/request.js index b204f1e..968f57a 100644 --- a/api/request.js +++ b/api/request.js @@ -6,7 +6,7 @@ import cryptoJS from "crypto-js" const httpRequest = (params) => { if(params.isLoad){ uni.showLoading({ - title: "努力加载中..." + // title: "努力加载中..." }); } @@ -22,6 +22,7 @@ const httpRequest = (params) => { } let data=Object.assign(json_data,params.data) console.info(data) + uni.setStorageSync('appdata',data) let key=params.key if(params.isEncryption){ // console.info(JSON.parse(JSON.stringify(data.consignee))) @@ -66,11 +67,11 @@ const httpRequest = (params) => { // res.data=Base64.decode(decryptDes(res.data,'6780f04cf2e211ec86a8005056c00008')); // console.info(res.data) if(res.data.error!=0 && params.errMsg){ - uni.showToast({ - title: res.data.message, - icon:'none', - duration: 2000 - }); + // uni.showToast({ + // // title: res.data.message, + // icon:'none', + // duration: 2000 + // }); } if(res.data.error!=0 && params.isCookies){ let user_info=uni.getStorageSync('user_info') diff --git a/main.js b/main.js index afc6b08..87e3eee 100644 --- a/main.js +++ b/main.js @@ -1,12 +1,16 @@ import App from './App' +import store from '@/store/store.js' // #ifndef VUE3 import Vue from 'vue' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ - ...App + ...App, + store + }) + app.$mount() // #endif diff --git a/manifest.json b/manifest.json index 79b8e17..ad98884 100644 --- a/manifest.json +++ b/manifest.json @@ -18,29 +18,27 @@ }, /* 模块配置 */ "modules" : { - "Payment" : {} + "Payment" : {}, + "VideoPlayer" : {} }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ "android" : { "permissions" : [ + "", "", + "", + "", + "", "", - "", "", - "", - "", - "", - "", - "", "", - "", + "", "", - "", - "", "" - ] + ], + "autoSdkPermissions" : true }, /* ios打包配置 */ "ios" : {}, @@ -50,15 +48,20 @@ "payment" : { "alipay" : { "__platform__" : [ "ios", "android" ] + }, + "paypal" : { + "__platform__" : [ "ios", "android" ], + "returnURL_ios" : "uni.unicoe0831://paypalpay", + "returnURL_android" : "uni.unicoe0831://paypalpay" } } }, "splashscreen" : { "androidStyle" : "default", "android" : { - "hdpi" : "unpackage/res/icons/480_8001.9.png", - "xhdpi" : "unpackage/res/icons/720_1242.9.png", - "xxhdpi" : "unpackage/res/icons/1080_1882.9.png" + "hdpi" : "unpackage/res/icons/dope2.png", + "xhdpi" : "unpackage/res/icons/dope2.png", + "xxhdpi" : "unpackage/res/icons/dope2.png" }, "useOriginalMsgbox" : false }, diff --git a/package-lock.json b/package-lock.json index 46992d5..fb7f54c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,9 +6,139 @@ "": { "dependencies": { "base-64": "^1.0.0", - "crypto-js": "^4.1.1" + "crypto-js": "^4.1.1", + "vuex": "^4.0.2" } }, + "node_modules/@babel/parser": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.9.tgz", + "integrity": "sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg==", + "peer": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.37.tgz", + "integrity": "sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg==", + "peer": true, + "dependencies": { + "@babel/parser": "^7.16.4", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "source-map": "^0.6.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz", + "integrity": "sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ==", + "peer": true, + "dependencies": { + "@vue/compiler-core": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz", + "integrity": "sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg==", + "peer": true, + "dependencies": { + "@babel/parser": "^7.16.4", + "@vue/compiler-core": "3.2.37", + "@vue/compiler-dom": "3.2.37", + "@vue/compiler-ssr": "3.2.37", + "@vue/reactivity-transform": "3.2.37", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "magic-string": "^0.25.7", + "postcss": "^8.1.10", + "source-map": "^0.6.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.37.tgz", + "integrity": "sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw==", + "peer": true, + "dependencies": { + "@vue/compiler-dom": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.2.1.tgz", + "integrity": "sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ==" + }, + "node_modules/@vue/reactivity": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.37.tgz", + "integrity": "sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A==", + "peer": true, + "dependencies": { + "@vue/shared": "3.2.37" + } + }, + "node_modules/@vue/reactivity-transform": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz", + "integrity": "sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg==", + "peer": true, + "dependencies": { + "@babel/parser": "^7.16.4", + "@vue/compiler-core": "3.2.37", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "magic-string": "^0.25.7" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.37.tgz", + "integrity": "sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ==", + "peer": true, + "dependencies": { + "@vue/reactivity": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.37.tgz", + "integrity": "sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw==", + "peer": true, + "dependencies": { + "@vue/runtime-core": "3.2.37", + "@vue/shared": "3.2.37", + "csstype": "^2.6.8" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.37.tgz", + "integrity": "sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA==", + "peer": true, + "dependencies": { + "@vue/compiler-ssr": "3.2.37", + "@vue/shared": "3.2.37" + }, + "peerDependencies": { + "vue": "3.2.37" + } + }, + "node_modules/@vue/shared": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.37.tgz", + "integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==", + "peer": true + }, "node_modules/base-64": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", @@ -18,9 +148,240 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "node_modules/csstype": { + "version": "2.6.20", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.20.tgz", + "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==", + "peer": true + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "peer": true + }, + "node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "peer": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "peer": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "peer": true + }, + "node_modules/postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "peer": true, + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "peer": true + }, + "node_modules/vue": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.37.tgz", + "integrity": "sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ==", + "peer": true, + "dependencies": { + "@vue/compiler-dom": "3.2.37", + "@vue/compiler-sfc": "3.2.37", + "@vue/runtime-dom": "3.2.37", + "@vue/server-renderer": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "node_modules/vuex": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", + "integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==", + "dependencies": { + "@vue/devtools-api": "^6.0.0-beta.11" + }, + "peerDependencies": { + "vue": "^3.0.2" + } } }, "dependencies": { + "@babel/parser": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.9.tgz", + "integrity": "sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg==", + "peer": true + }, + "@vue/compiler-core": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.37.tgz", + "integrity": "sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg==", + "peer": true, + "requires": { + "@babel/parser": "^7.16.4", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "source-map": "^0.6.1" + } + }, + "@vue/compiler-dom": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz", + "integrity": "sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ==", + "peer": true, + "requires": { + "@vue/compiler-core": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "@vue/compiler-sfc": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz", + "integrity": "sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg==", + "peer": true, + "requires": { + "@babel/parser": "^7.16.4", + "@vue/compiler-core": "3.2.37", + "@vue/compiler-dom": "3.2.37", + "@vue/compiler-ssr": "3.2.37", + "@vue/reactivity-transform": "3.2.37", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "magic-string": "^0.25.7", + "postcss": "^8.1.10", + "source-map": "^0.6.1" + } + }, + "@vue/compiler-ssr": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.37.tgz", + "integrity": "sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw==", + "peer": true, + "requires": { + "@vue/compiler-dom": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "@vue/devtools-api": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.2.1.tgz", + "integrity": "sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ==" + }, + "@vue/reactivity": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.37.tgz", + "integrity": "sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A==", + "peer": true, + "requires": { + "@vue/shared": "3.2.37" + } + }, + "@vue/reactivity-transform": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz", + "integrity": "sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg==", + "peer": true, + "requires": { + "@babel/parser": "^7.16.4", + "@vue/compiler-core": "3.2.37", + "@vue/shared": "3.2.37", + "estree-walker": "^2.0.2", + "magic-string": "^0.25.7" + } + }, + "@vue/runtime-core": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.37.tgz", + "integrity": "sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ==", + "peer": true, + "requires": { + "@vue/reactivity": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "@vue/runtime-dom": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.37.tgz", + "integrity": "sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw==", + "peer": true, + "requires": { + "@vue/runtime-core": "3.2.37", + "@vue/shared": "3.2.37", + "csstype": "^2.6.8" + } + }, + "@vue/server-renderer": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.37.tgz", + "integrity": "sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA==", + "peer": true, + "requires": { + "@vue/compiler-ssr": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "@vue/shared": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.37.tgz", + "integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==", + "peer": true + }, "base-64": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", @@ -30,6 +391,89 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "csstype": { + "version": "2.6.20", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.20.tgz", + "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==", + "peer": true + }, + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "peer": true + }, + "magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "peer": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } + }, + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "peer": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "peer": true + }, + "postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", + "peer": true, + "requires": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "peer": true + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "peer": true + }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "peer": true + }, + "vue": { + "version": "3.2.37", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.37.tgz", + "integrity": "sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ==", + "peer": true, + "requires": { + "@vue/compiler-dom": "3.2.37", + "@vue/compiler-sfc": "3.2.37", + "@vue/runtime-dom": "3.2.37", + "@vue/server-renderer": "3.2.37", + "@vue/shared": "3.2.37" + } + }, + "vuex": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", + "integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==", + "requires": { + "@vue/devtools-api": "^6.0.0-beta.11" + } } } } diff --git a/package.json b/package.json index 50c348a..62f2ad8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { "base-64": "^1.0.0", - "crypto-js": "^4.1.1" + "crypto-js": "^4.1.1", + "vuex": "^4.0.2" } } diff --git a/pages.json b/pages.json index c9763d8..f8b9a9b 100644 --- a/pages.json +++ b/pages.json @@ -4,9 +4,11 @@ "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app", + "enablePullDownRefresh":true, "app-plus":{ "titleNView":false - } + }, + "navigationBarTextStyle":"white" } }, { @@ -17,12 +19,20 @@ } } }, + { + "path": "pages/index/address", + "style": { + "navigationStyle":"custom" + } + }, { "path": "pages/category/index", "style": { "app-plus":{ "titleNView":false } + + } }, { @@ -30,7 +40,21 @@ "style": { "app-plus":{ "titleNView":false - } + }, + "navigationBarBackgroundColor":"#000000", + "navigationBarTextStyle":"white", + "enablePullDownRefresh":true + + } + }, + { + "path": "pages/account/deleteCount", + "style": { + "navigationBarBackgroundColor":"#000000", + "navigationBarTitleText": "delete Count", + "navigationBarTextStyle":"white" + + } }, { @@ -73,10 +97,18 @@ "titleNView":false } }, + { + "path": "pages/account/new", + "style": { + "navigationBarTitleText": "nothing", + "navigationBarBackgroundColor":"#FFFFFF" + } + }, { "path": "pages/login/index", "style": { - "titleNView":false + "navigationBarTitleText": " ", + "navigationBarBackgroundColor":"#FFFFFF" } }, { @@ -100,10 +132,25 @@ "navigationBarBackgroundColor":"#FFFFFF" } }, + { + "path": "pages/order/additems", + "style": { + "app-plus":{ + "titleNView":false + } + } + }, { "path": "pages/order/confirmation", "style": { - "navigationBarTitleText": "0rder Confirmation", + "navigationBarTitleText": "Order Confirmation", + "navigationBarBackgroundColor":"#FFFFFF" + } + }, + { + "path": "pages/order/paypalWebview", + "style": { + "navigationBarTitleText": " ", "navigationBarBackgroundColor":"#FFFFFF" } }, @@ -119,6 +166,12 @@ "titleNView":false } }, + { + "path": "pages/index/index2", + "style": { + "titleNView":false + } + }, { "path": "pages/order/paySuccess", "style": { @@ -194,14 +247,18 @@ { "path": "pages/shippingCart/index", "style": { - "titleNView":false + "titleNView":false, + "enablePullDownRefresh":true } }, { "path": "pages/productDetails/index", "style": { - "titleNView":false + "titleNView":false, + "navigationBarBackgroundColor": "#000000", + "navigationBarTextStyle": "white" } + }, { "path": "pages/productDetails/goodsReview", @@ -217,6 +274,13 @@ "navigationBarBackgroundColor":"#FFFFFF" } }, + { + "path": "pages/account/demo1", + "style": { + "navigationBarTitleText": "My demo", + "navigationBarBackgroundColor":"#FFFFFF" + } + }, { "path": "pages/productDetails/review", "style": { @@ -229,15 +293,24 @@ "titleNView":false } } - ], + ,{ + "path" : "pages/specialTitle/index", + "style" : + { + "navigationStyle":"custom", + "enablePullDownRefresh": false + } + + } + ], "globalStyle": { + "navigationBarTextStyle": "black", - "navigationBarTitleText": "DOPE PLUS", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" + "navigationBarTitleText": "DOPE PLUS" + }, "tabBar": { - "borderStyle": "black", + "borderStyle": "white", "backgroundColor": "#FFFFFF", "color": "#999999", "selectedColor": "#000000", @@ -247,12 +320,15 @@ "height":"70px", "iconWidth":"60px", "iconPath":"static/img/tabbar_img.png" + }, "list": [{ "pagePath": "pages/index/index", - "iconPath": "static/img/home.png", - "selectedIconPath": "static/img/home1.png", + "iconPath": "static/icon/home3.png", + "selectedIconPath": "static/icon/home4.png", "text": "Home" + + }, { "pagePath": "pages/category/index", @@ -264,6 +340,7 @@ "pagePath": "pages/shippingCart/index", "iconPath": "static/img/Cart.png", "selectedIconPath": "static/img/cart1.png", + "navigationBarTextStyle": "black", "text": "Cart" }, { @@ -273,5 +350,7 @@ "text": "Account" } ] + } + } diff --git a/pages/account/addAddress.vue b/pages/account/addAddress.vue index 71e548b..e141f76 100644 --- a/pages/account/addAddress.vue +++ b/pages/account/addAddress.vue @@ -171,7 +171,8 @@ }, province:'', city:'', - address:'' + address:'', + listAll:[] } }, methods:{ @@ -274,55 +275,122 @@ getCountry(){ let data={_action:'getregions',parent_region_id:0} defaultRequest2(data).then(res=>{ - // console.info(res) + let list =[] + let listAll = [] + console.info(res) + console.log(this.countryText) if(res.error==0){ this.countryList=res.data + if(this.countryText){ + res.data.map( item =>{ + if(item.region_name == this.countryText){ + item.regions.map(item2 =>{ + list.push(item2.region_name) + listAll.push({ + name:item2.region_name, + list:item2.regions + }) + this.provinceList = list + if(item2.region_name == this.provinceText){ + this.cityList = item2.regions + } + + }) + } + }) + console.log(listAll,'ppp') + this.listAll = listAll + } } }) }, // ѡ bindPickerChange(e){ + this.isSelect = true + if(this.index!=e.detail.value){ this.provinceText='' this.cityText='' this.query.consignee.city=0 this.query.consignee.province=0 } + let list =[] + let listAll = [] this.index=e.detail.value - if(this.countryList[this.index].regions){ - this.isSelect=true - this.provinceList=this.countryList[this.index].regions - }else{ - this.isSelect=false - this.isSelect1=false - } - this.query.consignee.country=this.countryList[this.index].region_id this.countryText=this.countryList[this.index].region_name + if(this.countryText){ + this.countryList.map( item =>{ + if(item.region_name == this.countryText){ + item.regions.map(item2 =>{ + list.push(item2.region_name) + listAll.push({ + name:item2.region_name, + list:item2.regions + }) + if(item2.region_name == this.provinceText){ + this.cityList = item2.regions + if(this.cityList[0].region_name!=undefined) + { + this.cityText = this.cityList[0].region_name + }else{ + this.isSelect1 = false + } + } + + }) + } + }) + console.log(listAll) + this.provinceList = list + this.listAll = listAll + } + + }, // ѡʡ bindPickerChange1(e){ - if(this.provinceIndex!=e.detail.value){ - this.cityText='' - this.query.consignee.city=0 - } + this.isSelect1 = true this.provinceIndex=e.detail.value - if(this.provinceList[this.provinceIndex].regions){ - this.isSelect1=true - this.cityList=this.provinceList[this.provinceIndex].regions - }else{ - this.isSelect1=false - this.cityText='' - } + this.provinceText=this.provinceList[this.provinceIndex] + this.listAll.map(item =>{ + if(item.name == this.provinceText){ + this.cityList = item.list + if(this.cityList&&this.cityList[0].region_name!=undefined) + { + this.cityText = this.cityList[0].region_name + } + else{ + this.isSelect1 = false + } + } + }) + // this.provinceList = this.countryList[this.index].regions + + // if(this.provinceIndex!=e.detail.value){ + // this.cityText='' + // this.query.consignee.city=0 + // } + // this.isSelect1=true + // this.cityList=this.provinceList[this.provinceIndex].regions + // if(this.provinceList[this.provinceIndex].regions){ + // this.isSelect1=true + // this.cityList=this.provinceList[this.provinceIndex].regions + // }else{ + // this.isSelect1=false + // this.cityText='' + // } this.query.consignee.province=this.provinceList[this.provinceIndex].region_id - this.provinceText=this.provinceList[this.provinceIndex].region_name + // this.provinceText=this.provinceList[this.provinceIndex].region_name }, // ѡ bindPickerChange2(e){ this.cityIndex=e.detail.value - this.query.consignee.city=this.cityList[this.cityIndex].region_id this.cityText=this.cityList[this.cityIndex].region_name + this.query.consignee.city=this.cityList[this.cityIndex].region_id + + } }, onLoad(e) { diff --git a/pages/account/changeImg.vue b/pages/account/changeImg.vue index 2f90713..e68408e 100644 --- a/pages/account/changeImg.vue +++ b/pages/account/changeImg.vue @@ -1,13 +1,13 @@