diff --git a/api/api.js b/api/api.js index b0f3bf3..920e8f1 100644 --- a/api/api.js +++ b/api/api.js @@ -376,7 +376,49 @@ const config = { url: '/cashout/getMoney', method: 'GET', auth : true, - } + }, + + // 删除我的招聘 + deleteMyJob : { + url: '/token/deleteMyJob', + method: 'POST', + auth : true, + }, + + // 删除我的租房 + deleteMyRent : { + url: '/token/deleteMyRent', + method: 'POST', + auth : true, + }, + + // 编辑我的招聘 + editMyJob : { + url: '/token/editMyJob', + method: 'POST', + auth : true, + }, + + // 编辑我的租房 + editMyRent : { + url: '/token/editMyRent', + method: 'POST', + auth : true, + }, + + // 查询我的招聘 + getMyJob : { + url: '/token/getMyJob', + method: 'GET', + auth : true, + }, + + // 查询我的租房 + getMyRent : { + url: '/token/getMyRent', + method: 'GET', + auth : true, + }, } const models = ['order'] diff --git a/pages_order/components/list/renting/rentingItem.vue b/components/list/renting/rentingItem.vue similarity index 100% rename from pages_order/components/list/renting/rentingItem.vue rename to components/list/renting/rentingItem.vue diff --git a/components/list/work/workItem.vue b/components/list/work/workItem.vue new file mode 100644 index 0000000..b31ece0 --- /dev/null +++ b/components/list/work/workItem.vue @@ -0,0 +1,195 @@ + + + + + \ No newline at end of file diff --git a/config.js b/config.js index a9a1d79..acda4c0 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'prod' +const type = 'dev' // 环境配置 diff --git a/pages.json b/pages.json index 011895e..6e210ca 100644 --- a/pages.json +++ b/pages.json @@ -181,6 +181,14 @@ }, { "path": "mine/purse" + }, + { + "path": "marketing/turntable", + "style": { + "navigationBarTitleText": "幸运大转盘", + "enablePullDownRefresh": false, + "navigationBarTextStyle": "white" + } } ] }], diff --git a/pages/index/center.vue b/pages/index/center.vue index 4b6af53..6822459 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -153,6 +153,18 @@ /> + + + + + + + + + + + + + + + 🎰 + + + + 幸运大转盘 + 天天有惊喜,转一转试试手气! + + + + + + + @@ -463,6 +486,90 @@ z-index: 9; overflow: hidden; + // 大转盘入口样式 + .turntable-entrance { + margin: 20rpx; + border-radius: 20rpx; + background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%); + box-shadow: 0 8rpx 20rpx rgba(255, 107, 107, 0.3); + overflow: hidden; + position: relative; + + &::before { + content: ''; + position: absolute; + top: 0; + left: -100%; + width: 100%; + height: 100%; + background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); + animation: shine 3s infinite; + } + + .turntable-content { + display: flex; + align-items: center; + padding: 30rpx; + position: relative; + z-index: 2; + + .turntable-icon { + position: relative; + margin-right: 30rpx; + + .icon { + font-size: 60rpx; + display: block; + animation: bounce 2s infinite; + } + } + + .turntable-text { + flex: 1; + + .title { + display: block; + font-size: 32rpx; + font-weight: bold; + color: white; + margin-bottom: 10rpx; + text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3); + } + + .subtitle { + display: block; + font-size: 24rpx; + color: rgba(255, 255, 255, 0.9); + text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.3); + } + } + + .turntable-arrow { + font-size: 36rpx; + color: white; + font-weight: bold; + text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3); + animation: arrow-bounce 1.5s infinite; + } + } + } + + @keyframes shine { + 0% { left: -100%; } + 100% { left: 100%; } + } + + @keyframes bounce { + 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } + 40% { transform: translateY(-10rpx); } + 60% { transform: translateY(-5rpx); } + } + + @keyframes arrow-bounce { + 0%, 100% { transform: translateX(0); } + 50% { transform: translateX(10rpx); } + } + .life { display: flex; diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index df845c2..da01fdf 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -13,7 +13,7 @@ - 微信授权登录 + 快捷登录 + + + + + + + + 幸运大转盘 + 转一转,好运来! + + + + + + + + + + + + + + + + + {{ prize.icon }} + {{ prize.name }} + {{ prize.value }} + + + + + + + + + + + + + {{ isSpinning ? '抽奖中...' : '开始抽奖' }} + + + + + + + 🎉 恭喜您 🎉 + + {{ currentPrize.icon }} + {{ currentPrize.name }} + {{ currentPrize.value }} + + + + + + + + + + 今日剩余抽奖次数: {{ remainingSpins }} + + + + + + + + diff --git a/pages_order/renting/addRenting.vue b/pages_order/renting/addRenting.vue index 5851049..b1fc21b 100644 --- a/pages_order/renting/addRenting.vue +++ b/pages_order/renting/addRenting.vue @@ -1,6 +1,6 @@