소스 검색

支付查询完成

Joe 4 년 전
부모
커밋
60d7b68405
5개의 변경된 파일73개의 추가작업 그리고 14개의 파일을 삭제
  1. 4 3
      nuxt.config.js
  2. 47 0
      pages/applet/error.vue
  3. 13 10
      pages/order/index.vue
  4. 9 1
      settings.js
  5. BIN
      static/point/Snipaste_2021-04-20_12-44-43.png

+ 4 - 3
nuxt.config.js

@@ -1,10 +1,11 @@
+import settings from './settings'
 export default {
   ssr: false,
   server: {
-    port: 8081, // default: 3000
+    port: settings.port, // default: 3000
     // host: '192.168.3.14' // default: localhost
     // host:"localhost",
-    host:"192.168.31.87",
+    host:settings.host,
   },
   // disableHostCheck: true,
   modules: [
@@ -12,7 +13,7 @@ export default {
     '@nuxtjs/proxy'
   ],
   axios: {
-    prefix:"/demo",
+    prefix:settings.prefix,
     proxy: true
   },
   proxy: {

+ 47 - 0
pages/applet/error.vue

@@ -0,0 +1,47 @@
+<template>
+  <div class="applet-error">
+    进入小程序失败,<br>
+    可能由于您的网络不佳。<br>
+    请尝试重新进入小程序。
+  </div>
+</template>
+
+<script>
+import ProductList from "../../components/ProductList";
+import { mapState, mapActions } from "vuex";
+export default {
+  head() {
+    return {
+      title: "错误",
+    };
+  },
+  data() {
+    return {
+      images: [],
+      list: [],
+      loading: false, // 加载状态
+      finished: false, // 是否完成加载
+      refreshing: false, // 是否正在上拉刷新
+    };
+  },
+  components: {
+    ProductList,
+  },
+  computed: {
+    ...mapState({
+      pointInfo: (state) => state.point.pointInfo,
+    }),
+  },
+  mounted() {
+    
+  },
+  methods: {
+    ...mapActions({
+      getPointInfo: "point/getPointInfo",
+    }),
+  },
+};
+</script>
+
+<style>
+</style>

+ 13 - 10
pages/order/index.vue

@@ -9,27 +9,28 @@
     <div class="container">
       <div class="banner"></div>
       <div class="menu">
-        <div class="item">
+        <router-link to="/charge/amount" class="item">
           <div>
             <div class="icon"></div>
-            <div class="text">会员充值</div>
+            <div class="text">余额明细</div>
           </div>
           <div class="go">></div>
-        </div>
-        <div class="item">
+        </router-link>
+        <router-link to="/point/bill" class="item">
           <div>
             <div class="icon"></div>
-            <div class="text">电子会员</div>
+            <div class="text">积分明细</div>
           </div>
           <div class="go">></div>
-        </div>
-        <div class="item">
+        </router-link>
+        <router-link to="/point/list" class="item">
           <div>
             <div class="icon"></div>
-            <div class="text">优惠券</div>
+            <div class="text">积分订单</div>
           </div>
           <div class="go">></div>
-        </div>
+        </router-link>
+        <!--
         <div class="item">
           <div>
             <div class="icon"></div>
@@ -44,6 +45,7 @@
           </div>
           <div class="go">></div>
         </div>
+        -->
       </div>
     </div>
   </div>
@@ -181,7 +183,8 @@ export default {
   background-size: 100% 100%;
 }
 .point-index .container .menu .item:nth-child(3) div .icon {
-  background: url("~static/personal/bianpinghuatubiaosheji-@2x.png") no-repeat 0px 0px;
+  background: url("~static/personal/bianpinghuatubiaosheji-@2x.png") no-repeat
+    0px 0px;
   background-size: 100% 100%;
 }
 .point-index .container .menu .item:nth-child(4) div .icon {

+ 9 - 1
settings.js

@@ -1,5 +1,13 @@
 export default {
   // url:"http://www.onlyfido.top",
-  url:"http://www.huijy.net",
+  // url:"http://www.huijy.net",
+  url:"http://m.huijy.net",
+
   debug: false,
+  prefix:"/demo",
+  port: 8081,
+    // host: '192.168.3.14' // default: localhost
+    // host:"localhost",
+    host:"192.168.31.87",
+  
 }

BIN
static/point/Snipaste_2021-04-20_12-44-43.png