richText.js
844 字节
"use strict";const e=require("../../common/vendor.js"),n=require("../../api/index.js");require("../../utils/request.js");if(!Array){const o=e.resolveComponent("u-navbar"),a=e.resolveComponent("u-parse");(o+a)()}const s=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",u=()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js";Math||(s+u)();const c={__name:"richText",setup(o){const a=e.ref(""),t=e.ref("");return e.onLoad(async r=>{if(r.type==="4"){a.value=await n.getcompact(),t.value="用户协议";return}a.value=await n.getprivacyPolicy(),t.value="隐私政策"}),(r,i)=>({a:e.p({bgColor:"#F6F8FA",title:t.value,placeholder:!0,autoBack:!0}),b:e.p({content:a.value})})}},_=e._export_sfc(c,[["__scopeId","data-v-aed5e3af"],["__file","D:/vue/大健康商城/healthMall/pages/index/richText.vue"]]);wx.createPage(_);