diff --git a/androidPrivacy.json b/androidPrivacy.json new file mode 100644 index 0000000..1705916 --- /dev/null +++ b/androidPrivacy.json @@ -0,0 +1,3 @@ +{ + "prompt": "template" +} diff --git a/mall-app-t.rar b/mall-app-t.rar new file mode 100644 index 0000000..6d25113 Binary files /dev/null and b/mall-app-t.rar differ diff --git a/manifest.json b/manifest.json index c76963d..fdfc1b2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,31 +1,34 @@ { - "name": "mall-app-t", - "appid": "__UNI__B201544", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, + "name" : "豫京牛商家端", + "appid" : "__UNI__B201544", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 }, - "compatible": { - "ignoreVersion": true + "compatible" : { + "ignoreVersion" : true }, /* 模块配置 */ - "modules": {}, + "modules" : { + "Barcode" : {}, + "Camera" : {} + }, /* 应用发布信息 */ - "distribute": { + "distribute" : { /* android打包配置 */ - "android": { - "permissions": [ + "android" : { + "permissions" : [ "", "", "", @@ -44,32 +47,71 @@ ] }, /* ios打包配置 */ - "ios": {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ - "sdkConfigs": {} + "sdkConfigs" : { + "ad" : {} + }, + "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 + } } }, /* 快应用特有相关 */ - "quickapp": {}, + "quickapp" : {}, /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wx64387dc8bba916ec", - "setting": { - "urlCheck": false + "mp-weixin" : { + "appid" : "wx64387dc8bba916ec", + "setting" : { + "urlCheck" : false }, - "usingComponents": true + "usingComponents" : true }, - "mp-alipay": { - "usingComponents": true + "mp-alipay" : { + "usingComponents" : true }, - "mp-baidu": { - "usingComponents": true + "mp-baidu" : { + "usingComponents" : true }, - "mp-toutiao": { - "usingComponents": true + "mp-toutiao" : { + "usingComponents" : true }, - "uniStatistics": { - "enable": false + "uniStatistics" : { + "enable" : false }, - "vueVersion": "3" + "vueVersion" : "3" } diff --git a/pages.json b/pages.json index 20c9dfa..ee3cce9 100644 --- a/pages.json +++ b/pages.json @@ -1,225 +1,222 @@ { - "easycom": { - "autoscan": true, - "custom": { - "^p-(.*)": "@/peach/components/p-$1/p-$1.vue", - "^pb-(.*)": "@/peach/ui/pb-$1/pb-$1.vue" - } + "easycom": { + "autoscan": true, + "custom": { + "^p-(.*)": "@/peach/components/p-$1/p-$1.vue", + "^pb-(.*)": "@/peach/ui/pb-$1/pb-$1.vue" + } + }, + "pages": [ + //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/redirect" }, - "pages": [ - //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/index/redirect" - }, - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页" - }, - "meta": { - "auth": true - } - }, - { - "path": "pages/index/order", - "style": { - "navigationBarTitleText": "订单", - "enablePullDownRefresh": true - }, - "meta": { - "auth": true - } - }, - { - "path": "pages/index/product", - "style": { - "navigationBarTitleText": "产品", - "enablePullDownRefresh": true - }, + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "首页" + }, + "meta": { + "auth": true + } + }, + { + "path": "pages/index/order", + "style": { + "navigationBarTitleText": "订单", + "enablePullDownRefresh": true + }, + "meta": { + "auth": true + } + }, + { + "path": "pages/index/product", + "style": { + "navigationBarTitleText": "产品", + "enablePullDownRefresh": true + }, - "meta": { - "auth": false - } - }, - { - "path": "pages/index/my", - "style": { - "navigationBarTitleText": "我的" - }, - "meta": { - "auth": false - } - }, - { - "path": "pages/index/icons", - "style": { - "navigationBarTitleText": "ICONS" - }, - "meta": { - "auth": false - } - }, - { - "path": "pages/index/login", - "style": { - "navigationBarTitleText": "登录" - }, - "meta": { - "auth": false - } - } - ], - "subPackages": [ - { - "root": "pages/public", - "pages": [ - { - "path": "error", - "style": { - "navigationBarTitleText": "错误页面" - } - }, - { - "path": "setting", - "style": { - "navigationBarTitleText": "系统设置" - } - }, - { - "path": "richtext", - "style": { - "navigationBarTitleText": "富文本" - } - }, - { - "path": "faq", - "style": { - "navigationBarTitleText": "常见问题" - } - }, - { - "path": "webview", - "style": { - "navigationBarTitleText": "" - } - } - ] - }, - { - "root": "pages/user", - "pages": [ - { - "path": "wallet/money", - "style": { - "navigationBarTitleText": "余额" - }, - "meta": { - "auth": false - } - }, - { - "path": "wallet/withdraw", - "style": { - "navigationBarTitleText": "提现" - }, - "meta": { - "auth": true - } - }, - { - "path": "point/buy", - "style": { - "navigationBarTitleText": "购买积分" - }, - "meta": { - "auth": true - } - }, - { - "path": "point/share", - "style": { - "navigationBarTitleText": "分发积分" - }, - "meta": { - "auth": true - } - }, - { - "path": "point/loglist", - "style": { - "navigationBarTitleText": "历史积分", - "enablePullDownRefresh": true - }, - "meta": { - "auth": true - } - } - ] - }, - { - "root": "pages/product", - "pages": [ - { - "path": "manageGoods", - "style": { - "navigationBarTitleText": "商品管理" - }, - "meta": { - "auth": false - } - }, - { - "path": "sku", - "style": { - "navigationBarTitleText": "商品属性" - }, - "meta": { - "auth": false - } - } - ] - }, - { - "root": "pages/order", - "pages": [ - { - "path": "detail", - "style": { - "navigationBarTitleText": "订单详情" - }, - "meta": { - "auth": true - } - } - ] - } - ], - "tabBar": { - "list": [ - { - "pagePath": "pages/index/index" - }, - { - "pagePath": "pages/index/product" - }, - { - "pagePath": "pages/index/order" - }, - { - "pagePath": "pages/index/my" - }, - { - "pagePath": "pages/index/icons" - } - ] + "meta": { + "auth": false + } }, + { + "path": "pages/index/my", + "style": { + "navigationBarTitleText": "我的" + }, + "meta": { + "auth": false + } + }, + { + "path": "pages/index/icons", + "style": { + "navigationBarTitleText": "ICONS" + }, + "meta": { + "auth": false + } + }, + { + "path": "pages/index/login", + "style": { + "navigationBarTitleText": "登录" + }, + "meta": { + "auth": false + } + } + ], + "subPackages": [ + { + "root": "pages/public", + "pages": [ + { + "path": "error", + "style": { + "navigationBarTitleText": "错误页面" + } + }, + { + "path": "setting", + "style": { + "navigationBarTitleText": "系统设置" + } + }, + { + "path": "richtext", + "style": { + "navigationBarTitleText": "富文本" + } + }, + { + "path": "faq", + "style": { + "navigationBarTitleText": "常见问题" + } + }, + { + "path": "webview", + "style": { + "navigationBarTitleText": "" + } + } + ] + }, + { + "root": "pages/user", + "pages": [ + { + "path": "wallet/money", + "style": { + "navigationBarTitleText": "余额" + }, + "meta": { + "auth": false + } + }, + { + "path": "wallet/withdraw", + "style": { + "navigationBarTitleText": "提现" + }, + "meta": { + "auth": true + } + }, + { + "path": "point/buy", + "style": { + "navigationBarTitleText": "购买积分" + }, + "meta": { + "auth": true + } + }, + { + "path": "point/share", + "style": { + "navigationBarTitleText": "分发积分" + }, + "meta": { + "auth": true + } + }, + { + "path": "point/loglist", + "style": { + "navigationBarTitleText": "历史积分", + "enablePullDownRefresh": true + }, + "meta": { + "auth": true + } + } + ] + }, + { + "root": "pages/product", + "pages": [ + { + "path": "manageGoods", + "style": { + "navigationBarTitleText": "商品管理" + }, + "meta": { + "auth": false + } + }, + { + "path": "sku", + "style": { + "navigationBarTitleText": "商品属性" + }, + "meta": { + "auth": false + } + } + ] + }, + { + "root": "pages/order", + "pages": [ + { + "path": "detail", + "style": { + "navigationBarTitleText": "订单详情" + }, + "meta": { + "auth": true + } + } + ] + } + ], + "tabBar": { + "list": [ + { + "pagePath": "pages/index/index" + }, + { + "pagePath": "pages/index/product" + }, + { + "pagePath": "pages/index/order" + }, + { + "pagePath": "pages/index/my" + } + ] + }, - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", - "navigationStyle": "custom" - }, - "uniIdRouter": {} + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "navigationStyle": "custom" + }, + "uniIdRouter": {} } diff --git a/pages/index/index.vue b/pages/index/index.vue index 26c0b04..1ff9daa 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,49 +1,49 @@ diff --git a/pages/index/login.vue b/pages/index/login.vue index 47e169d..fddd5cc 100644 --- a/pages/index/login.vue +++ b/pages/index/login.vue @@ -6,15 +6,32 @@ - + - + @@ -24,8 +41,12 @@ diff --git a/pages/product/sku.vue b/pages/product/sku.vue index 507e249..b8df175 100644 --- a/pages/product/sku.vue +++ b/pages/product/sku.vue @@ -1,68 +1,68 @@ diff --git a/pages/user/point/share.vue b/pages/user/point/share.vue index 7b09fc8..1943574 100644 --- a/pages/user/point/share.vue +++ b/pages/user/point/share.vue @@ -1,68 +1,68 @@ diff --git a/peach/api/pay/point.js b/peach/api/pay/point.js index 61f0b7f..902c739 100644 --- a/peach/api/pay/point.js +++ b/peach/api/pay/point.js @@ -1,32 +1,32 @@ import request from '@/peach/request' const PointApi = { - /** - * @author Ankkaya - * @description 分发积分 - * @param {String} memberId - 用户 id - * @param {Number} point - 积分 - * @returns {Type} - */ - sendPoint: (data) => { - return request({ - url: '/particulars/point/send-member', - method: 'post', - data, - custom: { - showSuccess: true, - successMsg: '赠送成功', - }, - }) - }, + /** + * @author Ankkaya + * @description 分发积分 + * @param {String} memberId - 用户 id + * @param {Number} point - 积分 + * @returns {Type} + */ + sendPoint: (data) => { + return request({ + url: '/particulars/point/send-member', + method: 'post', + data, + custom: { + showSuccess: true, + successMsg: '赠送成功', + }, + }) + }, - getPointList: (data) => { - return request({ - url: '/particulars/point/page-record', - method: 'get', - params: data, - }) - }, + // 获取积分配置信息 + getPointConfig: () => { + return request({ + url: '/particulars/point/get-config', + method: 'get', + }) + }, } export default PointApi diff --git a/peach/api/promotion/article.js b/peach/api/promotion/article.js new file mode 100644 index 0000000..c5f5c62 --- /dev/null +++ b/peach/api/promotion/article.js @@ -0,0 +1,15 @@ +import request from '@/peach/request' + +export default { + // 获得文章详情 + getArticle: (id, title) => { + return request({ + url: '/promotion/article/get', + method: 'GET', + params: { id, title }, + custom: { + auth: false, + }, + }) + }, +} diff --git a/peach/api/trade/goods.js b/peach/api/trade/goods.js index 2756734..f94f11e 100644 --- a/peach/api/trade/goods.js +++ b/peach/api/trade/goods.js @@ -1,76 +1,142 @@ import request from '@/peach/request' const GoodsApi = { - // 商品列表 - getProductList: (data) => { - return request({ - url: '/product/spu/page', - method: 'GET', - params: data, - }) - }, - // 商品详情 spuIds - getProduct: (data) => { - return request({ - url: '/product/spu/get-detail', - method: 'GET', - params: data, - }) - }, - // 添加商品 - addProduct: (data) => { - return request({ - url: '/product/spu/create', - method: 'POST', - data, - }) - }, - // 修改商品 - editProduct: (data) => { - return request({ - url: '/product/spu/update', - method: 'PUT', - data, - }) - }, - // 删除商品 - delProduct: (data) => { - return request({ - url: '/product/spu/delete', - method: 'DELETE', - params: data, - }) - }, - // 商品分类 - getGoodsCategory: (data) => { - return request({ - url: '/product/category/list', - method: 'GET', - params: data, - }) - }, - // 商品品牌 - getBrand: (data) => { - return request({ - url: '/product/brand/list', - method: 'GET', - params: data, - }) - }, - // 历史属性 - getHistoryProperty: () => { - return request({ - url: '/product/property/history-list', - method: 'GET', - }) - }, - getPropertyList: (data) => { - return request({ - url: '/product/property/get', - method: 'GET', - params: data, - }) - }, + // 商品列表 + getProductList: (data) => { + return request({ + url: '/product/spu/page', + method: 'GET', + params: data, + }) + }, + // 商品详情 spuIds + getProduct: (data) => { + return request({ + url: '/product/spu/get-detail', + method: 'GET', + params: data, + }) + }, + // 添加商品 + addProduct: (data) => { + return request({ + url: '/product/spu/create', + method: 'POST', + data, + }) + }, + // 修改商品 + editProduct: (data) => { + return request({ + url: '/product/spu/update', + method: 'PUT', + data, + }) + }, + // 删除商品 + delProduct: (data) => { + return request({ + url: '/product/spu/delete', + method: 'DELETE', + params: data, + }) + }, + // 商品分类 + getGoodsCategory: (data) => { + return request({ + url: '/product/category/list', + method: 'GET', + params: data, + }) + }, + // 商品品牌 + getBrand: (data) => { + return request({ + url: '/product/brand/list', + method: 'GET', + params: data, + }) + }, + // 历史属性 + getHistoryProperty: () => { + return request({ + url: '/product/property/history-list', + method: 'GET', + }) + }, + getPropertyList: (data) => { + return request({ + url: '/product/property/get', + method: 'GET', + params: data, + }) + }, + // 创建商品属性项 + createProperty: (data) => { + return request({ + url: '/product/property/create', + method: 'POST', + data, + custom: { + successMsg: '新增成功', + }, + }) + }, + // 修改商品属性项 + editProperty: (data) => { + return request({ + url: '/product/property/update', + method: 'PUT', + data, + custom: { + successMsg: '修改成功', + }, + }) + }, + // 删除商品属性项 + delProperty: (data) => { + return request({ + url: '/product/property/delete', + method: 'DELETE', + params: data, + custom: { + successMsg: '删除成功', + }, + }) + }, + // 创建商品属性值 + createPropertyValue: (data) => { + return request({ + url: '/property/value/create', + method: 'POST', + data, + custom: { + successMsg: '新增成功', + }, + }) + }, + // 删除商品属性值 + delPropertyValue: (data) => { + return request({ + url: '/property/value/delete', + method: 'DELETE', + params: data, + custom: { + successMsg: '删除成功', + }, + }) + }, + // 修改商品属性值 + editPropertyValue: (data) => { + return request({ + url: '/property/value/update', + method: 'PUT', + data, + custom: { + successMsg: '修改成功', + }, + }) + }, } export default GoodsApi diff --git a/peach/hooks/useModal.js b/peach/hooks/useModal.js index 4046d14..213f534 100644 --- a/peach/hooks/useModal.js +++ b/peach/hooks/useModal.js @@ -120,9 +120,9 @@ export function getSmsCode(event, mobile) { } AuthUtil.sendSmsCode(mobile, scene).then((res) => { - // if (res.code === 0) { - // modalStore.lastTimer[event] = dayjs().unix() - // } + if (res.code === 0) { + modalStore.lastTimer[event] = dayjs().unix() + } }) } diff --git a/peach/store/app.js b/peach/store/app.js index 4a24b0b..8b12a60 100644 --- a/peach/store/app.js +++ b/peach/store/app.js @@ -5,177 +5,171 @@ import $router from '@/peach/router' import useSysStore from './sys' const useAppStore = defineStore( - 'app', - () => { - /** - * @description 应用信息 - * @param string name 应用名称 - * @param string logo 应用logo - * @param string version 应用版本 - * @param string copyright 版权信息 - * @param string copyrightTime 版权时间 - * @param string cdnurl 静态资源域名 - * @param string filesystem 文件系统 - */ - const info = ref({ - name: '', - logo: '', - version: '', - copyright: '', - copytime: '', - cdnurl: '', - filesystem: '', - }) + 'app', + () => { + /** + * @description 应用信息 + * @param string name 应用名称 + * @param string logo 应用logo + * @param string version 应用版本 + * @param string copyright 版权信息 + * @param string copyrightTime 版权时间 + * @param string cdnurl 静态资源域名 + * @param string filesystem 文件系统 + */ + const info = ref({ + name: '', + logo: '', + version: '', + copyright: '', + copytime: '', + cdnurl: '', + filesystem: '', + }) - /** - * @description 平台信息 - * @param Array share.methods 分享方式 - * @param Object share.forwardInfo 转发信息 - * @param Object share.posterInfo 海报信息 - * @param string share.linkAddress 分享链接地址 - * @param number bindMobile 绑定手机号提醒 0: 提醒 1: 不提醒 - */ - const platform = ref({ - share: { - methods: [], - forwardInfo: {}, - posterInfo: {}, - linkAddress: '', + /** + * @description 平台信息 + * @param Array share.methods 分享方式 + * @param Object share.forwardInfo 转发信息 + * @param Object share.posterInfo 海报信息 + * @param string share.linkAddress 分享链接地址 + * @param number bindMobile 绑定手机号提醒 0: 提醒 1: 不提醒 + */ + const platform = ref({ + share: { + methods: [], + forwardInfo: {}, + posterInfo: {}, + linkAddress: '', + }, + bindMobile: 0, + }) + + const chat = ref({}) + + /** + * @description 模板信息 + * @param Object basic 基础模板 + * @param Object tabbar 底部导航模板 + */ + const template = ref({ + basic: { + tabbar: { + items: [ + { + activeIconUrl: '/static/a-index.png', + iconUrl: '/static/index.png', + text: '首页', + url: '/pages/index/index', }, - bindMobile: 0, - }) - - const chat = ref({}) - - /** - * @description 模板信息 - * @param Object basic 基础模板 - * @param Object tabbar 底部导航模板 - */ - const template = ref({ - basic: { - tabbar: { - items: [ - { - activeIconUrl: '/static/a-index.png', - iconUrl: '/static/index.png', - text: '首页', - url: '/pages/index/index', - }, - { - activeIconUrl: '/static/a-product.png', - iconUrl: '/static/product.png', - text: '产品', - url: '/pages/index/product', - }, - { - activeIconUrl: '/static/a-order.png', - iconUrl: '/static/order.png', - text: '订单', - url: '/pages/index/order', - }, - { - activeIconUrl: '/static/a-my.png', - iconUrl: '/static/my.png', - text: '我的', - url: '/pages/index/my', - }, - { - activeIconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-002.png', - iconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-001.png', - text: 'icons', - url: '/pages/index/icons', - }, - ], - style: { - activeColor: '#fc4141', - bgColor: '#fff', - bgType: 'color', - color: '#282828', - }, - theme: 'red', - }, + { + activeIconUrl: '/static/a-product.png', + iconUrl: '/static/product.png', + text: '产品', + url: '/pages/index/product', }, - }) - - // 全局分享信息 - const shareInfo = ref({}) - - // 小程序发货信息管理 0: 没有 1:有 - const hasWechatTradeManaged = ref(0) - - /** - * @author Ankkaya - * @description 小程序初始化 - * @param {Type} - - * @returns {Type} - */ - async function init() { - // 检查网络 - const networkStatus = await $platform.checkNetwork() - if (!networkStatus) { - $router.error('NetworkError') - } - - if (true) { - this.info = { - name: '🍑商城', - logo: 'https://static.iocoder.cn/ruoyi-vue-pro-logo.png', - version: '1.0.0', - copyright: '全部开源,个人与企业可 100% 免费使用', - copytime: 'Copyright© 2018-2024', - - cdnurl: 'https://file.sheepjs.com', // 云存储域名 - filesystem: 'qcloud', // 云存储平台 - } - this.platform = { - share: { - methods: ['poster', 'link'], - linkAddress: 'https://shopro.sheepjs.com/#/', - posterInfo: { - user_bg: '/static/img/shop/config/user-poster-bg.png', - goods_bg: '/static/img/shop/config/goods-poster-bg.png', - groupon_bg: '/static/img/shop/config/groupon-poster-bg.png', - }, - }, - bind_mobile: 0, - } - this.chat = { - chat_domain: 'https://api.shopro.sheepjs.com/chat', - room_id: 'admin', - } - this.has_wechat_trade_managed = 0 - - // 加载主题 - const sysStore = useSysStore() - sysStore.setTheme() - - return Promise.resolve(true) - } else { - $router.error('InitError', res.msg || '加载失败') - } - } - - return { - info, - platform, - chat, - template, - shareInfo, - hasWechatTradeManaged, - init, - } - }, - { - persist: { - enabled: true, - strategies: [ - { - key: 'app-store', - }, - ], + { + activeIconUrl: '/static/a-order.png', + iconUrl: '/static/order.png', + text: '订单', + url: '/pages/index/order', + }, + { + activeIconUrl: '/static/a-my.png', + iconUrl: '/static/my.png', + text: '我的', + url: '/pages/index/my', + }, + ], + style: { + activeColor: '#fc4141', + bgColor: '#fff', + bgType: 'color', + color: '#282828', + }, + theme: 'red', }, + }, + }) + + // 全局分享信息 + const shareInfo = ref({}) + + // 小程序发货信息管理 0: 没有 1:有 + const hasWechatTradeManaged = ref(0) + + /** + * @author Ankkaya + * @description 小程序初始化 + * @param {Type} - + * @returns {Type} + */ + async function init() { + // 检查网络 + const networkStatus = await $platform.checkNetwork() + if (!networkStatus) { + $router.error('NetworkError') + } + + if (true) { + this.info = { + name: '🍑商城', + logo: 'https://static.iocoder.cn/ruoyi-vue-pro-logo.png', + version: '1.0.0', + copyright: '全部开源,个人与企业可 100% 免费使用', + copytime: 'Copyright© 2018-2024', + + cdnurl: 'https://file.sheepjs.com', // 云存储域名 + filesystem: 'qcloud', // 云存储平台 + } + this.platform = { + share: { + methods: ['poster', 'link'], + linkAddress: 'https://shopro.sheepjs.com/#/', + posterInfo: { + user_bg: '/static/img/shop/config/user-poster-bg.png', + goods_bg: '/static/img/shop/config/goods-poster-bg.png', + groupon_bg: '/static/img/shop/config/groupon-poster-bg.png', + }, + }, + bind_mobile: 0, + } + this.chat = { + chat_domain: 'https://api.shopro.sheepjs.com/chat', + room_id: 'admin', + } + this.has_wechat_trade_managed = 0 + + // 加载主题 + const sysStore = useSysStore() + sysStore.setTheme() + + return Promise.resolve(true) + } else { + $router.error('InitError', res.msg || '加载失败') + } } + + return { + info, + platform, + chat, + template, + shareInfo, + hasWechatTradeManaged, + init, + } + }, + { + persist: { + enabled: true, + strategies: [ + { + key: 'app-store', + }, + ], + }, + } ) export default useAppStore diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue index e42bfaf..b068e3f 100644 --- a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue +++ b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue @@ -1,316 +1,319 @@ +.uni-popup__info { + color: #909399; +} +