ソースを参照

电子卡完成

Joe 4 年 前
コミット
0d76e5f0eb
6 ファイル変更19 行追加22 行削除
  1. 0 1
      pages/charge/amount.vue
  2. 2 2
      pages/charge/index.vue
  3. 12 14
      pages/point/index.vue
  4. 2 2
      pages/point/pay/_id.vue
  5. 1 1
      pages/point/success.vue
  6. 2 2
      settings.js

+ 0 - 1
pages/charge/amount.vue

@@ -277,7 +277,6 @@ export default {
   font-size: 0.28rem;
   color: #ffffff;
   font-weight: 500;
-  width:3rem;
 }
 .charge-amount .container .overview >.card div span{
   font-weight: 600;

+ 2 - 2
pages/charge/index.vue

@@ -186,7 +186,7 @@ export default {
     async pay() {
       try {
         this.payLoading = true;
-        const orderData = await this.$axios.$post("http://mp.huijy.net/test/rechargeBalance", {
+        const orderData = await this.$axios.$post("/rechargeBalance", {
           amt: this.chargeAmount,
           stationId: this.stationId,
           customerName: this.userInfo.nickname,
@@ -197,7 +197,7 @@ export default {
           throw new Error("生成订单失败");
         }
         const orderNum = orderData.data;
-        const payInfoData = await this.$axios.$post("http://mp.huijy.net/test/rechargeBalanceSXFPay", {
+        const payInfoData = await this.$axios.$post("/rechargeBalanceSXFPay", {
           amt: this.chargeAmount,
           openId: this.openId,
           stationId: this.stationId,

+ 12 - 14
pages/point/index.vue

@@ -147,8 +147,8 @@ export default {
   z-index: 99;
 }
 .point-index .container .menu {
-  width: 100%;
-  height: 26.66vw;
+  width: 6.9rem;
+  height: 1.9rem;
   background: #ffffff;
   box-shadow: 0px 2px 10px 5px rgba(227, 227, 227, 0.5);
   border-radius: 20px;
@@ -156,27 +156,25 @@ export default {
   flex-direction: row;
   justify-content: space-around;
   align-items: center;
+  text-align:center;
 }
 .point-index .container .menu .item {
-  width: 14.93vw;
-  height: 14.93vw;
+  width:1.12rem;
 }
 .point-index .container .menu .item img {
-  display: block;
-  width: 12vw;
-  height: 12vw;
+  display: inline-block;
+  width: .9rem;
+  height: .9rem;
   margin: 0 auto;
 }
 .point-index .container .menu .item span {
   display: inline-block;
-  font-family: PingFangSC-Regular, PingFang SC;
   font-weight: 400;
   color: #666666;
   text-align: center;
-  margin-top: 3vw;
-  width: 1.3rem;
+  margin-top: .2rem;
   height: 0.4rem;
-  font-size: 0.28rem;
+  font-size: 0.26rem;
   font-family: PingFangSC-Regular, PingFang SC;
   font-weight: 400;
   color: #666666;
@@ -184,9 +182,9 @@ export default {
 }
 
 .point-index .container .news {
-  margin-top: 4vw;
-  width: 100%;
-  height: 21.33vw;
+  margin-top: .3rem;
+  width: 6.9rem;
+  height: 1.6rem;
   background: url("../../static/point/banner.png") no-repeat;
   background-size: 100% 100%;
   position: relative;

+ 2 - 2
pages/point/pay/_id.vue

@@ -71,8 +71,8 @@ export default {
   },
   methods: {
     pay() {
-      console.log("this.userInfo",this.userInfo)
-      console.log(this.userInfo);
+      // console.log("this.userInfo",this.userInfo)
+      // console.log(this.userInfo);
       this.$axios
         .$post("insertIntegralOrder", {
           waresId: this.id,

+ 1 - 1
pages/point/success.vue

@@ -17,7 +17,7 @@ import wx from "weixin-js-sdk";
 export default {
   head() {
     return {
-      title: "支付成功",
+      title: "兑换成功",
     };
   },
   data() {

+ 2 - 2
settings.js

@@ -4,11 +4,11 @@ export default {
   gotoUrl:"http://mp.huijy.net",
   // url:"http://www.huijy.net",
 
-  devEnv:false,
+  devEnv:false, //开发时打开
   debug: false,
 
   // prefix:"/api",
-  prefix:"test",
+  prefix:"demo",
   port: 8081,
     // host: '192.168.3.14', // default: localhost
     // host:"localhost",