diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index fcf97dbc..f1421c4f 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -6,8 +6,12 @@ const config = { // host: 'h5api', // #endif // #ifndef H5 +<<<<<<< HEAD host: 'http://91f.xyz:8080', // host: 'http://g8rbs6.natappfree.cc', +======= + host: 'http://91f.xyz:8080', +>>>>>>> 1fb340263bba19031e365ab883932f3f4c4806e3 // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js index 2c59d799..fe31a50b 100644 --- a/jiuyi2/common/js/util.js +++ b/jiuyi2/common/js/util.js @@ -223,11 +223,12 @@ const util = { if (res.data.code == 401) { // 登出 util.logout(() => { - util.alert('请先登录') + util.alert(res.data.msg) reject(res.data) - // uni.reLaunch({ - // url: '/login/login', - // }) + + uni.redirectTo({ + url: '/pages/login/loginPhone', + }) }) } // 嵌套式回调 diff --git a/jiuyi2/components/footerMenu/footerMenu.vue b/jiuyi2/components/footerMenu/footerMenu.vue index 5e20aafa..ec3926cf 100644 --- a/jiuyi2/components/footerMenu/footerMenu.vue +++ b/jiuyi2/components/footerMenu/footerMenu.vue @@ -1,245 +1,245 @@ diff --git a/jiuyi2/pages/release/commodity.vue b/jiuyi2/pages/release/commodity.vue index bea5f729..431bb144 100644 --- a/jiuyi2/pages/release/commodity.vue +++ b/jiuyi2/pages/release/commodity.vue @@ -56,7 +56,7 @@ form.commission = detail.commission // 商品详情 if (detail.infoRichText) { - form.infoRichText = JSON.parse(detail.infoRichText) + form.infoRichText = decodeURIComponent(escape(atob(detail.infoRichText))) // 富文本编辑器初始化 proxy.$refs.editorAreaRef.init(form.infoRichText) } @@ -231,10 +231,8 @@ // 轮播图 data.sliderImage = data.sliderImage.join(',') // 商品详情 - // if (data.infoRichText) data.infoRichText = Buffer.from(data.infoRichText, 'utf8').toString('base64'); - // if (data.infoRichText) data.infoRichText = JSON.stringify(data.infoRichText) - console.log(btoa, data.infoRichText) - return + if (data.infoRichText) data.infoRichText = btoa(unescape(encodeURIComponent(data.infoRichText))) + // api.shop.saveProduct({ data, diff --git a/jiuyi2/pages/shop/commodity/index.vue b/jiuyi2/pages/shop/commodity/index.vue index e6f9ede5..5b02f9f1 100644 --- a/jiuyi2/pages/shop/commodity/index.vue +++ b/jiuyi2/pages/shop/commodity/index.vue @@ -94,8 +94,9 @@ if (rs.code == 200) { // const result = rs.data + // 商品详情 if (result.infoRichText) { - result.infoRichText = JSON.parse(result.infoRichText) + result.infoRichText = decodeURIComponent(escape(atob(result.infoRichText))) result.infoRichText = util.imgReplace(result.infoRichText) } Object.assign(detail, {}, result) diff --git a/jiuyi2/pages/shop/store/index.vue b/jiuyi2/pages/shop/store/index.vue index bb9d5819..93bd251d 100644 --- a/jiuyi2/pages/shop/store/index.vue +++ b/jiuyi2/pages/shop/store/index.vue @@ -236,7 +236,7 @@ defineExpose({ - + diff --git a/jiuyi2/vite.config.js b/jiuyi2/vite.config.js index 33eace73..94b029c3 100644 --- a/jiuyi2/vite.config.js +++ b/jiuyi2/vite.config.js @@ -4,8 +4,11 @@ import { import uni from '@dcloudio/vite-plugin-uni'; let target = 'http://91f.xyz:8080' +<<<<<<< HEAD // let target = 'http://g8rbs6.natappfree.cc' +======= +>>>>>>> 1fb340263bba19031e365ab883932f3f4c4806e3 export default defineConfig({ plugins: [uni()],