服务器提交
This commit is contained in:
1
public/weapp/pages_tool/help/detail.js
Executable file
1
public/weapp/pages_tool/help/detail.js
Executable file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/help/detail"],{"12bb":function(t,e,i){"use strict";var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("0817"));var o={data:function(){return{id:0,detail:{},content:""}},onLoad:function(t){if(this.id=t.id||0,t.scene){var e=decodeURIComponent(t.scene);this.id=e.split("-")[1]}0==this.id&&this.$util.redirectTo("/pages_tool/help/list",{},"redirectTo")},onShow:function(){this.getData()},methods:{getData:function(){var t=this;this.$api.sendRequest({url:"/api/help/info",data:{id:this.id},success:function(e){0==e.code&&e.data?(t.detail=e.data,t.$langConfig.title(t.detail.title),t.content=e.data.content,t.setPublicShare()):(t.$util.showToast({title:e.message}),setTimeout((function(){t.$util.redirectTo("/pages_tool/help/list",{},"redirectTo")}),2e3)),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},setPublicShare:function(){var t=this.$config.h5Domain+"/pages_tool/help/detail?id="+this.id;this.$util.setPublicShare({title:this.detail.title,desc:"",link:t,imgUrl:this.siteInfo?this.$util.img(this.siteInfo.logo_square):""})}},onShareAppMessage:function(t){var e=this.detail.title,i="/pages_tool/help/detail?id="+this.id;return{title:e,path:i,success:function(t){},fail:function(t){}}},onShareTimeline:function(){var t=this.detail.title,e="id="+this.id;return{title:t,query:e,imageUrl:""}}};e.default=o},"52a0":function(t,e,i){},"67b3":function(t,e,i){"use strict";i.r(e);var n=i("12bb"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},c12e:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("d381");n(i("3240"));var o=n(i("d6ddb"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},d6ddb:function(t,e,i){"use strict";i.r(e);var n=i("f4cb"),o=i("67b3");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("f4a6");var r=i("828b"),l=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=l.exports},f4a6:function(t,e,i){"use strict";var n=i("52a0"),o=i.n(n);o.a},f4cb:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={nsMpHtml:function(){return i.e("components/ns-mp-html/ns-mp-html").then(i.bind(null,"d108"))},hoverNav:function(){return i.e("components/hover-nav/hover-nav").then(i.bind(null,"c1f1"))},loadingCover:function(){return i.e("components/loading-cover/loading-cover").then(i.bind(null,"c003"))}},o=function(){var t=this.$createElement,e=(this._self._c,this.$util.timeStampTurnTime(this.detail.create_time));this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]}},[["c12e","common/runtime","common/vendor"]]]);
|
||||
7
public/weapp/pages_tool/help/detail.json
Executable file
7
public/weapp/pages_tool/help/detail.json
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"ns-mp-html": "/components/ns-mp-html/ns-mp-html",
|
||||
"hover-nav": "/components/hover-nav/hover-nav",
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
1
public/weapp/pages_tool/help/detail.wxml
Executable file
1
public/weapp/pages_tool/help/detail.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}"></page-meta><view class="page"><view class="help-title">{{detail.title}}</view><view class="help-content"><ns-mp-html vue-id="6bc49195-1" content="{{content}}" bind:__l="__l"></ns-mp-html></view><view class="help-meta"><text class="help-time">{{"发表时间: "+$root.g0}}</text></view><hover-nav vue-id="6bc49195-2" bind:__l="__l"></hover-nav><loading-cover class="vue-ref" vue-id="6bc49195-3" data-ref="loadingCover" bind:__l="__l"></loading-cover><privacy-popup class="vue-ref" vue-id="6bc49195-4" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>
|
||||
1
public/weapp/pages_tool/help/detail.wxss
Executable file
1
public/weapp/pages_tool/help/detail.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.page{width:100%;height:100%;padding:30rpx;box-sizing:border-box;background:#fff}.help-title{font-size:32rpx;text-align:center}.help-content{margin-top:20rpx;word-break:break-all}.help-meta{text-align:right;margin-top:20rpx;color:#909399}.help-meta .help-time{font-size:24rpx}
|
||||
1
public/weapp/pages_tool/help/list.js
Executable file
1
public/weapp/pages_tool/help/list.js
Executable file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/help/list"],{"07e7":function(t,e,n){},2389:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{dataList:[]}},onLoad:function(){},onShow:function(){this.setPublicShare(),this.getData()},methods:{getData:function(){var t=this;this.$api.sendRequest({url:"/api/helpclass/lists",data:{},success:function(e){0==e.code&&e.data?t.dataList=e.data:t.$util.showToast({title:e.message}),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},helpDetail:function(t){this.$util.redirectTo("/pages_tool/help/detail",{id:t.id})},setPublicShare:function(){var t=this.$config.h5Domain+"/pages_tool/help/list";this.$util.setPublicShare({title:"帮助中心",desc:"",link:t,imgUrl:this.siteInfo?this.$util.img(this.siteInfo.logo_square):""})}},onShareAppMessage:function(t){return{title:"帮助中心使你更加方便",path:"/pages_tool/help/list",success:function(t){},fail:function(t){}}}}},"25b6":function(t,e,n){"use strict";var i=n("07e7"),o=n.n(i);o.a},6244:function(t,e,n){"use strict";n.r(e);var i=n("2389"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"840e":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={nsEmpty:function(){return n.e("components/ns-empty/ns-empty").then(n.bind(null,"52a6"))},hoverNav:function(){return n.e("components/hover-nav/hover-nav").then(n.bind(null,"c1f1"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"c003"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.dataList.length),i=n?t.__map(t.dataList,(function(e,n){var i=t.__get_orig(e),o=e.child_list.length;return{$orig:i,g1:o}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},a=[]},bb94:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("d381");i(n("3240"));var o=i(n("ee93"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ee93:function(t,e,n){"use strict";n.r(e);var i=n("840e"),o=n("6244");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("25b6");var r=n("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"304ea690",null,!1,i["a"],void 0);e["default"]=s.exports}},[["bb94","common/runtime","common/vendor"]]]);
|
||||
7
public/weapp/pages_tool/help/list.json
Executable file
7
public/weapp/pages_tool/help/list.json
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"ns-empty": "/components/ns-empty/ns-empty",
|
||||
"hover-nav": "/components/hover-nav/hover-nav",
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
1
public/weapp/pages_tool/help/list.wxml
Executable file
1
public/weapp/pages_tool/help/list.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}" class="data-v-304ea690"></page-meta><view class="help data-v-304ea690"><block wx:if="{{$root.g0}}"><block class="data-v-304ea690"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="help-item data-v-304ea690"><view class="{{['data-v-304ea690','item-title',item.g1==0?'empty':'']}}">{{item.$orig.class_name}}</view><block wx:for="{{item.$orig.child_list}}" wx:for-item="s_item" wx:for-index="s_index" wx:key="s_index"><view data-event-opts="{{[['tap',[['helpDetail',['$0'],[[['dataList','',index],['child_list','',s_index]]]]]]]}}" class="item-content data-v-304ea690" bindtap="__e">{{s_item.title}}</view></block></view></block></block></block><block wx:else><block class="data-v-304ea690"><ns-empty vue-id="09d5b768-1" text="暂无帮助信息" isIndex="{{false}}" class="data-v-304ea690" bind:__l="__l"></ns-empty></block></block><hover-nav vue-id="09d5b768-2" class="data-v-304ea690" bind:__l="__l"></hover-nav><loading-cover vue-id="09d5b768-3" data-ref="loadingCover" class="data-v-304ea690 vue-ref" bind:__l="__l"></loading-cover><privacy-popup vue-id="09d5b768-4" data-ref="privacyPopup" class="data-v-304ea690 vue-ref" bind:__l="__l"></privacy-popup></view>
|
||||
1
public/weapp/pages_tool/help/list.wxss
Executable file
1
public/weapp/pages_tool/help/list.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.help.data-v-304ea690{height:100%;box-sizing:border-box;padding-top:20rpx}.help .help-item.data-v-304ea690{width:calc(100% - 60rpx);margin:0 auto;padding:32rpx 35rpx;box-sizing:border-box;background-color:#fff;margin-bottom:18rpx;border-radius:10rpx}.help .help-item .item-title.data-v-304ea690{padding-bottom:15rpx;font-size:30rpx;color:#000;border-bottom:2rpx solid #f1f1f1}.help .help-item .item-title.empty.data-v-304ea690{padding-bottom:0;border-bottom:none}.help .help-item .item-content.data-v-304ea690{padding:24rpx 0;border-bottom:2rpx solid #f1f1f1;font-size:28rpx;color:#606266}.help .help-item .item-content.data-v-304ea690:last-child{border-bottom:none;padding-bottom:0}
|
||||
Reference in New Issue
Block a user