diff --git a/.gitignore b/.gitignore index 675f0dc..746a8a0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ unpackage/ node_modules/ .hbuilderx/ .DS_Store +__MACOSX/ *.log +*.zip diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..fb77cbd --- /dev/null +++ b/App.vue @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/androidPrivacy.json b/androidPrivacy.json new file mode 100644 index 0000000..2f8a0c5 --- /dev/null +++ b/androidPrivacy.json @@ -0,0 +1,38 @@ +{ + "version" : "1", + "prompt" : "template", + "title" : "用户协议和隐私政策", + "message" : "  请您务必仔细阅读,充分理解用户协议和隐私政策各条款,包括但不限于为了向您提供在线交易在线支付,内容分享等服务,我们需要收集您设备信息和个人信息,您可以在设置中查看,管理您的授权。
  你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击同意接受我们的服务。", + "buttonAccept" : "同意并接受", + "buttonRefuse" : "暂不同意", + "hrefLoader" : "system", + "backToExit" : "false", + "second" : { + "title" : "确认提示", + "message" : "  进入应用前,你需先同意《服务协议》和《隐私政策》,否则将退出应用。", + "buttonAccept" : "同意并继续", + "buttonRefuse" : "退出应用" + }, + "disagreeMode" : { + "support" : false, + "loadNativePlugins" : false, + "visitorEntry" : false, + "showAlways" : false + }, + "styles" : { + "backgroundColor" : "#ffffff", + "borderRadius" : "5px", + "title" : { + "color" : "#000000" + }, + "buttonAccept" : { + "color" : "#00aaff" + }, + "buttonRefuse" : { + "color" : "#ff0000" + }, + "buttonVisitor" : { + "color" : "#00aa00" + } + } +} diff --git a/components/page-loading/page-loading.vue b/components/page-loading/page-loading.vue new file mode 100644 index 0000000..ebf6055 --- /dev/null +++ b/components/page-loading/page-loading.vue @@ -0,0 +1,294 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-auth-modal/shopro-auth-modal-copy.vue b/components/shopro-auth-modal/shopro-auth-modal-copy.vue new file mode 100644 index 0000000..d5bf639 --- /dev/null +++ b/components/shopro-auth-modal/shopro-auth-modal-copy.vue @@ -0,0 +1,1029 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-auth-modal/shopro-auth-modal.vue b/components/shopro-auth-modal/shopro-auth-modal.vue new file mode 100644 index 0000000..b064ef4 --- /dev/null +++ b/components/shopro-auth-modal/shopro-auth-modal.vue @@ -0,0 +1,985 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-canvas/shopro-canvas.vue b/components/shopro-canvas/shopro-canvas.vue new file mode 100644 index 0000000..b3a1246 --- /dev/null +++ b/components/shopro-canvas/shopro-canvas.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/components/shopro-coupon/shopro-coupon.vue b/components/shopro-coupon/shopro-coupon.vue new file mode 100644 index 0000000..941cc05 --- /dev/null +++ b/components/shopro-coupon/shopro-coupon.vue @@ -0,0 +1,183 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-empty/shopro-empty.vue b/components/shopro-empty/shopro-empty.vue new file mode 100644 index 0000000..7ceb170 --- /dev/null +++ b/components/shopro-empty/shopro-empty.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/components/shopro-float-btn/shopro-float-btn.vue b/components/shopro-float-btn/shopro-float-btn.vue new file mode 100644 index 0000000..597e5d6 --- /dev/null +++ b/components/shopro-float-btn/shopro-float-btn.vue @@ -0,0 +1,256 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-goods-card/shopro-goods-card.vue b/components/shopro-goods-card/shopro-goods-card.vue new file mode 100644 index 0000000..e444705 --- /dev/null +++ b/components/shopro-goods-card/shopro-goods-card.vue @@ -0,0 +1,380 @@ + + + + + diff --git a/components/shopro-live-card/shopro-live-card.vue b/components/shopro-live-card/shopro-live-card.vue new file mode 100644 index 0000000..3ea10b3 --- /dev/null +++ b/components/shopro-live-card/shopro-live-card.vue @@ -0,0 +1,361 @@ + + + + + diff --git a/components/shopro-loading/shopro-loading.vue b/components/shopro-loading/shopro-loading.vue new file mode 100644 index 0000000..18908c8 --- /dev/null +++ b/components/shopro-loading/shopro-loading.vue @@ -0,0 +1,300 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-mini-card/shopro-mini-card.vue b/components/shopro-mini-card/shopro-mini-card.vue new file mode 100644 index 0000000..aa05a5b --- /dev/null +++ b/components/shopro-mini-card/shopro-mini-card.vue @@ -0,0 +1,140 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-navbar/shopro-navbar.vue b/components/shopro-navbar/shopro-navbar.vue new file mode 100644 index 0000000..31f19d0 --- /dev/null +++ b/components/shopro-navbar/shopro-navbar.vue @@ -0,0 +1,136 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-notice-modal/shopro-notice-modal.vue b/components/shopro-notice-modal/shopro-notice-modal.vue new file mode 100644 index 0000000..99d4211 --- /dev/null +++ b/components/shopro-notice-modal/shopro-notice-modal.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/components/shopro-protocol/shopro-protocol.vue b/components/shopro-protocol/shopro-protocol.vue new file mode 100644 index 0000000..9cadab5 --- /dev/null +++ b/components/shopro-protocol/shopro-protocol.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/components/shopro-share/shopro-share.vue b/components/shopro-share/shopro-share.vue new file mode 100644 index 0000000..41870e4 --- /dev/null +++ b/components/shopro-share/shopro-share.vue @@ -0,0 +1,599 @@ + + + + \ No newline at end of file diff --git a/components/shopro-sku/shopro-sku.vue b/components/shopro-sku/shopro-sku.vue new file mode 100644 index 0000000..0378b1e --- /dev/null +++ b/components/shopro-sku/shopro-sku.vue @@ -0,0 +1,587 @@ + + + + + diff --git a/components/shopro-tabbar/shopro-tabbar.vue b/components/shopro-tabbar/shopro-tabbar.vue new file mode 100644 index 0000000..a9c48bd --- /dev/null +++ b/components/shopro-tabbar/shopro-tabbar.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/components/uni-popup/uni-popup.vue b/components/uni-popup/uni-popup.vue new file mode 100644 index 0000000..83742f8 --- /dev/null +++ b/components/uni-popup/uni-popup.vue @@ -0,0 +1,263 @@ + + + + diff --git a/components/uni-transition/uni-transition.vue b/components/uni-transition/uni-transition.vue new file mode 100644 index 0000000..908a939 --- /dev/null +++ b/components/uni-transition/uni-transition.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/components/yk-authpup/yk-authpup.vue b/components/yk-authpup/yk-authpup.vue new file mode 100644 index 0000000..5790fd2 --- /dev/null +++ b/components/yk-authpup/yk-authpup.vue @@ -0,0 +1,335 @@ + + + + \ No newline at end of file diff --git a/env.js b/env.js new file mode 100644 index 0000000..81f4671 --- /dev/null +++ b/env.js @@ -0,0 +1,9 @@ +/** + * Shopro全局配置文件 + */ + +export const BASE_URL = 'https://chufang.gynhc.com' //后台根域名 https://demo.shopro.top +export const API_URL = `${BASE_URL}/addons/shopro/` //后台接口域名 +export const IMG_URL = 'https://chufang.gynhc.com' //全局网络图片地址变量,css背景图片地址变量在uni.scss +export const MAP_KEY = '24eb092b2163da8fa5087bf92844a5bd'; //高德地图开发者Web服务key,逆坐标解析 +export const HAS_LIVE = false //后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播 diff --git a/main.js b/main.js new file mode 100644 index 0000000..fb7c655 --- /dev/null +++ b/main.js @@ -0,0 +1,45 @@ +import Vue from "vue"; +import App from "./App"; +import { + router, + RouterMount +} from "@/shopro/router"; +import store from "@/shopro/store"; +import uView from "uview-ui"; +import shopro from "@/shopro"; + +import { + addPermisionInterceptor, + removePermisionInterceptor +} from '@/uni_modules/x-perm-apply-instr/js_sdk/index.js' +addPermisionInterceptor('chooseImage', '为了修改个人头像和发布信息图片视频等, 我们需要申请您设备的相机和存储权限') +addPermisionInterceptor('chooseVideo', '为了发布信息图片视频等, 我们需要申请您设备的相机和存储权限') +addPermisionInterceptor('saveImageToPhotosAlbum', '为了保存推广海报到手机相册, 我们需要申请您设备的存储权限') +addPermisionInterceptor('getLocation', '为了根据您的位置展示信息, 我们需要申请您设备的位置权限') +addPermisionInterceptor('makePhoneCall', '为了联系客服/用户/咨询等, 我们需要申请您设备的拨打电话权限') +addPermisionInterceptor('getRecorderManager', '为了使用语言消息功能等, 我们需要申请您设备的麦克风权限') +addPermisionInterceptor('startLocationUpdate', '为了根据您的位置展示信息, 我们需要申请您设备的位置权限') +addPermisionInterceptor('scanCode', '为了识别二维码信息, 我们需要申请您设备的相机权限') + +async function bootstrap() { + App.mpType = "app"; + //引入路由 + Vue.use(router); + // 引入全局uView + Vue.use(uView); + // 加载shopro + Vue.use(shopro); + + const app = new Vue({ + store, + ...App + }); + // #ifdef H5 + RouterMount(app, router, "#app"); + // #endif + // #ifndef H5 + app.$mount(); + // #endif +} + +bootstrap(); \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..a72fcd9 --- /dev/null +++ b/manifest.json @@ -0,0 +1,243 @@ +{ + "name" : "小众厨房设备1", + "appid" : "__UNI__C77F3FE", + "description" : "小众厨房设备1", + "versionName" : "1.3.9", + "versionCode" : 137, + "transformPx" : false, + "app-plus" : { + // APP-VUE分包,可提APP升启动速度,2.7.12开始支持,兼容微信小程序分包方案,默认关闭 + "optimization" : { + "subPackages" : true + }, + "runmode" : "liberate", // 开启分包优化后,必须配置资源释放模式 + "safearea" : { + // APP底部安全区域 + "background" : "#fff", + "bottom" : { + "offset" : "auto" + } + }, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 200 + }, + "usingComponents" : true, + "nvueCompiler" : "uni-app", + "compilerVersion" : 3, + "modules" : { + "Maps" : {}, + "OAuth" : {}, + "VideoPlayer" : {}, + "LivePusher" : {}, + "Record" : {}, + "Share" : {}, + "Payment" : {}, + "Geolocation" : {}, + "Camera" : {} + }, + "distribute" : { + "android" : { + "permissionExternalStorage" : { + "request" : "none", + "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" + }, + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ], + "targetSdkVersion" : 30 + }, + "ios" : { + "capabilities" : { + "entitlements" : { + "com.apple.developer.associated-domains" : [ "applinks:m.*****.top" ] + } + }, + "privacyDescription" : { + "NSLocationAlwaysAndWhenInUseUsageDescription" : "需要同意获取您的位置信息才能展示附近信息", + "NSLocationAlwaysUsageDescription" : "需要同意获取您的位置信息才能展示附近信息", + "NSLocationWhenInUseUsageDescription" : "需要同意获取您的位置信息才能展示附近信息", + "NSPhotoLibraryAddUsageDescription" : "需要同意访问您的相册才能保存图片", + "NSPhotoLibraryUsageDescription" : "需要同意访问您的相册才能选取图片", + "NSCameraUsageDescription" : "需要同意访问您的摄像头才能拍摄照片", + "NSUserTrackingUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全与提升浏览体验" + }, + "dSYMs" : false + }, + "sdkConfigs" : { + "ad" : {}, + "payment" : { + "weixin" : { + "__platform__" : [ "ios", "android" ], + "appid" : "wx8dab4aa7e442592a", + "UniversalLinks" : "https://m.*****.top/uni-universallinks/__*****" + }, + "alipay" : { + "__platform__" : [ "ios", "android" ] + } + }, + "geolocation" : {}, + "maps" : { + "amap" : { + "appkey_ios" : "949f86b55f*****de010206494", + "appkey_android" : "48d8fd11e2d377cba0b60c1ce6ee8677", + "name" : "amap_17606999993BTeVgXGEm" + } + }, + "oauth" : { + "apple" : {}, + "weixin" : { + "appid" : "wx8dab4aa7e442592a", + "UniversalLinks" : "https://m.*****.top/uni-universallinks/__*****" + } + }, + "share" : { + "weixin" : { + "appid" : "wx8dab4aa7e442592a", + "UniversalLinks" : "https://m.*****.top/uni-universallinks/__*****" + } + }, + "push" : {} + }, + "icons" : { + "android" : { + "hdpi" : "unpackage/res/icons/72x72.png", + "xhdpi" : "unpackage/res/icons/96x96.png", + "xxhdpi" : "unpackage/res/icons/144x144.png", + "xxxhdpi" : "unpackage/res/icons/192x192.png" + }, + "ios" : { + "appstore" : "unpackage/res/icons/1024x1024.png", + "ipad" : { + "app" : "unpackage/res/icons/76x76.png", + "app@2x" : "unpackage/res/icons/152x152.png", + "notification" : "unpackage/res/icons/20x20.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "proapp@2x" : "unpackage/res/icons/167x167.png", + "settings" : "unpackage/res/icons/29x29.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "spotlight" : "unpackage/res/icons/40x40.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png" + }, + "iphone" : { + "app@2x" : "unpackage/res/icons/120x120.png", + "app@3x" : "unpackage/res/icons/180x180.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "notification@3x" : "unpackage/res/icons/60x60.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "settings@3x" : "unpackage/res/icons/87x87.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png", + "spotlight@3x" : "unpackage/res/icons/120x120.png" + } + } + }, + "splashscreen" : { + "useOriginalMsgbox" : true + } + }, + "kernel" : { + "ios" : "WKWebview" //或者 "WKWebview" + } + }, + "quickapp" : {}, + "mp-weixin" : { + "appid" : "wxc99af35376585e88", + "setting" : { + "urlCheck" : false, + "es6" : true, //消除大多数样式警告 + "minified" : true, + "postcss" : true, + "checkSiteMap" : false // 关闭页面索引检测 + }, + "optimization" : { + "subPackages" : true + }, + "lazyCodeLoading" : "requiredComponents", + "plugins" : {}, + // 这段代码,需要放到plugins中。 + // 只有后台开通小程序直播功能权限,才可以打开,不然报错,程序无法运行。 + // "live-player-plugin": { + // "version": "1.3.2", // 注意填写该直播组件最新版本号,微信开发者工具调试时可获取最新版本号 + // "provider": "wx2b03c6e691cd7370" // 必须填该直播组件appid,该示例值即为直播组件appid + // } + "usingComponents" : true, + "permission" : { + "scope.userLocation" : { + "desc" : "计算附近商家位置" + } + }, + "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ], + "unipush" : { + "enable" : false + } + }, + "mp-alipay" : { + "usingComponents" : true, + "component2" : true + }, + "mp-qq" : { + "appid" : "" + }, + "mp-baidu" : { + "usingComponents" : true, + "appid" : "" + }, + "mp-toutiao" : { + "usingComponents" : true, + "appid" : "" + }, + "h5" : { + "template" : "template.h5.html", + "router" : { + "mode" : "history", + "base" : "" + }, + "optimization" : { + "treeShaking" : { + "enable" : true + } + }, + "title" : "知己知彼", + "devServer" : { + "https" : false, + "port" : "" + }, + "sdkConfigs" : { + "maps" : { + "qqmap" : { + "key" : "4NRBZ-CM*****-ARYXH-DCFH3" + } + } + }, + "domain" : "*****.com" + }, + "_spaceID" : "f0536a*****8350-2aa7c3e11334" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..333173c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,62 @@ +{ + "name": "shopro-plus", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/runtime": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.0.tgz", + "integrity": "sha512-NDYdls71fTXoU8TZHfbBWg7DiZfNzClcKui/+kyi6ppD2L1qnWW3VV6CjtaBXSUGGhiTWJ6ereOIkUvenif66Q==", + "requires": { + "regenerator-runtime": "^0.13.10" + } + }, + "copy-text-to-clipboard": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz", + "integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==" + }, + "core-js": { + "version": "3.26.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.0.tgz", + "integrity": "sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw==" + }, + "jweixin-module": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", + "integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" + }, + "mutation-observer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/mutation-observer/-/mutation-observer-1.0.3.tgz", + "integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==" + }, + "regenerator-runtime": { + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz", + "integrity": "sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==" + }, + "uni-read-pages": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz", + "integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA==" + }, + "uni-simple-router": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.7.tgz", + "integrity": "sha512-8FKv5dw7Eoonm0gkO8udprrxzin0fNUI0+AvIphFkFRH5ZmP5ZWJ2pvnWzb2NiiqQSECTSU5VSB7HhvOSwD5eA==" + }, + "vconsole": { + "version": "3.14.7", + "resolved": "https://registry.npmjs.org/vconsole/-/vconsole-3.14.7.tgz", + "integrity": "sha512-48byrra1sZk0zJfUM8HFN/ZKtMzvd7Sirt2h5Hfnf7txKOxL9JfoFKB2uLixmOF3jjxCpwnLLb1tsHlg4YzoyA==", + "requires": { + "@babel/runtime": "^7.17.2", + "copy-text-to-clipboard": "^3.0.1", + "core-js": "^3.11.0", + "mutation-observer": "^1.0.3" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..752b733 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "shopro-plus", + "version": "1.0.0", + "main": "main.js", + "scripts": { + "test": "" + }, + "repository": { + "type": "git", + "url": "" + }, + "keywords": [], + "author": "", + "license": "ISC", + "homepage": "", + "dependencies": { + "jweixin-module": "^1.6.0", + "uni-read-pages": "^1.0.5", + "uni-simple-router": "^2.0.6", + "vconsole": "^3.7.0" + }, + "description": "", + "devDependencies": {} +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..dd4d116 --- /dev/null +++ b/pages.json @@ -0,0 +1,1151 @@ +{ + "easycom": { + "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue", + "^shopro-(.*)": "@/components/shopro-$1/shopro-$1.vue" + }, + + "pages": [{ + "path": "pages/index/index", + "aliasPath": "/", //对于h5端你必须在首页加上aliasPath并设置为/ + "style": { + "navigationBarTitleText": "首页", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": true, + "navigationStyle": "custom", + "mp-alipay": { + "transparentTitle": "always", + "titlePenetrate": "YES", + "allowsBounceVertical": "NO" + } + }, + "meta": { + "auth": false, //需要登录 + "async": true, //是否同步 + "title": "首页", //标题 + "group": "商城" //分组 + } + }, + { + "path": "pages/index/all-menu", + "style": { + "navigationBarTitleText": "全部分类", + "navigationStyle": "custom", + "enablePullDownRefresh": false + }, + "meta": { + "auth": false, + "async": true, + "title": "全部分类", + "group": "商城" + } + }, + { + "path": "pages/index/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + }, + "meta": { + "auth": false, + "async": true, + "title": "分类", + "group": "商城" + } + }, + { + "path": "pages/index/cart", + "style": { + "navigationBarTitleText": "购物车" + }, + "meta": { + "auth": false, + "async": true, + "title": "购物车", + "group": "商城" + } + }, + { + "path": "pages/index/user", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "我的", + "group": "商城" + } + }, + { + "path": "pages/index/view", + "name": "view", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true + + }, + "meta": { + "auth": false, + "async": true, + "title": "自定义页面", + "group": "商城" + } + }, + { + "path": "pages/live/list", + "name": "video", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "直播", + "group": "直播" + } + }, + { + "path": "pages/index/money", + "name": "money", + "style": { + "navigationBarTitleText": "省钱", + "enablePullDownRefresh": false + }, + "meta": { + "auth": false, + "async": true, + "title": "省钱", + "group": "省钱" + } + }, + { + "path": "pages/index/message", + "name": "message", + "style": { + "navigationBarTitleText": "消息", + "enablePullDownRefresh": false + }, + "meta": { + "auth": false, + "async": true, + "title": "消息", + "group": "消息" + } + }, + { + "path": "pages/index/protocol", + "style": { + "navigationBarTitleText": "协议内容" + }, + "meta": { + "auth": false, + "async": true, + "title": "协议", + "group": "协议" + } + }, + { + "path": "pages/index/user-protocol", + "style": { + "navigationBarTitleText": "用户协议" + }, + "meta": { + "auth": false, + "async": true, + "title": "用户协议", + "group": "用户协议" + } + }, + { + "path": "pages/lq-upgrade/upgrade", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "app-plus": { + "bounce": "none", + "animationType": "none", // 取消窗口动画 + "background": "transparent" // 设置背景透明 + } + } + }, + { + "path" : "pages/message/message", + "style" : + { + "navigationBarTitleText" : "消息" + } + }, + { + "path" : "pages/message/detail", + "style" : + { + "navigationBarTitleText" : "消息" + } + } + ], + "subPackages": [{ + "root": "pages/activity", + "pages": [{ + "path": "sign/index", + "style": { + "navigationBarTitleText": "签到中心" + }, + "meta": { + "auth": true, + "async": true, + "title": "签到中心", + "group": "应用" + } + }, + { + "path": "robbuy/list", + "style": { + "navigationBarTitleText": "预约抢购", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "预约抢购", + "group": "抢购" + } + }, + { + "path": "seckill/list", + "style": { + "navigationBarTitleText": "秒杀", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "秒杀", + "group": "秒杀" + } + }, + { + "path": "timer/list", + "style": { + "navigationBarTitleText": "限时秒杀", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "限时秒杀", + "group": "秒杀" + } + }, + { + "path": "promote/list", + "style": { + "navigationBarTitleText": "限时促销", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "限时促销", + "group": "促销" + } + }, + { + "path": "groupon/list", + "style": { + "navigationBarTitleText": "今日必拼", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "今日必拼", + "group": "拼团" + } + }, + { + "path": "groupon/detail", + "style": { + "navigationBarTitleText": "拼团详情", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": false, + "title": "拼团详情", + "group": "拼团" + } + }, + { + "path": "groupon/my-groupon", + "style": { + "navigationBarTitleText": "我的拼团", + "enablePullDownRefresh": true + }, + "meta": { + "auth": true, + "async": true, + "title": "我的拼团", + "group": "拼团" + } + }, + { + "path": "discounts/list", + "style": { + "navigationBarTitleText": "优惠活动商品" + }, + "meta": { + "auth": false, + "async": false, + "title": "优惠活动商品", + "group": "活动" + } + } + ] + }, + { + "root": "pages/app", + "pages": [ + // { + // "path": "live/list", + // "style": { + // "navigationBarTitleText": "直播列表" + // }, + // "meta": { + // "auth": false, + // "async": false, + // "title": "直播列表", + // "group": "直播" + // } + // }, + { + "path": "store/index", + "style": { + "navigationBarTitleText": "门店列表", + "enablePullDownRefresh": true + }, + "meta": { + "auth": false, + "async": true, + "title": "门店列表", + "group": "门店" + } + }, + { + "path": "store/detail", + "style": { + "navigationBarTitleText": "门店详情" + }, + "meta": { + "auth": false, + "async": true, + "title": "门店详情", + "group": "门店" + } + }, + { + "path": "score/list", + "style": { + "navigationBarTitleText": "积分商品" + }, + "meta": { + "auth": false, + "async": true, + "title": "积分商品", + "group": "积分" + } + }, + { + "path": "coupon/list", + "style": { + "navigationBarTitleText": "优惠券中心", + "navigationStyle": "custom" + }, + "meta": { + "auth": true, + "async": true, + "title": "优惠券中心", + "group": "优惠券" + } + }, { + "path": "coupon/detail", + "style": { + "navigationBarTitleText": "优惠券详情", + "navigationStyle": "custom" + }, + "meta": { + "auth": true, + "async": true, + "title": "优惠券详情", + "group": "优惠券" + } + }, + { + "path": "merchant/index", + "style": { + "navigationBarTitleText": "门店中心", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white" + + }, + "meta": { + "auth": true, + "async": false, + "title": "门店中心", + "group": "门店" + } + }, + // { + // "path": "merchant/apply", + // "style": { + // "navigationBarTitleText": "门店入驻", + // "navigationStyle": "custom" + // }, + // "meta": { + // "auth": true, + // "async": true, + // "title": "门店入驻", + // "group": "门店" + // } + // }, + { + "path": "merchant/detail", + "style": { + "navigationBarTitleText": "订单详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "订单详情", + "group": "订单" + } + }, + { + "path": "merchant/info", + "style": { + "navigationBarTitleText": "门店详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "门店详情", + "group": "门店" + } + }, + { + "path": "merchant/list", + "style": { + "navigationBarTitleText": "我的门店" + }, + "meta": { + "auth": true, + "async": true, + "title": "我的门店", + "group": "门店" + } + }, + { + "path": "commission/index", + "style": { + "navigationBarTitleText": "分销中心", + "enablePullDownRefresh": true, + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + }, + "meta": { + "auth": true, + "async": true, + "title": "分销中心", + "group": "分销" + } + }, + { + "path": "commission/team", + "style": { + "navigationBarTitleText": "我的团队", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + }, + "meta": { + "auth": true, + "async": true, + "title": "我的团队", + "group": "分销" + } + }, + { + "path": "commission/commission-log", + "style": { + "navigationBarTitleText": "佣金明细", + "enablePullDownRefresh": true + }, + "meta": { + "auth": true, + "async": true, + "title": "佣金明细", + "group": "分销" + } + }, + { + "path": "commission/order", + "style": { + "navigationBarTitleText": "分销订单", + "navigationStyle": "custom", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": true + }, + "meta": { + "auth": true, + "async": true, + "title": "分销订单", + "group": "分销" + } + }, + { + "path": "commission/goods", + "style": { + "navigationBarTitleText": "推广商品" + + + }, + "meta": { + "auth": true, + "async": true, + "title": "推广商品", + "group": "分销" + } + }, + { + "path": "commission/apply", + "style": { + "navigationBarTitleText": "申请分销商", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + + }, + "meta": { + "auth": true, + "async": true, + "title": "申请分销商", + "group": "分销" + } + }, + { + "path": "commission/rankings", + "style": { + "navigationBarTitleText": "分销排行", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + + }, + "meta": { + "auth": true, + "async": true, + "title": "分销排行", + "group": "分销" + } + }, + { + "path": "commission/share-log", + "style": { + "navigationBarTitleText": "分享记录", + "navigationStyle": "custom", + "navigationBarTextStyle": "white", + "enablePullDownRefresh": true + + }, + "meta": { + "auth": true, + "async": false, + "title": "分享记录", + "group": "分销" + } + } + + ] + }, + { + "root": "pages/goods", + "pages": [{ + "path": "list", + "style": { + "navigationBarTitleText": "商品列表", + "navigationStyle": "custom" + }, + "meta": { + "auth": false, + "async": true, + "title": "商品列表", + "group": "商品" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "商品详情", + "navigationStyle": "custom" + }, + "meta": { + "auth": false, + "async": true, + "title": "商品详情", + "group": "商品" + } + }, + { + "path": "comment/add-comment", + "style": { + "navigationBarTitleText": "评价" + }, + "meta": { + "auth": false, + "async": false, + "title": "评价", + "group": "商品" + } + }, + { + "path": "comment/comment-list", + "style": { + "navigationBarTitleText": "评价列表" + }, + "meta": { + "auth": false, + "async": false, + "title": "评价列表", + "group": "商品" + } + } + ] + }, + { + "root": "pages/order", + "pages": [{ + "path": "confirm", + "style": { + "navigationBarTitleText": "确认订单" + }, + "meta": { + "auth": true, + "async": false, + "title": "确认订单", + "group": "订单" + } + }, + { + "path": "payment/method", + "style": { + "navigationBarTitleText": "收银台" + }, + "meta": { + "auth": true, + "async": false, + "title": "收银台", + "group": "订单" + } + }, + { + "path": "payment/result", + "style": { + "navigationBarTitleText": "支付结果" + }, + "meta": { + "auth": false, + "async": false, + "title": "支付结果", + "group": "订单" + } + }, + { + "path": "list", + "style": { + "navigationBarTitleText": "订单列表" + }, + "meta": { + "auth": true, + "async": true, + "title": "订单列表", + "group": "订单" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "订单详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "订单详情", + "group": "订单" + } + }, + { + "path": "after-sale/detail", + "style": { + "navigationBarTitleText": "售后详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "售后详情", + "group": "订单" + } + }, + { + "path": "after-sale/list", + "style": { + "navigationBarTitleText": "售后列表" + }, + "meta": { + "auth": true, + "async": true, + "title": "售后列表", + "group": "订单" + } + }, + { + "path": "after-sale/log", + "style": { + "navigationBarTitleText": "售后记录" + }, + "meta": { + "auth": true, + "async": false, + "title": "售后记录", + "group": "订单" + } + }, + { + "path": "after-sale/refund", + "style": { + "navigationBarTitleText": "申请售后" + }, + "meta": { + "auth": true, + "async": false, + "title": "申请售后", + "group": "订单" + } + }, + { + "path": "report", + "style": { + "navigationBarTitleText": "订单报修" + }, + "meta": { + "auth": true, + "async": false, + "title": "订单报修", + "group": "订单" + } + }, + { + "path": "report_list", + "style": { + "navigationBarTitleText": "订单报修列表" + }, + "meta": { + "auth": true, + "async": false, + "title": "订单报修列表", + "group": "订单" + } + }, + { + "path": "express/distribution-detail", + "style": { + "navigationBarTitleText": "配送详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "配送详情", + "group": "订单" + } + }, + { + "path": "express/express-detail", + "style": { + "navigationBarTitleText": "物流详情" + }, + "meta": { + "auth": true, + "async": false, + "title": "物流详情", + "group": "订单" + } + }, + { + "path": "express/express-list", + "style": { + "navigationBarTitleText": "包裹列表" + }, + "meta": { + "auth": true, + "async": false, + "title": "包裹列表", + "group": "订单" + } + }, + + { + "path": "express/store-address", + "style": { + "navigationBarTitleText": "选择自提点", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + + }, + "meta": { + "auth": true, + "async": false, + "title": "选择自提点", + "group": "订单" + } + } + + ] + }, + { + "root": "pages/public", + "pages": [{ + "path": "faq", + "style": { + "navigationBarTitleText": "常见问题" + }, + "meta": { + "auth": false, + "async": true, + "title": "常见问题", + "group": "通用" + } + }, + { + "path": "feedback", + "style": { + "navigationBarTitleText": "问题反馈" + }, + "meta": { + "auth": true, + "async": true, + "title": "问题反馈", + "group": "通用" + } + }, + { + "path": "chat/index", + "style": { + "navigationBarTitleText": "客服", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + + }, + "meta": { + "auth": true, + "async": true, + "title": "客服", + "group": "通用" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索" + }, + "meta": { + "auth": false, + "async": true, + "title": "搜索", + "group": "通用" + } + }, + { + "path": "richtext", + "style": { + "navigationBarTitleText": "" + }, + "meta": { + "auth": false, + "async": true, + "title": "富文本", + "group": "通用" + } + }, + { + "path": "webview", + "style": { + "navigationBarTitleText": "" + }, + "meta": { + "auth": false, + "async": true, + "title": "外链", + "group": "通用" + } + }, + { + "path": "404", + "name": "404", + "style": { + "navigationBarTitleText": "页面不存在" + } + }, + { + "path": "store/store", + "style": { + "navigationBarTitleText": "门店", + "enablePullDownRefresh": false + } + + }, + { + "path": "loading", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + + } + ] + }, + { + "root": "pages/user", + "pages": [{ + "path": "info", + "style": { + "navigationBarTitleText": "个人信息" + }, + "meta": { + "auth": true, + "async": true, + "title": "个人信息", + "group": "用户" + } + }, + { + "path": "live", + "style": { + "navigationStyle": "custom", + "navigationBarTextStyle": "white", + "app-plus": { + "titleNView": false, + "scrollIndicator": "none" + } + }, + "meta": { + "auth": true, + "async": true, + "title": "开启直播", + "group": "直播" + } + }, + { + "path": "set", + "style": { + "navigationBarTitleText": "系统设置" + }, + "meta": { + "auth": false, + "async": true, + "title": "系统设置", + "group": "通用" + } + }, + { + "path": "view-log", + "style": { + "navigationBarTitleText": "浏览足迹" + }, + "meta": { + "auth": true, + "async": true, + "title": "浏览足迹", + "group": "用户" + } + }, + { + "path": "rob-order", + "style": { + "navigationBarTitleText": "抢购预约列表" + }, + "meta": { + "auth": true, + "async": true, + "title": "抢购预约列表", + "group": "用户" + } + }, + { + "path": "wallet/index", + "style": { + "navigationBarTitleText": "我的钱包" + + }, + "meta": { + "auth": true, + "async": true, + "title": "钱包", + "group": "用户" + } + }, + { + "path": "wallet/withdraw", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + + }, + "meta": { + "auth": true, + "async": true, + "title": "提现", + "group": "用户" + } + }, + { + "path": "wallet/withdraw-log", + "style": { + "navigationBarTitleText": "提现记录" + + }, + "meta": { + "auth": true, + "async": true, + "title": "提现记录", + "group": "用户" + } + }, + { + "path": "wallet/top-up", + "style": { + "navigationBarTitleText": "充值", + "navigationStyle": "custom" + + }, + "meta": { + "auth": true, + "async": true, + "title": "充值", + "group": "用户" + } + }, + { + "path": "wallet/top-up-log", + "style": { + "navigationBarTitleText": "充值记录" + + }, + "meta": { + "auth": true, + "async": true, + "title": "充值记录", + "group": "用户" + } + }, + { + "path": "wallet/score-balance", + "style": { + "navigationBarTitleText": "积分余额", + "navigationStyle": "custom" + + }, + "meta": { + "auth": true, + "async": true, + "title": "积分余额", + "group": "积分" + } + }, + { + "path": "address/list", + "style": { + "navigationBarTitleText": "收货地址" + + }, + "meta": { + "auth": true, + "async": true, + "title": "收货地址", + "group": "用户" + } + }, + { + "path": "address/edit", + "style": { + "navigationBarTitleText": "" + + }, + "meta": { + "auth": true, + "async": false, + "title": "修改地址", + "group": "用户" + } + }, + { + "path": "favorite", + "style": { + "navigationBarTitleText": "我的收藏" + }, + "meta": { + "auth": true, + "async": true, + "title": "我的收藏", + "group": "用户" + } + } + ] + } + ], + "preloadRule": { + "pages/index/index": { + "network": "all", + "packages": ["pages/activity", "pages/user", "pages/goods", "pages/app", "pages/public", + "pages/order" + ] + } + }, + "globalStyle": { + "navigationBarTextStyle": "white", + "navigationBarTitleText": "shopro-plus", + "navigationBarBackgroundColor": "#4C7AF3", + "backgroundColor": "#FFFFFF" + }, + "tabBar": { + "color": "#333", + "selectedColor": "#4C7AF3", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [{ + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "static/images/tabbar/tabbar_home.png", + "selectedIconPath": "/static/images/tabbar/tabbar_home1.png" + }, + { + "pagePath": "pages/index/category", + "text": "分类", + "iconPath": "static/images/tabbar/tabbar_category.png", + "selectedIconPath": "/static/images/tabbar/tabbar_category1.png" + }, + { + "pagePath": "pages/index/cart", + "text": "购物车", + "iconPath": "static/images/tabbar/tabbar_cart.png", + "selectedIconPath": "/static/images/tabbar/tabbar_cart1.png" + }, + { + "pagePath": "pages/index/user", + "text": "我的", + "iconPath": "static/images/tabbar/tabbar_personal.png", + "selectedIconPath": "/static/images/tabbar/tabbar_personal1.png" + } + ] + } +} \ No newline at end of file diff --git a/pages/activity/discounts/list.vue b/pages/activity/discounts/list.vue new file mode 100644 index 0000000..b2d2163 --- /dev/null +++ b/pages/activity/discounts/list.vue @@ -0,0 +1,227 @@ + + + + + + diff --git a/pages/activity/groupon/detail.vue b/pages/activity/groupon/detail.vue new file mode 100644 index 0000000..9e42faa --- /dev/null +++ b/pages/activity/groupon/detail.vue @@ -0,0 +1,371 @@ + + + + + + diff --git a/pages/activity/groupon/list.vue b/pages/activity/groupon/list.vue new file mode 100644 index 0000000..373b209 --- /dev/null +++ b/pages/activity/groupon/list.vue @@ -0,0 +1,246 @@ + + + + + + diff --git a/pages/activity/groupon/my-groupon.vue b/pages/activity/groupon/my-groupon.vue new file mode 100644 index 0000000..83af6ff --- /dev/null +++ b/pages/activity/groupon/my-groupon.vue @@ -0,0 +1,247 @@ + + + + + + diff --git a/pages/activity/promote/list.vue b/pages/activity/promote/list.vue new file mode 100644 index 0000000..e155043 --- /dev/null +++ b/pages/activity/promote/list.vue @@ -0,0 +1,278 @@ + + + + + + \ No newline at end of file diff --git a/pages/activity/robbuy/list.vue b/pages/activity/robbuy/list.vue new file mode 100644 index 0000000..260a128 --- /dev/null +++ b/pages/activity/robbuy/list.vue @@ -0,0 +1,274 @@ + + + + + + \ No newline at end of file diff --git a/pages/activity/seckill/list.vue b/pages/activity/seckill/list.vue new file mode 100644 index 0000000..097b813 --- /dev/null +++ b/pages/activity/seckill/list.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/pages/activity/sign/index.vue b/pages/activity/sign/index.vue new file mode 100644 index 0000000..b15edd2 --- /dev/null +++ b/pages/activity/sign/index.vue @@ -0,0 +1,361 @@ + + + + + + diff --git a/pages/activity/timer/list.vue b/pages/activity/timer/list.vue new file mode 100644 index 0000000..ba1f749 --- /dev/null +++ b/pages/activity/timer/list.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/pages/app/commission/apply.vue b/pages/app/commission/apply.vue new file mode 100644 index 0000000..175614d --- /dev/null +++ b/pages/app/commission/apply.vue @@ -0,0 +1,267 @@ + + + + + + diff --git a/pages/app/commission/commission-log.vue b/pages/app/commission/commission-log.vue new file mode 100644 index 0000000..51b6ec4 --- /dev/null +++ b/pages/app/commission/commission-log.vue @@ -0,0 +1,415 @@ + + + + + + \ No newline at end of file diff --git a/pages/app/commission/goods.vue b/pages/app/commission/goods.vue new file mode 100644 index 0000000..e1338cb --- /dev/null +++ b/pages/app/commission/goods.vue @@ -0,0 +1,167 @@ + + + + + + diff --git a/pages/app/commission/index.vue b/pages/app/commission/index.vue new file mode 100644 index 0000000..1dbb30a --- /dev/null +++ b/pages/app/commission/index.vue @@ -0,0 +1,856 @@ + + + + + + diff --git a/pages/app/commission/order.vue b/pages/app/commission/order.vue new file mode 100644 index 0000000..ac826c7 --- /dev/null +++ b/pages/app/commission/order.vue @@ -0,0 +1,539 @@ + + + + + + \ No newline at end of file diff --git a/pages/app/commission/rankings.vue b/pages/app/commission/rankings.vue new file mode 100644 index 0000000..809cf85 --- /dev/null +++ b/pages/app/commission/rankings.vue @@ -0,0 +1,148 @@ + + + + + + diff --git a/pages/app/commission/share-log.vue b/pages/app/commission/share-log.vue new file mode 100644 index 0000000..8e4fb2b --- /dev/null +++ b/pages/app/commission/share-log.vue @@ -0,0 +1,255 @@ + + + + + + diff --git a/pages/app/commission/team.vue b/pages/app/commission/team.vue new file mode 100644 index 0000000..4c58ba3 --- /dev/null +++ b/pages/app/commission/team.vue @@ -0,0 +1,356 @@ + + + + + + \ No newline at end of file diff --git a/pages/app/components/sh-collapse-item.vue b/pages/app/components/sh-collapse-item.vue new file mode 100644 index 0000000..64eb503 --- /dev/null +++ b/pages/app/components/sh-collapse-item.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/pages/app/coupon/detail.vue b/pages/app/coupon/detail.vue new file mode 100644 index 0000000..314fe52 --- /dev/null +++ b/pages/app/coupon/detail.vue @@ -0,0 +1,247 @@ + + + + + + diff --git a/pages/app/coupon/list.vue b/pages/app/coupon/list.vue new file mode 100644 index 0000000..6618de1 --- /dev/null +++ b/pages/app/coupon/list.vue @@ -0,0 +1,176 @@ + + + + + + diff --git a/pages/app/merchant/detail.vue b/pages/app/merchant/detail.vue new file mode 100644 index 0000000..efe07e6 --- /dev/null +++ b/pages/app/merchant/detail.vue @@ -0,0 +1,227 @@ + + + + + + diff --git a/pages/app/merchant/index.vue b/pages/app/merchant/index.vue new file mode 100644 index 0000000..18d2eea --- /dev/null +++ b/pages/app/merchant/index.vue @@ -0,0 +1,674 @@ + + + + + + \ No newline at end of file diff --git a/pages/app/merchant/info.vue b/pages/app/merchant/info.vue new file mode 100644 index 0000000..bafb536 --- /dev/null +++ b/pages/app/merchant/info.vue @@ -0,0 +1,115 @@ + + + + + + diff --git a/pages/app/merchant/list.vue b/pages/app/merchant/list.vue new file mode 100644 index 0000000..c7cef81 --- /dev/null +++ b/pages/app/merchant/list.vue @@ -0,0 +1,116 @@ + + + + + + diff --git a/pages/app/score/list.vue b/pages/app/score/list.vue new file mode 100644 index 0000000..7742af8 --- /dev/null +++ b/pages/app/score/list.vue @@ -0,0 +1,105 @@ + + + + + + diff --git a/pages/app/store/detail.vue b/pages/app/store/detail.vue new file mode 100644 index 0000000..f4e813c --- /dev/null +++ b/pages/app/store/detail.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/pages/app/store/index.vue b/pages/app/store/index.vue new file mode 100644 index 0000000..fc670af --- /dev/null +++ b/pages/app/store/index.vue @@ -0,0 +1,242 @@ + + + + + \ No newline at end of file diff --git a/pages/goods/comment/add-comment.vue b/pages/goods/comment/add-comment.vue new file mode 100644 index 0000000..b40d15e --- /dev/null +++ b/pages/goods/comment/add-comment.vue @@ -0,0 +1,208 @@ + + + + + + diff --git a/pages/order/components/sh-select-coupon.vue b/pages/order/components/sh-select-coupon.vue new file mode 100644 index 0000000..f40dea8 --- /dev/null +++ b/pages/order/components/sh-select-coupon.vue @@ -0,0 +1,123 @@ + + + + + \ No newline at end of file diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue new file mode 100644 index 0000000..5dec160 --- /dev/null +++ b/pages/order/confirm.vue @@ -0,0 +1,1749 @@ + + + + + + \ No newline at end of file diff --git a/pages/order/detail.vue b/pages/order/detail.vue new file mode 100644 index 0000000..14f442a --- /dev/null +++ b/pages/order/detail.vue @@ -0,0 +1,843 @@ + + + + + + \ No newline at end of file diff --git a/pages/order/express/distribution-detail.vue b/pages/order/express/distribution-detail.vue new file mode 100644 index 0000000..cf324a9 --- /dev/null +++ b/pages/order/express/distribution-detail.vue @@ -0,0 +1,411 @@ + + + + + + diff --git a/pages/order/express/express-detail.vue b/pages/order/express/express-detail.vue new file mode 100644 index 0000000..df964a2 --- /dev/null +++ b/pages/order/express/express-detail.vue @@ -0,0 +1,218 @@ + + + + + + diff --git a/pages/order/express/express-list.vue b/pages/order/express/express-list.vue new file mode 100644 index 0000000..98876e2 --- /dev/null +++ b/pages/order/express/express-list.vue @@ -0,0 +1,114 @@ + + + + + + diff --git a/pages/order/express/store-address.vue b/pages/order/express/store-address.vue new file mode 100644 index 0000000..c6ebc77 --- /dev/null +++ b/pages/order/express/store-address.vue @@ -0,0 +1,351 @@ + + + + + + diff --git a/pages/order/list.vue b/pages/order/list.vue new file mode 100644 index 0000000..dcc8673 --- /dev/null +++ b/pages/order/list.vue @@ -0,0 +1,452 @@ + + + + + diff --git a/pages/order/payment/method.vue b/pages/order/payment/method.vue new file mode 100644 index 0000000..a4ded61 --- /dev/null +++ b/pages/order/payment/method.vue @@ -0,0 +1,436 @@ + + + + + + \ No newline at end of file diff --git a/pages/order/report.vue b/pages/order/report.vue new file mode 100644 index 0000000..a500015 --- /dev/null +++ b/pages/order/report.vue @@ -0,0 +1,363 @@ + + + + + + \ No newline at end of file diff --git a/pages/order/report_list.vue b/pages/order/report_list.vue new file mode 100644 index 0000000..9bae944 --- /dev/null +++ b/pages/order/report_list.vue @@ -0,0 +1,379 @@ + + + + + \ No newline at end of file diff --git a/pages/public/404.vue b/pages/public/404.vue new file mode 100644 index 0000000..67a5cee --- /dev/null +++ b/pages/public/404.vue @@ -0,0 +1,8 @@ + + + + + diff --git a/pages/public/chat/index.vue b/pages/public/chat/index.vue new file mode 100644 index 0000000..f51291d --- /dev/null +++ b/pages/public/chat/index.vue @@ -0,0 +1,55 @@ + + + + + + diff --git a/pages/public/chat/shopro/chat.js b/pages/public/chat/shopro/chat.js new file mode 100644 index 0000000..679ea22 --- /dev/null +++ b/pages/public/chat/shopro/chat.js @@ -0,0 +1,161 @@ +/** + * shopro + * 聊天配置,socket服务相关,心跳检测和重连 + */ + +/** + * socket + * @param {Object} config - 初始化配置对象 + * @param {Number} wait = [10000] - 心跳频率 + */ + +import { + BASE_URL +} from '@/env.js' + +const service = BASE_URL.split('://')[1].split(':')[0]; + +export default class Socket { + constructor(initData, callback) { + let { + ping, + is_ssl, + gateway_port, + ssl_type + } = initData; + + let url = `${is_ssl?'wss':'ws'}://${service}:${gateway_port}/` + if (is_ssl && ssl_type === 'reverse_proxy') { + url = `wss://${service}/websocket/` + } + this.config = { + url: url, + session_id: uni.getStorageSync('chatSessionId'), + token: uni.getStorageSync('token'), + identify: 'user' + }; + this.callback = callback; //onmsg回调 + this.timeoutObj = null; //心跳检测定时器对象 + this.lockReconnect = false; //检测次数锁 + this.isClose = false; //链接断开 + this.timer = null; // 检测定时器 + this.limit = 0; //检测次数,默认最大12 + this.timout = ping; + uni.setStorageSync('isSocketOpen', false) + this.init() + } + + // 初始化 + async init() { + await this.connect(); + } + + // 连接 + async connect() { + if (!uni.getStorageSync('isSocketOpen')) { + let [error, res] = await uni.connectSocket({ + url: `${this.config.url}?identify=${this.config.identify}&token=${this.config.token}&session_id=${this.config.session_id}` + }); + if (res.errMsg === 'connectSocket:ok') { + this.initEventHandle(); + } + } + } + + // 发送消息 + async send(msg = "") { + if (uni.getStorageSync('isSocketOpen')) { + let [error, res] = await uni.sendSocketMessage({ + data: msg + }); + return Promise.resolve(res); + } + } + + // 监听消息 + onMsg() { + uni.onSocketMessage(res => { + if (res.code === 1 && res.type === 'init') { + this.config.session_id = res.data.session_id; + } + this.callback(res) + }); + } + + // 关闭连接 + close() { + uni.closeSocket(); + uni.removeStorage({ + key: 'isSocketOpen', + success: (res) => { + console.log('移除isSocketOpensuccess'); + } + }); + clearTimeout(this.timer); + clearTimeout(this.timeoutObj); + } + + //心跳检测 + start() { + clearTimeout(this.timeoutObj); + this.timeoutObj = setTimeout(() => { + let obj = { + type: 'ping' + }; + let objStr = JSON.stringify(obj) + uni.sendSocketMessage({ + data: objStr, + }); + this.start() + }, this.timout) + } + + // 监听事件集 + initEventHandle() { + // 监听打开 + uni.onSocketOpen(res => { + uni.setStorageSync('isSocketOpen', true) + console.log('连接成功!'); + this.lockReconnect = true; + this.isClose = false; + this.start() + }); + + // 监听消息 + this.onMsg() + + // 监听错误 + uni.onSocketError(err => { + console.log('连接错误', err); + uni.closeSocket(); + }); + + // 监听关闭 + uni.onSocketClose(res => { + console.log('关闭链接'); + this.isClose = true; + if (uni.getStorageSync('isSocketOpen')) { + this.lockReconnect = false + this.reconnect() + } + + + }); + } + + // 重连 + reconnect() { + if (this.lockReconnect) return; + clearTimeout(this.timer) + if (this.limit < 12) { + this.timer = setTimeout(() => { + console.log('重连中', this.limit); + this.init(); + this.reconnect() + }, 5000); + this.limit += 1 + } + } + + +} diff --git a/pages/public/chat/shopro/chat.scss b/pages/public/chat/shopro/chat.scss new file mode 100644 index 0000000..47aaec8 --- /dev/null +++ b/pages/public/chat/shopro/chat.scss @@ -0,0 +1,185 @@ +.bg-gradual-purple { + background-image: linear-gradient(45deg, #9000ff, #5e00ff); + color: #ffffff; +} + +.bg-white { + background-color: #ffffff; + color: #666666; +} + +.round { + border-radius: 5000upx; +} + +/* ================== + 聊天 + ==================== */ +.cu-avatar { + font-variant: small-caps; + margin: 0; + padding: 0; + display: inline-flex; + text-align: center; + justify-content: center; + align-items: center; + background-color: #ccc; + color: #ffffff; + white-space: nowrap; + position: relative; + width: 64upx; + height: 64upx; + background-size: cover; + background-position: center; + vertical-align: middle; + font-size: 1.5em; +} + +.cu-bar { + display: flex; + position: relative; + align-items: center; + min-height: 100upx; + justify-content: space-between; + background-color: #fff; +} + +.cu-bar .action { + display: flex; + align-items: center; + height: 100%; + justify-content: center; + max-width: 100%; +} + +.cu-bar.foot { + position: fixed; + width: 100%; + bottom: 0; + z-index: 1024; + box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1); +} + +.cu-chat { + display: flex; + flex-direction: column; +} + +.cu-chat .cu-item { + display: flex; + padding: 30upx 30upx 70upx; + position: relative; +} + +.cu-chat .cu-item > .cu-avatar { + width: 80upx; + height: 80upx; +} + +.cu-chat .cu-item > .main { + max-width: calc(100% - 260upx); + margin: 0 40upx; + display: flex; + align-items: center; +} + +.cu-chat .cu-item > image { + height: 320upx; +} + +.cu-chat .cu-item > .main .content { + padding: 20upx; + border-radius: 6upx; + display: inline-flex; + max-width: 100%; + align-items: center; + font-size: 30upx; + position: relative; + min-height: 80upx; + line-height: 40upx; + text-align: left; +} + +.cu-chat .cu-item > .main .content:not([class*='bg-']) { + background-color: #ffffff; + color: #333333; +} + +.cu-chat .cu-item .date { + position: absolute; + font-size: 24upx; + color: #8799a3; + width: calc(100% - 320upx); + bottom: 20upx; + left: 160upx; +} + +.cu-chat .cu-item .action { + padding: 0 30upx; + display: flex; + align-items: center; +} + +.cu-chat .cu-item > .main .content::after { + content: ''; + top: 27upx; + transform: rotate(45deg); + position: absolute; + z-index: 100; + display: inline-block; + overflow: hidden; + width: 24upx; + height: 24upx; + left: -12upx; + right: initial; + background-color: inherit; +} + +.cu-chat .cu-item.self > .main .content::after { + left: auto; + right: -12upx; +} + +.cu-chat .cu-item > .main .content::before { + content: ''; + top: 30upx; + transform: rotate(45deg); + position: absolute; + z-index: -1; + display: inline-block; + overflow: hidden; + width: 24upx; + height: 24upx; + left: -12upx; + right: initial; + background-color: inherit; + filter: blur(5upx); + opacity: 0.3; +} + +.cu-chat .cu-item > .main .content:not([class*='bg-'])::before { + background-color: #333333; + opacity: 0.1; +} + +.cu-chat .cu-item.self > .main .content::before { + left: auto; + right: -12upx; +} + +.cu-chat .cu-item.self { + justify-content: flex-end; + text-align: right; +} + +.cu-chat .cu-info { + display: inline-block; + margin: 20upx auto; + font-size: 24upx; + padding: 8upx 12upx; + background-color: rgba(0, 0, 0, 0.2); + border-radius: 6upx; + color: #ffffff; + max-width: 400upx; + line-height: 1.4; +} diff --git a/pages/public/chat/shopro/index.vue b/pages/public/chat/shopro/index.vue new file mode 100644 index 0000000..b35f4ea --- /dev/null +++ b/pages/public/chat/shopro/index.vue @@ -0,0 +1,1113 @@ + + + + + + diff --git a/pages/public/chat/wm/config.js b/pages/public/chat/wm/config.js new file mode 100644 index 0000000..2689e76 --- /dev/null +++ b/pages/public/chat/wm/config.js @@ -0,0 +1,131 @@ +import { + BASE_URL +} from '@/env.js' +const expression = [{ + 'title': '[zy]', + 'src': '/emoji/1.png' + }, { + 'title': '[zm]', + 'src': '/emoji/2.png' + }, { + 'title': '[jy]', + 'src': '/emoji/3.png' + }, + { + 'title': '[jyb]', + 'src': '/emoji/4.png' + }, { + 'title': '[bx]', + 'src': '/emoji/5.png' + }, { + 'title': '[kzn]', + 'src': '/emoji/6.png' + }, + { + 'title': '[gg]', + 'src': '/emoji/7.png' + }, { + 'title': '[ll]', + 'src': '/emoji/8.png' + }, { + 'title': '[jyll]', + 'src': '/emoji/9.png' + }, + { + 'title': '[o]', + 'src': '/emoji/10.png' + }, { + 'title': '[yz]', + 'src': '/emoji/11.png' + }, { + 'title': '[wx]', + 'src': '/emoji/12.png' + }, + { + 'title': '[zyb]', + 'src': '/emoji/13.png' + }, { + 'title': '[tp]', + 'src': '/emoji/14.png' + }, { + 'title': '[wxb]', + 'src': '/emoji/15.png' + }, + { + 'title': '[zyc]', + 'src': '/emoji/16.png' + }, { + 'title': '[llb]', + 'src': '/emoji/17.png' + }, { + 'title': '[xm]', + 'src': '/emoji/18.png' + }, + { + 'title': '[qz]', + 'src': '/emoji/19.png' + }, { + 'title': '[zmb]', + 'src': '/emoji/20.png' + }, { + 'title': '[kx]', + 'src': '/emoji/21.png' + }, + { + 'title': '[mm]', + 'src': '/emoji/22.png' + }, { + 'title': '[bz]', + 'src': '/emoji/23.png' + }, { + 'title': '[bkx]', + 'src': '/emoji/24.png' + }, + { + 'title': '[mg]', + 'src': '/emoji/25.png' + }, { + 'title': '[pz]', + 'src': '/emoji/26.png' + }, { + 'title': '[pzb]', + 'src': '/emoji/27.png' + }, + { + 'title': '[wxc]', + 'src': '/emoji/28.png' + }, { + 'title': '[jyc]', + 'src': '/emoji/29.png' + }, { + 'title': '[jyd]', + 'src': '/emoji/30.png' + }, + { + 'title': '[dm]', + 'src': '/emoji/31.png' + }, { + 'title': '[tpb]', + 'src': '/emoji/32.png' + }, { + 'title': '[tpc]', + 'src': '/emoji/33.png' + }, + { + 'title': '[tpd]', + 'src': '/emoji/34.png' + }, { + 'title': '[ly]', + 'src': '/emoji/35.png' + }, { + 'title': '[zyd]', + 'src': '/emoji/36.png' + }, +]; + +let service = BASE_URL.split('://')[1].split(':')[0]; +export default { + baseURL: service, // dev.7wpp.com 启动workerman服务的域名,无需填写协议和端口 + https_switch: false, // 是否启用https协议(默认关,正式版必开,且需要参考文档创建wss服务) + expression +} diff --git a/pages/public/chat/wm/index.vue b/pages/public/chat/wm/index.vue new file mode 100644 index 0000000..7d1eb2c --- /dev/null +++ b/pages/public/chat/wm/index.vue @@ -0,0 +1,1622 @@ + + + + + + + diff --git a/pages/public/faq.vue b/pages/public/faq.vue new file mode 100644 index 0000000..4c6adcb --- /dev/null +++ b/pages/public/faq.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/pages/public/feedback.vue b/pages/public/feedback.vue new file mode 100644 index 0000000..cc05908 --- /dev/null +++ b/pages/public/feedback.vue @@ -0,0 +1,217 @@ + +