1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <view>
- <view class="helpTitle">{{ resultData.helpWordTitle }}</view>
- <view class="helpCon" v-html="resultData.helpWordContent"></view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- obj:{},
- resultData:[]
- };
- },
- onLoad(options) {
- const {
- item = {}
- } = options;
- // console.log(JSON.parse(decodeURIComponent(item)))
- this.obj = JSON.parse(decodeURIComponent(item))
- this.helpWordId = this.obj.helpWordId
- uni.setNavigationBarTitle({
- title: this.obj.helpWordTitle
- });
-
- if(this.helpWordId){
- this.getContent();
- }
-
- },
- methods: {
- getContent() {
- let data = {
- helpWordId: this.helpWordId,
- }
- this.$Request.get("/app/helpWord/selectHelpWordDetails", data).then(res => {
- if (res.code == 0) {
- this.resultData = res.data
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- });
- }
- }
- };
- </script>
- <style>
- page{
- background: #ffffff;
- }
- .helpTitle {
- font-size: 40rpx;
- font-weight: bold;
- margin: 50rpx 30rpx 30rpx;
-
- }
- .helpCon {
- font-size: 30rpx;
- margin: 30rpx 30rpx 50rpx;
-
- line-height: 2em;
- }
- </style>
|