doum
4 小时以前 7a4b8764b68e0dbaeb90e292a8a4bd47cb379e68
small-program/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js
@@ -158,7 +158,7 @@
    };
  },
  onLoad: function onLoad(options) {
    this.type = options.type || 'about';
    this.type = Number(options.type || '0');
    this.getPlatformAboutUs();
  },
  methods: {
@@ -177,23 +177,35 @@
              case 2:
                res = _context.sent;
                if (res.code === 200) {
                  if (_this.type === 'about') {
                    _this.content = res.data.aboutUs || '';
                  } else if (_this.type === 'protocol') {
                    _this.content = res.data.userAgreement || '';
                  } else if (_this.type === 'privacy') {
                    _this.content = res.data.privacyAgreement || '';
                  } else if (_this.type === 'contact') {
                    _this.content = res.data.aboutUs || '';
                  } else if (_this.type === 'serverIntroduce') {
                  if (_this.type === 0) {
                    _this.content = res.data.userServiceAgreement || '';
                  } else if (_this.type === 1) {
                    _this.content = res.data.userPrivacyPolicy || '';
                  } else if (_this.type === 2) {
                    _this.content = res.data.storeCooperationAgreement || '';
                  } else if (_this.type === 3) {
                    _this.content = res.data.storePrivacyPolicy || '';
                  } else if (_this.type === 4) {
                    _this.content = res.data.serverIntroduce || '';
                  } else if (_this.type === 5) {
                    _this.content = res.data.aboutUs || '';
                  } else if (_this.type === 6) {
                    _this.content = res.data.storeRiskCommitment || '';
                  } else if (_this.type === 7) {
                    _this.content = res.data.storeLuggageStorageNotice || '';
                  } else if (_this.type === 8) {
                    _this.content = res.data.storeCooperationAgreement || '';
                  }
                  titleMap = {
                    'about': '关于我们',
                    'protocol': '用户协议',
                    'privacy': '隐私政策',
                    'contact': '用户协议',
                    'serverIntroduce': '规范须知'
                    0: '用户服务协议',
                    1: '用户隐私政策',
                    2: '门店合作协议',
                    3: '门店隐私政策',
                    4: '规范须知',
                    5: '关于我们',
                    6: '风险承诺',
                    7: '行李寄存须知',
                    8: '代理点合作协议'
                  };
                  uni.setNavigationBarTitle({
                    title: titleMap[_this.type] || '详情'