浏览代码

feat(福利go)对接口 列表

xing.li 3 年之前
父节点
当前提交
81069bee97

+ 62 - 0
api/welfareMall.js

@@ -51,6 +51,68 @@ class WelfareMall extends request {
     return this.postRequest(`${this.BASE_URL}open/welfare-mall/order/get-refund-order-status`, params);
   }
 
+   /**
+   * 获取首页信息
+   */
+  static getIndexList(params ={}) {
+    return this.postRequest(`${this.BASE_URL}open/welfare-mall/homepage-data`, params);
+  }
+
+     /**
+   * 获取活动列表
+   */
+  static getActivityList(type,page,pageSize) {
+    let params={
+      type:type,
+      page:page,
+      pageSize:pageSize,
+    }
+    return this.postRequest(`${this.BASE_URL}open/welfare-mall/activity/list`, params);
+  }
+
+       /**
+   * 获取活动详情
+   */
+  static getActivityDetail(activityId) {
+    let params={
+      activityId:activityId
+    }
+    return this.postRequest(`${this.BASE_URL}open/welfare-mall/activity/detail`, params);
+  }
+
+  
+       /**
+   * 创建订单
+   */
+  static createOrder(mobile,activityId,num,shopId="") {
+    let params = {
+      activityId:activityId,
+      memberMobile:mobile,
+      num:num,
+      shopId:shopId
+    };
+    return this.postRequest(`${this.BASE_URL}open/activity/create-order`, params);
+  }
+
+  //获取支付参数
+  static getOrderParams(orderSn,openId) {
+    let params = {
+      orderSn:orderSn,
+      source: "WX_MINI_APP",
+      thirdPartyName: 'coupon-activity',
+      payCode: "HSAY-SHARE",
+      openId: openId
+    };
+    return this.postRequest(`${this.BASE_URL}open/activity/get-order-params`, params);
+  }
+
+
+
+
+  
+
+  
+
 }
 
 export default WelfareMall

+ 111 - 2
pages/welfareMall/activityInfo/activityInfo.js

@@ -1,18 +1,30 @@
 // pages/welfareMall/activityInfo/activityInfo.js
+import WelfareMall from '../../../api/welfareMall';
+import Activity from '../../../api/activity';
+const util = require('../../../utils/util.js');
+const app = getApp();
 Page({
 
   /**
    * 页面的初始数据
    */
   data: {
-
+     detail:[],
+     activityId:'',
+     statusShowText:'',
+     buttonText:'',
+     userMobile: '', //用户手机号
+     orderInfo: [], //下单信息
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    console.log(options);
+    if(options.activityId){
+    this.getActivityDetail(options.activityId)
+    }
   },
 
   /**
@@ -62,5 +74,102 @@ Page({
    */
   onShareAppMessage: function () {
 
+  },
+  getActivityDetail: async function(activityId) {
+
+     let res  = await WelfareMall.getActivityDetail(activityId)
+
+     let statusShowText = '';
+     if(res.data.stock <=0){
+      statusShowText == '已售罄'
+     }
+     if(res.data.status ==3){
+      statusShowText == '已结束'
+     }
+
+     let buttonText = res.data.isPay == 1 ? '立即抢购' : '立即领取';
+     this.setData({
+       detail:res.data,
+       statusShowText:statusShowText,
+       buttonText:buttonText
+     })
+  },
+  /**
+   * 获取手机号
+   * @param {*} e 
+   */
+  getPhoneNumber(e) {
+    let _self = this;
+    var encryptedData = e.detail.encryptedData;
+    var iv = e.detail.iv;
+    if (!encryptedData || encryptedData.length == 0 || !iv || iv.length == 0) {
+      return;
+    }
+    //获取手机号
+    app.doDecodePhone(encryptedData, iv, function () {
+      let userMobile = Activity.getMobileCache();
+      if (userMobile.length !== 0) {
+        _self.setData({
+          userMobile: userMobile,
+        })
+        _self.nowBuy();
+      }
+    
+    });
+  },
+
+  /**
+   * 下单
+   */
+  async nowBuy() {
+    let _self = this;
+    try {
+      let res = await WelfareMall.createOrder(_self.data.userMobile, _self.data.detail.activityId,1);
+      _self.setData({
+        orderInfo: res.data,
+      })
+      // console.log(this.data.activityInfo.isPay)
+      // console.log(_self.data.orderInfo)
+      if (this.data.detail.isPay == 1 && _self.data.orderInfo.orderSn) {
+        // console.log(22222)
+        _self.goPay();
+      } else {
+        // wx.reLaunch({
+        //   url: '/pages/couponSuccess/couponSuccess'
+        // })
+      }
+
+    } catch (err) {
+      app.showToast(err.msg);
+    }
+
+  },
+   /**
+   * 获取订单参数
+   */
+  async goPay() {
+    console.log(wx.getStorageSync('loginInfo').openId)
+    var _self = this;
+      let res = await WelfareMall.getOrderParams(_self.data.orderInfo.orderSn,wx.getStorageSync('loginInfo').openId);
+      console.log(res);
+      // res = res.wxPrePayVo
+      wx.requestPayment({
+        timeStamp: res.wxPrePayVo.timeStamp,
+        package: res.wxPrePayVo.pack,
+        nonceStr: res.wxPrePayVo.nonceStr,
+        signType: res.wxPrePayVo.signType,
+        paySign: res.wxPrePayVo.paySign,
+        success: function (res) {
+          //支付成功,跳转领取成功页面
+          // wx.reLaunch({
+          //   url: '/pages/couponSuccess/couponSuccess'
+          // })
+        },
+        fail: function (res) {
+          // console.log('payerror')
+          // console.log(res);
+        }
+      })
   }
+
 })

+ 25 - 11
pages/welfareMall/activityInfo/activityInfo.wxml

@@ -1,11 +1,15 @@
 
-<image src="https://dy.shpr.top/welfareGo/coupon_info.png" mode="widthFix" class="top_img"></image>
+<image src="{{detail.fullCoverImg}}" mode="widthFix" class="top_img"></image>
 
 <view class="flex-row info">
   <view class="info_left flex-column">
-    <view class="info_name over-ellipsis">圣诞优惠券包两地分居案例</view>
+    <view class="info_name over-ellipsis">{{detail.name}}</view>
 
-    <view class="info_coupon_num">3张代金券、3张折扣券</view>
+    <!-- <view class="info_coupon_num">3张代金券、3张折扣券</view> -->
+    <view class="info_coupon_num" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum > 0}}">含{{detail.cashCouponNum}}张代金券、{{detail.discountCouponNum}}张折扣券</view>
+      <view class="info_coupon_num" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum > 0}}">含{{detail.discountCouponNum}}张折扣券</view>
+      <view class="info_coupon_num" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum == 0}}">含{{detail.cashCouponNum}}张代金券</view>
+      <view class="info_coupon_num" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum ==0}}"></view>
     <view class="flex-row">
 
       <view class="flex-row">
@@ -25,8 +29,9 @@
   </view>
 
   <view class="info_right flex-column">
-  <view class="info_right_top">8.89元</view>
-  <view class="info_right_bottom">价值¥999</view>
+  <view class="info_right_top" wx:if="{{detail.isPay!=0}}">{{detail.priceFormatter}}元</view>
+  <view class="info_right_top" wx:else>免费</view>
+  <view class="info_right_bottom">价值¥{{detail.showPriceFormatter}}</view>
   </view>
 </view>
 
@@ -35,7 +40,11 @@
 <image src="/images/welfareMall/bag_content.png" class="bottom_icon"></image>
 <view class="bottom_tilte_text">礼包内容</view>
 </view>
-<view class="bottom_title_b">代金券x3 , 折扣券X3</view>
+<view class="bottom_title_b" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum > 0}}">代金券 X {{detail.cashCouponNum}} ,折扣券 X {{detail.discountCouponNum}}</view>
+      <view class="bottom_title_b" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum > 0}}">折扣券 X {{detail.discountCouponNum}}</view>
+      <view class="bottom_title_b" wx:if="{{detail.cashCouponNum > 0 && detail.discountCouponNum == 0}}">代金券 X {{detail.cashCouponNum}}</view>
+      <view class="bottom_title_b" wx:if="{{detail.cashCouponNum ==0 && detail.discountCouponNum ==0}}"></view>
+
 </view>
 
 <view  class="bottom_title flex-column">
@@ -43,16 +52,21 @@
 <image src="/images/welfareMall/buy_info.png" class="bottom_icon"></image>
 <view class="bottom_tilte_text">购买须知</view>
 </view>
-<view class="bottom_title_b">1、本券有效期为自购买起30天 2、本券不可兑现现金 3、本券可兑换范围XXXXXXX</view>
+<rich-text class="bottom_title_b" nodes="{{detail.remark}}"></rich-text>
+
 </view>
 
-<view  class="bottom_title flex-column" >
+<view  class="bottom_title flex-column" style="margin-bottom: 100px;">
 <view class="flex-row bottom_title_top">
 <image src="/images/welfareMall/use_info.png" class="bottom_icon"></image>
 <view class="bottom_tilte_text">使用说明</view>
 </view>
-<view class="bottom_title_b">该券仅在XX小程序内使用,一单可用一张券。 该券仅在XX小程序内使用,一单可用一张券。 该券仅在XX小程序内使用,一单可用一张</view>
-</view>
+<rich-text class="bottom_title_b" nodes="{{detail.remark}}"></rich-text>
 
+</view>
 
-<!-- <view class="go_buy">立即抢购</view> -->
+<view class="bottom_button" wx:if="{{detail.status ==2 && detail.stock !=0}}">
+  <view class="now_buy" bindtap="nowBuy" wx:if="{{userMobile.length>0}}">{{buttonText}}</view>
+  <button class="now_buy_button" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>{{buttonText}}</button>
+</view>
+<view class="go_buy"  style="background-color:#bdbdbd" wx:else>{{statusShowText}}</view>

+ 34 - 4
pages/welfareMall/activityInfo/activityInfo.wxss

@@ -1,6 +1,6 @@
 Page {
   width: 100%;
-  height: 100%;
+  /* height: 100%; */
   box-sizing: border-box;
   display: flex;
   flex-flow: column nowrap;
@@ -37,9 +37,10 @@ Page {
 .info_name{
   height: 25px;
   line-height: 25px;
-font-size: 24px;
-font-weight: bold;
-color: #444444;
+  font-size: 24px;
+  font-weight: bold;
+  color: #444444;
+  margin-top: 5px;
 }
 .info_coupon_num{
   font-size: 12px;
@@ -114,4 +115,33 @@ margin-left: 28px;
   text-align: center;
   position: fixed;
   bottom: 50px;
+}
+
+.bottom_button {
+  width: 100%;
+  height: 200rpx;
+  position: fixed;
+  bottom: 0;
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+.now_buy {
+  width: 316px!important;
+  height: 49px;
+  line-height: 49px!important;
+  border-radius: 25px;
+  text-align: center;
+  color: #fff;
+  background-color: #B01717;
+  font-size: 22px;
+}
+.now_buy_button {
+  background-color: #B01717;
+  border-radius: 25px;
+  color: #fff;
+  width: 316px!important;
+  text-align: center;
+  font-size: 22px;
 }

+ 27 - 7
pages/welfareMall/activityList/activityList.js

@@ -1,18 +1,23 @@
 // pages/welfareMall/activityList/activityList.js
+
+import WelfareMall from '../../../api/welfareMall';
 Page({
 
   /**
    * 页面的初始数据
    */
   data: {
-      type:1
+      type:1, //1免费 2 收费
+      page:1,
+      pageSize:10,
+      list:[]
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    this.getActivityList()
   },
 
   /**
@@ -65,18 +70,33 @@ Page({
   },
   gotoFree:function () {
     this.setData({
-      type:1
+      type:1,
+      page:1
     })
+    this.getActivityList();
   },
   gotoPay:function () {
     this.setData({
-      type:2
+      type:2,
+      page:1
     })
+    this.getActivityList();
   },
-  goCouponDetail:function(){
-        
+  goCouponDetail:function(e){
+    let activityId = e.currentTarget.dataset.id   
     wx.navigateTo({
-      url: '/pages/welfareMall/activityInfo/activityInfo',
+      url: '/pages/welfareMall/activityInfo/activityInfo?activityId='+ activityId,
     })
   },
+
+  // 1是免费,2是收费
+   getActivityList: async function() {
+
+   
+    let res = await WelfareMall.getActivityList(this.data.type,this.data.page,this.data.pageSize)
+    console.log(res);
+    this.setData({
+      list:res.data
+    })
+  }
 })

+ 13 - 8
pages/welfareMall/activityList/activityList.wxml

@@ -12,21 +12,26 @@
 </view>
 
 
-<view class="coupon_item flex-row">
-    <image src="https://dy.shpr.top/welfareGo/index_top.png" class="coupon_item_img"></image>
+<view class="coupon_item flex-row" wx:for="{{list}}" wx:key="unique">
+    <image src="{{item.coverImg}}" class="coupon_item_img"></image>
     <view class="coupon_item_right flex-column">
     <view class="flex-column">
-      <view class="coupon_name over-ellipsis-two">圣诞优惠券包</view>
-      <view class="coupon_num">含3张代金券、3张折扣券</view>
+      <view class="coupon_name over-ellipsis-two">{{item.name}}</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum > 0}}">含{{item.cashCouponNum}}张代金券、{{item.discountCouponNum}}张折扣券</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum > 0}}">含{{item.discountCouponNum}}张折扣券</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum == 0}}">含{{item.cashCouponNum}}张代金券</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum ==0}}"></view>
+     
     </view>
       <view class="coupon_i_r_bottom flex-row">
-        <view class="coupon_price">价值 ¥99</view>
-        <view class="coupon_buy" bindtap="goCouponDetail">99.99元抢</view>
+        <view class="coupon_price">价值 ¥{{item.formatShowPrice}}</view>
+        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:if="{{item.isPay!=0}}">{{item.formatPrice}}元抢</view>
+        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:else>免费领取</view>
       </view>
     </view>
   </view>
 
-  <view class="coupon_item flex-row">
+  <!-- <view class="coupon_item flex-row">
     <image src="https://dy.shpr.top/welfareGo/index_top.png" class="coupon_item_img"></image>
     <view class="coupon_item_right flex-column">
     <view class="flex-column">
@@ -38,4 +43,4 @@
         <view class="coupon_buy" bindtap="goCouponDetail">99.99元抢</view>
       </view>
     </view>
-  </view>
+  </view> -->

+ 73 - 18
pages/welfareMall/index/index.js

@@ -1,18 +1,29 @@
 // pages/welfareMall/index/index.js
+
+
+import WelfareMall from '../../../api/welfareMall';
+const util = require('../../../utils/util.js');
+const app = getApp();
 Page({
 
   /**
    * 页面的初始数据
    */
   data: {
-
+      activityList:[],
+      bannerList:[],
+      navigationList:[],
+     
+      autoplay: true,
+      interval: 2000,
+      duration: 500
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+      this.getIndexList()
   },
 
   /**
@@ -65,28 +76,72 @@ Page({
   },
 
    //跳转超值券包
-  goToCoupon:function(){
+  goToCoupon:function(e){
+    var appId = e.currentTarget.dataset.appId;
+    var path = e.currentTarget.dataset.path;
+  
+    if(appId && path){
+      wx.navigateToMiniProgram({
+        appId: appId,
+        path: path,
+        success(res) {
+          // 打开成功
+        }
+      })
+    }
+    
+    if(!appId && path){
+      wx.navigateTo({
+        url: path,
+      })
+    }
+   
+  },
+
+  
+  goCouponDetail:function(e){
         
+    let activityId = e.currentTarget.dataset.id   
     wx.navigateTo({
-      url: '/pages/welfareMall/activityList/activityList',
+      url: '/pages/welfareMall/activityInfo/activityInfo?activityId='+ activityId,
     })
   },
 
-  goToDraw:function(){
-    // wx.navigateTo({
-    //   url: '/pages/welfareMall/activityList/activityList',
-    // })
-  },
+  async getIndexList(){
+    let res =  await WelfareMall.getIndexList();
 
-  goToSign:function(){
-    // wx.navigateTo({
-    //   url: '/pages/welfareMall/activityList/activityList',
-    // })
-  },
-  goCouponDetail:function(){
-        
-    wx.navigateTo({
-      url: '/pages/welfareMall/activityInfo/activityInfo',
+    this.setData({
+      activityList:res.data.activityList,
+      bannerList:res.data.bannerList,
+      navigationList:res.data.navigationList
     })
+ 
   },
+
+  goToBanner(e){
+    var appId = e.currentTarget.dataset.appid;
+    var path = e.currentTarget.dataset.path;
+    console.log(appId);
+    console.log(path);
+    if(appId && path){
+      wx.navigateToMiniProgram({
+        appId: 'wxd92a2d29f8022f40',
+        path: 'pages/index/index',
+        extraData: {
+          foo: 'bar'
+        },
+        envVersion: 'develop',
+        success(res) {
+          // 打开成功
+        }
+      })
+    }
+
+    if(!appId && path){
+      wx.navigateTo({
+        url: path,
+      })
+    }
+
+  }
 })

+ 28 - 22
pages/welfareMall/index/index.wxml

@@ -1,21 +1,23 @@
-<image src="https://dy.shpr.top/welfareGo/index_top.png" mode="widthFix" class="top_img"></image>
 
-<view class="banner_list flex-row">
-  <view class="banner_item flex-column" bindtap="goToCoupon">
-    <image class="b_i_img" src="/images/welfareMall/coupon_bags.png"></image>
-    <view class="b_i_text">超值券包</view>
-  </view>
 
-  <view class="banner_item flex-column" bindtap="goToDraw">
-    <image class="b_i_img" src="/images/welfareMall/luck_draws.png"></image>
-    <view class="b_i_text">抽奖领券</view>
-  </view>
+<view>
+<swiper  class="swiper"
+        autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
+        <block wx:for="{{bannerList}}" wx:key="unique" data-appid="{{item.appId}}" data-path="{{item.path}}" bindtap="goToBanner">
+          <swiper-item >
+            <view class="swiper-item swiper1">
+              <image src="{{item.figure}}" class="top_img"></image>
+            </view>
+          </swiper-item>
+        </block>
 
-  <view class="banner_item flex-column" bindtap="goToSign">
-    <image class="b_i_img" src="/images/welfareMall/signs.png"></image>
-    <view class="b_i_text">签到领券</view>
+      </swiper>
+    </view>
+<view class="banner_list flex-row">
+  <view class="banner_item flex-column" bindtap="goToCoupon" wx:for="{{navigationList}}" data-appid="{{item.appId}}" data-path="{{item.path}}" wx:key="unique">
+    <image class="b_i_img" src="{{item.figure}}"></image>
+    <view class="b_i_text">{{item.title}}</view>
   </view>
-
 </view>
 
 <view class="coupon_list flex-column">
@@ -24,21 +26,25 @@
     <view class="c_l_top_r" bindtap="goToCoupon">更多</view>
   </view>
 
-  <view class="coupon_item flex-row">
-    <image src="https://dy.shpr.top/welfareGo/index_top.png" class="coupon_item_img"></image>
+  <view class="coupon_item flex-row" wx:for="{{activityList}}"  wx:key="unique">
+    <image src="{{item.coverImg}}" class="coupon_item_img"></image>
     <view class="coupon_item_right flex-column">
     <view class="flex-column">
-      <view class="coupon_name over-ellipsis-two">圣诞优惠券包家乐鸡粉拉开就龙卷可浪费结案率司法局阿里司法局阿萨德了</view>
-      <view class="coupon_num">含3张代金券、3张折扣券</view>
+      <view class="coupon_name over-ellipsis-two">{{item.name}}</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum > 0}}">含{{item.cashCouponNum}}张代金券、{{item.discountCouponNum}}张折扣券</view>
+      <view class="coupon_num"  wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum > 0}}">含{{item.discountCouponNum}}张折扣券</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum > 0 && item.discountCouponNum == 0}}">含{{item.cashCouponNum}}张代金券</view>
+      <view class="coupon_num" wx:if="{{item.cashCouponNum ==0 && item.discountCouponNum ==0}}"></view>
     </view>
       <view class="coupon_i_r_bottom flex-row">
-        <view class="coupon_price">价值 ¥99</view>
-        <view class="coupon_buy" bindtap="goCouponDetail">99.99元抢</view>
+        <view class="coupon_price">价值 ¥{{item.formatShowPrice}}</view>
+        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:if="{{item.isPay!=0}}">{{item.formatPrice}}元抢</view>
+        <view class="coupon_buy" bindtap="goCouponDetail" data-id="{{item.activityId}}" wx:else>免费领取</view>
       </view>
     </view>
   </view>
 
-  <view class="coupon_item flex-row">
+  <!-- <view class="coupon_item flex-row">
     <image src="https://dy.shpr.top/welfareGo/index_top.png" class="coupon_item_img"></image>
     <view class="coupon_item_right flex-column">
     <view class="flex-column">
@@ -50,6 +56,6 @@
         <view class="coupon_buy" bindtap="goCouponDetail">99.99元抢</view>
       </view>
     </view>
-  </view>
+  </view> -->
 </view>
 

+ 9 - 1
pages/welfareMall/index/index.wxss

@@ -1,6 +1,6 @@
 Page {
   width: 100%;
-  height: 100%;
+  /* height: 100%; */
   box-sizing: border-box;
   display: flex;
   flex-flow: column nowrap;
@@ -12,9 +12,16 @@ Page {
 /* 头图的样式 */
 .top_img {
   width: 338px;
+  height: 338px;
   margin-top: 14px;
 }
 
+.swiper{
+  width: 338px;
+  height: 352px;
+
+}
+
 /* banner的样式 */
 .banner_list {
   width: 338px;
@@ -52,6 +59,7 @@ Page {
 /* 券包的样式 */
 .coupon_list {
   /* min-height: 360px; */
+  width: 338px;
   background: #FFFFFF;
   border-radius: 5px;
   margin-top: 13px;

+ 4 - 4
project.config.json

@@ -31,18 +31,18 @@
       "outputPath": ""
     },
     "enableEngineNative": false,
-    "useIsolateContext": true,
+    "useIsolateContext": false,
     "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
     "packNpmRelationList": [],
     "minifyWXSS": false,
     "disableUseStrict": false,
+    "minifyWXML": true,
     "showES6CompileOption": false,
-    "useCompilerPlugins": false,
-    "minifyWXML": true
+    "useCompilerPlugins": false
   },
   "compileType": "miniprogram",
-  "libVersion": "2.19.4",
+  "libVersion": "2.21.0",
   "appid": "wxcc1cdb8babd3f62c",
   "projectname": "%E9%A3%9E%E7%A0%81",
   "debugOptions": {

+ 1 - 1
project.private.config.json

@@ -69,7 +69,7 @@
         {
           "name": "券包详情",
           "pathName": "pages/welfareMall/activityInfo/activityInfo",
-          "query": "",
+          "query": "activityId=dl5v9NpmWQ",
           "scene": null
         }
       ]

+ 2 - 2
utils/request.js

@@ -2,9 +2,9 @@ import util from './util.js'
 class request {
 
     //本地的
-    static BASE_URL = 'http://localhost:8014/'
+    // static BASE_URL = 'http://localhost:8014/'
 //   pre环境的
-//   static BASE_URL = 'https://oapi.shpr.top/'
+  static BASE_URL = 'https://oapi.shpr.top/'
 //   正式的
 //   static BASE_URL = 'https://vapi.hsayi.com/'
 //   @todo需要修改正式的域名