浏览代码

yl merchant

xiaoyu 3 年之前
父节点
当前提交
4080f08b5e
共有 7 个文件被更改,包括 18 次插入9 次删除
  1. 1 0
      package.json
  2. 二进制
      public/favicon.ico
  3. 8 2
      src/api/index.js
  4. 1 1
      src/pages/index.vue
  5. 1 1
      src/pages/phoneIndex.vue
  6. 3 3
      src/utils/flexible.js
  7. 4 2
      vue.config.js

+ 1 - 0
package.json

@@ -15,6 +15,7 @@
     "js-cookie": "^2.2.1",
     "lib-flexible": "^0.3.2",
     "moment": "^2.27.0",
+    "npm": "^8.5.5",
     "vue": "^2.6.11",
     "vue-router": "^3.1.6"
   },

二进制
public/favicon.ico


+ 8 - 2
src/api/index.js

@@ -107,12 +107,16 @@ let requestLoading = (url, method, params) => {
 // const Prefix = 'http://dd.guozipay.com/mchsrv/index.php?';
 
 // const Prefix = 'http://192.168.1.218/mchsrv/index.php?';
-const Prefix = 'https://admin.xyzshops.cn/mchsrv/index.php?';
+// const Prefix = 'https://admin.xyzshops.cn/mchsrv/index.php?';
 // const Prefix = 'https://test.xyzshops.cn/mchsrv/index.php?';
 
 // 椰子临时线上地址
 // const Prefix = 'http://121.89.196.45/mobile/index.php?';
 
+//椰林接口地址
+const Prefix = 'https://ylweb.xyzshops.cn/mchsrv/index.php?';
+
+
 //测试请求
 export const testRequest = () => {
     // return requestLoading(`${Prefix}/index.php?index/index/index`, 'get', {})
@@ -322,7 +326,9 @@ export const updateVoucher = (name) => {
         // url: `http://192.168.1.218/upfile.php`,
         // url: `http://dd.guozipay.com/upfile.php`,
         // url: `https://www.xyzshops.cn/upfile.php`,
-        url: `https://admin.xyzshops.cn/upfile.php`,
+        // url: `https://admin.xyzshops.cn/upfile.php`,
+        //椰林接口地址
+        url : 'https://ylweb.xyzshops.cn/upfile.php',
         // url: `https://test.xyzshops.cn/upfile.php`,
         // 椰子临时
         // url: `http://121.89.196.45/upfile.php`,

+ 1 - 1
src/pages/index.vue

@@ -3,7 +3,7 @@
     <el-header style="background-color:#545c64">
         <el-row type="flex" style="height:100%;" justify="space-between" align="middle">
             <div style="color:#fff">
-                <span class="title" style="font-size: 18px">椰充值后台管理系统</span>
+                <span class="title" style="font-size: 18px">椰充值后台管理系统</span>
             </div>
             <div>
                 <el-dropdown @command="onUserEdit">

+ 1 - 1
src/pages/phoneIndex.vue

@@ -4,7 +4,7 @@
       <el-container style="height:100%">
         <el-header style="height:120px;padding:0">
           <div class="hdTop">
-            椰充值后台管理系统
+            椰充值后台管理系统
           </div>
           <div class="hdBottom">
             <div @click="isCollapse=!isCollapse">

+ 3 - 3
src/utils/flexible.js

@@ -12,7 +12,7 @@
 
   if (metaEl) {
       console.warn('将根据已有的meta标签来设置缩放比例');
-      var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/);
+      var match = metaEl.getAttribute('content').match(/initial-scale=([\d.]+)/);
       if (match) {
           scale = parseFloat(match[1]);
           dpr = parseInt(1 / scale);
@@ -20,8 +20,8 @@
   } else if (flexibleEl) {
       var content = flexibleEl.getAttribute('content');
       if (content) {
-          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/);
-          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/);
+          var initialDpr = content.match(/initial-dpr=([\d.]+)/);
+          var maximumDpr = content.match(/maximum-dpr=([\d.]+)/);
           if (initialDpr) {
               dpr = parseFloat(initialDpr[1]);
               scale = parseFloat((1 / dpr).toFixed(2));

+ 4 - 2
vue.config.js

@@ -4,7 +4,7 @@
 
 // const targetUrl = 'http://dd.guozipay.com/'
 
-const targetUrl = 'https://admin.xyzshops.cn/'
+// const targetUrl = 'https://admin.xyzshops.cn/'
 
 // const targetUrl = 'https://test.xyzshops.cn/'
 
@@ -12,6 +12,8 @@ const targetUrl = 'https://admin.xyzshops.cn/'
 // 椰子临时线上
 // const targetUrl = 'http://121.89.196.45/'
 
+//椰林接口地址
+const targetUrl = 'https://ylweb.xyzshops.cn/';
 
 module.exports = {
     publicPath:'./',
@@ -25,7 +27,7 @@ module.exports = {
             // 在 dist/index.html 的输出
             filename: 'index.html',
             // 当使用 title 选项时,template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
-            title: '椰充值后台管理系统程序',
+            title: '椰充值后台管理系统程序',
         },
     },
     devServer: {