diff --git a/app/Admin/Controllers/UserScoreController.php b/app/Admin/Controllers/UserScoreController.php index 90ee928..eedb6a2 100644 --- a/app/Admin/Controllers/UserScoreController.php +++ b/app/Admin/Controllers/UserScoreController.php @@ -130,22 +130,23 @@ class UserScoreController extends AdminController public function detail(): Form { - return $this->baseDetail()->title('')->body([ - amisMake()->TextControl()->name('id')->label(__('user_score.id'))->static(), - amisMake()->TextControl()->name('type.name')->label(__('user_score.type_id'))->static(), - amisMake()->TextControl()->name('cate.name')->label(__('user_score.cate_id'))->static(), - amisMake()->TextControl()->name('user.name')->label(__('user_score.user_id'))->static(), - amisMake()->TextControl()->name('title')->label(__('user_score.title'))->static(), - amisMake()->TextareaControl()->name('content')->label(__('user_score.content'))->static(), - amisMake()->TextControl()->name('images')->label(__('user_score.images'))->static()->staticSchema(amisMake()->Images()), - amisMake()->TextControl()->name('file')->label(__('user_score.file'))->static()->staticSchema(amisMake()->Link()->body('${file}')->href('${file}')->blank()), - amisMake()->TextControl()->name('check_status_text')->label(__('user_score.check_status'))->static(), - amisMake()->TextControl()->name('check_user.name')->label(__('user_score.check_user_id'))->static(), - amisMake()->TextControl()->name('check_remarks')->label(__('user_score.check_remarks'))->static(), - amisMake()->TextControl()->name('check_at')->label(__('user_score.check_at'))->static(), - amisMake()->TextControl()->name('score')->label(__('user_score.score'))->static(), - amisMake()->TextControl()->name('created_at')->label(__('user_score.created_at'))->static(), - ]); + return $this->baseDetail()->title('')->body(amisMake()->Property()->items([ + ['label' => __('user_score.user_id'), 'content' => '${user.name}'], + ['label' => __('user_score.cate_id'), 'content' => '${cate.name}'], + ['label' => __('user_score.type_id'), 'content' => '${type.name}'], + ['label' => __('user_score.check_status'), 'content' => '${check_status_text}'], + ['label' => __('user_score.check_user_id'), 'content' => '${check_user.name}'], + ['label' => __('user_score.check_remarks'), 'content' => '${check_remarks}'], + + ['label' => __('user_score.score'), 'content' => '${score}'], + ['label' => __('user_score.created_at'), 'content' => '${created_at}', 'span' => 2], + + ['label' => __('user_score.title'), 'content' => '${title}', 'span' => 3], + ['label' => __('user_score.content'), 'content' => amisMake()->TextareaControl()->labelWidth('0px')->static()->value('${content}'), 'span' => 3], + ['label' => __('user_score.content'), 'content' => amisMake()->Images()->source('${images}')->defaultImage(null), 'span' => 3], + ['label' => __('user_score.file'), 'content' => amisMake()->Link()->body('${file}')->href('${file}')->blank(), 'span' => 3], + + ])); } public function check($id, Request $request) diff --git a/app/Http/Controllers/Api/KeywordController.php b/app/Http/Controllers/Api/KeywordController.php index dc9f778..7db6e73 100644 --- a/app/Http/Controllers/Api/KeywordController.php +++ b/app/Http/Controllers/Api/KeywordController.php @@ -15,4 +15,11 @@ class KeywordController extends Controller return $this->response()->success(KeywordResource::collection($list)); } + + public function show($id) + { + $info = Keyword::findOrFail($id); + + return $this->response()->success(KeywordResource::make($info)); + } } diff --git a/app/Http/Controllers/Api/UserScoreController.php b/app/Http/Controllers/Api/UserScoreController.php index 984b64f..d3af227 100644 --- a/app/Http/Controllers/Api/UserScoreController.php +++ b/app/Http/Controllers/Api/UserScoreController.php @@ -40,15 +40,21 @@ class UserScoreController extends Controller return $this->response()->fail($service->getError()); } - public function update(Request $request) + public function update($id, Request $request) { $user = auth('api')->user(); $info = $user->scores()->findOrFail($id); if ($info->check_status == CheckStatus::Success) { return $this->response()->fail('审核已通过, 无法修改'); } - - $info->update($request->only(['title', 'content', 'images', 'file'])); + $params = $request->only(['title', 'content', 'images', 'file']); + if ($info->check_status == CheckStatus::Fail) { + $params['created_at'] = now(); + $params['check_status'] = CheckStatus::None; + $params['check_at'] = null; + $params['check_user_id'] = null; + } + $info->update($params); return $this->response()->success(); } diff --git a/public/h5/index.html b/public/h5/index.html index d960f39..a11a691 100644 --- a/public/h5/index.html +++ b/public/h5/index.html @@ -1,2 +1,2 @@ 五星党建
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/public/h5/static/js/index.19712fcf.js b/public/h5/static/js/index.19712fcf.js deleted file mode 100644 index c17fc47..0000000 --- a/public/h5/static/js/index.19712fcf.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var n={7766:function(n,e,o){var t=o(8156);t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[n.id,t,""]]),t.locals&&(n.exports=t.locals);var r=o(3532).Z;r("7505b7d7",t,!0,{sourceMap:!1,shadowMode:!1})},7303:function(n,e,o){"use strict";var t=o(8285),r=(o(7966),o(4554),o(3167),o(3482),o(498),o(5827),o(930),o(423),o(262),o(9932)),i={keys:function(){return[]}};o.g["____828F200____"]=!0,delete o.g["____828F200____"],o.g.__uniConfig={tabBar:{backgroundColor:"#FFFFFF",color:"#B2B2B2",selectedColor:"#C20000",borderStyle:"white",list:[{pagePath:"pages/index/index",iconPath:"static/images/home.png",selectedIconPath:"static/images/home-active.png",text:"首页",redDot:!1,badge:""},{pagePath:"pages/score/category",iconPath:"static/images/form.png",selectedIconPath:"static/images/form-active.png",text:"填报",redDot:!1,badge:""},{pagePath:"pages/user/profile",iconPath:"static/images/user.png",selectedIconPath:"static/images/user-active.png",text:"我的",redDot:!1,badge:""}]},globalStyle:{navigationBarTextStyle:"white",navigationBarTitleText:"五星党建",navigationBarBackgroundColor:"#C20000",backgroundColor:"#efefef"},easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue","^unicloud-db$":"@dcloudio/uni-cli-shared/components/unicloud-db.vue","^uniad$":"@dcloudio/uni-cli-shared/components/uniad.vue","^ad-rewarded-video$":"@dcloudio/uni-cli-shared/components/ad-rewarded-video.vue","^ad-fullscreen-video$":"@dcloudio/uni-cli-shared/components/ad-fullscreen-video.vue","^ad-interstitial$":"@dcloudio/uni-cli-shared/components/ad-interstitial.vue","^ad-interactive$":"@dcloudio/uni-cli-shared/components/ad-interactive.vue","^page-meta$":"@dcloudio/uni-cli-shared/components/page-meta.vue","^navigation-bar$":"@dcloudio/uni-cli-shared/components/navigation-bar.vue","^uni-match-media$":"@dcloudio/uni-cli-shared/components/uni-match-media.vue"}},o.g.__uniConfig.compilerVersion="3.6.14",o.g.__uniConfig.darkmode=!1,o.g.__uniConfig.themeConfig={},o.g.__uniConfig.uniPlatform="h5",o.g.__uniConfig.appId="__UNI__828F200",o.g.__uniConfig.appName="PartyRank",o.g.__uniConfig.appVersion="1.0.0",o.g.__uniConfig.appVersionCode="100",o.g.__uniConfig.router={mode:"history",base:"/h5/"},o.g.__uniConfig.publicPath="/h5/",o.g.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},o.g.__uniConfig.debug=!1,o.g.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},o.g.__uniConfig.sdkConfigs={},o.g.__uniConfig.qqMapKey=void 0,o.g.__uniConfig.googleMapKey=void 0,o.g.__uniConfig.aMapKey=void 0,o.g.__uniConfig.aMapSecurityJsCode=void 0,o.g.__uniConfig.aMapServiceHost=void 0,o.g.__uniConfig.locale="",o.g.__uniConfig.fallbackLocale=void 0,o.g.__uniConfig.locales=i.keys().reduce((function(n,e){var o=e.replace(/\.\/(uni-app.)?(.*).json/,"$2"),t=i(e);return Object.assign(n[o]||(n[o]={}),t.common||t),n}),{}),o.g.__uniConfig.nvue={"flex-direction":"column"},o.g.__uniConfig.__webpack_chunk_load__=o.e,r["default"].component("pages-index-welcome",(function(n){var e={component:o.e(545).then(function(){return n(o(6265))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-index-index",(function(n){var e={component:Promise.all([o.e(520),o.e(904),o.e(58)]).then(function(){return n(o(1481))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-auth-login",(function(n){var e={component:o.e(917).then(function(){return n(o(9119))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-category",(function(n){var e={component:o.e(373).then(function(){return n(o(7962))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-form",(function(n){var e={component:Promise.all([o.e(520),o.e(393),o.e(163),o.e(465),o.e(861)]).then(function(){return n(o(4444))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-list",(function(n){var e={component:Promise.all([o.e(520),o.e(393),o.e(986),o.e(163),o.e(922),o.e(527)]).then(function(){return n(o(3366))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-detail",(function(n){var e={component:Promise.all([o.e(520),o.e(393),o.e(986),o.e(518)]).then(function(){return n(o(3469))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-user-rank",(function(n){var e={component:Promise.all([o.e(520),o.e(904),o.e(740)]).then(function(){return n(o(6240))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-score-cate-rank",(function(n){var e={component:Promise.all([o.e(520),o.e(904),o.e(339)]).then(function(){return n(o(8022))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-user-profile",(function(n){var e={component:Promise.all([o.e(520),o.e(986),o.e(163),o.e(922),o.e(930)]).then(function(){return n(o(6529))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-user-setting",(function(n){var e={component:Promise.all([o.e(520),o.e(393),o.e(986),o.e(163),o.e(465),o.e(753)]).then(function(){return n(o(8977))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-article-detail",(function(n){var e={component:Promise.all([o.e(520),o.e(133)]).then(function(){return n(o(8393))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),r["default"].component("pages-feedback-add",(function(n){var e={component:o.e(510).then(function(){return n(o(2877))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.g.__uniRoutes=[{path:"/",alias:"/pages/index/welcome",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"五星党建"})},[n("pages-index-welcome",{slot:"page"})])}},meta:{id:1,name:"pages-index-welcome",isNVue:!1,maxWidth:0,pagePath:"pages/index/welcome",isQuit:!0,isEntry:!0,windowTop:44}},{path:"/pages/index/index",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isTabBar:!0,tabBarIndex:0},__uniConfig.globalStyle,{navigationBarTitleText:"五星党建"})},[n("pages-index-index",{slot:"page"})])}},meta:{id:2,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isTabBar:!0,tabBarIndex:0,windowTop:44}},{path:"/pages/auth/login",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录"})},[n("pages-auth-login",{slot:"page"})])}},meta:{name:"pages-auth-login",isNVue:!1,maxWidth:0,pagePath:"pages/auth/login",windowTop:44}},{path:"/pages/score/category",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isTabBar:!0,tabBarIndex:1},__uniConfig.globalStyle,{navigationBarTitleText:"填报"})},[n("pages-score-category",{slot:"page"})])}},meta:{id:3,name:"pages-score-category",isNVue:!1,maxWidth:0,pagePath:"pages/score/category",isQuit:!0,isTabBar:!0,tabBarIndex:1,windowTop:44}},{path:"/pages/score/form",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"填报"})},[n("pages-score-form",{slot:"page"})])}},meta:{name:"pages-score-form",isNVue:!1,maxWidth:0,pagePath:"pages/score/form",windowTop:44}},{path:"/pages/score/list",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"我的填报",enablePullDownRefresh:!0})},[n("pages-score-list",{slot:"page"})])}},meta:{name:"pages-score-list",isNVue:!1,maxWidth:0,pagePath:"pages/score/list",windowTop:44}},{path:"/pages/score/detail",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"详细"})},[n("pages-score-detail",{slot:"page"})])}},meta:{name:"pages-score-detail",isNVue:!1,maxWidth:0,pagePath:"pages/score/detail",windowTop:44}},{path:"/pages/score/user-rank",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"排行榜"})},[n("pages-score-user-rank",{slot:"page"})])}},meta:{name:"pages-score-user-rank",isNVue:!1,maxWidth:0,pagePath:"pages/score/user-rank",windowTop:44}},{path:"/pages/score/cate-rank",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"排行榜"})},[n("pages-score-cate-rank",{slot:"page"})])}},meta:{name:"pages-score-cate-rank",isNVue:!1,maxWidth:0,pagePath:"pages/score/cate-rank",windowTop:44}},{path:"/pages/user/profile",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isTabBar:!0,tabBarIndex:2},__uniConfig.globalStyle,{navigationBarTitleText:"个人中心",navigationBarBackgroundColor:"white",navigationBarTextStyle:"black"})},[n("pages-user-profile",{slot:"page"})])}},meta:{id:4,name:"pages-user-profile",isNVue:!1,maxWidth:0,pagePath:"pages/user/profile",isQuit:!0,isTabBar:!0,tabBarIndex:2,windowTop:44}},{path:"/pages/user/setting",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"设置"})},[n("pages-user-setting",{slot:"page"})])}},meta:{name:"pages-user-setting",isNVue:!1,maxWidth:0,pagePath:"pages/user/setting",windowTop:44}},{path:"/pages/article/detail",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"文章详细"})},[n("pages-article-detail",{slot:"page"})])}},meta:{name:"pages-article-detail",isNVue:!1,maxWidth:0,pagePath:"pages/article/detail",windowTop:44}},{path:"/pages/feedback/add",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"书记信箱"})},[n("pages-feedback-add",{slot:"page"})])}},meta:{name:"pages-feedback-add",isNVue:!1,maxWidth:0,pagePath:"pages/feedback/add",windowTop:44}},{path:"/choose-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],o.g.UniApp&&new o.g.UniApp;o(5737);var a,u,c=function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("App",{attrs:{keepAliveInclude:n.keepAliveInclude}})},s=[],d={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}},l=d,g=(o(7766),o(3285)),f=(0,g.Z)(l,c,s,!1,null,null,null,!1,a,u),p=f.exports,m=(o(4719),o(2376));r["default"].config.productionTip=!1,r["default"].use(m.Z),p.mpType="app";var _=new r["default"]((0,t.Z)({},p));o(9987)(),r["default"].prototype.$ajax=uni.$u.http,_.$mount()},4719:function(n,e,o){var t=o(9189)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},5467:function(n,e,o){"use strict";function t(){return!!uni.getStorageSync("party_rank_auth_token")}function r(n){uni.setStorageSync("party_rank_auth_token",n)}function i(){return uni.getStorageSync("party_rank_auth_token")}function a(n){n&&n.target_url&&("app"==n.target_type?uni.navigateTo({url:n.target_url}):"web"==n.target_type&&window.open(n.target_url))}o.r(e),o.d(e,{getToken:function(){return i},isLogin:function(){return t},navigateTarget:function(){return a},setToken:function(){return r}})},9987:function(n,e,o){o(5827);var t=o(5467),r=t.getToken;n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://party-rank.abcdefg.fun",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=r();return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){n.config.custom.loading&&uni.hideLoading();var e=n.data;return 401==e.status?uni.reLaunch({url:"/pages/auth/login"}):(n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),e)}),(function(n){var e;return console.log(n),null!==(e=n.config)&&void 0!==e&&e.custom.loading&&uni.hideLoading(),Promise.reject(n)}))}},8156:function(n,e,o){"use strict";o.r(e);var t=o(2624),r=o.n(t),i=o(196),a=o.n(i),u=a()(r());u.push([n.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */ uni-page-wrapper{background-color:#efefef}.page{background-color:#efefef}.flex{display:flex;justify-content:space-between;align-items:center}.btn-danger{color:#fff;background-color:#c20000}.rich-text{word-break:break-all;overflow-wrap:break-word;line-height:1.6}.rich-text img{width:100%;height:100%}.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}',""]),e["default"]=u}},e={};function o(t){var r=e[t];if(void 0!==r)return r.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,r,i){if(!t){var a=1/0;for(d=0;d=i)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,i0&&n[d-1][2]>i;d--)n[d]=n[d-1];n[d]=[t,r,i]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",133:"pages-article-detail",339:"pages-score-cate-rank",373:"pages-score-category",510:"pages-feedback-add",518:"pages-score-detail",527:"pages-score-list",545:"pages-index-welcome",740:"pages-score-user-rank",753:"pages-user-setting",861:"pages-score-form",917:"pages-auth-login",930:"pages-user-profile"}[n]||n)+"."+{58:"5a7a965d",133:"95427f4b",163:"789ef201",339:"8fbfafc7",373:"de043a23",393:"39697fd4",465:"7e968d2e",510:"91285c5d",518:"12ca1d4f",520:"6c74371e",527:"6c82687b",545:"1a9f3d2b",740:"3f5a784b",753:"7b6059f0",861:"96bcf610",904:"3777c398",917:"3d41af23",922:"276659b5",930:"71af1594",986:"e76c5d3e"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,r,i,a){if(n[t])n[t].push(r);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),d=0;d=i)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,i0&&n[d-1][2]>i;d--)n[d]=n[d-1];n[d]=[t,r,i]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",133:"pages-article-detail",339:"pages-score-cate-rank",373:"pages-score-category",510:"pages-feedback-add",518:"pages-score-detail",527:"pages-score-list",545:"pages-index-welcome",740:"pages-score-user-rank",753:"pages-user-setting",861:"pages-score-form",917:"pages-auth-login",930:"pages-user-profile"}[n]||n)+"."+{58:"5a7a965d",133:"95427f4b",163:"789ef201",339:"8fbfafc7",373:"de043a23",393:"39697fd4",465:"7e968d2e",510:"91285c5d",518:"b924aa14",520:"6c74371e",527:"3218ccbd",545:"1a9f3d2b",740:"3f5a784b",753:"7b6059f0",861:"c1d8b550",904:"3777c398",917:"3d41af23",922:"276659b5",930:"71af1594",986:"e76c5d3e"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,r,i,a){if(n[t])n[t].push(r);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),d=0;d0?t.singleMode:"widthFix":t.multipleMode}}),t.showMore&&t.urls.length>t.rowCount*t.showUrls.length&&i===t.showUrls.length-1&&l===t.showUrls[t.showUrls.length-1].length-1?n("v-uni-view",{staticClass:"u-album__row__wrapper__text"},[n("u--text",{attrs:{text:"+"+(t.urls.length-t.maxCount),color:"#fff",size:.3*t.multipleSize,align:"center",customStyle:"justify-content: center"}})],1):t._e()],1)})),1)})),1)},r=[],s=n(4522),a=n(6210),o=(n(9299),n(423),n(8996),n(4302),{props:{urls:{type:Array,default:uni.$u.props.album.urls},keyName:{type:String,default:uni.$u.props.album.keyName},singleSize:{type:[String,Number],default:uni.$u.props.album.singleSize},multipleSize:{type:[String,Number],default:uni.$u.props.album.multipleSize},space:{type:[String,Number],default:uni.$u.props.album.space},singleMode:{type:String,default:uni.$u.props.album.singleMode},multipleMode:{type:String,default:uni.$u.props.album.multipleMode},maxCount:{type:[String,Number],default:uni.$u.props.album.maxCount},previewFullImage:{type:Boolean,default:uni.$u.props.album.previewFullImage},rowCount:{type:[String,Number],default:uni.$u.props.album.rowCount},showMore:{type:Boolean,default:uni.$u.props.album.showMore}}}),c={name:"u-album",mixins:[uni.$u.mpMixin,uni.$u.mixin,o],data:function(){return{singleWidth:0,singleHeight:0,singlePercent:.6}},watch:{urls:{immediate:!0,handler:function(t){1===t.length&&this.getImageRect()}}},computed:{imageStyle:function(){var t=this;return function(e,n){var i=t.space,l=t.rowCount,u=(t.multipleSize,t.urls,uni.$u),r=u.addUnit,s=(u.addStyle,t.showUrls.length),a=(t.urls.length,{marginRight:r(i),marginBottom:r(i)});return e===s&&(a.marginBottom=0),(n===l||e===s&&n===t.showUrls[e-1].length)&&(a.marginRight=0),a}},showUrls:function(){var t=this,e=[];return this.urls.map((function(n,i){if(i+1<=t.maxCount){var l=Math.floor(i/t.rowCount);e[l]||(e[l]=[]),e[l].push(n)}})),e},imageWidth:function(){return uni.$u.addUnit(1===this.urls.length?this.singleWidth:this.multipleSize)},imageHeight:function(){return uni.$u.addUnit(1===this.urls.length?this.singleHeight:this.multipleSize)},albumWidth:function(){var t=0;return t=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",t),t}},methods:{onPreviewTap:function(t){var e=this,n=this.urls.map((function(t){return e.getSrc(t)}));uni.previewImage({current:t,urls:n})},getSrc:function(t){return uni.$u.test.object(t)?this.keyName&&t[this.keyName]||t.src:t},getImageRect:function(){var t=this,e=this.getSrc(this.urls[0]);uni.getImageInfo({src:e,success:function(e){var n=e.width>=e.height;t.singleWidth=n?t.singleSize:e.width/e.height*t.singleSize,t.singleHeight=n?e.height/e.width*t.singleWidth:t.singleSize},fail:function(){t.getComponentWidth()}})},getComponentWidth:function(){var t=this;return(0,a.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep(30);case 2:t.$uGetRect(".u-album__row").then((function(e){t.singleWidth=e.width*t.singlePercent}));case 3:case"end":return e.stop()}}),e)})))()}}},p=c,d=(n(9449),n(3285)),f=(0,d.Z)(p,u,r,!1,null,"863ddef2",null,!1,l,i),h=f.exports},3943:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i,l={uLine:n(8968).Z},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-cell-group",class:[t.customClass],style:[t.$u.addStyle(t.customStyle)]},[t.title?n("v-uni-view",{staticClass:"u-cell-group__title"},[t._t("title",[n("v-uni-text",{staticClass:"u-cell-group__title__text"},[t._v(t._s(t.title))])])],2):t._e(),n("v-uni-view",{staticClass:"u-cell-group__wrapper"},[t.border?n("u-line"):t._e(),t._t("default")],2)],1)},r=[],s={props:{title:{type:String,default:uni.$u.props.cellGroup.title},border:{type:Boolean,default:uni.$u.props.cellGroup.border}}},a={name:"u-cell-group",mixins:[uni.$u.mpMixin,uni.$u.mixin,s]},o=a,c=(n(2662),n(3285)),p=(0,c.Z)(o,u,r,!1,null,"38668d34",null,!1,l,i),d=p.exports},3469:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var i,l={uCellGroup:n(3943).Z,uCell:n(9986).Z,uAlbum:n(5155).Z},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-cell-group",[n("u-cell",{attrs:{title:"分类",value:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"主题",label:t.info.title}}),n("u-cell",{attrs:{title:"内容",label:t.info.content}}),n("u-cell",{attrs:{title:"图片"}},[n("u-album",{attrs:{slot:"label",urls:t.info.images},slot:"label"})],1),n("u-cell",{attrs:{title:"附件",label:t.info.file}}),n("u-cell",{attrs:{title:"提交时间",value:t.info.created_at}}),n("u-cell",{attrs:{title:"审核状态",value:t.info.check_status_text}}),n("u-cell",{attrs:{title:"审核时间",value:t.info.check_at}}),n("u-cell",{attrs:{title:"审核人",value:t.info.check_user?t.info.check_user.name:""}}),2==t.info.check_status?n("u-cell",{attrs:{title:"未通过原因",value:t.info.check_remarks}}):t._e(),1==t.info.check_status?n("u-cell",{attrs:{title:"得星",value:t.info.score}}):t._e()],1)],1)},r=[],s={data:function(){return{id:"",info:{}}},onLoad:function(t){this.id=t.id,this.init()},methods:{init:function(){var t=this;this.$ajax.get("/api/user/score/".concat(this.id),{custom:{loading:!0}}).then((function(e){0==e.status&&(t.info=e.data)}))}}},a=s,o=(n(8906),n(3285)),c=(0,o.Z)(a,u,r,!1,null,"6b08ec18",null,!1,l,i),p=c.exports},139:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),r=n.n(u),s=r()(l());s.push([t.id,"[data-v-6b08ec18] .u-cell-group{background-color:#fff}",""]),e["default"]=s},7259:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),r=n.n(u),s=r()(l());s.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-863ddef2], uni-scroll-view[data-v-863ddef2], uni-swiper-item[data-v-863ddef2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-album[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:column}.u-album__row[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap}.u-album__row__wrapper[data-v-863ddef2]{position:relative}.u-album__row__wrapper__text[data-v-863ddef2]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center}',""]),e["default"]=s},9939:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),r=n.n(u),s=r()(l());s.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-38668d34], uni-scroll-view[data-v-38668d34], uni-swiper-item[data-v-38668d34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group[data-v-38668d34]{flex:1}.u-cell-group__title[data-v-38668d34]{padding:16px 16px 8px}.u-cell-group__title__text[data-v-38668d34]{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper[data-v-38668d34]{position:relative}',""]),e["default"]=s}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-score-detail.b924aa14.js b/public/h5/static/js/pages-score-detail.b924aa14.js new file mode 100644 index 0000000..566c780 --- /dev/null +++ b/public/h5/static/js/pages-score-detail.b924aa14.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[518],{4261:function(t,e,n){var i=n(3973);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var l=n(3532).Z;l("26865dfe",i,!0,{sourceMap:!1,shadowMode:!1})},9449:function(t,e,n){var i=n(7259);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var l=n(3532).Z;l("3e76c76a",i,!0,{sourceMap:!1,shadowMode:!1})},2662:function(t,e,n){var i=n(9939);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var l=n(3532).Z;l("52042199",i,!0,{sourceMap:!1,shadowMode:!1})},3045:function(t,e,n){"use strict";var i;n.d(e,{Z:function(){return f}});var l,u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvText",{attrs:{type:t.type,show:t.show,text:t.text,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,mode:t.mode,href:t.href,format:t.format,call:t.call,openType:t.openType,bold:t.bold,block:t.block,lines:t.lines,color:t.color,decoration:t.decoration,size:t.size,iconStyle:t.iconStyle,margin:t.margin,lineHeight:t.lineHeight,align:t.align,wordWrap:t.wordWrap,customStyle:t.customStyle},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")}}})},s=[],r=n(2107),a=n(7114),o={name:"u--text",mixins:[uni.$u.mpMixin,a.Z,uni.$u.mixin],components:{uvText:r.Z}},c=o,p=n(3285),d=(0,p.Z)(c,u,s,!1,null,null,null,!1,i,l),f=d.exports},5155:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i,l={"u-Text":n(3045).Z},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-album"},t._l(t.showUrls,(function(e,i){return n("v-uni-view",{key:i,ref:"u-album__row",refInFor:!0,staticClass:"u-album__row",attrs:{forComputedUse:t.albumWidth}},t._l(e,(function(e,l){return n("v-uni-view",{key:l,staticClass:"u-album__row__wrapper",style:[t.imageStyle(i+1,l+1)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.previewFullImage&&t.onPreviewTap(t.getSrc(e))}}},[n("v-uni-image",{style:[{width:t.imageWidth,height:t.imageHeight}],attrs:{src:t.getSrc(e),mode:1===t.urls.length?t.imageHeight>0?t.singleMode:"widthFix":t.multipleMode}}),t.showMore&&t.urls.length>t.rowCount*t.showUrls.length&&i===t.showUrls.length-1&&l===t.showUrls[t.showUrls.length-1].length-1?n("v-uni-view",{staticClass:"u-album__row__wrapper__text"},[n("u--text",{attrs:{text:"+"+(t.urls.length-t.maxCount),color:"#fff",size:.3*t.multipleSize,align:"center",customStyle:"justify-content: center"}})],1):t._e()],1)})),1)})),1)},s=[],r=n(4522),a=n(6210),o=(n(9299),n(423),n(8996),n(4302),{props:{urls:{type:Array,default:uni.$u.props.album.urls},keyName:{type:String,default:uni.$u.props.album.keyName},singleSize:{type:[String,Number],default:uni.$u.props.album.singleSize},multipleSize:{type:[String,Number],default:uni.$u.props.album.multipleSize},space:{type:[String,Number],default:uni.$u.props.album.space},singleMode:{type:String,default:uni.$u.props.album.singleMode},multipleMode:{type:String,default:uni.$u.props.album.multipleMode},maxCount:{type:[String,Number],default:uni.$u.props.album.maxCount},previewFullImage:{type:Boolean,default:uni.$u.props.album.previewFullImage},rowCount:{type:[String,Number],default:uni.$u.props.album.rowCount},showMore:{type:Boolean,default:uni.$u.props.album.showMore}}}),c={name:"u-album",mixins:[uni.$u.mpMixin,uni.$u.mixin,o],data:function(){return{singleWidth:0,singleHeight:0,singlePercent:.6}},watch:{urls:{immediate:!0,handler:function(t){1===t.length&&this.getImageRect()}}},computed:{imageStyle:function(){var t=this;return function(e,n){var i=t.space,l=t.rowCount,u=(t.multipleSize,t.urls,uni.$u),s=u.addUnit,r=(u.addStyle,t.showUrls.length),a=(t.urls.length,{marginRight:s(i),marginBottom:s(i)});return e===r&&(a.marginBottom=0),(n===l||e===r&&n===t.showUrls[e-1].length)&&(a.marginRight=0),a}},showUrls:function(){var t=this,e=[];return this.urls.map((function(n,i){if(i+1<=t.maxCount){var l=Math.floor(i/t.rowCount);e[l]||(e[l]=[]),e[l].push(n)}})),e},imageWidth:function(){return uni.$u.addUnit(1===this.urls.length?this.singleWidth:this.multipleSize)},imageHeight:function(){return uni.$u.addUnit(1===this.urls.length?this.singleHeight:this.multipleSize)},albumWidth:function(){var t=0;return t=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",t),t}},methods:{onPreviewTap:function(t){var e=this,n=this.urls.map((function(t){return e.getSrc(t)}));uni.previewImage({current:t,urls:n})},getSrc:function(t){return uni.$u.test.object(t)?this.keyName&&t[this.keyName]||t.src:t},getImageRect:function(){var t=this,e=this.getSrc(this.urls[0]);uni.getImageInfo({src:e,success:function(e){var n=e.width>=e.height;t.singleWidth=n?t.singleSize:e.width/e.height*t.singleSize,t.singleHeight=n?e.height/e.width*t.singleWidth:t.singleSize},fail:function(){t.getComponentWidth()}})},getComponentWidth:function(){var t=this;return(0,a.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep(30);case 2:t.$uGetRect(".u-album__row").then((function(e){t.singleWidth=e.width*t.singlePercent}));case 3:case"end":return e.stop()}}),e)})))()}}},p=c,d=(n(9449),n(3285)),f=(0,d.Z)(p,u,s,!1,null,"863ddef2",null,!1,l,i),h=f.exports},3943:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i,l={uLine:n(8968).Z},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-cell-group",class:[t.customClass],style:[t.$u.addStyle(t.customStyle)]},[t.title?n("v-uni-view",{staticClass:"u-cell-group__title"},[t._t("title",[n("v-uni-text",{staticClass:"u-cell-group__title__text"},[t._v(t._s(t.title))])])],2):t._e(),n("v-uni-view",{staticClass:"u-cell-group__wrapper"},[t.border?n("u-line"):t._e(),t._t("default")],2)],1)},s=[],r={props:{title:{type:String,default:uni.$u.props.cellGroup.title},border:{type:Boolean,default:uni.$u.props.cellGroup.border}}},a={name:"u-cell-group",mixins:[uni.$u.mpMixin,uni.$u.mixin,r]},o=a,c=(n(2662),n(3285)),p=(0,c.Z)(o,u,s,!1,null,"38668d34",null,!1,l,i),d=p.exports},5816:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var i,l={uCellGroup:n(3943).Z,uCell:n(9986).Z,uAlbum:n(5155).Z},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-cell-group",[n("u-cell",{attrs:{title:"分类",value:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"主题",label:t.info.title}}),n("u-cell",{attrs:{title:"内容",label:t.info.content}}),n("u-cell",{attrs:{title:"图片"}},[n("u-album",{attrs:{slot:"label",urls:t.info.images},slot:"label"})],1),n("u-cell",{attrs:{title:"附件",label:t.info.file,isLink:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copy(t.info.file)}}}),n("u-cell",{attrs:{title:"提交时间",value:t.info.created_at}}),n("u-cell",{attrs:{title:"审核状态",value:t.info.check_status_text}}),n("u-cell",{attrs:{title:"审核时间",value:t.info.check_at}}),n("u-cell",{attrs:{title:"审核人",value:t.info.check_user?t.info.check_user.name:""}}),2==t.info.check_status?n("u-cell",{attrs:{title:"未通过原因",value:t.info.check_remarks}}):t._e(),1==t.info.check_status?n("u-cell",{attrs:{title:"得星",value:t.info.score}}):t._e()],1)],1)},s=[],r={data:function(){return{id:"",info:{}}},onLoad:function(t){this.id=t.id,this.init()},methods:{init:function(){var t=this;this.$ajax.get("/api/user/score/".concat(this.id),{custom:{loading:!0}}).then((function(e){0==e.status&&(t.info=e.data)}))},copy:function(t){t&&uni.setClipboardData({data:t,showToast:!1,success:function(){uni.showToast({icon:"success",title:"下载地址已复制"})}})}}},a=r,o=(n(4261),n(3285)),c=(0,o.Z)(a,u,s,!1,null,"0e87b243",null,!1,l,i),p=c.exports},3973:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),s=n.n(u),r=s()(l());r.push([t.id,"[data-v-0e87b243] .u-cell-group{background-color:#fff}",""]),e["default"]=r},7259:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),s=n.n(u),r=s()(l());r.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-863ddef2], uni-scroll-view[data-v-863ddef2], uni-swiper-item[data-v-863ddef2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-album[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:column}.u-album__row[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap}.u-album__row__wrapper[data-v-863ddef2]{position:relative}.u-album__row__wrapper__text[data-v-863ddef2]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center}',""]),e["default"]=r},9939:function(t,e,n){"use strict";n.r(e);var i=n(2624),l=n.n(i),u=n(196),s=n.n(u),r=s()(l());r.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-38668d34], uni-scroll-view[data-v-38668d34], uni-swiper-item[data-v-38668d34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group[data-v-38668d34]{flex:1}.u-cell-group__title[data-v-38668d34]{padding:16px 16px 8px}.u-cell-group__title__text[data-v-38668d34]{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper[data-v-38668d34]{position:relative}',""]),e["default"]=r}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-score-form.96bcf610.js b/public/h5/static/js/pages-score-form.c1d8b550.js similarity index 78% rename from public/h5/static/js/pages-score-form.96bcf610.js rename to public/h5/static/js/pages-score-form.c1d8b550.js index 86f5879..57b2d31 100644 --- a/public/h5/static/js/pages-score-form.96bcf610.js +++ b/public/h5/static/js/pages-score-form.c1d8b550.js @@ -1 +1 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[861],{3549:function(e,t,i){var n=i(2331);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("d5205946",n,!0,{sourceMap:!1,shadowMode:!1})},6373:function(e,t,i){var n=i(1984);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("653c62b7",n,!0,{sourceMap:!1,shadowMode:!1})},202:function(e,t,i){var n=i(8384);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("7e6ca370",n,!0,{sourceMap:!1,shadowMode:!1})},5812:function(e,t,i){"use strict";var n;i.d(t,{Z:function(){return be}});var a,r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("uvForm",{ref:"uForm",attrs:{model:e.model,rules:e.rules,errorType:e.errorType,borderBottom:e.borderBottom,labelPosition:e.labelPosition,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelStyle:e.labelStyle,customStyle:e.customStyle}},[e._t("default")],2)},o=[],s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},u=[],l=i(4522),d=i(4524);function c(e){if(Array.isArray(e))return(0,d.Z)(e)}var f=i(3402),p=i(223);function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||(0,f.Z)(e)||(0,p.Z)(e)||m()}var g=i(2223),v=i(6210),y=(i(9299),i(444),i(6228),i(7710),i(3976),i(423),i(8996),i(5827),i(4302),{props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}}),_=i(8285),b=i(1681);i(6007),i(9312),i(262),i(3914),i(233),i(1199),i(9289),i(5329),i(9452),i(930),i(495);var x=/%[sdj%]/g,w=function(){};function $(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var i=e.field;t[i]=t[i]||[],t[i].push(e)})),t}function q(){for(var e=arguments.length,t=new Array(e),i=0;i=r)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(i){return"[Circular]"}break;default:return e}})),s=t[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},T={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,b.Z)(e)&&!T.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(z.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(z.url)},hex:function(e){return"string"===typeof e&&!!e.match(z.hex)}};function D(e,t,i,n,a){if(e.required&&void 0===t)O(e,t,i,n,a);else{var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;r.indexOf(o)>-1?T[o](t)||n.push(q(a.messages.types[o],e.fullField,e.type)):o&&(0,b.Z)(t)!==e.type&&n.push(q(a.messages.types[o],e.fullField,e.type))}}function B(e,t,i,n,a){var r="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,d=null,c="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(c?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(l=t.length),f&&(l=t.replace(u,"_").length),r?l!==e.len&&n.push(q(a.messages[d].len,e.fullField,e.len)):o&&!s&&le.max?n.push(q(a.messages[d].max,e.fullField,e.max)):o&&s&&(le.max)&&n.push(q(a.messages[d].range,e.fullField,e.min,e.max))}var E="enum";function R(e,t,i,n,a){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&n.push(q(a.messages[E],e.fullField,e[E].join(", ")))}function M(e,t,i,n,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(q(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var r=new RegExp(e.pattern);r.test(t)||n.push(q(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var L={required:O,whitespace:A,type:D,range:B,enum:R,pattern:M};function W(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return i();L.required(e,t,n,r,a,"string"),P(t,"string")||(L.type(e,t,n,r,a),L.range(e,t,n,r,a),L.pattern(e,t,n,r,a),!0===e.whitespace&&L.whitespace(e,t,n,r,a))}i(r)}function V(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}function N(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function U(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}function J(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),P(t)||L.type(e,t,n,r,a)}i(r)}function H(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function Y(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function G(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"array")&&!e.required)return i();L.required(e,t,n,r,a,"array"),P(t,"array")||(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function K(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}var Q="enum";function X(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L[Q](e,t,n,r,a)}i(r)}function ee(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return i();L.required(e,t,n,r,a),P(t,"string")||L.pattern(e,t,n,r,a)}i(r)}function te(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();var s;if(L.required(e,t,n,r,a),!P(t))s="number"===typeof t?new Date(t):t,L.type(e,s,n,r,a),s&&L.range(e,s.getTime(),n,r,a)}i(r)}function ie(e,t,i,n,a){var r=[],o=Array.isArray(t)?"array":(0,b.Z)(t);L.required(e,t,n,r,a,o),i(r)}function ne(e,t,i,n,a){var r=e.type,o=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(P(t,r)&&!e.required)return i();L.required(e,t,n,o,a,r),P(t,r)||L.type(e,t,n,o,a)}i(o)}function ae(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a)}i(r)}var re={string:W,method:V,number:N,boolean:U,regexp:J,integer:H,float:Y,array:G,object:K,enum:X,pattern:ee,date:te,url:ne,hex:ne,email:ne,required:ie,any:ae};function oe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var se=oe();function ue(e){this.rules=null,this._messages=se,this.define(e)}ue.prototype={messages:function(e){return e&&(this._messages=S(oe(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,b.Z)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,i;for(t in this.rules={},e)e.hasOwnProperty(t)&&(i=e[t],this.rules[t]=Array.isArray(i)?i:[i])},validate:function(e,t,i){var n=this;void 0===t&&(t={}),void 0===i&&(i=function(){});var a,r,o=e,s=t,u=i;if("function"===typeof s&&(u=s,s={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();function l(e){var t,i=[],n={};function a(e){var t;Array.isArray(e)?i=(t=i).concat.apply(t,e):i.push(e)}for(t=0;t2&&void 0!==i[2]?i[2]:null,n.$nextTick((function(){var i=[];e=[].concat(e),n.children.map((function(t){var a=[];if(e.includes(t.prop)){var o=uni.$u.getProperty(n.model,t.prop),s=t.prop.split("."),u=s[s.length-1],l=n.formRules[t.prop];if(!l)return;for(var d=[].concat(l),c=0;ct})):e.size>t;n?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"===typeof i&&i(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail())))},deleteItem:function(e){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage:function(e){var t=this;e.isImage&&this.previewFullImage&&uni.previewImage({urls:this.lists.filter((function(e){return"image"===t.accept||uni.$u.test.image(e.url||e.thumb)})).map((function(e){return e.url||e.thumb})),current:e.url||e.thumb,fail:function(){uni.$u.toast("预览图片失败")}})},onPreviewVideo:function(e){if(this.data.previewFullImage){var t=e.currentTarget.dataset.index,i=this.data.lists;wx.previewMedia({sources:i.filter((function(e){return isVideoFile(e)})).map((function(e){return Object.assign(Object.assign({},e),{type:"video"})})),current:t,fail:function(){uni.$u.toast("预览视频失败")}})}},onClickPreview:function(e){var t=e.currentTarget.dataset.index,i=this.data.lists[t];this.$emit("clickPreview",Object.assign(Object.assign({},i),this.getDetail(t)))}}},g=h,v=(i(202),i(3285)),y=(0,v.Z)(g,a,r,!1,null,"fa0086da",null,!1,n,f),_=y.exports},4444:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var n,a={"u-Form":i(5812).Z,uFormItem:i(5280).Z,"u-Input":i(8465).Z,uUpload:i(1204).Z,uText:i(2107).Z},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"form"},[i("u--form",{attrs:{labelStyle:{color:"#000000",fontSize:"34rpx"},labelWidth:"80"}},[i("u-form-item",{attrs:{label:"主题",borderBottom:!0,required:!0}},[i("u--input",{attrs:{name:"title",placeholder:"请填写主题",fontSize:"17",color:"#000000",inputAlign:"right",border:"none"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),i("u-form-item",{attrs:{label:"内容",labelPosition:"top",borderBottom:!0}},[i("v-uni-textarea",{attrs:{name:"content","auto-height":!0,placeholder:"请填写内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),i("u-form-item",{attrs:{label:"图片(最多5张)",labelPosition:"top",labelWidth:"120",borderBottom:!0}},[i("v-uni-view",{staticClass:"item"},[i("u-upload",{attrs:{fileList:e.images,uploadIcon:"photo",multiple:!0,maxCount:"5",previewFullImage:!0},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadImage.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteImage.apply(void 0,arguments)}}})],1)],1),i("u-form-item",{attrs:{label:"附件",labelPosition:"top",borderBottom:!0}},[i("v-uni-view",{staticClass:"item"},[i("u-upload",{attrs:{fileList:e.files,accept:"file",uploadIcon:"plus",maxCount:"1"},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFile.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteFile.apply(void 0,arguments)}}})],1)],1),e.reason?i("u-form-item",{attrs:{label:"未通过原因",labelPosition:"top",labelWidth:"auto",borderBottom:!0}},[i("u-text",{attrs:{type:"warning",text:e.reason,margin:"30rpx 0"}})],1):e._e(),i("u-form-item",[i("v-uni-button",{staticClass:"btn-danger",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1)],1)},o=[],s=i(4522),u=i(8285),l=i(6210),d=(i(9299),i(495),i(6228),{data:function(){return{id:"",type:"",title:"",content:"",images:[],files:[],reason:""}},onLoad:function(e){var t=this;e.type&&(this.type=e.type),e.id&&(this.id=e.id,uni.setNavigationBarTitle({title:"修改"}),this.$ajax.get("/api/user/score/".concat(this.id)).then((function(e){0==e.status&&(t.title=e.data.title,t.content=e.data.content,e.data.images&&(t.images=e.data.images.map((function(e){return{url:e}}))),e.data.file&&(t.files=[{url:e.data.file}]),2==e.data.check_status&&(t.reason=e.data.check_remarks))})))},methods:{deleteImage:function(e){this.images.splice(e.index,1)},uploadImage:function(e){var t=this;return(0,l.Z)((0,s.Z)().mark((function i(){var n,a,r,o,l;return(0,s.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=[].concat(e.file),a=t.images.length,n.map((function(e){t.images.push((0,u.Z)((0,u.Z)({},e),{},{status:"uploading",message:"上传中"}))})),r=0;case 4:if(!(r0?this.images.map((function(e){return e.url})):null,file:this.files.length>0?this.files[0].url:null};this.$ajax.post("/api/user/score",e,{custom:{loading:!0}}).then((function(e){0==e.status&&(uni.showToast({title:"提交成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),800))}))}}}),c=d,f=(i(3549),i(3285)),p=(0,f.Z)(c,r,o,!1,null,"0c74a2f2",null,!1,a,n),m=p.exports},2331:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,".page[data-v-0c74a2f2]{padding-top:%?20?%}.form[data-v-0c74a2f2]{background-color:#fff;padding:0 %?30?%}.item[data-v-0c74a2f2]{margin-top:%?30?%}[data-v-0c74a2f2] uni-textarea{min-height:%?110?%;background-color:#f5f5f5;width:100%;margin-top:%?20?%;padding:%?10?% %?15?%}.btn-danger[data-v-0c74a2f2]{width:100%}",""]),t["default"]=s},1984:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-6c36349d], uni-scroll-view[data-v-6c36349d], uni-swiper-item[data-v-6c36349d]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-6c36349d]{position:relative;\ndisplay:flex;\nflex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-6c36349d]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-6c36349d]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-6c36349d]{flex:1}.u-form-item__body__right__content[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-6c36349d]{flex:1;\ndisplay:flex;\nflex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-6c36349d]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-6c36349d]{font-size:12px;line-height:12px;color:#f56c6c}',""]),t["default"]=s},8384:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-fa0086da], uni-scroll-view[data-v-fa0086da], uni-swiper-item[data-v-fa0086da]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-upload[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:column;flex:1}.u-upload__wrap[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap;flex:1}.u-upload__wrap__preview[data-v-fa0086da]{border-radius:2px;margin:0 8px 8px 0;position:relative;overflow:hidden;\ndisplay:flex;\nflex-direction:row}.u-upload__wrap__preview__image[data-v-fa0086da]{width:80px;height:80px}.u-upload__wrap__preview__other[data-v-fa0086da]{width:80px;height:80px;background-color:#f2f2f2;flex:1;\ndisplay:flex;\nflex-direction:column;justify-content:center;align-items:center}.u-upload__wrap__preview__other__text[data-v-fa0086da]{font-size:11px;color:#909193;margin-top:2px}.u-upload__deletable[data-v-fa0086da]{position:absolute;top:0;right:0;background-color:#373737;height:14px;width:14px;\ndisplay:flex;\nflex-direction:row;border-bottom-left-radius:100px;align-items:center;justify-content:center;z-index:3}.u-upload__deletable__icon[data-v-fa0086da]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);top:0;right:0;top:1px;right:0}.u-upload__success[data-v-fa0086da]{position:absolute;bottom:0;right:0;\ndisplay:flex;\nflex-direction:row;border-style:solid;border-top-color:transparent;border-left-color:transparent;border-bottom-color:#5ac725;border-right-color:#5ac725;border-width:9px;align-items:center;justify-content:center}.u-upload__success__icon[data-v-fa0086da]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);bottom:-10px;right:-10px}.u-upload__status[data-v-fa0086da]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);\ndisplay:flex;\nflex-direction:column;align-items:center;justify-content:center}.u-upload__status__icon[data-v-fa0086da]{position:relative;z-index:1}.u-upload__status__message[data-v-fa0086da]{font-size:12px;color:#fff;margin-top:5px}.u-upload__button[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:column;align-items:center;justify-content:center;width:80px;height:80px;background-color:#f4f5f7;border-radius:2px;margin:0 8px 8px 0;box-sizing:border-box}.u-upload__button__text[data-v-fa0086da]{font-size:11px;color:#909193;margin-top:2px}.u-upload__button--hover[data-v-fa0086da]{background-color:#e6e7e9}.u-upload__button--disabled[data-v-fa0086da]{opacity:.5}',""]),t["default"]=s}}]); \ No newline at end of file +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[861],{8056:function(e,t,i){var n=i(5009);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("78904368",n,!0,{sourceMap:!1,shadowMode:!1})},6373:function(e,t,i){var n=i(1984);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("653c62b7",n,!0,{sourceMap:!1,shadowMode:!1})},202:function(e,t,i){var n=i(8384);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=i(3532).Z;a("7e6ca370",n,!0,{sourceMap:!1,shadowMode:!1})},5812:function(e,t,i){"use strict";var n;i.d(t,{Z:function(){return be}});var a,r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("uvForm",{ref:"uForm",attrs:{model:e.model,rules:e.rules,errorType:e.errorType,borderBottom:e.borderBottom,labelPosition:e.labelPosition,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelStyle:e.labelStyle,customStyle:e.customStyle}},[e._t("default")],2)},o=[],s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},u=[],l=i(4522),d=i(4524);function c(e){if(Array.isArray(e))return(0,d.Z)(e)}var f=i(3402),p=i(223);function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||(0,f.Z)(e)||(0,p.Z)(e)||m()}var g=i(2223),v=i(6210),y=(i(9299),i(444),i(6228),i(7710),i(3976),i(423),i(8996),i(5827),i(4302),{props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}}),_=i(8285),b=i(1681);i(6007),i(9312),i(262),i(3914),i(233),i(1199),i(9289),i(5329),i(9452),i(930),i(495);var x=/%[sdj%]/g,w=function(){};function $(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var i=e.field;t[i]=t[i]||[],t[i].push(e)})),t}function q(){for(var e=arguments.length,t=new Array(e),i=0;i=r)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(i){return"[Circular]"}break;default:return e}})),s=t[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},T={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,b.Z)(e)&&!T.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(z.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(z.url)},hex:function(e){return"string"===typeof e&&!!e.match(z.hex)}};function D(e,t,i,n,a){if(e.required&&void 0===t)O(e,t,i,n,a);else{var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;r.indexOf(o)>-1?T[o](t)||n.push(q(a.messages.types[o],e.fullField,e.type)):o&&(0,b.Z)(t)!==e.type&&n.push(q(a.messages.types[o],e.fullField,e.type))}}function B(e,t,i,n,a){var r="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,d=null,c="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(c?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(l=t.length),f&&(l=t.replace(u,"_").length),r?l!==e.len&&n.push(q(a.messages[d].len,e.fullField,e.len)):o&&!s&&le.max?n.push(q(a.messages[d].max,e.fullField,e.max)):o&&s&&(le.max)&&n.push(q(a.messages[d].range,e.fullField,e.min,e.max))}var E="enum";function R(e,t,i,n,a){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&n.push(q(a.messages[E],e.fullField,e[E].join(", ")))}function M(e,t,i,n,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(q(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var r=new RegExp(e.pattern);r.test(t)||n.push(q(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var L={required:O,whitespace:A,type:D,range:B,enum:R,pattern:M};function W(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return i();L.required(e,t,n,r,a,"string"),P(t,"string")||(L.type(e,t,n,r,a),L.range(e,t,n,r,a),L.pattern(e,t,n,r,a),!0===e.whitespace&&L.whitespace(e,t,n,r,a))}i(r)}function N(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}function V(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function U(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}function J(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),P(t)||L.type(e,t,n,r,a)}i(r)}function H(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function Y(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function G(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"array")&&!e.required)return i();L.required(e,t,n,r,a,"array"),P(t,"array")||(L.type(e,t,n,r,a),L.range(e,t,n,r,a))}i(r)}function K(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L.type(e,t,n,r,a)}i(r)}var Q="enum";function X(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a),void 0!==t&&L[Q](e,t,n,r,a)}i(r)}function ee(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return i();L.required(e,t,n,r,a),P(t,"string")||L.pattern(e,t,n,r,a)}i(r)}function te(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();var s;if(L.required(e,t,n,r,a),!P(t))s="number"===typeof t?new Date(t):t,L.type(e,s,n,r,a),s&&L.range(e,s.getTime(),n,r,a)}i(r)}function ie(e,t,i,n,a){var r=[],o=Array.isArray(t)?"array":(0,b.Z)(t);L.required(e,t,n,r,a,o),i(r)}function ne(e,t,i,n,a){var r=e.type,o=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(P(t,r)&&!e.required)return i();L.required(e,t,n,o,a,r),P(t,r)||L.type(e,t,n,o,a)}i(o)}function ae(e,t,i,n,a){var r=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return i();L.required(e,t,n,r,a)}i(r)}var re={string:W,method:N,number:V,boolean:U,regexp:J,integer:H,float:Y,array:G,object:K,enum:X,pattern:ee,date:te,url:ne,hex:ne,email:ne,required:ie,any:ae};function oe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var se=oe();function ue(e){this.rules=null,this._messages=se,this.define(e)}ue.prototype={messages:function(e){return e&&(this._messages=Z(oe(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,b.Z)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,i;for(t in this.rules={},e)e.hasOwnProperty(t)&&(i=e[t],this.rules[t]=Array.isArray(i)?i:[i])},validate:function(e,t,i){var n=this;void 0===t&&(t={}),void 0===i&&(i=function(){});var a,r,o=e,s=t,u=i;if("function"===typeof s&&(u=s,s={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();function l(e){var t,i=[],n={};function a(e){var t;Array.isArray(e)?i=(t=i).concat.apply(t,e):i.push(e)}for(t=0;t2&&void 0!==i[2]?i[2]:null,n.$nextTick((function(){var i=[];e=[].concat(e),n.children.map((function(t){var a=[];if(e.includes(t.prop)){var o=uni.$u.getProperty(n.model,t.prop),s=t.prop.split("."),u=s[s.length-1],l=n.formRules[t.prop];if(!l)return;for(var d=[].concat(l),c=0;ct})):e.size>t;n?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"===typeof i&&i(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail())))},deleteItem:function(e){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage:function(e){var t=this;e.isImage&&this.previewFullImage&&uni.previewImage({urls:this.lists.filter((function(e){return"image"===t.accept||uni.$u.test.image(e.url||e.thumb)})).map((function(e){return e.url||e.thumb})),current:e.url||e.thumb,fail:function(){uni.$u.toast("预览图片失败")}})},onPreviewVideo:function(e){if(this.data.previewFullImage){var t=e.currentTarget.dataset.index,i=this.data.lists;wx.previewMedia({sources:i.filter((function(e){return isVideoFile(e)})).map((function(e){return Object.assign(Object.assign({},e),{type:"video"})})),current:t,fail:function(){uni.$u.toast("预览视频失败")}})}},onClickPreview:function(e){var t=e.currentTarget.dataset.index,i=this.data.lists[t];this.$emit("clickPreview",Object.assign(Object.assign({},i),this.getDetail(t)))}}},g=h,v=(i(202),i(3285)),y=(0,v.Z)(g,a,r,!1,null,"fa0086da",null,!1,n,f),_=y.exports},8489:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var n,a={"u-Form":i(5812).Z,uFormItem:i(5280).Z,"u-Input":i(8465).Z,uUpload:i(1204).Z,uText:i(2107).Z},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"form"},[i("u--form",{attrs:{labelStyle:{color:"#000000",fontSize:"34rpx"},labelWidth:"80"}},[i("u-form-item",{attrs:{label:"主题",borderBottom:!0,required:!0}},[i("u--input",{attrs:{name:"title",placeholder:"请填写主题",fontSize:"17",color:"#000000",inputAlign:"right",border:"none"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),i("u-form-item",{attrs:{label:"内容",labelPosition:"top",borderBottom:!0}},[i("v-uni-textarea",{attrs:{name:"content","auto-height":!0,placeholder:"请填写内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),i("u-form-item",{attrs:{label:"图片(最多5张)",labelPosition:"top",labelWidth:"120",borderBottom:!0}},[i("v-uni-view",{staticClass:"item"},[i("u-upload",{attrs:{fileList:e.images,uploadIcon:"photo",multiple:!0,maxCount:"5",previewFullImage:!0},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadImage.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteImage.apply(void 0,arguments)}}})],1)],1),i("u-form-item",{attrs:{label:"附件",labelPosition:"top",borderBottom:!0}},[i("v-uni-view",{staticClass:"item"},[i("u-upload",{attrs:{fileList:e.files,accept:"file",uploadIcon:"plus",maxCount:"1"},on:{afterRead:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFile.apply(void 0,arguments)},delete:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteFile.apply(void 0,arguments)}}})],1)],1),e.reason?i("u-form-item",{attrs:{label:"未通过原因",labelPosition:"top",labelWidth:"auto",borderBottom:!0}},[i("u-text",{attrs:{type:"warning",text:e.reason,margin:"30rpx 0"}})],1):e._e(),i("u-form-item",[i("v-uni-button",{staticClass:"btn-danger",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1)],1)},o=[],s=i(4522),u=i(8285),l=i(6210),d=(i(9299),i(495),i(6228),{data:function(){return{id:"",type:"",title:"",content:"",images:[],files:[],reason:""}},onLoad:function(e){var t=this;e.type&&(this.type=e.type,this.$ajax.get("/api/keyword/".concat(this.type)).then((function(e){0==e.status&&uni.setNavigationBarTitle({title:e.data.name})}))),e.id&&(this.id=e.id,uni.setNavigationBarTitle({title:"修改"}),this.$ajax.get("/api/user/score/".concat(this.id)).then((function(e){0==e.status&&(t.title=e.data.title,t.content=e.data.content,e.data.images&&(t.images=e.data.images.map((function(e){return{url:e}}))),e.data.file&&(t.files=[{url:e.data.file}]),2==e.data.check_status&&(t.reason=e.data.check_remarks))})))},methods:{deleteImage:function(e){this.images.splice(e.index,1)},uploadImage:function(e){var t=this;return(0,l.Z)((0,s.Z)().mark((function i(){var n,a,r,o,l;return(0,s.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=[].concat(e.file),a=t.images.length,n.map((function(e){t.images.push((0,u.Z)((0,u.Z)({},e),{},{status:"uploading",message:"上传中"}))})),r=0;case 4:if(!(r0?this.images.map((function(e){return e.url})):null,file:this.files.length>0?this.files[0].url:null};this.$ajax.request({url:this.id?"/api/user/score/".concat(this.id):"/api/user/score",method:this.id?"PUT":"POST",data:e,custom:{loading:!0}}).then((function(e){0==e.status&&(uni.showToast({title:"提交成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),800))}))}}}),c=d,f=(i(8056),i(3285)),p=(0,f.Z)(c,r,o,!1,null,"2a6a5c82",null,!1,a,n),m=p.exports},5009:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,".page[data-v-2a6a5c82]{padding-top:%?20?%}.form[data-v-2a6a5c82]{background-color:#fff;padding:0 %?30?%}.item[data-v-2a6a5c82]{margin-top:%?30?%}[data-v-2a6a5c82] uni-textarea{min-height:%?110?%;background-color:#f5f5f5;width:100%;margin-top:%?20?%;padding:%?10?% %?15?%}.btn-danger[data-v-2a6a5c82]{width:100%}",""]),t["default"]=s},1984:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-6c36349d], uni-scroll-view[data-v-6c36349d], uni-swiper-item[data-v-6c36349d]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-6c36349d]{position:relative;\ndisplay:flex;\nflex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-6c36349d]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-6c36349d]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-6c36349d]{flex:1}.u-form-item__body__right__content[data-v-6c36349d]{\ndisplay:flex;\nflex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-6c36349d]{flex:1;\ndisplay:flex;\nflex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-6c36349d]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-6c36349d]{font-size:12px;line-height:12px;color:#f56c6c}',""]),t["default"]=s},8384:function(e,t,i){"use strict";i.r(t);var n=i(2624),a=i.n(n),r=i(196),o=i.n(r),s=o()(a());s.push([e.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-fa0086da], uni-scroll-view[data-v-fa0086da], uni-swiper-item[data-v-fa0086da]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-upload[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:column;flex:1}.u-upload__wrap[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap;flex:1}.u-upload__wrap__preview[data-v-fa0086da]{border-radius:2px;margin:0 8px 8px 0;position:relative;overflow:hidden;\ndisplay:flex;\nflex-direction:row}.u-upload__wrap__preview__image[data-v-fa0086da]{width:80px;height:80px}.u-upload__wrap__preview__other[data-v-fa0086da]{width:80px;height:80px;background-color:#f2f2f2;flex:1;\ndisplay:flex;\nflex-direction:column;justify-content:center;align-items:center}.u-upload__wrap__preview__other__text[data-v-fa0086da]{font-size:11px;color:#909193;margin-top:2px}.u-upload__deletable[data-v-fa0086da]{position:absolute;top:0;right:0;background-color:#373737;height:14px;width:14px;\ndisplay:flex;\nflex-direction:row;border-bottom-left-radius:100px;align-items:center;justify-content:center;z-index:3}.u-upload__deletable__icon[data-v-fa0086da]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);top:0;right:0;top:1px;right:0}.u-upload__success[data-v-fa0086da]{position:absolute;bottom:0;right:0;\ndisplay:flex;\nflex-direction:row;border-style:solid;border-top-color:transparent;border-left-color:transparent;border-bottom-color:#5ac725;border-right-color:#5ac725;border-width:9px;align-items:center;justify-content:center}.u-upload__success__icon[data-v-fa0086da]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7);bottom:-10px;right:-10px}.u-upload__status[data-v-fa0086da]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);\ndisplay:flex;\nflex-direction:column;align-items:center;justify-content:center}.u-upload__status__icon[data-v-fa0086da]{position:relative;z-index:1}.u-upload__status__message[data-v-fa0086da]{font-size:12px;color:#fff;margin-top:5px}.u-upload__button[data-v-fa0086da]{\ndisplay:flex;\nflex-direction:column;align-items:center;justify-content:center;width:80px;height:80px;background-color:#f4f5f7;border-radius:2px;margin:0 8px 8px 0;box-sizing:border-box}.u-upload__button__text[data-v-fa0086da]{font-size:11px;color:#909193;margin-top:2px}.u-upload__button--hover[data-v-fa0086da]{background-color:#e6e7e9}.u-upload__button--disabled[data-v-fa0086da]{opacity:.5}',""]),t["default"]=s}}]); \ No newline at end of file diff --git a/public/h5/static/js/pages-score-list.3218ccbd.js b/public/h5/static/js/pages-score-list.3218ccbd.js new file mode 100644 index 0000000..2e21746 --- /dev/null +++ b/public/h5/static/js/pages-score-list.3218ccbd.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[527],{937:function(t,e,i){var n=i(8536);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("1c06b130",n,!0,{sourceMap:!1,shadowMode:!1})},771:function(t,e,i){var n=i(5179);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("2254f4e6",n,!0,{sourceMap:!1,shadowMode:!1})},7493:function(t,e,i){var n=i(507);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("282722a5",n,!0,{sourceMap:!1,shadowMode:!1})},3104:function(t,e,i){var n=i(9476);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("7bb45b0c",n,!0,{sourceMap:!1,shadowMode:!1})},898:function(t,e,i){var n=i(1187);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("9974f7d4",n,!0,{sourceMap:!1,shadowMode:!1})},4373:function(t,e,i){var n=i(6134);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(3532).Z;s("34ec319a",n,!0,{sourceMap:!1,shadowMode:!1})},5146:function(t,e,i){"use strict";i.d(e,{Z:function(){return p}});var n,s={uIcon:i(4520).Z},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"u-empty",style:[t.emptyStyle]},[t.isSrc?i("v-uni-image",{style:{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)},attrs:{src:t.icon,mode:"widthFix"}}):i("u-icon",{attrs:{name:"message"===t.mode?"chat":"empty-"+t.mode,size:t.iconSize,color:t.iconColor,"margin-top":"14"}}),i("v-uni-text",{staticClass:"u-empty__text",style:[t.textStyle]},[t._v(t._s(t.text?t.text:t.icons[t.mode]))]),t.$slots.default||t.$slots.$default?i("v-uni-view",{staticClass:"u-empty__wrap"},[t._t("default")],2):t._e()],1):t._e()},r=[],u=(i(233),i(4302),{props:{icon:{type:String,default:uni.$u.props.empty.icon},text:{type:String,default:uni.$u.props.empty.text},textColor:{type:String,default:uni.$u.props.empty.textColor},textSize:{type:[String,Number],default:uni.$u.props.empty.textSize},iconColor:{type:String,default:uni.$u.props.empty.iconColor},iconSize:{type:[String,Number],default:uni.$u.props.empty.iconSize},mode:{type:String,default:uni.$u.props.empty.mode},width:{type:[String,Number],default:uni.$u.props.empty.width},height:{type:[String,Number],default:uni.$u.props.empty.height},show:{type:Boolean,default:uni.$u.props.empty.show},marginTop:{type:[String,Number],default:uni.$u.props.empty.marginTop}}}),a={name:"u-empty",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],data:function(){return{icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}},computed:{emptyStyle:function(){var t={};return t.marginTop=uni.$u.addUnit(this.marginTop),uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},textStyle:function(){var t={};return t.color=this.textColor,t.fontSize=uni.$u.addUnit(this.textSize),t},isSrc:function(){return this.icon.indexOf("/")>=0}}},c=a,l=(i(771),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"4025ac66",null,!1,s,n),p=d.exports},8470:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return p}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"u-list-item-"+t.anchor,staticClass:"u-list-item",class:["u-list-item-"+t.anchor],attrs:{anchor:"u-list-item-"+t.anchor}},[t._t("default")],2)},r=[],u=(i(233),i(5827),i(4302),{props:{anchor:{type:[String,Number],default:uni.$u.props.listItem.anchor}}}),a={name:"u-list-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],data:function(){return{rect:{},index:0,show:!0,sys:uni.$u.sys()}},computed:{},inject:["uList"],watch:{"uList.innerScrollTop":function(t){var e=this.uList.preLoadScreen,i=this.sys.windowHeight;t<=i*e?this.parent.updateOffsetFromChild(0):this.rect.top<=t-i*e&&this.parent.updateOffsetFromChild(this.rect.top)}},created:function(){this.parent={}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData:function(){this.getParentData("u-list")},resize:function(){var t=this;this.queryRect("u-list-item-".concat(this.anchor)).then((function(e){var i=t.parent.children[t.index-1];t.rect=e;var n=t.uList.preLoadScreen,s=t.sys.windowHeight;i&&(t.rect.top=i.rect.top+i.rect.height),e.top>=t.uList.innerScrollTop+(1+n)*s&&(t.show=!1)}))},queryRect:function(t){var e=this;return new Promise((function(i){e.$uGetRect(".".concat(t)).then((function(t){i(t)}))}))}}},c=a,l=(i(7493),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"1727a615",null,!1,n,s),p=d.exports},7343:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return p}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},r=[],u=(i(4302),{props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}}),a={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],watch:{scrollIntoView:function(t){this.scrollIntoViewById(t)}},data:function(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle:function(){var t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide:function(){return{uList:this}},created:function(){this.refs=[],this.children=[],this.anchors=[]},mounted:function(){},methods:{updateOffsetFromChild:function(t){this.offset=t},onScroll:function(t){var e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById:function(t){},scrolltolower:function(t){var e=this;uni.$u.sleep(30).then((function(){e.$emit("scrolltolower")}))},scrolltoupper:function(t){var e=this;uni.$u.sleep(30).then((function(){e.$emit("scrolltoupper"),e.offset=0}))}}},c=a,l=(i(3104),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"390d4fd5",null,!1,n,s),p=d.exports},4020:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return f}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-sticky",style:[t.style],attrs:{id:t.elId}},[i("v-uni-view",{staticClass:"u-sticky__content",style:[t.stickyContent]},[t._t("default")],2)],1)},r=[],u=i(4522),a=i(6210),c=(i(9289),i(4302),{props:{offsetTop:{type:[String,Number],default:uni.$u.props.sticky.offsetTop},customNavHeight:{type:[String,Number],default:44},disabled:{type:Boolean,default:uni.$u.props.sticky.disabled},bgColor:{type:String,default:uni.$u.props.sticky.bgColor},zIndex:{type:[String,Number],default:uni.$u.props.sticky.zIndex},index:{type:[String,Number],default:uni.$u.props.sticky.index}}}),l={name:"u-sticky",mixins:[uni.$u.mpMixin,uni.$u.mixin,c],data:function(){return{cssSticky:!1,stickyTop:0,elId:uni.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=uni.$u.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:uni.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("#".concat(this.elId),(function(e){t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=uni.$u.getPx(this.offsetTop)+uni.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,a.Z)((0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.checkCssStickyForH5()&&(t.cssSticky=!0),"android"===uni.$u.os()&&Number(uni.$u.sys().system)>8&&(t.cssSticky=!0),"ios"===uni.$u.os()&&(t.cssSticky=!0);case 3:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){},checkCssStickyForH5:function(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e=t.length,i=document.createElement("div"),n=0;n0&&t.current0?i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"name1"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"name2",class:{"text-gray":0==e.check_status,"text-warning":2==e.check_status,"text-success":1==e.check_status}},[t._v(t._s(e.check_status_text))])],1),i("v-uni-view",{attrs:{slot:"label"},slot:"label"},[i("v-uni-view",{staticClass:"labels"},[i("v-uni-view",{staticClass:"label"},[t._v("提交时间: "+t._s(e.created_at))]),e.check_status>0?i("v-uni-view",{staticClass:"label"},[t._v("审核时间: "+t._s(e.check_at))]):t._e(),1==e.check_status?i("v-uni-view",{staticClass:"label"},[t._v("得星:"),i("v-uni-text",{staticClass:"text-success"},[t._v("+"+t._s(e.score))])],1):t._e(),2==e.check_status?i("v-uni-view",{staticClass:"label"},[t._v("未通过原因:"),i("u-text",{attrs:{type:"error",text:e.check_remarks}})],1):t._e()],1),i("v-uni-view",{staticClass:"options"},[i("u-button",{attrs:{text:"详细",type:"info"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.show(e.id)}}}),1!=e.check_status?i("u-button",{attrs:{text:"修改",type:"error"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.edit(e.id)}}}):t._e(),1!=e.check_status?i("u-button",{attrs:{text:"删除",type:"error",plain:!0},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteItem(e.id)}}}):t._e()],1)],1)],1)],1)})),1)],1):t._e()],1)},r=[],u=(i(6228),{data:function(){return{options:[{name:"待审核",status:0},{name:"审核通过",status:1},{name:"未通过",status:2}],current:0,list:[],page:1,perPage:20,total:0,listHeight:0}},onShow:function(){this.loadData(!0)},onLoad:function(){var t=this;uni.getSystemInfo({success:function(e){t.listHeight=e.safeArea.height-54}})},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1);var i={page:this.page,perPage:this.perPage,check_status:this.options[this.current].status};this.$ajax.get("/api/user/score",{params:i,custom:{loading:!0}}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data),e.total=t.meta.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.length=0}}},c=a,l=(i(771),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"4025ac66",null,!1,s,n),p=d.exports},8470:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return p}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"u-list-item-"+t.anchor,staticClass:"u-list-item",class:["u-list-item-"+t.anchor],attrs:{anchor:"u-list-item-"+t.anchor}},[t._t("default")],2)},r=[],u=(i(233),i(5827),i(4302),{props:{anchor:{type:[String,Number],default:uni.$u.props.listItem.anchor}}}),a={name:"u-list-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],data:function(){return{rect:{},index:0,show:!0,sys:uni.$u.sys()}},computed:{},inject:["uList"],watch:{"uList.innerScrollTop":function(t){var e=this.uList.preLoadScreen,i=this.sys.windowHeight;t<=i*e?this.parent.updateOffsetFromChild(0):this.rect.top<=t-i*e&&this.parent.updateOffsetFromChild(this.rect.top)}},created:function(){this.parent={}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData:function(){this.getParentData("u-list")},resize:function(){var t=this;this.queryRect("u-list-item-".concat(this.anchor)).then((function(e){var i=t.parent.children[t.index-1];t.rect=e;var n=t.uList.preLoadScreen,s=t.sys.windowHeight;i&&(t.rect.top=i.rect.top+i.rect.height),e.top>=t.uList.innerScrollTop+(1+n)*s&&(t.show=!1)}))},queryRect:function(t){var e=this;return new Promise((function(i){e.$uGetRect(".".concat(t)).then((function(t){i(t)}))}))}}},c=a,l=(i(7493),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"1727a615",null,!1,n,s),p=d.exports},7343:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return p}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},r=[],u=(i(4302),{props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}}),a={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],watch:{scrollIntoView:function(t){this.scrollIntoViewById(t)}},data:function(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle:function(){var t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide:function(){return{uList:this}},created:function(){this.refs=[],this.children=[],this.anchors=[]},mounted:function(){},methods:{updateOffsetFromChild:function(t){this.offset=t},onScroll:function(t){var e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById:function(t){},scrolltolower:function(t){var e=this;uni.$u.sleep(30).then((function(){e.$emit("scrolltolower")}))},scrolltoupper:function(t){var e=this;uni.$u.sleep(30).then((function(){e.$emit("scrolltoupper"),e.offset=0}))}}},c=a,l=(i(3104),i(3285)),d=(0,l.Z)(c,o,r,!1,null,"390d4fd5",null,!1,n,s),p=d.exports},4020:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return h}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-sticky",style:[t.style],attrs:{id:t.elId}},[i("v-uni-view",{staticClass:"u-sticky__content",style:[t.stickyContent]},[t._t("default")],2)],1)},r=[],u=i(4522),a=i(6210),c=(i(9289),i(4302),{props:{offsetTop:{type:[String,Number],default:uni.$u.props.sticky.offsetTop},customNavHeight:{type:[String,Number],default:44},disabled:{type:Boolean,default:uni.$u.props.sticky.disabled},bgColor:{type:String,default:uni.$u.props.sticky.bgColor},zIndex:{type:[String,Number],default:uni.$u.props.sticky.zIndex},index:{type:[String,Number],default:uni.$u.props.sticky.index}}}),l={name:"u-sticky",mixins:[uni.$u.mpMixin,uni.$u.mixin,c],data:function(){return{cssSticky:!1,stickyTop:0,elId:uni.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=uni.$u.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:uni.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("#".concat(this.elId),(function(e){t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=uni.$u.getPx(this.offsetTop)+uni.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,a.Z)((0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.checkCssStickyForH5()&&(t.cssSticky=!0),"android"===uni.$u.os()&&Number(uni.$u.sys().system)>8&&(t.cssSticky=!0),"ios"===uni.$u.os()&&(t.cssSticky=!0);case 3:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){},checkCssStickyForH5:function(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e=t.length,i=document.createElement("div"),n=0;n0&&t.current0?i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"name1"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"name2",class:{"text-gray":0==e.check_status,"text-warning":2==e.check_status,"text-success":1==e.check_status}},[t._v(t._s(e.check_status_text))])],1),i("v-uni-view",{attrs:{slot:"label"},slot:"label"},[i("v-uni-view",{staticClass:"labels"},[i("v-uni-view",{staticClass:"label"},[t._v("提交时间: "+t._s(e.created_at))]),e.check_status>0?i("v-uni-view",{staticClass:"label"},[t._v("审核时间: "+t._s(e.check_at))]):t._e(),1==e.check_status?i("v-uni-view",{staticClass:"label"},[t._v("得星:"),i("v-uni-text",{staticClass:"text-success"},[t._v("+"+t._s(e.score))])],1):t._e(),2==e.check_status?i("v-uni-view",{staticClass:"label"},[t._v("未通过原因:"),i("u-text",{attrs:{type:"error",text:e.check_remarks}})],1):t._e()],1),i("v-uni-view",{staticClass:"options"},[i("u-button",{attrs:{text:"详细",type:"info"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.show(e.id)}}}),1!=e.check_status?i("u-button",{attrs:{text:"修改",type:"error"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.edit(e.id)}}}):t._e(),1!=e.check_status?i("u-button",{attrs:{text:"删除",type:"error",plain:!0},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteItem(e.id)}}}):t._e()],1)],1)],1)],1)})),1)],1):t._e()],1)},r=[],u=(i(6228),{data:function(){return{options:[{name:"待审核",status:0},{name:"审核通过",status:1},{name:"未通过",status:2}],current:0,list:[],page:1,perPage:20,total:0,listHeight:0}},onLoad:function(){var t=this;this.loadData(!0),uni.getSystemInfo({success:function(e){t.listHeight=e.safeArea.height-54}})},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1);var i={page:this.page,perPage:this.perPage,check_status:this.options[this.current].status};this.$ajax.get("/api/user/score",{params:i,custom:{loading:!0}}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data),e.total=t.meta.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.length