init
This commit is contained in:
1
pages_tool/help/detail.js
Normal file
1
pages_tool/help/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/help/detail"],{3525:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1dee");n(i("3240"));var a=n(i("695d"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"61c7":function(t,e,i){},"695d":function(t,e,i){"use strict";i.r(e);var n=i("81b5"),a=i("d948");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("f125");var l=i("828b"),r=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=r.exports},"81b5":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={loadingCover:function(){return i.e("components/loading-cover/loading-cover").then(i.bind(null,"0773"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.$util.timeStampTurnTime(this.detail.create_time));this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},b044:function(t,e,i){"use strict";var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("e5ac")),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=(0,a.default)(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},d948:function(t,e,i){"use strict";i.r(e);var n=i("b044"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},f125:function(t,e,i){"use strict";var n=i("61c7"),a=i.n(n);a.a}},[["3525","common/runtime","common/vendor"]]]);
|
||||
5
pages_tool/help/detail.json
Normal file
5
pages_tool/help/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
1
pages_tool/help/detail.wxml
Normal file
1
pages_tool/help/detail.wxml
Normal 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"><rich-text nodes="{{content}}"></rich-text></view><view class="help-meta"><text class="help-time">{{"发表时间: "+$root.g0}}</text></view><loading-cover class="vue-ref" vue-id="6bc49195-1" data-ref="loadingCover" bind:__l="__l"></loading-cover><privacy-popup class="vue-ref" vue-id="6bc49195-2" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>
|
||||
1
pages_tool/help/detail.wxss
Normal file
1
pages_tool/help/detail.wxss
Normal 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
pages_tool/help/list.js
Normal file
1
pages_tool/help/list.js
Normal file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/help/list"],{"1bb9":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("1dee");i(n("3240"));var a=i(n("8f9e"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"1fa7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={nsEmpty:function(){return n.e("components/ns-empty/ns-empty").then(n.bind(null,"a84f"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"0773"))}},a=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),a=e.child_list.length;return{$orig:i,g1:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},o=[]},"25ae":function(t,e,n){"use strict";n.r(e);var i=n("6b51"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},3804:function(t,e,n){},"45ca":function(t,e,n){"use strict";var i=n("3804"),a=n.n(i);a.a},"6b51":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){}}}}},"8f9e":function(t,e,n){"use strict";n.r(e);var i=n("1fa7"),a=n("25ae");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("45ca");var s=n("828b"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"35527242",null,!1,i["a"],void 0);e["default"]=u.exports}},[["1bb9","common/runtime","common/vendor"]]]);
|
||||
6
pages_tool/help/list.json
Normal file
6
pages_tool/help/list.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"ns-empty": "/components/ns-empty/ns-empty",
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
1
pages_tool/help/list.wxml
Normal file
1
pages_tool/help/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}" class="data-v-35527242"></page-meta><view class="help data-v-35527242"><block wx:if="{{$root.g0}}"><block class="data-v-35527242"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="help-item data-v-35527242"><view class="{{['data-v-35527242','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-35527242" bindtap="__e">{{s_item.title}}</view></block></view></block></block></block><block wx:else><block class="data-v-35527242"><ns-empty vue-id="09d5b768-1" text="暂无帮助信息" isIndex="{{false}}" class="data-v-35527242" bind:__l="__l"></ns-empty></block></block><loading-cover vue-id="09d5b768-2" data-ref="loadingCover" class="data-v-35527242 vue-ref" bind:__l="__l"></loading-cover><privacy-popup vue-id="09d5b768-3" data-ref="privacyPopup" class="data-v-35527242 vue-ref" bind:__l="__l"></privacy-popup></view>
|
||||
1
pages_tool/help/list.wxss
Normal file
1
pages_tool/help/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.help.data-v-35527242{height:100%;box-sizing:border-box;padding-top:20rpx}.help .help-item.data-v-35527242{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-35527242{padding-bottom:15rpx;font-size:30rpx;color:#000;border-bottom:2rpx solid #f1f1f1}.help .help-item .item-title.empty.data-v-35527242{padding-bottom:0;border-bottom:none}.help .help-item .item-content.data-v-35527242{padding:24rpx 0;border-bottom:2rpx solid #f1f1f1;font-size:28rpx;color:#606266}.help .help-item .item-content.data-v-35527242:last-child{border-bottom:none;padding-bottom:0}
|
||||
Reference in New Issue
Block a user