diff --git a/App.vue b/App.vue index 9b047a7..2e87290 100644 --- a/App.vue +++ b/App.vue @@ -63,7 +63,6 @@ color: $white-color !important; } - .mt-10 { margin-top: 10rpx; } @@ -352,7 +351,7 @@ flex-direction: column; justify-content: center; padding: 30rpx; - } + } .dialog-title-box { display: flex; @@ -371,4 +370,76 @@ .has-icon { margin-left: -48rpx; } + + .condition-box { + position: fixed; + /* #ifdef H5 */ + top: 80rpx; + /* #endif */ + /* #ifdef MP-BAIDU */ + top: 0; + /* #endif */ + left: 0; + display: flex; + flex-direction: column; + box-sizing: border-box; + width: 100%; + z-index: 99; + } + + .condition-input-box { + display: flex; + flex-direction: row; + align-items: center; + padding: 20rpx 30rpx 0rpx 30rpx; + } + + .condition-input-container { + display: flex; + flex-direction: row; + align-items: center; + background-color: white; + padding: 10rpx; + border-radius: 10rpx; + flex: 1; + } + + .condition-option-btn { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + border-radius: 15rpx; + padding: 4rpx 15rpx; + font-size: 20rpx; + background-color: $divider-color; + } + + .condition-option-btn:active { + background-color: $gray-bg-color; + } + + .condition-input-text { + font-size: 28rpx; + flex: 1; + text-align: center; + margin-right: 10rpx; + } + + .condition-content { + margin-top: 5rpx; + max-height: 0vh; + background-color: $bg-gray-shade-color; + overflow: hidden; + transition: max-height 0.5s ease; + } + + .condition-content.visible { + max-height: 100vh; + } + + .condition-mask { + background-color: $bg-gray-shade-color; + height: 100vh; + } \ No newline at end of file diff --git a/main.js b/main.js index 19f5add..4e22892 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,8 @@ export function createApp() { appTitle: 'AI喵著', appUrl: appUrl, onlyDelBtns: [], - cancelEditBtns: [] + cancelEditBtns: [], + primaryColor: '#FFA900' }) return { app diff --git a/pages.json b/pages.json index 2d4d36a..d0afdf7 100644 --- a/pages.json +++ b/pages.json @@ -100,14 +100,26 @@ "navigationBarTitleText": "", "enablePullDownRefresh": true } - }, - { - "path" : "pages/copyright/refund/refund", - "style" : - { - "navigationBarTitleText" : "", - "enablePullDownRefresh": true - } + }, + { + "path": "pages/copyright/refund/refund", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/copyright/applyRefund/applyRefund", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/copyright/repair/repair", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true + } } ], "globalStyle": { diff --git a/pages/copyright/applyRefund/applyRefund.vue b/pages/copyright/applyRefund/applyRefund.vue new file mode 100644 index 0000000..3b9c626 --- /dev/null +++ b/pages/copyright/applyRefund/applyRefund.vue @@ -0,0 +1,536 @@ + + + + + \ No newline at end of file diff --git a/pages/copyright/refund/refund.vue b/pages/copyright/refund/refund.vue index 66564f4..44aa666 100644 --- a/pages/copyright/refund/refund.vue +++ b/pages/copyright/refund/refund.vue @@ -58,8 +58,10 @@ {{item.gmtCreate}} - - {{item.projName}} + + + {{item.projName}} + @@ -258,7 +260,7 @@ doLoadMore() { //判断是否正在加载中 与是否存在更多数据 const _self = this - if (_self.isLoadMore || !_self.hasMore) { + if (_self.isLoadMore || _self.hasMore == 'noMore') { return } _self.isLoadMore = true @@ -289,23 +291,18 @@ const fileName = item.value const path = item.url //判断是pdf还是图片 - const tempPath = - 'https://www.aimzhu.com/copyright/route/file/v2/download/true/04e5694a-1438-41ed-bda5-7cb0bf67ea8d' - const tempFileName = '18b20温度模块.PDF' - _self.download(tempPath, tempFileName) - // if (current.value.toLowerCase().endsWith('.pdf')) { - // //文件,下载文件 - // _self.download(current) - // } else { - // //图片 - // const urls = [current.url] - // console.log((urls)) - // uni.previewImage({ - // urls: urls, - // }) - // } + if (fileName.toLowerCase().endsWith('.pdf')) { + //文件,下载文件 + _self.download(path, fileName) + } else { + //图片 + const urls = [path] + uni.previewImage({ + urls: urls, + }) + } }, - //下载pdf + //取消申请 cancelApply(e) { const item = e.currentTarget.dataset.value const _self = this @@ -411,77 +408,7 @@ \ No newline at end of file diff --git a/pages/login/login.vue b/pages/login/login.vue index 7efe152..58cd151 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -44,10 +44,15 @@ }) // #endif // #ifdef H5 || MP-BAIDU + + // set('token', + // 'WWZRMmsySWJib2hKQUZVVzdYdjFBS3RGRko5UzVVb1dWdm1SZUVxVnUycVhTeDFtN0Q2aHcyTXlwVFRXUTJZM2I5eWRjc2VXK0lLd2d2Z1pCSndydFZQYjZ6ejIyakd6czV4UVF2V3hSRUxsNWZlOStITjhTU1JWdXNWWExIeTloNHNsVkdPMWQ3Q0JGamNhSnpSNXhVVXN5Wnk1NmpnOGNsckxueHNiZFBVdlU3NGpkZDRHMTQrc1pYTGlyZ1c3MnprdFRvTUhWODhJR2M1THhObkN4NGpKZk9sUmVJcTJqYTBZalp0YkNxRU5aNjA3WklLQnRTMVdEdXg0NW1tMEV5V3RSSEEvV0M2ZmFoRWtzRGRoZkd0ZUcyZ2pKRFYwa3YxYThDZm53ZGE5bTBYKzgrVm8yV1h1aTdVU2FQbVAwbFZ6TnhobkxvNGswMWlsMGtiSVNBPT0=' + // ) + // set('userId', 'c2438eb8-2685-49a9-bf02-5111a5192d96') set('token', - 'WWZRMmsySWJib2hKQUZVVzdYdjFBS3RGRko5UzVVb1dWdm1SZUVxVnUycVhTeDFtN0Q2aHcyTXlwVFRXUTJZM2I5eWRjc2VXK0lLd2d2Z1pCSndydFZQYjZ6ejIyakd6czV4UVF2V3hSRUxsNWZlOStITjhTU1JWdXNWWExIeTloNHNsVkdPMWQ3Q0JGamNhSnpSNXhVVXN5Wnk1NmpnOGNsckxueHNiZFBVdlU3NGpkZDRHMTQrc1pYTGlyZ1c3MnprdFRvTUhWODhJR2M1THhObkN4NGpKZk9sUmVJcTJqYTBZalp0YkNxRU5aNjA3WklLQnRTMVdEdXg0NW1tMEV5V3RSSEEvV0M2ZmFoRWtzRGRoZkd0ZUcyZ2pKRFYwa3YxYThDZm53ZGE5bTBYKzgrVm8yV1h1aTdVU2FQbVAwbFZ6TnhobkxvNGswMWlsMGtiSVNBPT0=' - ) - set('userId', 'c2438eb8-2685-49a9-bf02-5111a5192d96') + 'NjBIOFRORDcraDc4U1RsUTI4a3B5em50VVVzclp2QjdFWDV2dVJJc0VLL3Fhazd0bjZPaU9Tc3E1cHc2cmYyZTc0Y2FITTdRR0pMTk1xaVRHM0I1d0NiTnJ4b1BVSVNtUFl4SlFtR1g2M0tCQTc2TXM4L3d4ZVhwM09VREN0bDMrTXNoa0trWDR1eG5PdG84OXZ4UVE0dDhRUDdQRk1Qd2N0ZWVLSzJaZzBkZ0RhQS84M3B5WDN1aGlEdWQwR3BIZ24vWDBUWmhrNUZiQkJPUDJKQngyL002Rm5aOG5JZ01HTldoNmJnRGxqOFhjNDhjMmxvVnJDV3JSWlo4dHIydHBRU3FEN3htVjVHZlhueUFjRHlpSVZEd0JJZVJWa3NVMFNlVkNWR2dSZHg4RXFsSkttc05WTDhBN014R3dVRUdIclNZN0UwSm9zdUZ3T052MTRmWmhwRmZhWTJsbURCZ0RlTDFLeHZWWDQ0PQ==' + ) + set('userId', '776864b2-f9d5-49eb-9ea9-db6c862ea10b') setTimeout(() => { uni.switchTab({ url: '/pages/index/home' diff --git a/pages/mine/mineAccount/mineContact/mineContact.vue b/pages/mine/mineAccount/mineContact/mineContact.vue index c42a5e2..8633c4f 100644 --- a/pages/mine/mineAccount/mineContact/mineContact.vue +++ b/pages/mine/mineAccount/mineContact/mineContact.vue @@ -389,7 +389,7 @@ doLoadMore() { //判断是否正在加载中 与是否存在更多数据 const _self = this - if (_self.isLoadMore || !_self.hasMore) { + if (_self.isLoadMore || _self.loadMore == 'noMore') { return } _self.isLoadMore = true diff --git a/pages/mine/mineAccount/mineCoupons/mineCoupons.vue b/pages/mine/mineAccount/mineCoupons/mineCoupons.vue index d32d23a..852b5f8 100644 --- a/pages/mine/mineAccount/mineCoupons/mineCoupons.vue +++ b/pages/mine/mineAccount/mineCoupons/mineCoupons.vue @@ -168,7 +168,7 @@ doLoadMore() { //判断是否正在加载中 与是否存在更多数据 const _self = this - if (_self.isLoadMore || !_self.hasMore) { + if (_self.isLoadMore || _self.hasMore=='noMore') { return } var isEffective = '' diff --git a/pages/mine/mineAccount/mineMsgNotice/mineMsgNotice.vue b/pages/mine/mineAccount/mineMsgNotice/mineMsgNotice.vue index 44423a2..c94dd2b 100644 --- a/pages/mine/mineAccount/mineMsgNotice/mineMsgNotice.vue +++ b/pages/mine/mineAccount/mineMsgNotice/mineMsgNotice.vue @@ -139,7 +139,7 @@ doLoadMore() { //判断是否正在加载中 与是否存在更多数据 const _self = this - if (_self.isLoadMore || !_self.hasMore) { + if (_self.isLoadMore || _self.hasMore=='noMore') { return } _self.isLoadMore = true diff --git a/pages/mine/mineAccount/mineOrder/mineOrder.vue b/pages/mine/mineAccount/mineOrder/mineOrder.vue index f737ff4..4b0dac2 100644 --- a/pages/mine/mineAccount/mineOrder/mineOrder.vue +++ b/pages/mine/mineAccount/mineOrder/mineOrder.vue @@ -39,7 +39,7 @@ - + @@ -123,14 +123,14 @@ _self.orderList = _self.orderList.concat(res.rows) _self.listRefreshTrig = false _self.isLoadMore = false - _self.hasMore = _self.orderList.length < res.total + _self.hasMore = _self.orderList.length < res.total ? 'more' : 'noMore' _self.loadMore = _self.hasMore ? 'more' : 'noMore' }) .catch(err => { _self.loadingState = 'error' _self.listRefreshTrig = false _self.isLoadMore = false - _self.hasMore = true + _self.hasMore = 'more' _self.loadMore = 'more' }) }, @@ -151,7 +151,7 @@ doLoadMore() { //判断是否正在加载中 与是否存在更多数据 const _self = this - if (_self.isLoadMore || !_self.hasMore) { + if (_self.isLoadMore || _self.hasMore == 'noMore') { return } _self.isLoadMore = true