@ -0,0 +1,16 @@ | |||
export default { | |||
computed: { | |||
// 获取全局配置的文本 | |||
configParamText() { | |||
return key => this.$store.state.configList[key].paramText || '默认文本' | |||
}, | |||
// 获取全局配置的图片 | |||
configParamImage() { | |||
return key => this.$store.state.configList[key].paramImage || '/static/默认图片.png' | |||
}, | |||
// 获取全局配置的富文本 | |||
configParamTextarea() { | |||
return key => this.$store.state.configList[key].paramTextarea || '默认富文本' | |||
} | |||
} | |||
} |
@ -1 +1 @@ | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"18b9":function(e,t,n){},"663b":function(e,t,n){"use strict";n.r(t);var r=n("ad88"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},"76e5":function(e,t,n){"use strict";var r=n("18b9"),o=n.n(r);o.a},a4ae:function(e,t,n){"use strict";(function(e,t){var r=n("47a9"),o=n("3b2d"),a=r(n("7ca3"));n("a476");var u=r(n("e239")),c=r(n("3240"));n("6e75");var f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(r,u,c):r[u]=e[u]}r.default=e,n&&n.set(e,r);return r}(n("f5a0")),i=r(n("eec3")),l=r(n("5bef")),p=r(n("da63"));function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.__webpack_require_UNI_MP_PLUGIN__=n;c.default.config.productionTip=!1,c.default.component("GlobalPopup",(function(){n.e("pages/components/GlobalPopup").then(function(){return resolve(n("a6fd"))}.bind(null,n)).catch(n.oe)})),c.default.prototype.$api=f,c.default.prototype.$utils=i.default,c.default.prototype.$config=l.default,u.default.mpType="app";var v=new c.default(b(b({},u.default),{},{store:p.default}));t(v).$mount()}).call(this,n("3223")["default"],n("df3c")["createApp"])},ad88:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7eb4")),a=r(n("ee10")),u={onLaunch:function(){var e=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("initData");case 2:console.log("配置数据初始化完成");case 3:case"end":return t.stop()}}),t)})))()},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=u},e239:function(e,t,n){"use strict";n.r(t);var r=n("663b");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("76e5");var a=n("828b"),u=Object(a["a"])(r["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=u.exports}},[["a4ae","common/runtime","common/vendor"]]]); | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"18b9":function(e,t,n){},"663b":function(e,t,n){"use strict";n.r(t);var r=n("ad88"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},"76e5":function(e,t,n){"use strict";var r=n("18b9"),o=n.n(r);o.a},a4ae:function(e,t,n){"use strict";(function(e,t){var r=n("47a9"),o=n("3b2d"),a=r(n("7ca3"));n("a476");var u=r(n("e239")),c=r(n("3240"));n("6e75");var f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(r,u,c):r[u]=e[u]}r.default=e,n&&n.set(e,r);return r}(n("f5a0")),i=r(n("eec3")),l=r(n("5bef")),p=r(n("1a3c")),d=r(n("da63"));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.__webpack_require_UNI_MP_PLUGIN__=n;c.default.config.productionTip=!1,c.default.mixin(p.default),c.default.component("GlobalPopup",(function(){n.e("pages/components/GlobalPopup").then(function(){return resolve(n("a6fd"))}.bind(null,n)).catch(n.oe)})),c.default.prototype.$api=f,c.default.prototype.$utils=i.default,c.default.prototype.$config=l.default,u.default.mpType="app";var O=new c.default(v(v({},u.default),{},{store:d.default}));t(O).$mount()}).call(this,n("3223")["default"],n("df3c")["createApp"])},ad88:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7eb4")),a=r(n("ee10")),u={onLaunch:function(){var e=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("initData");case 2:console.log("配置数据初始化完成");case 3:case"end":return t.stop()}}),t)})))()},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=u},e239:function(e,t,n){"use strict";n.r(t);var r=n("663b");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("76e5");var a=n("828b"),u=Object(a["a"])(r["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=u.exports}},[["a4ae","common/runtime","common/vendor"]]]); |
@ -1 +1 @@ | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/index/activityCalendar"],{"0d2b":function(t,e,a){},"1b5c":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return n}));var n={uvIcon:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(a.bind(null,"1509"))}},i=function(){var t=this.$createElement;this._self._c},c=[]},"545c":function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("a476");n(a("3240"));var i=n(a("cfe1"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},5651:function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("7eb4")),c=n(a("ee10")),r=n(a("34cf")),u={name:"ActivityCalendar",data:function(){return{activityData:[],pageNo:1,pageSize:10}},methods:{viewActivityDetail:function(e){t.navigateTo({url:"/subPages/index/activityDetail?id=".concat(e.id)})},formatTime:function(t){var e=t.split(" "),a=(0,r.default)(e,2),n=a[0];a[1];return n},changeData:function(t){var e=this;t.forEach((function(t){var a=e.activityData.find((function(a){return a.dayOfWeek===t.dayOfWeek&&e.formatTime(a.activityTime)===e.formatTime(t.activityTime)}));a?a.activities.push(t):e.activityData.push({activityTime:e.formatTime(t.activityTime),dayOfWeek:t.dayOfWeek,activities:[t]})}))},getActivityData:function(){var e=this;return(0,c.default)(i.default.mark((function a(){var n;return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.$api.activity.queryActivityList({pageNo:e.pageNo,pageSize:e.pageSize});case 2:n=a.sent,n.result.records.length?(e.changeData(n.result.records),e.pageNo++):t.showToast({title:"暂无数据",icon:"none"});case 4:case"end":return a.stop()}}),a)})))()},initData:function(){this.activityData=[],this.pageNo=1}},onShow:function(){var t=this;return(0,c.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),e.next=3,t.getActivityData();case 3:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){this.getActivityData()},onPullDownRefresh:function(){var e=this;return(0,c.default)(i.default.mark((function a(){return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.initData(),a.next=3,e.getActivityData();case 3:t.stopPullDownRefresh();case 4:case"end":return a.stop()}}),a)})))()}};e.default=u}).call(this,a("df3c")["default"])},"7ab4":function(t,e,a){"use strict";a.r(e);var n=a("5651"),i=a.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},cfe1:function(t,e,a){"use strict";a.r(e);var n=a("1b5c"),i=a("7ab4");for(var c in i)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("ef7a");var r=a("828b"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"130cd97f",null,!1,n["a"],void 0);e["default"]=u.exports},ef7a:function(t,e,a){"use strict";var n=a("0d2b"),i=a.n(n);i.a}},[["545c","common/runtime","common/vendor"]]]); | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/index/activityCalendar"],{"21e3":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={uvIcon:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(a.bind(null,"1509"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},"2fe2":function(t,e,a){"use strict";var n=a("feaf"),i=a.n(n);i.a},"545c":function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("a476");n(a("3240"));var i=n(a("cfe1"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},5651:function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("7eb4")),r=n(a("ee10")),c=n(a("34cf")),u={name:"ActivityCalendar",data:function(){return{activityData:[],pageNo:1,pageSize:10,hasMore:!0}},methods:{viewActivityDetail:function(e){t.navigateTo({url:"/subPages/index/activityDetail?id=".concat(e.id)})},formatTime:function(t){var e=t.split(" "),a=(0,c.default)(e,2),n=a[0];a[1];return n},changeData:function(t){var e=this;t.forEach((function(t){var a=e.activityData.find((function(a){return a.dayOfWeek===t.dayOfWeek&&e.formatTime(a.activityTime)===e.formatTime(t.activityTime)}));a?a.activities.push(t):e.activityData.push({activityTime:e.formatTime(t.activityTime),dayOfWeek:t.dayOfWeek,activities:[t]})}))},getActivityData:function(){var e=this;return(0,r.default)(i.default.mark((function a(){var n;return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.hasMore){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,e.$api.activity.queryActivityList({pageNo:e.pageNo,pageSize:e.pageSize});case 4:n=a.sent,n.result.records.length?(e.changeData(n.result.records),e.pageNo++):(t.showToast({title:"暂无数据",icon:"none"}),e.hasMore=!1);case 6:case"end":return a.stop()}}),a)})))()},initData:function(){this.hasMore=!0,this.activityData=[],this.pageNo=1}},onShow:function(){var t=this;return(0,r.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),e.next=3,t.getActivityData();case 3:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){this.getActivityData()},onPullDownRefresh:function(){var e=this;return(0,r.default)(i.default.mark((function a(){return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.initData(),a.next=3,e.getActivityData();case 3:t.stopPullDownRefresh();case 4:case"end":return a.stop()}}),a)})))()}};e.default=u}).call(this,a("df3c")["default"])},"7ab4":function(t,e,a){"use strict";a.r(e);var n=a("5651"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},cfe1:function(t,e,a){"use strict";a.r(e);var n=a("21e3"),i=a("7ab4");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("2fe2");var c=a("828b"),u=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"2e051e21",null,!1,n["a"],void 0);e["default"]=u.exports},feaf:function(t,e,a){}},[["545c","common/runtime","common/vendor"]]]); |
@ -1 +1 @@ | |||
<view class="activity-calendar data-v-130cd97f"><view class="calendar-content data-v-130cd97f"><block wx:for="{{activityData}}" wx:for-item="dayData" wx:for-index="index" wx:key="index"><view class="day-section data-v-130cd97f"><view class="date-header data-v-130cd97f"><image class="calendar-icon data-v-130cd97f" src="/subPages/static/活动日历_图标@2x.png"></image><text class="date-text data-v-130cd97f">{{dayData.activityTime+" "+dayData.dayOfWeek}}</text></view><view class="activities-container data-v-130cd97f"><block wx:for="{{dayData.activities}}" wx:for-item="activity" wx:for-index="actIndex" wx:key="actIndex"><view data-event-opts="{{[['tap',[['viewActivityDetail',['$0'],[[['activityData','',index],['activities','',actIndex]]]]]]]}}" class="activity-item data-v-130cd97f" bindtap="__e"><image class="activity-image data-v-130cd97f" src="{{activity.image}}" mode="aspectFill"></image><view class="activity-info data-v-130cd97f"><view class="title-row data-v-130cd97f"><view class="activity-badge data-v-130cd97f"><text class="badge-text data-v-130cd97f">{{activity.score+"分"}}</text></view><text class="activity-title data-v-130cd97f">{{activity.title}}</text></view><view class="activity-location data-v-130cd97f"><uv-icon vue-id="{{'33f21b6f-1-'+index+'-'+actIndex}}" name="map-fill" size="14" color="#999" class="data-v-130cd97f" bind:__l="__l"></uv-icon><text class="location-text data-v-130cd97f">{{activity.address}}</text></view><view class="activity-time data-v-130cd97f"><uv-icon vue-id="{{'33f21b6f-2-'+index+'-'+actIndex}}" name="calendar" size="14" color="#999" class="data-v-130cd97f" bind:__l="__l"></uv-icon><text class="time-text data-v-130cd97f">{{activity.activityTime}}</text></view><view class="activity-participants data-v-130cd97f"><uv-icon vue-id="{{'33f21b6f-3-'+index+'-'+actIndex}}" name="account-fill" size="14" color="#999" class="data-v-130cd97f" bind:__l="__l"></uv-icon><text class="participants-text data-v-130cd97f">{{activity.numActivity+"/"+activity.numLimit+"人已报名"}}</text></view></view><view class="activity-action data-v-130cd97f"><view data-event-opts="{{[['tap',[['viewActivityDetail',['$0'],[[['activityData','',index],['activities','',actIndex]]]]]]]}}" class="detail-btn data-v-130cd97f" catchtap="__e"><text class="detail-btn-text data-v-130cd97f">查看详情</text></view></view></view></block></view></view></block></view></view> | |||
<view class="activity-calendar data-v-2e051e21"><view class="calendar-content data-v-2e051e21"><block wx:for="{{activityData}}" wx:for-item="dayData" wx:for-index="index" wx:key="index"><view class="day-section data-v-2e051e21"><view class="date-header data-v-2e051e21"><image class="calendar-icon data-v-2e051e21" src="/subPages/static/活动日历_图标@2x.png"></image><text class="date-text data-v-2e051e21">{{dayData.activityTime+" "+dayData.dayOfWeek}}</text></view><view class="activities-container data-v-2e051e21"><block wx:for="{{dayData.activities}}" wx:for-item="activity" wx:for-index="actIndex" wx:key="actIndex"><view data-event-opts="{{[['tap',[['viewActivityDetail',['$0'],[[['activityData','',index],['activities','',actIndex]]]]]]]}}" class="activity-item data-v-2e051e21" bindtap="__e"><image class="activity-image data-v-2e051e21" src="{{activity.image}}" mode="aspectFill"></image><view class="activity-info data-v-2e051e21"><view class="title-row data-v-2e051e21"><view class="activity-badge data-v-2e051e21"><text class="badge-text data-v-2e051e21">{{activity.score+"分"}}</text></view><text class="activity-title data-v-2e051e21">{{activity.title}}</text></view><view class="activity-location data-v-2e051e21"><uv-icon vue-id="{{'33f21b6f-1-'+index+'-'+actIndex}}" name="map-fill" size="14" color="#999" class="data-v-2e051e21" bind:__l="__l"></uv-icon><text class="location-text data-v-2e051e21">{{activity.address}}</text></view><view class="activity-time data-v-2e051e21"><uv-icon vue-id="{{'33f21b6f-2-'+index+'-'+actIndex}}" name="calendar" size="14" color="#999" class="data-v-2e051e21" bind:__l="__l"></uv-icon><text class="time-text data-v-2e051e21">{{activity.activityTime}}</text></view><view class="activity-participants data-v-2e051e21"><uv-icon vue-id="{{'33f21b6f-3-'+index+'-'+actIndex}}" name="account-fill" size="14" color="#999" class="data-v-2e051e21" bind:__l="__l"></uv-icon><text class="participants-text data-v-2e051e21">{{activity.numActivity+"/"+activity.numLimit+"人已报名"}}</text></view></view><view class="activity-action data-v-2e051e21"><view data-event-opts="{{[['tap',[['viewActivityDetail',['$0'],[[['activityData','',index],['activities','',actIndex]]]]]]]}}" class="detail-btn data-v-2e051e21" catchtap="__e"><text class="detail-btn-text data-v-2e051e21">查看详情</text></view></view></view></block></view></view></block></view></view> |
@ -1,11 +1,11 @@ | |||
.activity-calendar.data-v-130cd97f{background-color:#f5f5f5;min-height:100vh}.activity-calendar .calendar-content.data-v-130cd97f{padding:40rpx 30rpx}.activity-calendar .calendar-content .day-section.data-v-130cd97f{margin-bottom:60rpx}.activity-calendar .calendar-content .day-section.data-v-130cd97f:last-child{margin-bottom:0}.activity-calendar .calendar-content .day-section .date-header.data-v-130cd97f{display:flex;align-items:center;margin-bottom:30rpx}.activity-calendar .calendar-content .day-section .date-header .calendar-icon.data-v-130cd97f{width:48rpx;height:48rpx;margin-right:20rpx}.activity-calendar .calendar-content .day-section .date-header .date-text.data-v-130cd97f{font-size:32rpx;font-weight:700;color:#000}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-130cd97f{background:#fff;padding:24rpx;margin-bottom:20rpx;display:flex;align-items:flex-start;transition:all .3s ease;position:relative}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-130cd97f:last-child{margin-bottom:0}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-130cd97f:active{-webkit-transform:scale(.98);transform:scale(.98);box-shadow:0 2rpx 8rpx rgba(0,0,0,.12)}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-image.data-v-130cd97f{width:190rpx;height:190rpx;border-radius:8rpx;margin-right:20rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info.data-v-130cd97f{flex:1;display:flex;flex-direction:column;justify-content:space-between}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row.data-v-130cd97f{display:flex;align-items:center;margin-bottom:10rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row .activity-badge.data-v-130cd97f{width:31px;height:20px;background:#218cdd;border-radius:3.5px;margin-right:7rpx;display:flex;align-items:center;justify-content:center}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row .activity-badge .badge-text.data-v-130cd97f{font-size:18rpx;color:#fff}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-title.data-v-130cd97f{font-size:28rpx;font-weight:700;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants.data-v-130cd97f{display:flex;align-items:center;margin-bottom:6rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .location-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .time-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .participants-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .location-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .time-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .participants-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .location-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .time-text.data-v-130cd97f, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .participants-text.data-v-130cd97f{font-size:24rpx;color:#999;margin-left:6rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action.data-v-130cd97f{position:absolute;bottom:20rpx;right:20rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn.data-v-130cd97f{background:#218cdd;border-radius:26rpx;width:140rpx;height:52rpx;text-align:center;line-height:44rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn .detail-btn-text.data-v-130cd97f{font-size:26rpx;color:#fff;font-weight:500}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn.data-v-130cd97f:active{background:#1976c7;-webkit-transform:scale(.95);transform:scale(.95)} | |||
.activity-calendar.data-v-2e051e21{background-color:#f5f5f5;min-height:100vh}.activity-calendar .calendar-content.data-v-2e051e21{padding:40rpx 30rpx}.activity-calendar .calendar-content .day-section.data-v-2e051e21{margin-bottom:60rpx}.activity-calendar .calendar-content .day-section.data-v-2e051e21:last-child{margin-bottom:0}.activity-calendar .calendar-content .day-section .date-header.data-v-2e051e21{display:flex;align-items:center;margin-bottom:30rpx}.activity-calendar .calendar-content .day-section .date-header .calendar-icon.data-v-2e051e21{width:48rpx;height:48rpx;margin-right:20rpx}.activity-calendar .calendar-content .day-section .date-header .date-text.data-v-2e051e21{font-size:32rpx;font-weight:700;color:#000}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-2e051e21{background:#fff;padding:24rpx;margin-bottom:20rpx;display:flex;align-items:flex-start;transition:all .3s ease;position:relative}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-2e051e21:last-child{margin-bottom:0}.activity-calendar .calendar-content .day-section .activities-container .activity-item.data-v-2e051e21:active{-webkit-transform:scale(.98);transform:scale(.98);box-shadow:0 2rpx 8rpx rgba(0,0,0,.12)}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-image.data-v-2e051e21{width:190rpx;height:190rpx;border-radius:8rpx;margin-right:20rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info.data-v-2e051e21{flex:1;display:flex;flex-direction:column;justify-content:space-between}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row.data-v-2e051e21{display:flex;align-items:center;margin-bottom:10rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row .activity-badge.data-v-2e051e21{width:31px;height:20px;background:#218cdd;border-radius:3.5px;margin-right:7rpx;display:flex;align-items:center;justify-content:center}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .title-row .activity-badge .badge-text.data-v-2e051e21{font-size:18rpx;color:#fff}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-title.data-v-2e051e21{font-size:28rpx;font-weight:700;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants.data-v-2e051e21{display:flex;align-items:center;margin-bottom:6rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .location-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .time-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-location .participants-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .location-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .time-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-time .participants-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .location-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .time-text.data-v-2e051e21, | |||
.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-info .activity-participants .participants-text.data-v-2e051e21{font-size:24rpx;color:#999;margin-left:6rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action.data-v-2e051e21{position:absolute;bottom:20rpx;right:20rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn.data-v-2e051e21{background:#218cdd;border-radius:26rpx;width:140rpx;height:52rpx;text-align:center;line-height:44rpx}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn .detail-btn-text.data-v-2e051e21{font-size:26rpx;color:#fff;font-weight:500}.activity-calendar .calendar-content .day-section .activities-container .activity-item .activity-action .detail-btn.data-v-2e051e21:active{background:#1976c7;-webkit-transform:scale(.95);transform:scale(.95)} |
@ -1 +1 @@ | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/index/ranking"],{"1e99":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var r={uvIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(n.bind(null,"1509"))}},a=function(){var e=this.$createElement;this._self._c},c=[]},3027:function(e,t,n){"use strict";var r=n("b5c4"),a=n.n(r);a.a},"34b9":function(e,t,n){"use strict";n.r(t);var r=n("56de"),a=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=a.a},"56de":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("7eb4")),c=r(n("af34")),o=r(n("7ca3")),u=r(n("ee10"));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"Ranking",data:function(){return{myRanking:{},rankingList:[],topThree:[],pageNo:1,pageSize:10}},onShow:function(){var e=this;return(0,u.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.initData(),t.next=3,e.getRankingData();case 3:case"end":return t.stop()}}),t)})))()},methods:{initData:function(){this.pageNo=1,this.rankingList=[],this.topThree=[]},onPullDownRefresh:function(){var t=this;return(0,u.default)(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.initData(),n.next=3,t.getRankingData();case 3:e.stopPullDownRefresh();case 4:case"end":return n.stop()}}),n)})))()},onReachBottom:function(){var e=this;return(0,u.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getRankingData();case 2:case"end":return t.stop()}}),t)})))()},goBack:function(){e.navigateBack()},getRankingData:function(){var t=this;return(0,u.default)(a.default.mark((function n(){var r,o,u,i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={},e.getStorageSync("token")&&(r={token:e.getStorageSync("token")}),n.next=4,t.$api.score.queryScoreRank(s({pageNo:t.pageNo,pageSize:t.pageSize},r));case 4:o=n.sent,o.result.scoreList.records.length?((u=t.rankingList).push.apply(u,(0,c.default)(o.result.scoreList.records.slice(3))),(i=t.topThree).push.apply(i,(0,c.default)(o.result.scoreList.records.slice(0,3))),1===t.pageNo&&(t.myRanking=o.result.myScore),t.pageNo++):e.showToast({title:"暂无数据",icon:"none"});case 6:case"end":return n.stop()}}),n)})))()}}};t.default=f}).call(this,n("df3c")["default"])},"6b4b":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("a476");r(n("3240"));var a=r(n("c27e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b5c4:function(e,t,n){},c27e:function(e,t,n){"use strict";n.r(t);var r=n("1e99"),a=n("34b9");for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);n("3027");var o=n("828b"),u=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"40c06ce6",null,!1,r["a"],void 0);t["default"]=u.exports}},[["6b4b","common/runtime","common/vendor"]]]); | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/index/ranking"],{"0bcf":function(n,t,e){"use strict";var i=e("9a6d"),a=e.n(i);a.a},"2ad3":function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return i}));var i={uvIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(e.bind(null,"1509"))}},a=function(){var n=this.$createElement;this._self._c},r=[]},"34b9":function(n,t,e){"use strict";e.r(t);var i=e("56de"),a=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=a.a},"56de":function(n,t,e){"use strict";(function(n){var i=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(e("3d37")),r={mixins:[a.default],name:"Ranking",data:function(){return{pageSize:12,mixinListApi:"score.queryScoreRank",mixinListConfig:{extraDataPath:"result.myScore",responsePath:"result.scoreList.records"}}},computed:{myRanking:function(){return this.extraData},rankingList:function(){return this.list.slice(3)},topThree:function(){return this.list.slice(0,3)}},methods:{mixinSetParams:function(){var t={pageNo:this.pageNo,pageSize:this.pageSize};return n.getStorageSync("token")&&(t["token"]=n.getStorageSync("token")),t},goBack:function(){n.navigateBack()}}};t.default=r}).call(this,e("df3c")["default"])},"6b4b":function(n,t,e){"use strict";(function(n,t){var i=e("47a9");e("a476");i(e("3240"));var a=i(e("c27e"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"9a6d":function(n,t,e){},c27e:function(n,t,e){"use strict";e.r(t);var i=e("2ad3"),a=e("34b9");for(var r in a)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(r);e("0bcf");var u=e("828b"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"3ff527d6",null,!1,i["a"],void 0);t["default"]=o.exports}},[["6b4b","common/runtime","common/vendor"]]]); |
@ -1 +1 @@ | |||
<view class="ranking-page data-v-40c06ce6"><view data-event-opts="{{[['tap',[['goBack',['$event']]]]]}}" class="back-button data-v-40c06ce6" bindtap="__e"><uv-icon vue-id="603885ea-1" name="arrow-left" color="#ffffff" size="20" class="data-v-40c06ce6" bind:__l="__l"></uv-icon></view><view class="ranking-background data-v-40c06ce6"><image class="bg-image data-v-40c06ce6" src="/subPages/static/rank_bg.png" mode="aspectFill"></image><view class="top-three data-v-40c06ce6"><view class="rank-item rank-second data-v-40c06ce6"><image class="rank-badge data-v-40c06ce6" src="/subPages/static/second.png"></image><image class="avatar data-v-40c06ce6" src="{{topThree[1].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-40c06ce6">{{topThree[1].nickName}}</view><view class="score data-v-40c06ce6">{{topThree[1].score+"积分"}}</view></view><view class="rank-item rank-first data-v-40c06ce6"><image class="rank-badge data-v-40c06ce6" src="/subPages/static/first.png"></image><image class="avatar data-v-40c06ce6" src="{{topThree[0].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-40c06ce6">{{topThree[0].nickName}}</view><view class="score data-v-40c06ce6">{{topThree[0].score+"积分"}}</view></view><view class="rank-item rank-third data-v-40c06ce6"><image class="rank-badge data-v-40c06ce6" src="/subPages/static/third.png"></image><image class="avatar data-v-40c06ce6" src="{{topThree[2].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-40c06ce6">{{topThree[2].nickName}}</view><view class="score data-v-40c06ce6">{{topThree[2].score+"积分"}}</view></view></view></view><block wx:if="{{myRanking.rank}}"><view class="my-ranking data-v-40c06ce6"><view class="my-rank-number data-v-40c06ce6">{{myRanking.rank}}</view><view class="my-rank-label data-v-40c06ce6">我的排名</view><image class="my-avatar data-v-40c06ce6" src="{{myRanking.headImage}}"></image><view class="my-name data-v-40c06ce6">{{myRanking.nickName}}</view><view class="my-score data-v-40c06ce6">{{myRanking.score+"积分"}}</view></view></block><view class="ranking-list data-v-40c06ce6"><block wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item data-v-40c06ce6"><view class="rank-number data-v-40c06ce6">{{item.rank}}</view><image class="list-avatar data-v-40c06ce6" src="{{item.headImage||'/static/默认头像.png'}}"></image><view class="user-info data-v-40c06ce6"><view class="user-name data-v-40c06ce6">{{item.nickName}}</view></view><view class="user-score data-v-40c06ce6">{{item.score+"积分"}}</view></view></block></view></view> | |||
<view class="ranking-page data-v-3ff527d6"><view data-event-opts="{{[['tap',[['goBack',['$event']]]]]}}" class="back-button data-v-3ff527d6" bindtap="__e"><uv-icon vue-id="603885ea-1" name="arrow-left" color="#ffffff" size="20" class="data-v-3ff527d6" bind:__l="__l"></uv-icon></view><view class="ranking-background data-v-3ff527d6"><image class="bg-image data-v-3ff527d6" src="/subPages/static/rank_bg.png" mode="aspectFill"></image><view class="top-three data-v-3ff527d6"><view class="rank-item rank-second data-v-3ff527d6"><image class="rank-badge data-v-3ff527d6" src="/subPages/static/second.png"></image><image class="avatar data-v-3ff527d6" src="{{topThree[1].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-3ff527d6">{{topThree[1].nickName}}</view><view class="score data-v-3ff527d6">{{topThree[1].score+"积分"}}</view></view><view class="rank-item rank-first data-v-3ff527d6"><image class="rank-badge data-v-3ff527d6" src="/subPages/static/first.png"></image><image class="avatar data-v-3ff527d6" src="{{topThree[0].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-3ff527d6">{{topThree[0].nickName}}</view><view class="score data-v-3ff527d6">{{topThree[0].score+"积分"}}</view></view><view class="rank-item rank-third data-v-3ff527d6"><image class="rank-badge data-v-3ff527d6" src="/subPages/static/third.png"></image><image class="avatar data-v-3ff527d6" src="{{topThree[2].headImage||'/static/默认头像.png'}}"></image><view class="name data-v-3ff527d6">{{topThree[2].nickName}}</view><view class="score data-v-3ff527d6">{{topThree[2].score+"积分"}}</view></view></view></view><block wx:if="{{myRanking.rank}}"><view class="my-ranking data-v-3ff527d6"><view class="my-rank-number data-v-3ff527d6">{{myRanking.rank}}</view><view class="my-rank-label data-v-3ff527d6">我的排名</view><image class="my-avatar data-v-3ff527d6" src="{{myRanking.headImage}}"></image><view class="my-name data-v-3ff527d6">{{myRanking.nickName}}</view><view class="my-score data-v-3ff527d6">{{myRanking.score+"积分"}}</view></view></block><view class="ranking-list data-v-3ff527d6"><block wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item data-v-3ff527d6"><view class="rank-number data-v-3ff527d6">{{item.rank}}</view><image class="list-avatar data-v-3ff527d6" src="{{item.headImage||'/static/默认头像.png'}}"></image><view class="user-info data-v-3ff527d6"><view class="user-name data-v-3ff527d6">{{item.nickName}}</view></view><view class="user-score data-v-3ff527d6">{{item.score+"积分"}}</view></view></block></view></view> |
@ -1 +1 @@ | |||
.ranking-page.data-v-40c06ce6{min-height:100vh;background-color:#f5f5f5}.back-button.data-v-40c06ce6{position:fixed;top:70rpx;left:40rpx;width:70rpx;height:70rpx;display:flex;align-items:center;justify-content:center;z-index:10}.back-button.data-v-40c06ce6:active{background-color:rgba(0,0,0,.5)}.ranking-background.data-v-40c06ce6{position:relative;width:100%;height:600rpx}.ranking-background .bg-image.data-v-40c06ce6{width:100%;height:100%}.ranking-background .back-button.data-v-40c06ce6{position:absolute;top:60rpx;left:30rpx;width:60rpx;height:60rpx;display:flex;align-items:center;justify-content:center;z-index:10}.ranking-background .back-button.data-v-40c06ce6:active{background-color:rgba(0,0,0,.5)}.ranking-background .top-three.data-v-40c06ce6{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;padding-bottom:80rpx}.ranking-background .top-three .rank-item.data-v-40c06ce6{position:relative;display:flex;flex-direction:column;align-items:center;margin:0 40rpx}.ranking-background .top-three .rank-item .rank-badge.data-v-40c06ce6{width:60rpx;height:60rpx;margin-bottom:10rpx}.ranking-background .top-three .rank-item .avatar.data-v-40c06ce6{width:80rpx;height:80rpx;border-radius:50%;margin-bottom:10rpx;border:4rpx solid #fff}.ranking-background .top-three .rank-item .name.data-v-40c06ce6{font-size:24rpx;color:#fff;margin-bottom:5rpx;font-weight:700}.ranking-background .top-three .rank-item .score.data-v-40c06ce6{font-size:20rpx;color:#1488db;opacity:.9}.ranking-background .top-three .rank-first.data-v-40c06ce6{-webkit-transform:translateY(-80rpx);transform:translateY(-80rpx)}.ranking-background .top-three .rank-first .avatar.data-v-40c06ce6{width:100rpx;height:100rpx}.ranking-background .top-three .rank-first .rank-badge.data-v-40c06ce6{width:80rpx;height:80rpx}.ranking-background .top-three .rank-second.data-v-40c06ce6{order:-1;-webkit-transform:translateY(-40rpx);transform:translateY(-40rpx)}.ranking-background .top-three .rank-third.data-v-40c06ce6{order:1;-webkit-transform:translateY(-40rpx);transform:translateY(-40rpx)}.my-ranking.data-v-40c06ce6{background:#e1f2ff;border-radius:12rpx;margin:20rpx 30rpx 20rpx 30rpx;padding:30rpx;display:flex;align-items:center;position:relative;z-index:5}.my-ranking .my-rank-number.data-v-40c06ce6{font-size:48rpx;font-weight:700;color:#000;margin-right:15rpx}.my-ranking .my-rank-label.data-v-40c06ce6{font-size:24rpx;color:#1488db;opacity:.9;margin-right:20rpx}.my-ranking .my-avatar.data-v-40c06ce6{width:60rpx;height:60rpx;border-radius:50%;margin-right:15rpx}.my-ranking .my-name.data-v-40c06ce6{font-size:28rpx;color:#000;font-weight:500;margin-right:20rpx}.my-ranking .my-score.data-v-40c06ce6{font-size:28rpx;color:#1488db}.ranking-list.data-v-40c06ce6{padding:40rpx 30rpx;background-color:#fff;margin-top:-40rpx;border-radius:40rpx 40rpx 0 0}.ranking-list .list-item.data-v-40c06ce6{display:flex;align-items:center;padding:30rpx 0;border-bottom:1rpx solid #f0f0f0}.ranking-list .list-item.data-v-40c06ce6:last-child{border-bottom:none}.ranking-list .list-item .rank-number.data-v-40c06ce6{width:60rpx;font-size:32rpx;font-weight:700;color:#333;text-align:center}.ranking-list .list-item .list-avatar.data-v-40c06ce6{width:80rpx;height:80rpx;border-radius:50%;margin:0 30rpx}.ranking-list .list-item .user-info.data-v-40c06ce6{flex:1}.ranking-list .list-item .user-info .user-name.data-v-40c06ce6{font-size:28rpx;color:#333;font-weight:500}.ranking-list .list-item .user-score.data-v-40c06ce6{font-size:28rpx;color:#218cdd} | |||
.ranking-page.data-v-3ff527d6{min-height:100vh;background-color:#f5f5f5}.back-button.data-v-3ff527d6{position:fixed;top:70rpx;left:40rpx;width:70rpx;height:70rpx;display:flex;align-items:center;justify-content:center;z-index:10}.back-button.data-v-3ff527d6:active{background-color:rgba(0,0,0,.5)}.ranking-background.data-v-3ff527d6{position:relative;width:100%;height:600rpx}.ranking-background .bg-image.data-v-3ff527d6{width:100%;height:100%}.ranking-background .back-button.data-v-3ff527d6{position:absolute;top:60rpx;left:30rpx;width:60rpx;height:60rpx;display:flex;align-items:center;justify-content:center;z-index:10}.ranking-background .back-button.data-v-3ff527d6:active{background-color:rgba(0,0,0,.5)}.ranking-background .top-three.data-v-3ff527d6{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;padding-bottom:80rpx}.ranking-background .top-three .rank-item.data-v-3ff527d6{position:relative;display:flex;flex-direction:column;align-items:center;margin:0 40rpx}.ranking-background .top-three .rank-item .rank-badge.data-v-3ff527d6{width:60rpx;height:60rpx;margin-bottom:10rpx}.ranking-background .top-three .rank-item .avatar.data-v-3ff527d6{width:80rpx;height:80rpx;border-radius:50%;margin-bottom:10rpx;border:4rpx solid #fff}.ranking-background .top-three .rank-item .name.data-v-3ff527d6{font-size:24rpx;color:#fff;margin-bottom:5rpx;font-weight:700}.ranking-background .top-three .rank-item .score.data-v-3ff527d6{font-size:20rpx;color:#1488db;opacity:.9}.ranking-background .top-three .rank-first.data-v-3ff527d6{-webkit-transform:translateY(-80rpx);transform:translateY(-80rpx)}.ranking-background .top-three .rank-first .avatar.data-v-3ff527d6{width:100rpx;height:100rpx}.ranking-background .top-three .rank-first .rank-badge.data-v-3ff527d6{width:80rpx;height:80rpx}.ranking-background .top-three .rank-second.data-v-3ff527d6{order:-1;-webkit-transform:translateY(-40rpx);transform:translateY(-40rpx)}.ranking-background .top-three .rank-third.data-v-3ff527d6{order:1;-webkit-transform:translateY(-40rpx);transform:translateY(-40rpx)}.my-ranking.data-v-3ff527d6{background:#e1f2ff;border-radius:12rpx;margin:20rpx 30rpx 20rpx 30rpx;padding:30rpx;display:flex;align-items:center;position:relative;z-index:5}.my-ranking .my-rank-number.data-v-3ff527d6{font-size:48rpx;font-weight:700;color:#000;margin-right:15rpx}.my-ranking .my-rank-label.data-v-3ff527d6{font-size:24rpx;color:#1488db;opacity:.9;margin-right:20rpx}.my-ranking .my-avatar.data-v-3ff527d6{width:60rpx;height:60rpx;border-radius:50%;margin-right:15rpx}.my-ranking .my-name.data-v-3ff527d6{font-size:28rpx;color:#000;font-weight:500;margin-right:20rpx}.my-ranking .my-score.data-v-3ff527d6{font-size:28rpx;color:#1488db}.ranking-list.data-v-3ff527d6{padding:40rpx 30rpx 140rpx;background-color:#fff;margin-top:-40rpx;border-radius:40rpx 40rpx 0 0}.ranking-list .list-item.data-v-3ff527d6{display:flex;align-items:center;padding:30rpx 0;border-bottom:1rpx solid #f0f0f0}.ranking-list .list-item.data-v-3ff527d6:last-child{border-bottom:none}.ranking-list .list-item .rank-number.data-v-3ff527d6{width:60rpx;font-size:32rpx;font-weight:700;color:#333;text-align:center}.ranking-list .list-item .list-avatar.data-v-3ff527d6{width:80rpx;height:80rpx;border-radius:50%;margin:0 30rpx}.ranking-list .list-item .user-info.data-v-3ff527d6{flex:1}.ranking-list .list-item .user-info .user-name.data-v-3ff527d6{font-size:28rpx;color:#333;font-weight:500}.ranking-list .list-item .user-score.data-v-3ff527d6{font-size:28rpx;color:#218cdd} |
@ -1 +1 @@ | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/login/login"],{"0583":function(n,e,t){"use strict";(function(n){var o=t("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(t("7eb4")),c=o(t("ee10")),a={name:"Login",data:function(){return{isAgreed:!1}},computed:{appBg:function(){return this.$store.state.configList["config_login_bg"].paramImage},loginTitle:function(){return this.$store.state.configList["config_login_title"].paramText},loginPolicy:function(){return this.$store.state.configList["config_login_policy"].paramTextarea},loginPrivacy:function(){return this.$store.state.configList["config_login_privacy"].paramTextarea}},methods:{toggleAgreement:function(){this.isAgreed=!this.isAgreed,console.log("协议同意状态:",this.isAgreed)},phoneLogin:function(){var e=this;this.isAgreed?n.login({provider:"weixin",success:function(){var t=(0,c.default)(i.default.mark((function t(o){var c,a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.login.login({code:o.code});case 2:c=t.sent,n.setStorageSync("token",c.result.token),a=c.result.userInfo,a.headImage&&a.nickName&&a.phone?(n.showToast({title:"登录成功",icon:"success"}),setTimeout((function(){n.switchTab({url:"/pages/index/index"})}),500)):(n.showToast({title:"请先完善个人信息",icon:"none"}),setTimeout((function(){n.navigateTo({url:"/subPages/login/userInfo"})}),500));case 6:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),fail:function(e){n.showToast({title:"".concat(e.errMsg),icon:"none"})}}):n.showToast({title:"请先同意协议条款",icon:"none"})},cancelLogin:function(){console.log("取消登录"),n.switchTab({url:"/pages/index/index"})},showPolicy:function(){this.$refs.modalPolicy.open()},showPrivacy:function(){this.$refs.modalPrivacy.open()}}};e.default=a}).call(this,t("df3c")["default"])},"2f0a":function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return o}));var o={uvIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(t.bind(null,"1509"))},uvModal:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-modal/components/uv-modal/uv-modal")]).then(t.bind(null,"2799"))}},i=function(){var n=this.$createElement;this._self._c},c=[]},6899:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("a476");o(t("3240"));var i=o(t("ecf1"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"99f5":function(n,e,t){"use strict";t.r(e);var o=t("0583"),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},c513:function(n,e,t){},ca62:function(n,e,t){"use strict";var o=t("c513"),i=t.n(o);i.a},ecf1:function(n,e,t){"use strict";t.r(e);var o=t("2f0a"),i=t("99f5");for(var c in i)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("ca62");var a=t("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"6ac23529",null,!1,o["a"],void 0);e["default"]=r.exports}},[["6899","common/runtime","common/vendor"]]]); | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/login/login"],{"00f8":function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return o}));var o={uvIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-icon/components/uv-icon/uv-icon")]).then(t.bind(null,"1509"))},uvModal:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-modal/components/uv-modal/uv-modal")]).then(t.bind(null,"2799"))}},i=function(){var n=this.$createElement,e=(this._self._c,this.configParamImage("config_login_bg")),t=this.configParamText("config_login_title"),o=this.configParamTextarea("config_login_policy"),i=this.configParamTextarea("config_login_privacy");this.$mp.data=Object.assign({},{$root:{m0:e,m1:t,m2:o,m3:i}})},c=[]},"0583":function(n,e,t){"use strict";(function(n){var o=t("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(t("7eb4")),c=o(t("ee10")),a={name:"Login",data:function(){return{isAgreed:!1}},methods:{toggleAgreement:function(){this.isAgreed=!this.isAgreed,console.log("协议同意状态:",this.isAgreed)},phoneLogin:function(){var e=this;this.isAgreed?n.login({provider:"weixin",success:function(){var t=(0,c.default)(i.default.mark((function t(o){var c,a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.login.login({code:o.code});case 2:c=t.sent,n.setStorageSync("token",c.result.token),a=c.result.userInfo,a.headImage&&a.nickName&&a.phone?(n.showToast({title:"登录成功",icon:"success"}),setTimeout((function(){n.switchTab({url:"/pages/index/index"})}),500)):(n.showToast({title:"请先完善个人信息",icon:"none"}),setTimeout((function(){n.navigateTo({url:"/subPages/login/userInfo"})}),500));case 6:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),fail:function(e){n.showToast({title:"".concat(e.errMsg),icon:"none"})}}):n.showToast({title:"请先同意协议条款",icon:"none"})},cancelLogin:function(){console.log("取消登录"),n.switchTab({url:"/pages/index/index"})},showPolicy:function(){this.$refs.modalPolicy.open()},showPrivacy:function(){this.$refs.modalPrivacy.open()}}};e.default=a}).call(this,t("df3c")["default"])},"336a":function(n,e,t){},6899:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("a476");o(t("3240"));var i=o(t("ecf1"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"99f5":function(n,e,t){"use strict";t.r(e);var o=t("0583"),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},d7c1:function(n,e,t){"use strict";var o=t("336a"),i=t.n(o);i.a},ecf1:function(n,e,t){"use strict";t.r(e);var o=t("00f8"),i=t("99f5");for(var c in i)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("d7c1");var a=t("828b"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"6589ced0",null,!1,o["a"],void 0);e["default"]=u.exports}},[["6899","common/runtime","common/vendor"]]]); |
@ -1 +1 @@ | |||
<view class="login-container data-v-6ac23529"><image class="bg-image data-v-6ac23529" src="{{appBg}}" mode="aspectFill"></image><view class="content data-v-6ac23529"><view class="title-section data-v-6ac23529"><view class="login-title data-v-6ac23529">{{loginTitle}}</view></view><view class="button-section data-v-6ac23529"><view data-event-opts="{{[['tap',[['phoneLogin',['$event']]]]]}}" class="login-btn primary data-v-6ac23529" bindtap="__e"><text class="btn-text data-v-6ac23529">授权手机号登录</text></view><view data-event-opts="{{[['tap',[['cancelLogin',['$event']]]]]}}" class="login-btn secondary data-v-6ac23529" bindtap="__e"><text class="btn-text data-v-6ac23529">取消登录</text></view><view class="agreement-text-container data-v-6ac23529"><view class="agreement-checkbox-row data-v-6ac23529"><view data-event-opts="{{[['tap',[['toggleAgreement',['$event']]]]]}}" class="custom-checkbox data-v-6ac23529" bindtap="__e"><block wx:if="{{!isAgreed}}"><uv-icon vue-id="d13cf7c0-1" name="checkmark-circle" size="20" color="#cccccc" class="data-v-6ac23529" bind:__l="__l"></uv-icon></block><block wx:else><uv-icon vue-id="d13cf7c0-2" name="checkmark-circle-fill" size="20" color="#1488DB" class="data-v-6ac23529" bind:__l="__l"></uv-icon></block></view><view class="agreement-text-content data-v-6ac23529"><text class="agreement-text data-v-6ac23529">阅读并同意我们的</text><text data-event-opts="{{[['tap',[['showPolicy',['$event']]]]]}}" class="agreement-link data-v-6ac23529" bindtap="__e">《服务协议与隐私条款》</text><text class="agreement-text data-v-6ac23529">以及</text><text data-event-opts="{{[['tap',[['showPrivacy',['$event']]]]]}}" class="agreement-link data-v-6ac23529" bindtap="__e">《个人信息保护指引》</text></view></view></view></view></view><uv-modal vue-id="d13cf7c0-3" title="服务协议与隐私条款" data-ref="modalPolicy" class="data-v-6ac23529 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-6ac23529"><rich-text nodes="{{loginPolicy}}" class="data-v-6ac23529"></rich-text></view></uv-modal><uv-modal vue-id="d13cf7c0-4" title="个人信息保护指引" data-ref="modalPrivacy" class="data-v-6ac23529 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-6ac23529"><rich-text nodes="{{loginPrivacy}}" class="data-v-6ac23529"></rich-text></view></uv-modal></view> | |||
<view class="login-container data-v-6589ced0"><image class="bg-image data-v-6589ced0" src="{{$root.m0}}" mode="aspectFill"></image><view class="content data-v-6589ced0"><view class="title-section data-v-6589ced0"><view class="login-title data-v-6589ced0">{{$root.m1}}</view></view><view class="button-section data-v-6589ced0"><view data-event-opts="{{[['tap',[['phoneLogin',['$event']]]]]}}" class="login-btn primary data-v-6589ced0" bindtap="__e"><text class="btn-text data-v-6589ced0">授权手机号登录</text></view><view data-event-opts="{{[['tap',[['cancelLogin',['$event']]]]]}}" class="login-btn secondary data-v-6589ced0" bindtap="__e"><text class="btn-text data-v-6589ced0">取消登录</text></view><view class="agreement-text-container data-v-6589ced0"><view class="agreement-checkbox-row data-v-6589ced0"><view data-event-opts="{{[['tap',[['toggleAgreement',['$event']]]]]}}" class="custom-checkbox data-v-6589ced0" bindtap="__e"><block wx:if="{{!isAgreed}}"><uv-icon vue-id="d13cf7c0-1" name="checkmark-circle" size="20" color="#cccccc" class="data-v-6589ced0" bind:__l="__l"></uv-icon></block><block wx:else><uv-icon vue-id="d13cf7c0-2" name="checkmark-circle-fill" size="20" color="#1488DB" class="data-v-6589ced0" bind:__l="__l"></uv-icon></block></view><view class="agreement-text-content data-v-6589ced0"><text class="agreement-text data-v-6589ced0">阅读并同意我们的</text><text data-event-opts="{{[['tap',[['showPolicy',['$event']]]]]}}" class="agreement-link data-v-6589ced0" bindtap="__e">《服务协议与隐私条款》</text><text class="agreement-text data-v-6589ced0">以及</text><text data-event-opts="{{[['tap',[['showPrivacy',['$event']]]]]}}" class="agreement-link data-v-6589ced0" bindtap="__e">《个人信息保护指引》</text></view></view></view></view></view><uv-modal vue-id="d13cf7c0-3" title="服务协议与隐私条款" data-ref="modalPolicy" class="data-v-6589ced0 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-6589ced0"><rich-text nodes="{{$root.m2}}" class="data-v-6589ced0"></rich-text></view></uv-modal><uv-modal vue-id="d13cf7c0-4" title="个人信息保护指引" data-ref="modalPrivacy" class="data-v-6589ced0 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-6589ced0"><rich-text nodes="{{$root.m3}}" class="data-v-6589ced0"></rich-text></view></uv-modal></view> |
@ -1 +1 @@ | |||
.login-container.data-v-6ac23529{position:relative;width:100vw;height:100vh;overflow:hidden}.bg-image.data-v-6ac23529{position:absolute;top:0;left:0;width:100%;height:40%;z-index:1}.content.data-v-6ac23529{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;padding:0 40rpx}.title-section.data-v-6ac23529{flex:1;display:flex;align-items:flex-end;justify-content:center;padding:120rpx}.title-section .login-title.data-v-6ac23529{color:#1488db;font-size:48rpx;font-weight:700;position:relative}.title-section .login-title.data-v-6ac23529::after{content:"";position:absolute;left:20rpx;bottom:-8rpx;width:100%;height:24rpx;border-radius:50%;background:linear-gradient(180deg,#0085e4,transparent)}.button-section.data-v-6ac23529{flex:1;margin-bottom:60rpx;align-items:flex-start}.button-section .login-btn.data-v-6ac23529{width:100%;height:88rpx;border-radius:44rpx;display:flex;align-items:center;justify-content:center;margin-bottom:30rpx}.button-section .login-btn.primary.data-v-6ac23529{background:#1488db}.button-section .login-btn.primary .btn-text.data-v-6ac23529{color:#fff;font-size:32rpx;font-weight:500}.button-section .login-btn.secondary.data-v-6ac23529{background:hsla(0,0%,100%,.9);border:2rpx solid #ccc}.button-section .login-btn.secondary .btn-text.data-v-6ac23529{color:#666;font-size:32rpx}.button-section .agreement-text-container.data-v-6ac23529{margin-top:40rpx}.button-section .agreement-text-container .agreement-checkbox-row.data-v-6ac23529{display:flex;align-items:center;justify-content:center}.button-section .agreement-text-container .agreement-checkbox-row .custom-checkbox.data-v-6ac23529{margin-right:10rpx;display:flex;align-items:center}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content.data-v-6ac23529{flex:1;text-align:left}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content .agreement-text.data-v-6ac23529{font-size:24rpx;color:#666}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content .agreement-link.data-v-6ac23529{font-size:24rpx;color:#1488db;text-decoration:underline} | |||
.login-container.data-v-6589ced0{position:relative;width:100vw;height:100vh;overflow:hidden}.bg-image.data-v-6589ced0{position:absolute;top:0;left:0;width:100%;height:40%;z-index:1}.content.data-v-6589ced0{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;padding:0 40rpx}.title-section.data-v-6589ced0{flex:1;display:flex;align-items:flex-end;justify-content:center;padding:120rpx}.title-section .login-title.data-v-6589ced0{color:#1488db;font-size:48rpx;font-weight:700;position:relative}.title-section .login-title.data-v-6589ced0::after{content:"";position:absolute;left:20rpx;bottom:-8rpx;width:100%;height:24rpx;border-radius:50%;background:linear-gradient(180deg,#0085e4,transparent)}.button-section.data-v-6589ced0{flex:1;margin-bottom:60rpx;align-items:flex-start}.button-section .login-btn.data-v-6589ced0{width:100%;height:88rpx;border-radius:44rpx;display:flex;align-items:center;justify-content:center;margin-bottom:30rpx}.button-section .login-btn.primary.data-v-6589ced0{background:#1488db}.button-section .login-btn.primary .btn-text.data-v-6589ced0{color:#fff;font-size:32rpx;font-weight:500}.button-section .login-btn.secondary.data-v-6589ced0{background:hsla(0,0%,100%,.9);border:2rpx solid #ccc}.button-section .login-btn.secondary .btn-text.data-v-6589ced0{color:#666;font-size:32rpx}.button-section .agreement-text-container.data-v-6589ced0{margin-top:40rpx}.button-section .agreement-text-container .agreement-checkbox-row.data-v-6589ced0{display:flex;align-items:center;justify-content:center}.button-section .agreement-text-container .agreement-checkbox-row .custom-checkbox.data-v-6589ced0{margin-right:10rpx;display:flex;align-items:center}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content.data-v-6589ced0{flex:1;text-align:left}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content .agreement-text.data-v-6589ced0{font-size:24rpx;color:#666}.button-section .agreement-text-container .agreement-checkbox-row .agreement-text-content .agreement-link.data-v-6589ced0{font-size:24rpx;color:#1488db;text-decoration:underline} |
@ -1 +1 @@ | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/login/userInfo"],{"229a":function(e,t,n){"use strict";n.r(t);var a=n("e83e"),o=n("7cff");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("aa10");var s=n("828b"),i=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"1cda45fe",null,!1,a["a"],void 0);t["default"]=i.exports},"7cff":function(e,t,n){"use strict";n.r(t);var a=n("c934"),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},"7ee7":function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("a476");a(n("3240"));var o=a(n("229a"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},aa10:function(e,t,n){"use strict";var a=n("fac8"),o=n.n(a);o.a},c934:function(e,t,n){"use strict";(function(e){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("7eb4")),r=a(n("ee10")),s={name:"UserInfo",data:function(){return{userInfo:{headImage:"",nickName:"",phone:""}}},onLoad:function(){this.getWechatUserInfo()},methods:{getWechatUserInfo:function(){var e=this;return(0,r.default)(o.default.mark((function t(){var n,a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.user.queryUser();case 2:n=t.sent,a=n.result,e.userInfo.nickName=a.nickName,e.userInfo.headImage=a.headImage,e.userInfo.phone=a.phone;case 7:case"end":return t.stop()}}),t)})))()},onChooseAvatar:function(t){var n=this;return(0,r.default)(o.default.mark((function a(){var r,s;return o.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("选择头像回调",t),!t.detail.avatarUrl){a.next=20;break}return a.prev=2,e.showLoading({title:"上传头像中..."}),r={path:t.detail.avatarUrl,tempFilePath:t.detail.avatarUrl},a.next=7,n.$utils.uploadImage(r);case 7:s=a.sent,e.hideLoading(),s.success?(n.userInfo.headImage=s.url,console.log("头像上传成功",s.url),e.showToast({title:"头像上传成功",icon:"success"})):e.showToast({title:"头像上传失败!请稍后重试!",icon:"none"}),a.next=18;break;case 12:a.prev=12,a.t0=a["catch"](2),e.hideLoading(),console.error("头像上传异常:",a.t0),n.userInfo.headImage=t.detail.avatarUrl,e.showToast({title:"头像处理异常,使用本地头像",icon:"none"});case 18:a.next=21;break;case 20:e.showToast({title:"头像选择失败",icon:"none"});case 21:case"end":return a.stop()}}),a,null,[[2,12]])})))()},onNicknameBlur:function(){this.userInfo.nickname.trim()||e.showToast({title:"请输入昵称",icon:"none"})},getPhoneNumber:function(t){var n=this;return(0,r.default)(o.default.mark((function a(){var r,s;return o.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("获取手机号回调",t),"getPhoneNumber:ok"!==t.detail.errMsg){a.next=11;break}return console.log("获取手机号成功",t.detail),a.next=5,n.$api.login.bindPhone({phoneCode:t.detail.code});case 5:r=a.sent,s=JSON.parse(r.result),n.userInfo.phone=s.phone_info.phoneNumber,e.showToast({title:"手机号获取成功",icon:"success"}),a.next=12;break;case 11:e.showToast({title:"手机号获取失败",icon:"error"});case 12:case"end":return a.stop()}}),a)})))()},submitUserInfo:function(){var t=this;return(0,r.default)(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.userInfo.nickName.trim()){n.next=3;break}return e.showToast({title:"请输入昵称",icon:"none"}),n.abrupt("return");case 3:if(t.userInfo.phone.trim()){n.next=6;break}return e.showToast({title:"请输入手机号",icon:"none"}),n.abrupt("return");case 6:if(/^1[3-9]\d{9}$/.test(t.userInfo.phone)){n.next=9;break}return e.showToast({title:"请输入正确的手机号",icon:"none"}),n.abrupt("return");case 9:return console.log("提交用户信息",t.userInfo),n.next=12,t.$api.user.updateUser({nickName:t.userInfo.nickName,phone:t.userInfo.phone,headImage:t.userInfo.headImage});case 12:e.showToast({title:"信息保存成功",icon:"success"}),setTimeout((function(){e.switchTab({url:"/pages/index/index"})}),1500);case 14:case"end":return n.stop()}}),n)})))()}},computed:{appLogo:function(){return this.$store.state.configList&&this.$store.state.configList["config_logo"]?this.$store.state.configList["config_logo"].paramImage:"/static/logo.png"}}};t.default=s}).call(this,n("df3c")["default"])},e83e:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement;this._self._c},o=[]},fac8:function(e,t,n){}},[["7ee7","common/runtime","common/vendor"]]]); | |||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPages/login/userInfo"],{"0626":function(e,n,t){},"229a":function(e,n,t){"use strict";t.r(n);var a=t("428c"),r=t("7cff");for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t("8b99");var s=t("828b"),i=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"deb1d582",null,!1,a["a"],void 0);n["default"]=i.exports},"428c":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){}));var a=function(){var e=this.$createElement,n=(this._self._c,this.configParamImage("config_logo")),t=this.configParamText("config_app_name");this.$mp.data=Object.assign({},{$root:{m0:n,m1:t}})},r=[]},"7cff":function(e,n,t){"use strict";t.r(n);var a=t("c934"),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},"7ee7":function(e,n,t){"use strict";(function(e,n){var a=t("47a9");t("a476");a(t("3240"));var r=a(t("229a"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"8b99":function(e,n,t){"use strict";var a=t("0626"),r=t.n(a);r.a},c934:function(e,n,t){"use strict";(function(e){var a=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t("7eb4")),o=a(t("ee10")),s={name:"UserInfo",data:function(){return{userInfo:{headImage:"",nickName:"",phone:""}}},onLoad:function(){this.getWechatUserInfo()},methods:{getWechatUserInfo:function(){var e=this;return(0,o.default)(r.default.mark((function n(){var t,a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.user.queryUser();case 2:t=n.sent,a=t.result,e.userInfo.nickName=a.nickName,e.userInfo.headImage=a.headImage,e.userInfo.phone=a.phone;case 7:case"end":return n.stop()}}),n)})))()},onChooseAvatar:function(n){var t=this;return(0,o.default)(r.default.mark((function a(){var o,s;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("选择头像回调",n),!n.detail.avatarUrl){a.next=20;break}return a.prev=2,e.showLoading({title:"上传头像中..."}),o={path:n.detail.avatarUrl,tempFilePath:n.detail.avatarUrl},a.next=7,t.$utils.uploadImage(o);case 7:s=a.sent,e.hideLoading(),s.success?(t.userInfo.headImage=s.url,console.log("头像上传成功",s.url),e.showToast({title:"头像上传成功",icon:"success"})):e.showToast({title:"头像上传失败!请稍后重试!",icon:"none"}),a.next=18;break;case 12:a.prev=12,a.t0=a["catch"](2),e.hideLoading(),console.error("头像上传异常:",a.t0),t.userInfo.headImage=n.detail.avatarUrl,e.showToast({title:"头像处理异常,使用本地头像",icon:"none"});case 18:a.next=21;break;case 20:e.showToast({title:"头像选择失败",icon:"none"});case 21:case"end":return a.stop()}}),a,null,[[2,12]])})))()},onNicknameBlur:function(){this.userInfo.nickname.trim()||e.showToast({title:"请输入昵称",icon:"none"})},getPhoneNumber:function(n){var t=this;return(0,o.default)(r.default.mark((function a(){var o,s;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("获取手机号回调",n),"getPhoneNumber:ok"!==n.detail.errMsg){a.next=11;break}return console.log("获取手机号成功",n.detail),a.next=5,t.$api.login.bindPhone({phoneCode:n.detail.code});case 5:o=a.sent,s=JSON.parse(o.result),t.userInfo.phone=s.phone_info.phoneNumber,e.showToast({title:"手机号获取成功",icon:"success"}),a.next=12;break;case 11:e.showToast({title:"手机号获取失败",icon:"error"});case 12:case"end":return a.stop()}}),a)})))()},submitUserInfo:function(){var n=this;return(0,o.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.userInfo.nickName.trim()){t.next=3;break}return e.showToast({title:"请输入昵称",icon:"none"}),t.abrupt("return");case 3:if(n.userInfo.phone.trim()){t.next=6;break}return e.showToast({title:"请输入手机号",icon:"none"}),t.abrupt("return");case 6:if(/^1[3-9]\d{9}$/.test(n.userInfo.phone)){t.next=9;break}return e.showToast({title:"请输入正确的手机号",icon:"none"}),t.abrupt("return");case 9:return console.log("提交用户信息",n.userInfo),t.next=12,n.$api.user.updateUser({nickName:n.userInfo.nickName,phone:n.userInfo.phone,headImage:n.userInfo.headImage});case 12:e.showToast({title:"信息保存成功",icon:"success"}),setTimeout((function(){e.switchTab({url:"/pages/index/index"})}),1500);case 14:case"end":return t.stop()}}),t)})))()}}};n.default=s}).call(this,t("df3c")["default"])}},[["7ee7","common/runtime","common/vendor"]]]); |
@ -1 +1 @@ | |||
<view class="user-info-container data-v-1cda45fe"><view class="content data-v-1cda45fe"><view class="avatar-section data-v-1cda45fe"><view class="app-info data-v-1cda45fe"><image class="app-logo data-v-1cda45fe" src="{{appLogo}}" mode="aspectFit"></image><text class="app-name data-v-1cda45fe">木邻有你</text></view></view><view class="form-section data-v-1cda45fe"><view class="form-item data-v-1cda45fe"><text class="form-label data-v-1cda45fe">头像</text><view class="avatar-upload data-v-1cda45fe"><button class="avatar-button data-v-1cda45fe" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar-image data-v-1cda45fe" src="{{userInfo.headImage||'/static/待上传头像.png'}}" mode="aspectFill"></image></button></view></view><view class="form-item data-v-1cda45fe"><text class="form-label data-v-1cda45fe">昵称</text><input class="form-input data-v-1cda45fe" placeholder="请输入昵称" type="nickname" data-event-opts="{{[['blur',[['onNicknameBlur',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view><view class="form-item data-v-1cda45fe"><text class="form-label data-v-1cda45fe">手机号</text><view class="phone-input-container data-v-1cda45fe"><input class="form-input phone-input data-v-1cda45fe" placeholder="请输入手机号" type="number" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/><button class="get-phone-btn data-v-1cda45fe" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"><text class="btn-text data-v-1cda45fe">获取手机号</text></button></view></view></view><view class="submit-section data-v-1cda45fe"><view data-event-opts="{{[['tap',[['submitUserInfo',['$event']]]]]}}" class="submit-btn data-v-1cda45fe" bindtap="__e"><text class="submit-text data-v-1cda45fe">确定</text></view></view></view></view> | |||
<view class="user-info-container data-v-deb1d582"><view class="content data-v-deb1d582"><view class="avatar-section data-v-deb1d582"><view class="app-info data-v-deb1d582"><image class="app-logo data-v-deb1d582" src="{{$root.m0}}" mode="aspectFit"></image><text class="app-name data-v-deb1d582">{{$root.m1}}</text></view></view><view class="form-section data-v-deb1d582"><view class="form-item data-v-deb1d582"><text class="form-label data-v-deb1d582">头像</text><view class="avatar-upload data-v-deb1d582"><button class="avatar-button data-v-deb1d582" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar-image data-v-deb1d582" src="{{userInfo.headImage||'/static/待上传头像.png'}}" mode="aspectFill"></image></button></view></view><view class="form-item data-v-deb1d582"><text class="form-label data-v-deb1d582">昵称</text><input class="form-input data-v-deb1d582" placeholder="请输入昵称" type="nickname" data-event-opts="{{[['blur',[['onNicknameBlur',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view><view class="form-item data-v-deb1d582"><text class="form-label data-v-deb1d582">手机号</text><view class="phone-input-container data-v-deb1d582"><input class="form-input phone-input data-v-deb1d582" placeholder="请输入手机号" type="number" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/><button class="get-phone-btn data-v-deb1d582" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"><text class="btn-text data-v-deb1d582">获取手机号</text></button></view></view></view><view class="submit-section data-v-deb1d582"><view data-event-opts="{{[['tap',[['submitUserInfo',['$event']]]]]}}" class="submit-btn data-v-deb1d582" bindtap="__e"><text class="submit-text data-v-deb1d582">确定</text></view></view></view></view> |
@ -1 +1 @@ | |||
.user-info-container.data-v-1cda45fe{min-height:100vh;background-color:#f5f5f5}.custom-navbar.data-v-1cda45fe{position:fixed;top:0;left:0;right:0;z-index:1000;background-color:#1488db}.custom-navbar .navbar-content.data-v-1cda45fe{height:88rpx;display:flex;align-items:center;justify-content:center;padding-top:25px}.custom-navbar .navbar-content .navbar-title.data-v-1cda45fe{font-size:36rpx;font-weight:500;color:#fff}.content.data-v-1cda45fe{padding-top:calc(88rpx + 25px);padding:calc(88rpx + 25px) 40rpx 40rpx}.avatar-section.data-v-1cda45fe{display:flex;justify-content:center;margin-bottom:80rpx}.avatar-section .app-info.data-v-1cda45fe{display:flex;flex-direction:column;align-items:center}.avatar-section .app-info .app-logo.data-v-1cda45fe{width:160rpx;height:160rpx;border-radius:20rpx;border:4rpx dashed #ccc;margin-bottom:20rpx}.avatar-section .app-info .app-name.data-v-1cda45fe{font-size:32rpx;font-weight:500;color:#333}.form-section.data-v-1cda45fe{background-color:#fff;border-radius:20rpx;padding:40rpx;margin-bottom:60rpx}.form-item.data-v-1cda45fe{display:flex;align-items:center;margin-bottom:40rpx}.form-item.data-v-1cda45fe:last-child{margin-bottom:0}.form-item .form-label.data-v-1cda45fe{width:120rpx;font-size:32rpx;color:#333;font-weight:500}.form-item .form-input.data-v-1cda45fe{flex:3;height:80rpx;padding:0 20rpx;border-radius:10rpx;font-size:30rpx;color:#333}.form-item .form-input.phone-input.data-v-1cda45fe{margin-right:20rpx}.form-item .avatar-upload .avatar-image.data-v-1cda45fe{width:120rpx;height:120rpx;border-radius:10rpx;border:2rpx dashed #ccc}.form-item .phone-input-container.data-v-1cda45fe{flex:1;display:flex;align-items:center}.form-item .phone-input-container .get-phone-btn.data-v-1cda45fe{flex:2;background-color:#1488db;border-radius:40rpx;border:none;outline:none}.form-item .phone-input-container .get-phone-btn.data-v-1cda45fe::after{border:none}.form-item .phone-input-container .get-phone-btn .btn-text.data-v-1cda45fe{font-size:26rpx;color:#fff}.submit-section.data-v-1cda45fe{padding:0 40rpx}.submit-section .submit-btn.data-v-1cda45fe{width:100%;height:88rpx;background-color:#1488db;border-radius:44rpx;display:flex;align-items:center;justify-content:center}.submit-section .submit-btn .submit-text.data-v-1cda45fe{font-size:32rpx;font-weight:500;color:#fff}.avatar-button.data-v-1cda45fe{padding:0;margin:0;background:transparent;border:none;outline:none}.avatar-button.data-v-1cda45fe::after{border:none} | |||
.user-info-container.data-v-deb1d582{min-height:100vh;background-color:#f5f5f5}.custom-navbar.data-v-deb1d582{position:fixed;top:0;left:0;right:0;z-index:1000;background-color:#1488db}.custom-navbar .navbar-content.data-v-deb1d582{height:88rpx;display:flex;align-items:center;justify-content:center;padding-top:25px}.custom-navbar .navbar-content .navbar-title.data-v-deb1d582{font-size:36rpx;font-weight:500;color:#fff}.content.data-v-deb1d582{padding-top:calc(88rpx + 25px);padding:calc(88rpx + 25px) 40rpx 40rpx}.avatar-section.data-v-deb1d582{display:flex;justify-content:center;margin-bottom:80rpx}.avatar-section .app-info.data-v-deb1d582{display:flex;flex-direction:column;align-items:center}.avatar-section .app-info .app-logo.data-v-deb1d582{width:160rpx;height:160rpx;border-radius:20rpx;border:4rpx dashed #ccc;margin-bottom:20rpx}.avatar-section .app-info .app-name.data-v-deb1d582{font-size:32rpx;font-weight:500;color:#333}.form-section.data-v-deb1d582{background-color:#fff;border-radius:20rpx;padding:40rpx;margin-bottom:60rpx}.form-item.data-v-deb1d582{display:flex;align-items:center;margin-bottom:40rpx}.form-item.data-v-deb1d582:last-child{margin-bottom:0}.form-item .form-label.data-v-deb1d582{width:120rpx;font-size:32rpx;color:#333;font-weight:500}.form-item .form-input.data-v-deb1d582{flex:3;height:80rpx;padding:0 20rpx;border-radius:10rpx;font-size:30rpx;color:#333}.form-item .form-input.phone-input.data-v-deb1d582{margin-right:20rpx}.form-item .avatar-upload .avatar-image.data-v-deb1d582{width:120rpx;height:120rpx;border-radius:10rpx;border:2rpx dashed #ccc}.form-item .phone-input-container.data-v-deb1d582{flex:1;display:flex;align-items:center}.form-item .phone-input-container .get-phone-btn.data-v-deb1d582{flex:2;background-color:#1488db;border-radius:40rpx;border:none;outline:none}.form-item .phone-input-container .get-phone-btn.data-v-deb1d582::after{border:none}.form-item .phone-input-container .get-phone-btn .btn-text.data-v-deb1d582{font-size:26rpx;color:#fff}.submit-section.data-v-deb1d582{padding:0 40rpx}.submit-section .submit-btn.data-v-deb1d582{width:100%;height:88rpx;background-color:#1488db;border-radius:44rpx;display:flex;align-items:center;justify-content:center}.submit-section .submit-btn .submit-text.data-v-deb1d582{font-size:32rpx;font-weight:500;color:#fff}.avatar-button.data-v-deb1d582{padding:0;margin:0;background:transparent;border:none;outline:none}.avatar-button.data-v-deb1d582::after{border:none} |
@ -1,7 +1,7 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": { | |||
"uv-icon": "/uni_modules/uv-icon/components/uv-icon/uv-icon", | |||
"uv-button": "/uni_modules/uv-button/components/uv-button/uv-button" | |||
}, | |||
"component": true | |||
} | |||
} |
@ -1,4 +1,4 @@ | |||
{ | |||
"usingComponents": {}, | |||
"component": true | |||
"component": true, | |||
"usingComponents": {} | |||
} |
@ -1,6 +1,6 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": { | |||
"uv-icon": "/uni_modules/uv-icon/components/uv-icon/uv-icon" | |||
}, | |||
"component": true | |||
} | |||
} |
@ -1,4 +1,4 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": {} | |||
"usingComponents": {}, | |||
"component": true | |||
} |
@ -1 +1 @@ | |||
<view class="login-container data-v-dd759cb4"><image class="bg-image data-v-dd759cb4" src="{{appBg}}" mode="aspectFill"></image><view class="content data-v-dd759cb4"><view class="title-section data-v-dd759cb4"><view class="login-title data-v-dd759cb4">{{loginTitle}}</view></view><view class="button-section data-v-dd759cb4"><view data-event-opts="{{[['tap',[['phoneLogin',['$event']]]]]}}" class="login-btn primary data-v-dd759cb4" bindtap="__e"><text class="btn-text data-v-dd759cb4">授权手机号登录</text></view><view data-event-opts="{{[['tap',[['cancelLogin',['$event']]]]]}}" class="login-btn secondary data-v-dd759cb4" bindtap="__e"><text class="btn-text data-v-dd759cb4">取消登录</text></view><view class="agreement-text-container data-v-dd759cb4"><view class="agreement-checkbox-row data-v-dd759cb4"><view data-event-opts="{{[['tap',[['toggleAgreement',['$event']]]]]}}" class="custom-checkbox data-v-dd759cb4" bindtap="__e"><block wx:if="{{!isAgreed}}"><uv-icon vue-id="d13cf7c0-1" name="checkmark-circle" size="20" color="#cccccc" class="data-v-dd759cb4" bind:__l="__l"></uv-icon></block><block wx:else><uv-icon vue-id="d13cf7c0-2" name="checkmark-circle-fill" size="20" color="#1488DB" class="data-v-dd759cb4" bind:__l="__l"></uv-icon></block></view><view class="agreement-text-content data-v-dd759cb4"><text class="agreement-text data-v-dd759cb4">阅读并同意我们的</text><text data-event-opts="{{[['tap',[['showPolicy',['$event']]]]]}}" class="agreement-link data-v-dd759cb4" bindtap="__e">《服务协议与隐私条款》</text><text class="agreement-text data-v-dd759cb4">以及</text><text data-event-opts="{{[['tap',[['showPrivacy',['$event']]]]]}}" class="agreement-link data-v-dd759cb4" bindtap="__e">《个人信息保护指引》</text></view></view></view></view></view><uv-modal vue-id="d13cf7c0-3" title="服务协议与隐私条款" data-ref="modalPolicy" class="data-v-dd759cb4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-dd759cb4"><rich-text nodes="{{loginPolicy}}" class="data-v-dd759cb4"></rich-text></view></uv-modal><uv-modal vue-id="d13cf7c0-4" title="个人信息保护指引" data-ref="modalPrivacy" class="data-v-dd759cb4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-dd759cb4"><rich-text nodes="{{loginPrivacy}}" class="data-v-dd759cb4"></rich-text></view></uv-modal></view> | |||
<view class="login-container data-v-dd759cb4"><image class="bg-image data-v-dd759cb4" src="{{$root.m0}}" mode="aspectFill"></image><view class="content data-v-dd759cb4"><view class="title-section data-v-dd759cb4"><view class="login-title data-v-dd759cb4">{{$root.m1}}</view></view><view class="button-section data-v-dd759cb4"><view data-event-opts="{{[['tap',[['phoneLogin',['$event']]]]]}}" class="login-btn primary data-v-dd759cb4" bindtap="__e"><text class="btn-text data-v-dd759cb4">授权手机号登录</text></view><view data-event-opts="{{[['tap',[['cancelLogin',['$event']]]]]}}" class="login-btn secondary data-v-dd759cb4" bindtap="__e"><text class="btn-text data-v-dd759cb4">取消登录</text></view><view class="agreement-text-container data-v-dd759cb4"><view class="agreement-checkbox-row data-v-dd759cb4"><view data-event-opts="{{[['tap',[['toggleAgreement',['$event']]]]]}}" class="custom-checkbox data-v-dd759cb4" bindtap="__e"><block wx:if="{{!isAgreed}}"><uv-icon vue-id="d13cf7c0-1" name="checkmark-circle" size="20" color="#cccccc" class="data-v-dd759cb4" bind:__l="__l"></uv-icon></block><block wx:else><uv-icon vue-id="d13cf7c0-2" name="checkmark-circle-fill" size="20" color="#1488DB" class="data-v-dd759cb4" bind:__l="__l"></uv-icon></block></view><view class="agreement-text-content data-v-dd759cb4"><text class="agreement-text data-v-dd759cb4">阅读并同意我们的</text><text data-event-opts="{{[['tap',[['showPolicy',['$event']]]]]}}" class="agreement-link data-v-dd759cb4" bindtap="__e">《服务协议与隐私条款》</text><text class="agreement-text data-v-dd759cb4">以及</text><text data-event-opts="{{[['tap',[['showPrivacy',['$event']]]]]}}" class="agreement-link data-v-dd759cb4" bindtap="__e">《个人信息保护指引》</text></view></view></view></view></view><uv-modal vue-id="d13cf7c0-3" title="服务协议与隐私条款" data-ref="modalPolicy" class="data-v-dd759cb4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-dd759cb4"><rich-text nodes="{{$root.m2}}" class="data-v-dd759cb4"></rich-text></view></uv-modal><uv-modal vue-id="d13cf7c0-4" title="个人信息保护指引" data-ref="modalPrivacy" class="data-v-dd759cb4 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-dd759cb4"><rich-text nodes="{{$root.m3}}" class="data-v-dd759cb4"></rich-text></view></uv-modal></view> |
@ -1 +1 @@ | |||
<view class="user-info-container data-v-441d4aec"><view class="content data-v-441d4aec"><view class="avatar-section data-v-441d4aec"><view class="app-info data-v-441d4aec"><image class="app-logo data-v-441d4aec" src="{{appLogo}}" mode="aspectFit"></image><text class="app-name data-v-441d4aec">木邻有你</text></view></view><view class="form-section data-v-441d4aec"><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">头像</text><view class="avatar-upload data-v-441d4aec"><button class="avatar-button data-v-441d4aec" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar-image data-v-441d4aec" src="{{userInfo.headImage||'/static/待上传头像.png'}}" mode="aspectFill"></image></button></view></view><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">昵称</text><input class="form-input data-v-441d4aec" placeholder="请输入昵称" type="nickname" data-event-opts="{{[['blur',[['onNicknameBlur',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">手机号</text><view class="phone-input-container data-v-441d4aec"><input class="form-input phone-input data-v-441d4aec" placeholder="请输入手机号" type="number" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/><button class="get-phone-btn data-v-441d4aec" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"><text class="btn-text data-v-441d4aec">获取手机号</text></button></view></view></view><view class="submit-section data-v-441d4aec"><view data-event-opts="{{[['tap',[['submitUserInfo',['$event']]]]]}}" class="submit-btn data-v-441d4aec" bindtap="__e"><text class="submit-text data-v-441d4aec">确定</text></view></view></view></view> | |||
<view class="user-info-container data-v-441d4aec"><view class="content data-v-441d4aec"><view class="avatar-section data-v-441d4aec"><view class="app-info data-v-441d4aec"><image class="app-logo data-v-441d4aec" src="{{$root.m0}}" mode="aspectFit"></image><text class="app-name data-v-441d4aec">{{$root.m1}}</text></view></view><view class="form-section data-v-441d4aec"><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">头像</text><view class="avatar-upload data-v-441d4aec"><button class="avatar-button data-v-441d4aec" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar-image data-v-441d4aec" src="{{userInfo.headImage||'/static/待上传头像.png'}}" mode="aspectFill"></image></button></view></view><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">昵称</text><input class="form-input data-v-441d4aec" placeholder="请输入昵称" type="nickname" data-event-opts="{{[['blur',[['onNicknameBlur',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view><view class="form-item data-v-441d4aec"><text class="form-label data-v-441d4aec">手机号</text><view class="phone-input-container data-v-441d4aec"><input class="form-input phone-input data-v-441d4aec" placeholder="请输入手机号" type="number" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/><button class="get-phone-btn data-v-441d4aec" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"><text class="btn-text data-v-441d4aec">获取手机号</text></button></view></view></view><view class="submit-section data-v-441d4aec"><view data-event-opts="{{[['tap',[['submitUserInfo',['$event']]]]]}}" class="submit-btn data-v-441d4aec" bindtap="__e"><text class="submit-text data-v-441d4aec">确定</text></view></view></view></view> |