diff --git a/common/common.js b/common/common.js index e940acd..a7e9c07 100644 --- a/common/common.js +++ b/common/common.js @@ -51,11 +51,6 @@ export default { * @returns */ removeTrailingZeros(numStr) { - // 判断传入参数是否为字符串,如果不是则转为字符串 - if (typeof numStr !== 'string') { - numStr = String(numStr); - } - if (numStr.includes('.')) { numStr = numStr.replace(/0+$/, ''); // 移除末尾的零 if (numStr.endsWith('.')) { diff --git a/common/config.js b/common/config.js index 51fc8de..bee9d11 100644 --- a/common/config.js +++ b/common/config.js @@ -8,7 +8,7 @@ import RequestManager from '@/common/request.js' let configData = null; let isLoading = false; let loadPromise = null; -const wx_version = "104"; +const wx_version = "103"; const defaultConfig = { "good_type": [{ "value": 0, "sort_order": 0, "is_show": 1, "name": "全部", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 1, "sort_order": 1, "is_show": 0, "name": "一番赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 2, "sort_order": 2, "is_show": 1, "name": "无限赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 3, "sort_order": 3, "is_show": 0, "name": "擂台赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 5, "sort_order": 4, "is_show": 0, "name": "积分赏", "pay_wechat": 0, "pay_balance": 0, "pay_currency": 0, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 0 }, { "value": 6, "sort_order": 5, "is_show": 1, "name": "限时活动", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 8, "sort_order": 6, "is_show": 1, "name": "领主赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 9, "sort_order": 7, "is_show": 0, "name": "连击赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 10, "sort_order": 8, "is_show": 0, "name": "商城赏", "pay_wechat": 1, "pay_balance": 0, "pay_currency": 0, "pay_currency2": 1, "pay_coupon": 0, "is_deduction": 0 }, { "value": 11, "sort_order": 9, "is_show": 0, "name": "自制赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 15, "sort_order": 15, "is_show": 0, "name": "福利屋", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 0, "pay_currency2": 0, "pay_coupon": 0, "is_deduction": 0 }, { "value": 16, "sort_order": 16, "is_show": 1, "name": "翻倍赏", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 1, "pay_currency2": 1, "pay_coupon": 1, "is_deduction": 1 }, { "value": 17, "sort_order": 17, "is_show": 0, "name": "外卖盒子", "pay_wechat": 1, "pay_balance": 1, "pay_currency": 0, "pay_currency2": 0, "pay_coupon": 0, "is_deduction": 0 }], "app_setting": { @@ -147,17 +147,8 @@ class ConfigManager { static getGoodType() { let goodType = this.get('good_type'); if (goodType != null) { - if (this.GetVersion()) { - return goodType.filter(item => item.is_show === 1 && (item.value === 2||item.value === 0)).map(item => { - return { - id: item.value, - title: item.name - } - }); - } + // goodType数组过滤,只保留is_show=1的项目 return goodType.filter(item => item.is_show === 1).map(item => { - console.log(item); - return { id: item.value, title: item.name diff --git a/package/index/coupon-center.vue b/package/index/coupon-center.vue new file mode 100644 index 0000000..f30d92c --- /dev/null +++ b/package/index/coupon-center.vue @@ -0,0 +1,213 @@ + + + + + + diff --git a/package/index/leitai.vue b/package/index/leitai.vue new file mode 100644 index 0000000..32adbbe --- /dev/null +++ b/package/index/leitai.vue @@ -0,0 +1,1941 @@ + + + + + + \ No newline at end of file diff --git a/package/index/lian-ji.vue b/package/index/lian-ji.vue new file mode 100644 index 0000000..5301bee --- /dev/null +++ b/package/index/lian-ji.vue @@ -0,0 +1,2186 @@ + + + + + + \ No newline at end of file diff --git a/package/index/sign.vue b/package/index/sign.vue new file mode 100644 index 0000000..2f207f8 --- /dev/null +++ b/package/index/sign.vue @@ -0,0 +1,312 @@ + + + + + + \ No newline at end of file diff --git a/package/mine/collect.vue b/package/mine/collect.vue new file mode 100644 index 0000000..0479772 --- /dev/null +++ b/package/mine/collect.vue @@ -0,0 +1,399 @@ + + + + + \ No newline at end of file diff --git a/package/mine/coupon-detail.vue b/package/mine/coupon-detail.vue new file mode 100644 index 0000000..a6639e8 --- /dev/null +++ b/package/mine/coupon-detail.vue @@ -0,0 +1,540 @@ + + + + + + \ No newline at end of file diff --git a/package/mine/equity.vue b/package/mine/equity.vue new file mode 100644 index 0000000..fbdb25d --- /dev/null +++ b/package/mine/equity.vue @@ -0,0 +1,899 @@ + + + + + + \ No newline at end of file diff --git a/package/mine/qy-rule.vue b/package/mine/qy-rule.vue new file mode 100644 index 0000000..7343d1b --- /dev/null +++ b/package/mine/qy-rule.vue @@ -0,0 +1,114 @@ + + + + + + \ No newline at end of file diff --git a/package/mine/skill-card.vue b/package/mine/skill-card.vue new file mode 100644 index 0000000..25e4ed7 --- /dev/null +++ b/package/mine/skill-card.vue @@ -0,0 +1,146 @@ + + + + + + diff --git a/package/mine/ti-qu.vue b/package/mine/ti-qu.vue new file mode 100644 index 0000000..4c72a63 --- /dev/null +++ b/package/mine/ti-qu.vue @@ -0,0 +1,622 @@ + + + + + + diff --git a/pages.json b/pages.json index 2966d08..a00c583 100644 --- a/pages.json +++ b/pages.json @@ -7,8 +7,7 @@ "^detail-preview-popup$": "@/components/detail-preview-popup/detail-preview-popup.vue", "^banner$": "@/components/banner/banner.vue" }, - "pages": [ - { + "pages": [{ "path": "pages/shouye/index", "style": { "navigationStyle": "custom", @@ -46,6 +45,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "pages/shouye/wxl", + "style": { + "navigationBarTitleText": "无限令", + "navigationBarBackgroundColor": "#222222", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/shouye/huanxiang", "style": { @@ -144,6 +151,7 @@ "navigationStyle": "custom" } }, + { "path": "pages/user/vip", "style": { @@ -152,6 +160,15 @@ "navigationBarTextStyle": "black" } }, + + { + "path": "pages/guize/guize", + "style": { + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTitleText": "", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/user/my_coupon", "style": { @@ -186,6 +203,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "pages/sangdai/hegui", + "style": { + "navigationBarTextStyle": "black", + "navigationStyle": "custom", + "disableSwipeBack": true + } + }, { "path": "pages/sangdai/sangdai", "style": { @@ -210,6 +235,7 @@ "navigationBarTextStyle": "black" } }, + { "path": "pages/user/change", "style": { @@ -218,6 +244,43 @@ "navigationBarTextStyle": "black" } }, + { + "path": "pages/DrawCard/index", + "style": { + "navigationBarTextStyle": "black", + "navigationStyle": "custom" + } + }, + { + "path": "pages/DrawCard/cardDetail", + "style": { + "navigationBarTextStyle": "black", + "navigationStyle": "custom" + } + }, + { + "path": "pages/DrawCard/tujian", + "style": { + "navigationBarBackgroundColor": "#222222", + "navigationBarTitleText": "图鉴", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/chouka/ka", + "style": { + "navigationBarTextStyle": "black", + "navigationStyle": "custom" + } + }, + { + "path": "pages/chouka/kace", + "style": { + "navigationBarBackgroundColor": "#222222", + "navigationBarTitleText": "卡册", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/chouka/detail", "style": { @@ -232,6 +295,22 @@ "navigationStyle": "custom" } }, + { + "path": "pages/zizhi/index", + "style": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "自制赏", + "navigationBarBackgroundColor": "#222222" + } + }, + { + "path": "pages/zizhi/detail", + "style": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "龙珠手办店", + "navigationBarBackgroundColor": "#222222" + } + }, { "path": "pages/infinite/index", "style": { @@ -240,6 +319,62 @@ "navigationBarBackgroundColor": "#222222" } }, + { + "path": "pages/infinite/UnlimitedOrder", + "style": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "魔晶令", + "navigationBarBackgroundColor": "#222222", + "navigationStyle": "custom" + } + }, + // { + // "path": "pages/shop/index", + // "style": { + // "navigationStyle": "custom", + // "transparentTitle": "none" + // } + // }, + // { + // "path": "pages/shop/list", + // "style": { + // "navigationBarTitleText": "", + // "navigationBarBackgroundColor": "#000000", + // "navigationBarTextStyle": "white" + // } + // }, + // { + // "path": "pages/shop/detail", + // "style": { + // "navigationBarTitleText": "商品详请", + // "navigationBarBackgroundColor": "#000000", + // "navigationBarTextStyle": "white" + // } + // }, + // { + // "path": "pages/shop/shop_order", + // "style": { + // "navigationBarTitleText": "我的订单", + // "navigationBarBackgroundColor": "#000000", + // "navigationBarTextStyle": "white" + // } + // }, + // { + // "path": "pages/shop/order_detail", + // "style": { + // "navigationBarTitleText": "订单详情", + // "navigationBarBackgroundColor": "#000000", + // "navigationBarTextStyle": "white" + // } + // }, + // { + // "path": "pages/shop/wuliu_detail", + // "style": { + // "navigationBarTitleText": "物流详情", + // "navigationBarBackgroundColor": "#000000", + // "navigationBarTextStyle": "white" + // } + // }, { "path": "pages/mall/index", "style": { @@ -248,6 +383,23 @@ "navigationStyle": "custom" } }, + + { + "path": "pages/fuli/fuli", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { + "path": "pages/fuli/fuli-detail", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, { "path": "pages/user/coupon", "style": { @@ -270,6 +422,7 @@ "navigationBarTitleText": "绑定手机号" } }, + { "path": "pages/shouye/yaoqing_ranking", "style": { @@ -301,53 +454,118 @@ "style": { "navigationStyle": "custom" } - }, - { + }, { "path": "pages/shouye/dada_ranking", "style": { "navigationStyle": "custom" } }, { - "path": "pages/infinite/reward_records", - "style": { + "path" : "pages/infinite/reward_records", + "style" : + { "navigationStyle": "custom" } }, { - "path": "pages/shouye/danye", - "style": { + "path" : "pages/shouye/danye", + "style" : + { "navigationStyle": "custom" } }, { - "path": "pages/other/prize_draw", - "style": { + "path" : "pages/other/prize_draw", + "style" : + { "navigationStyle": "custom" } }, { - "path": "pages/other/order_list", - "style": { + "path" : "pages/other/order_list", + "style" : + { "navigationStyle": "custom" } }, { - "path": "pages/other/order_info", - "style": { + "path" : "pages/other/order_info", + "style" : + { "navigationStyle": "custom" } - }, - { - "path": "pages/guize/guize", - "style": { - "navigationBarBackgroundColor": "#FFFFFF", - "navigationBarTitleText": "", - "navigationBarTextStyle": "black" - } } ], - "subPackages": [], + "subPackages": [{ + "root": "package/index", + "pages": [{ + "path": "sign", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "lian-ji", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "coupon-center", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "leitai", + "style": { + "navigationBarTitleText": "擂台赏", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "package/mine", + "pages": [{ + "path": "collect", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "skill-card", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "equity", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "qy-rule", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "coupon-detail", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "ti-qu", + "style": { + "navigationStyle": "custom" + } + } + ] + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "友达赏", @@ -362,8 +580,7 @@ "borderStyle": "black", "backgroundColor": "#FFFFFF", "iconWidth": "48rpx", - "list": [ - { + "list": [{ "pagePath": "pages/shouye/index", "iconPath": "static/tabbar/m1.png", "selectedIconPath": "static/tabbar/s1.png", diff --git a/pages/fuli/fuli-detail.vue b/pages/fuli/fuli-detail.vue new file mode 100644 index 0000000..f721023 --- /dev/null +++ b/pages/fuli/fuli-detail.vue @@ -0,0 +1,2478 @@ + + + + \ No newline at end of file diff --git a/pages/fuli/fuli.vue b/pages/fuli/fuli.vue new file mode 100644 index 0000000..e5e3182 --- /dev/null +++ b/pages/fuli/fuli.vue @@ -0,0 +1,408 @@ + + + + + + diff --git a/pages/guize/guize.vue b/pages/guize/guize.vue index 23209f1..e33dc57 100644 --- a/pages/guize/guize.vue +++ b/pages/guize/guize.vue @@ -69,7 +69,6 @@ if (e.type == 16) { title = '签到规则' } - this.title = title uni.setNavigationBarTitle({ title: title diff --git a/pages/infinite/UnlimitedOrder.vue b/pages/infinite/UnlimitedOrder.vue new file mode 100644 index 0000000..e3d3e74 --- /dev/null +++ b/pages/infinite/UnlimitedOrder.vue @@ -0,0 +1,446 @@ + + + + + diff --git a/pages/sangdai/hegui.vue b/pages/sangdai/hegui.vue new file mode 100644 index 0000000..61e7a95 --- /dev/null +++ b/pages/sangdai/hegui.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/pages/sangdai/sangdai copy.vue b/pages/sangdai/sangdai copy.vue new file mode 100644 index 0000000..9b32055 --- /dev/null +++ b/pages/sangdai/sangdai copy.vue @@ -0,0 +1,1916 @@ + + + + + diff --git a/pages/zizhi/detail.vue b/pages/zizhi/detail.vue new file mode 100644 index 0000000..8982be1 --- /dev/null +++ b/pages/zizhi/detail.vue @@ -0,0 +1,315 @@ + + + + + diff --git a/pages/zizhi/index.vue b/pages/zizhi/index.vue new file mode 100644 index 0000000..900ab14 --- /dev/null +++ b/pages/zizhi/index.vue @@ -0,0 +1,238 @@ + + + + +