Browse Source

'加入配置文件CodeReview'

hfll
hflllll 1 month ago
parent
commit
3a18cf4e57
94 changed files with 338 additions and 357 deletions
  1. +3
    -0
      config/index.js
  2. +5
    -2
      main.js
  3. +16
    -0
      mixins/config.js
  4. +19
    -8
      mixins/list.js
  5. +1
    -0
      pages.json
  6. +5
    -1
      subPages/index/activityCalendar.vue
  7. +27
    -52
      subPages/index/ranking.vue
  8. +5
    -18
      subPages/login/login.vue
  9. +3
    -17
      subPages/login/userInfo.vue
  10. +1
    -1
      unpackage/dist/build/mp-weixin/common/main.js
  11. +3
    -3
      unpackage/dist/build/mp-weixin/common/vendor.js
  12. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.js
  13. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.wxml
  14. +11
    -11
      unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.wxss
  15. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/index/ranking.js
  16. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/index/ranking.wxml
  17. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/index/ranking.wxss
  18. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/login.js
  19. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/login.wxml
  20. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/login.wxss
  21. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/userInfo.js
  22. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/userInfo.wxml
  23. +1
    -1
      unpackage/dist/build/mp-weixin/subPages/login/userInfo.wxss
  24. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  25. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  26. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/GlobalPopup.js.map
  27. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/HomePageNav.js.map
  28. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/Search.js.map
  29. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/RecommendedActivities.js.map
  30. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerFeatures.js.map
  31. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerHeader.js.map
  32. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerRanking.js.map
  33. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/shop/PointsCard.js.map
  34. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/shop/ShopContent.js.map
  35. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/activity.js.map
  36. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/community.js.map
  37. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  38. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/my.js.map
  39. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/shop.js.map
  40. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/community/publishPost.js.map
  41. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/activityCalendar.js.map
  42. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/activityDetail.js.map
  43. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/announcement.js.map
  44. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/announcementDetail.js.map
  45. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/components/SignUpForm.js.map
  46. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/organizationIntroduction.js.map
  47. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/ranking.js.map
  48. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/volunteerApply.js.map
  49. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/login/login.js.map
  50. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/login/userInfo.js.map
  51. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/activityCheckin.js.map
  52. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/activityFavorites.js.map
  53. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/checkinCode.js.map
  54. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/exchangeDetail.js.map
  55. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/exchangeRecord.js.map
  56. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myActivityDetail.js.map
  57. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myProfile.js.map
  58. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myRegistrations.js.map
  59. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/productFavorites.js.map
  60. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/signupSuccess.js.map
  61. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/shop/goodsDetail.js.map
  62. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/subPages/shop/pointsDetail.js.map
  63. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-button/components/uv-button/uv-button.js.map
  64. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.js.map
  65. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-form/components/uv-form-item/uv-form-item.js.map
  66. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.js.map
  67. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-input/components/uv-input/uv-input.js.map
  68. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-line/components/uv-line/uv-line.js.map
  69. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.js.map
  70. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-modal/components/uv-modal/uv-modal.js.map
  71. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-overlay/components/uv-overlay/uv-overlay.js.map
  72. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-picker/components/uv-picker/uv-picker.js.map
  73. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-popup/components/uv-popup/uv-popup.js.map
  74. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-qrcode/components/uv-qrcode/uv-qrcode.js.map
  75. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.js.map
  76. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-search/components/uv-search/uv-search.js.map
  77. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-status-bar/components/uv-status-bar/uv-status-bar.js.map
  78. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.js.map
  79. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-swiper/components/uv-swiper/uv-swiper.js.map
  80. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-textarea/components/uv-textarea/uv-textarea.js.map
  81. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-toolbar/components/uv-toolbar/uv-toolbar.js.map
  82. +6
    -3
      unpackage/dist/dev/mp-weixin/common/main.js
  83. +68
    -11
      unpackage/dist/dev/mp-weixin/common/vendor.js
  84. +2
    -2
      unpackage/dist/dev/mp-weixin/pages/components/index/RecommendedActivities.json
  85. +2
    -2
      unpackage/dist/dev/mp-weixin/pages/components/index/VolunteerFeatures.json
  86. +2
    -2
      unpackage/dist/dev/mp-weixin/pages/components/index/VolunteerRanking.json
  87. +2
    -2
      unpackage/dist/dev/mp-weixin/pages/components/shop/PointsCard.json
  88. +20
    -14
      unpackage/dist/dev/mp-weixin/project.config.json
  89. +13
    -4
      unpackage/dist/dev/mp-weixin/subPages/index/activityCalendar.js
  90. +27
    -108
      unpackage/dist/dev/mp-weixin/subPages/index/ranking.js
  91. +15
    -14
      unpackage/dist/dev/mp-weixin/subPages/login/login.js
  92. +1
    -1
      unpackage/dist/dev/mp-weixin/subPages/login/login.wxml
  93. +11
    -11
      unpackage/dist/dev/mp-weixin/subPages/login/userInfo.js
  94. +1
    -1
      unpackage/dist/dev/mp-weixin/subPages/login/userInfo.wxml

+ 3
- 0
config/index.js View File

@ -10,6 +10,7 @@ const env = 'testing' || 'development' || 'production'
// 全局配置
const config = {
// 网络全局配置
netConfig: {
development: {
baseURL: 'http://augcl.natapp1.cc/community-admin/community',
@ -24,6 +25,7 @@ const config = {
}
},
// 阿里云配置
aliOSSConfig :{
aliOSS_accessKey: 'LTAI5tQSs47izVy8DLVdwUU9',
aliOSS_secretKey: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
@ -32,6 +34,7 @@ const config = {
staticDomain: 'https://image.hhlm1688.com/'
},
// 防抖相关配置
debounceConfig : {
DEFAULT_DEBOUNCE_TIME: 0,
DEFAULT_THROTTLE_TIME: 0,


+ 5
- 2
main.js View File

@ -7,19 +7,22 @@ import './uni.promisify.adaptor'
import * as api from '@/api'
import utils from '@/utils'
import config from '@/config'
import MixinConfig from '@/mixins/config'
import store from '@/stores'
// import vuex from 'vuex'
Vue.config.productionTip = false
// 全局混入获取配置相关信息的方法
Vue.mixin(MixinConfig)
// 全局注册弹窗组件
Vue.component('GlobalPopup', GlobalPopup)
// 将api挂载到Vue的原型
Vue.prototype.$api = api
Vue.prototype.$utils = utils
Vue.prototype.$config = config
Vue.prototype.$config = config // 这里是静态config
App.mpType = 'app'
const app = new Vue({


+ 16
- 0
mixins/config.js View File

@ -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 || '默认富文本'
}
}
}

+ 19
- 8
mixins/list.js View File

@ -8,7 +8,13 @@ export default {
mixinListApi: '',
isLoading: false,
hasMore: true,
// 额外返回出去的数据
extraData: null,
// 每次更新数据后执行的函数 可以进行数据处理
afterUpdateDataFn: function() {},
// 每次更新数据前执行的函数,
beforeUpdateDataFn: function() {},
// 混入配置
mixinListConfig: {
// 数据返回的直接路径
responsePath: 'result.records',
@ -16,11 +22,8 @@ export default {
isPullDownRefresh: true,
// 列表是否需要上拉加载
isReachBottomLoad: true,
// 额外返回出去的数据
extraData: {
data: null,
path: '' // 数据的路径
}
// 额外返回出去的数据的路径
extraDataPath: ''
}
}
},
@ -59,6 +62,10 @@ export default {
console.log('mixinApi不存在', this.mixinListApi);
return
}
// 每次更新数据前执行的函数
if (this.beforeUpdateDataFn) {
this.beforeUpdateDataFn(this.list)
}
const res = await apiMethod({
pageNo: this.pageNo,
pageSize: this.pageSize,
@ -86,10 +93,14 @@ export default {
}
// 如果有额外数据的路径,刷新后,需要将额外数据也刷新
if (this.mixinListConfig.extraData.path !== '') {
this.mixinListConfig.extraData.data = this.resolvePath(res, this.mixinListConfig.extraData.path)
if (this.mixinListConfig.extraDataPath !== '') {
this.extraData = this.resolvePath(res, this.mixinListConfig.extraDataPath)
}
}
// 每次更新数据后执行的函数
if (this.afterUpdateDataFn) {
this.afterUpdateDataFn(this.list)
}
// 如果有在加载中
if (this.isLoading) {
this.isLoading = false


+ 1
- 0
pages.json View File

@ -206,6 +206,7 @@
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#1488DB",
"backgroundColor": "#218CDD"
// "enablePullDownRefresh": true
},
"tabBar": {
"color": "#999999",


+ 5
- 1
subPages/index/activityCalendar.vue View File

@ -72,7 +72,8 @@ export default {
return {
activityData: [],
pageNo: 1,
pageSize: 10
pageSize: 10,
hasMore: true
}
},
methods: {
@ -113,6 +114,7 @@ export default {
},
async getActivityData() {
if (!this.hasMore) return
const res = await this.$api.activity.queryActivityList({
pageNo: this.pageNo,
pageSize: this.pageSize
@ -125,10 +127,12 @@ export default {
title: '暂无数据',
icon: 'none'
})
this.hasMore = false
}
},
initData() {
this.hasMore = true
this.activityData = []
this.pageNo = 1
}


+ 27
- 52
subPages/index/ranking.vue View File

@ -61,69 +61,44 @@
</template>
<script>
import MixinList from '@/mixins/list.js'
export default {
mixins: [MixinList],
name: 'Ranking',
data() {
return {
myRanking: {
},
rankingList: [
],
topThree: [
],
pageNo: 1,
pageSize: 10
pageSize: 12,
mixinListApi: 'score.queryScoreRank',
mixinListConfig: {
extraDataPath: 'result.myScore',
responsePath: 'result.scoreList.records'
}
}
},
async onShow() {
this.initData()
//
await this.getRankingData();
},
methods: {
initData() {
this.pageNo = 1,
this.rankingList = [],
this.topThree = []
},
async onPullDownRefresh() {
this.initData()
await this.getRankingData()
uni.stopPullDownRefresh()
computed: {
myRanking() {
return this.extraData
},
async onReachBottom() {
await this.getRankingData()
rankingList() {
return this.list.slice(3)
},
goBack() {
uni.navigateBack();
topThree() {
return this.list.slice(0, 3)
},
async getRankingData() {
let params = {}
//
if (uni.getStorageSync('token')) {
params = {
token: uni.getStorageSync('token')
}
}
const res = await this.$api.score.queryScoreRank({
},
methods: {
mixinSetParams() {
const params = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...params
})
if (res.result.scoreList.records.length) {
this.rankingList.push(...res.result.scoreList.records.slice(3))
this.topThree.push(...res.result.scoreList.records.slice(0, 3))
if (this.pageNo === 1) this.myRanking = res.result.myScore
this.pageNo++
}else {
uni.showToast({
title: '暂无数据',
icon: 'none'
})
pageSize: this.pageSize
}
if (uni.getStorageSync('token')){
params['token'] = uni.getStorageSync('token')
}
return params
},
goBack() {
uni.navigateBack();
}
}
}


+ 5
- 18
subPages/login/login.vue View File

@ -1,14 +1,14 @@
<template>
<view class="login-container">
<!-- 背景图 -->
<image class="bg-image" :src="appBg" mode="aspectFill"></image>
<image class="bg-image" :src="configParamImage('config_login_bg')" mode="aspectFill"></image>
<!-- 内容区域 -->
<view class="content">
<!-- 标题图片 -->
<view class="title-section">
<!-- <image class="title-image" src="/subPages/static/登录_标题.png" mode="widthFix"></image> -->
<view class="login-title">{{ loginTitle }}</view>
<view class="login-title">{{ configParamText('config_login_title') }}</view>
</view>
<!-- 按钮区域 -->
@ -52,12 +52,12 @@
</view>
<uv-modal ref="modalPolicy" title="服务协议与隐私条款">
<view class="slot-content">
<rich-text :nodes="loginPolicy"></rich-text>
<rich-text :nodes="configParamTextarea('config_login_policy')"></rich-text>
</view>
</uv-modal>
<uv-modal ref="modalPrivacy" title="个人信息保护指引">
<view class="slot-content">
<rich-text :nodes="loginPrivacy"></rich-text>
<rich-text :nodes="configParamTextarea('config_login_privacy')"></rich-text>
</view>
</uv-modal>
</view>
@ -71,20 +71,7 @@ export default {
isAgreed: false
}
},
computed:{
appBg(){
return this.$store.state.configList['config_login_bg'].paramImage
},
loginTitle(){
return this.$store.state.configList['config_login_title'].paramText
},
loginPolicy(){
return this.$store.state.configList['config_login_policy'].paramTextarea
},
loginPrivacy(){
return this.$store.state.configList['config_login_privacy'].paramTextarea
},
},
methods: {
//
toggleAgreement() {


+ 3
- 17
subPages/login/userInfo.vue View File

@ -1,12 +1,6 @@
<template>
<view class="user-info-container">
<!-- 自定义导航栏 -->
<!-- <view class="custom-navbar">
<view class="navbar-content">
<view class="navbar-title">申请获取您的头像昵称</view>
</view>
</view> -->
<!-- 内容区域 -->
<view class="content">
<!-- 头像区域 -->
@ -14,10 +8,10 @@
<view class="app-info">
<image
class="app-logo"
:src="appLogo"
:src="configParamImage('config_logo')"
mode="aspectFit"
></image>
<text class="app-name">木邻有你</text>
<text class="app-name">{{ configParamText('config_app_name') }}</text>
</view>
</view>
@ -252,14 +246,6 @@ export default {
});
}, 1500);
}
},
computed: {
appLogo() {
return this.$store.state.configList &&
this.$store.state.configList['config_logo']
? this.$store.state.configList['config_logo'].paramImage
: '/static/logo.png';
}
}
}
</script>


+ 1
- 1
unpackage/dist/build/mp-weixin/common/main.js View File

@ -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"]]]);

+ 3
- 3
unpackage/dist/build/mp-weixin/common/vendor.js
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.js View File

@ -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
unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.wxml View File

@ -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>

+ 11
- 11
unpackage/dist/build/mp-weixin/subPages/index/activityCalendar.wxss View File

@ -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
unpackage/dist/build/mp-weixin/subPages/index/ranking.js View File

@ -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
unpackage/dist/build/mp-weixin/subPages/index/ranking.wxml View File

@ -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
unpackage/dist/build/mp-weixin/subPages/index/ranking.wxss View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/login.js View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/login.wxml View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/login.wxss View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/userInfo.js View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/userInfo.wxml View File

@ -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
unpackage/dist/build/mp-weixin/subPages/login/userInfo.wxss View File

@ -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
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/GlobalPopup.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/HomePageNav.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/Search.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/RecommendedActivities.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerFeatures.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerHeader.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/index/VolunteerRanking.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/shop/PointsCard.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/components/shop/ShopContent.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/activity.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/community.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/my.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/shop.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/community/publishPost.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/activityCalendar.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/activityDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/announcement.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/announcementDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/components/SignUpForm.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/organizationIntroduction.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/ranking.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/index/volunteerApply.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/login/login.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/login/userInfo.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/activityCheckin.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/activityFavorites.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/checkinCode.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/exchangeDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/exchangeRecord.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myActivityDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myProfile.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/myRegistrations.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/productFavorites.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/my/signupSuccess.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/shop/goodsDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/subPages/shop/pointsDetail.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-button/components/uv-button/uv-button.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-empty/components/uv-empty/uv-empty.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-form/components/uv-form-item/uv-form-item.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-input/components/uv-input/uv-input.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-line/components/uv-line/uv-line.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-modal/components/uv-modal/uv-modal.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-overlay/components/uv-overlay/uv-overlay.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-picker/components/uv-picker/uv-picker.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-popup/components/uv-popup/uv-popup.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-qrcode/components/uv-qrcode/uv-qrcode.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-safe-bottom/components/uv-safe-bottom/uv-safe-bottom.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-search/components/uv-search/uv-search.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-status-bar/components/uv-status-bar/uv-status-bar.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-swiper/components/uv-swiper/uv-swiper.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-textarea/components/uv-textarea/uv-textarea.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uv-toolbar/components/uv-toolbar/uv-toolbar.js.map
File diff suppressed because it is too large
View File


+ 6
- 3
unpackage/dist/dev/mp-weixin/common/main.js View File

@ -20,6 +20,7 @@ __webpack_require__(/*! ./uni.promisify.adaptor */ 36);
var api = _interopRequireWildcard(__webpack_require__(/*! @/api */ 37));
var _utils = _interopRequireDefault(__webpack_require__(/*! @/utils */ 49));
var _config = _interopRequireDefault(__webpack_require__(/*! @/config */ 41));
var _config2 = _interopRequireDefault(__webpack_require__(/*! @/mixins/config */ 580));
var _stores = _interopRequireDefault(__webpack_require__(/*! @/stores */ 52));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@ -32,17 +33,19 @@ var GlobalPopup = function GlobalPopup() {
return resolve(__webpack_require__(/*! @/pages/components/GlobalPopup.vue */ 272));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
// import vuex from 'vuex'
_vue.default.config.productionTip = false;
// 全局混入获取配置相关信息的方法
_vue.default.mixin(_config2.default);
// 全局注册弹窗组件
_vue.default.component('GlobalPopup', GlobalPopup);
// 将api挂载到Vue的原型
_vue.default.prototype.$api = api;
_vue.default.prototype.$utils = _utils.default;
_vue.default.prototype.$config = _config.default;
_vue.default.prototype.$config = _config.default; // 这里是静态config
_App.default.mpType = 'app';
var app = new _vue.default(_objectSpread(_objectSpread({}, _App.default), {}, {
store: _stores.default


+ 68
- 11
unpackage/dist/dev/mp-weixin/common/vendor.js View File

@ -15039,6 +15039,7 @@ var env = 'testing' || false || false;
// 全局配置
var config = {
// 网络全局配置
netConfig: {
development: {
baseURL: 'http://augcl.natapp1.cc/community-admin/community'
@ -15050,6 +15051,7 @@ var config = {
baseURL: 'https://api.escuelajs.co/api/v1'
}
},
// 阿里云配置
aliOSSConfig: {
aliOSS_accessKey: 'LTAI5tQSs47izVy8DLVdwUU9',
aliOSS_secretKey: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
@ -15057,6 +15059,7 @@ var config = {
endpoint: 'oss-cn-shenzhen.aliyuncs.com',
staticDomain: 'https://image.hhlm1688.com/'
},
// 防抖相关配置
debounceConfig: {
DEFAULT_DEBOUNCE_TIME: 0,
DEFAULT_THROTTLE_TIME: 0,
@ -20115,6 +20118,49 @@ module.exports = index_cjs;
/***/ }),
/***/ 580:
/*!***************************************!*\
!*** E:///mixins/config.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
computed: {
// 获取全局配置的文本
configParamText: function configParamText() {
var _this = this;
return function (key) {
return _this.$store.state.configList[key].paramText || '默认文本';
};
},
// 获取全局配置的图片
configParamImage: function configParamImage() {
var _this2 = this;
return function (key) {
return _this2.$store.state.configList[key].paramImage || '/static/默认图片.png';
};
},
// 获取全局配置的富文本
configParamTextarea: function configParamTextarea() {
var _this3 = this;
return function (key) {
return _this3.$store.state.configList[key].paramTextarea || '默认富文本';
};
}
}
};
exports.default = _default;
/***/ }),
/***/ 6:
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
@ -20200,6 +20246,13 @@ var _default = {
mixinListApi: '',
isLoading: false,
hasMore: true,
// 额外返回出去的数据
extraData: null,
// 每次更新数据后执行的函数 可以进行数据处理
afterUpdateDataFn: function afterUpdateDataFn() {},
// 每次更新数据前执行的函数,
beforeUpdateDataFn: function beforeUpdateDataFn() {},
// 混入配置
mixinListConfig: {
// 数据返回的直接路径
responsePath: 'result.records',
@ -20207,15 +20260,11 @@ var _default = {
isPullDownRefresh: true,
// 列表是否需要上拉加载
isReachBottomLoad: true,
// 额外返回出去的数据
extraData: {
data: null,
path: '' // 数据的路径
}
// 额外返回出去的数据的路径
extraDataPath: ''
}
};
},
computed: {
// 自定义onShow前会执行的函数
mixinFnBeforePageShow: function mixinFnBeforePageShow() {
@ -20267,12 +20316,16 @@ var _default = {
console.log('mixinApi不存在', _this.mixinListApi);
return _context.abrupt("return");
case 8:
_context.next = 10;
// 每次更新数据前执行的函数
if (_this.beforeUpdateDataFn) {
_this.beforeUpdateDataFn(_this.list);
}
_context.next = 11;
return apiMethod(_objectSpread({
pageNo: _this.pageNo,
pageSize: _this.pageSize
}, _this.mixinSetParams()));
case 10:
case 11:
res = _context.sent;
resData = _this.resolvePath(res, _this.mixinListConfig.responsePath) || [];
if (res.code === 200) {
@ -20294,17 +20347,21 @@ var _default = {
}
// 如果有额外数据的路径,刷新后,需要将额外数据也刷新
if (_this.mixinListConfig.extraData.path !== '') {
_this.mixinListConfig.extraData.data = _this.resolvePath(res, _this.mixinListConfig.extraData.path);
if (_this.mixinListConfig.extraDataPath !== '') {
_this.extraData = _this.resolvePath(res, _this.mixinListConfig.extraDataPath);
}
}
// 每次更新数据后执行的函数
if (_this.afterUpdateDataFn) {
_this.afterUpdateDataFn(_this.list);
}
// 如果有在加载中
if (_this.isLoading) {
_this.isLoading = false;
}
// 有过有在下拉加载
uni.stopPullDownRefresh();
case 15:
case 17:
case "end":
return _context.stop();
}


+ 2
- 2
unpackage/dist/dev/mp-weixin/pages/components/index/RecommendedActivities.json View File

@ -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
}
}

+ 2
- 2
unpackage/dist/dev/mp-weixin/pages/components/index/VolunteerFeatures.json View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

+ 2
- 2
unpackage/dist/dev/mp-weixin/pages/components/index/VolunteerRanking.json View File

@ -1,6 +1,6 @@
{
"component": true,
"usingComponents": {
"uv-icon": "/uni_modules/uv-icon/components/uv-icon/uv-icon"
},
"component": true
}
}

+ 2
- 2
unpackage/dist/dev/mp-weixin/pages/components/shop/PointsCard.json View File

@ -1,4 +1,4 @@
{
"component": true,
"usingComponents": {}
"usingComponents": {},
"component": true
}

+ 20
- 14
unpackage/dist/dev/mp-weixin/project.config.json View File

@ -1,8 +1,7 @@
{
"description": "项目配置文件。",
"packOptions": {
"ignore": [],
"include": []
"ignore": []
},
"setting": {
"urlCheck": false,
@ -10,21 +9,28 @@
"postcss": false,
"minified": false,
"newFeature": true,
"bigPackageSizeSupport": true,
"ignoreUploadUnusedFiles": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
"bigPackageSizeSupport": true
},
"compileType": "miniprogram",
"libVersion": "3.8.12",
"libVersion": "",
"appid": "wxb6f11363a55f9535",
"projectname": "木邻有你",
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}

+ 13
- 4
unpackage/dist/dev/mp-weixin/subPages/index/activityCalendar.js View File

@ -241,7 +241,8 @@ var _default = {
return {
activityData: [],
pageNo: 1,
pageSize: 10
pageSize: 10,
hasMore: true
};
},
methods: {
@ -289,12 +290,18 @@ var _default = {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
if (_this2.hasMore) {
_context.next = 2;
break;
}
return _context.abrupt("return");
case 2:
_context.next = 4;
return _this2.$api.activity.queryActivityList({
pageNo: _this2.pageNo,
pageSize: _this2.pageSize
});
case 2:
case 4:
res = _context.sent;
if (res.result.records.length) {
_this2.changeData(res.result.records);
@ -304,8 +311,9 @@ var _default = {
title: '暂无数据',
icon: 'none'
});
_this2.hasMore = false;
}
case 4:
case 6:
case "end":
return _context.stop();
}
@ -314,6 +322,7 @@ var _default = {
}))();
},
initData: function initData() {
this.hasMore = true;
this.activityData = [];
this.pageNo = 1;
}


+ 27
- 108
unpackage/dist/dev/mp-weixin/subPages/index/ranking.js View File

@ -165,12 +165,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _list = _interopRequireDefault(__webpack_require__(/*! @/mixins/list.js */ 76));
//
//
//
@ -234,118 +229,42 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
//
//
var _default = {
mixins: [_list.default],
name: 'Ranking',
data: function data() {
return {
myRanking: {},
rankingList: [],
topThree: [],
pageNo: 1,
pageSize: 10
pageSize: 12,
mixinListApi: 'score.queryScoreRank',
mixinListConfig: {
extraDataPath: 'result.myScore',
responsePath: 'result.scoreList.records'
}
};
},
onShow: function onShow() {
var _this = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
return _regenerator.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_this.initData();
// 获取排行榜数据
_context.next = 3;
return _this.getRankingData();
case 3:
case "end":
return _context.stop();
}
}
}, _callee);
}))();
},
methods: {
initData: function initData() {
this.pageNo = 1, this.rankingList = [], this.topThree = [];
computed: {
myRanking: function myRanking() {
return this.extraData;
},
onPullDownRefresh: function onPullDownRefresh() {
var _this2 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
return _regenerator.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_this2.initData();
_context2.next = 3;
return _this2.getRankingData();
case 3:
uni.stopPullDownRefresh();
case 4:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))();
rankingList: function rankingList() {
return this.list.slice(3);
},
onReachBottom: function onReachBottom() {
var _this3 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
return _regenerator.default.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return _this3.getRankingData();
case 2:
case "end":
return _context3.stop();
}
}
}, _callee3);
}))();
topThree: function topThree() {
return this.list.slice(0, 3);
}
},
methods: {
mixinSetParams: function mixinSetParams() {
var params = {
pageNo: this.pageNo,
pageSize: this.pageSize
};
if (uni.getStorageSync('token')) {
params['token'] = uni.getStorageSync('token');
}
return params;
},
goBack: function goBack() {
uni.navigateBack();
},
getRankingData: function getRankingData() {
var _this4 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
var params, res, _this4$rankingList, _this4$topThree;
return _regenerator.default.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
params = {}; // 有登录的情况下 才会显示我的排名
if (uni.getStorageSync('token')) {
params = {
token: uni.getStorageSync('token')
};
}
_context4.next = 4;
return _this4.$api.score.queryScoreRank(_objectSpread({
pageNo: _this4.pageNo,
pageSize: _this4.pageSize
}, params));
case 4:
res = _context4.sent;
if (res.result.scoreList.records.length) {
(_this4$rankingList = _this4.rankingList).push.apply(_this4$rankingList, (0, _toConsumableArray2.default)(res.result.scoreList.records.slice(3)));
(_this4$topThree = _this4.topThree).push.apply(_this4$topThree, (0, _toConsumableArray2.default)(res.result.scoreList.records.slice(0, 3)));
if (_this4.pageNo === 1) _this4.myRanking = res.result.myScore;
_this4.pageNo++;
} else {
uni.showToast({
title: '暂无数据',
icon: 'none'
});
}
case 6:
case "end":
return _context4.stop();
}
}
}, _callee4);
}))();
}
}
};


+ 15
- 14
unpackage/dist/dev/mp-weixin/subPages/login/login.js View File

@ -128,6 +128,21 @@ var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
var m0 = _vm.configParamImage("config_login_bg")
var m1 = _vm.configParamText("config_login_title")
var m2 = _vm.configParamTextarea("config_login_policy")
var m3 = _vm.configParamTextarea("config_login_privacy")
_vm.$mp.data = Object.assign(
{},
{
$root: {
m0: m0,
m1: m1,
m2: m2,
m3: m3,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
@ -242,20 +257,6 @@ var _default = {
isAgreed: false
};
},
computed: {
appBg: function appBg() {
return this.$store.state.configList['config_login_bg'].paramImage;
},
loginTitle: function loginTitle() {
return this.$store.state.configList['config_login_title'].paramText;
},
loginPolicy: function loginPolicy() {
return this.$store.state.configList['config_login_policy'].paramTextarea;
},
loginPrivacy: function loginPrivacy() {
return this.$store.state.configList['config_login_privacy'].paramTextarea;
}
},
methods: {
// 切换协议同意状态
toggleAgreement: function toggleAgreement() {


+ 1
- 1
unpackage/dist/dev/mp-weixin/subPages/login/login.wxml View File

@ -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>

+ 11
- 11
unpackage/dist/dev/mp-weixin/subPages/login/userInfo.js View File

@ -102,6 +102,17 @@ var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
var m0 = _vm.configParamImage("config_logo")
var m1 = _vm.configParamText("config_app_name")
_vm.$mp.data = Object.assign(
{},
{
$root: {
m0: m0,
m1: m1,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
@ -226,12 +237,6 @@ var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/r
//
//
//
//
//
//
//
//
//
var _default = {
name: 'UserInfo',
data: function data() {
@ -473,11 +478,6 @@ var _default = {
}, _callee4);
}))();
}
},
computed: {
appLogo: function appLogo() {
return this.$store.state.configList && this.$store.state.configList['config_logo'] ? this.$store.state.configList['config_logo'].paramImage : '/static/logo.png';
}
}
};
exports.default = _default;


+ 1
- 1
unpackage/dist/dev/mp-weixin/subPages/login/userInfo.wxml View File

@ -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>

Loading…
Cancel
Save