kk.shi před 3 roky
rodič
revize
16a643a180

+ 2 - 1
api/integralinfo.js

@@ -2,7 +2,8 @@ import request from '../utils/request.js'
 
 class Integralinfo extends request {
   
-  static INT_URL = 'http://118.31.106.139:8022/'
+  // static INT_URL = 'http://118.31.106.139:8022/'
+  static INT_URL = 'https://api.imedicalmall.com/'
     /**
    * POST类型的网络请求
    */

+ 7 - 3
pages/integral/integral.js

@@ -63,6 +63,10 @@ Page({
         phone: getMobileCache() == ''?'********':getMobileCache().replace(reg, "$1****$2"),
         setPhone: getMobileCache(),
         mobile: getMobileCache(),
+        channelid: options.channelid === undefined ? '' : options.channelid,
+		shopid: options.shopid === undefined ? '' : options.shopid,
+		storeid: options.storeid === undefined ? '' : options.storeid,
+		tgid: options.tgid === undefined ? '' : options.tgid,
     })
   },
 
@@ -84,7 +88,7 @@ Page({
             callbackUrl: '../integral/integral.wxml',
             fingerprint: '',
             sessionid: '',
-            shopid: 2,
+            shopid: this.data.shopid,
             type: 'wx',
         }).then(arr => {
             if (arr.code === '0000') {
@@ -326,7 +330,7 @@ getphoneClick() {
             callbackUrl: '../integral/integral.wxml',
             fingerprint: '',
             sessionid: '',
-            shopid: 2,
+            shopid: this.data.shopid,
             type: 'wx',
         }).then(arr => {
             console.log(arr)
@@ -480,7 +484,7 @@ shuaxinClick() {
         callbackUrl: '../integral/integral.wxml',
         fingerprint: '',
         sessionid: '',
-        shopid: 2,
+        shopid: this.data.shopid,
         type: 'wx',
     }).then(arr => {
         if (arr.code === '0000') {

+ 1 - 1
pages/integral/integral.wxml

@@ -1,5 +1,5 @@
 <!--pages/integral/integral.wxml-->
-<view class="integral-top">
+<view class="integral-top flex-column">
   <swiper class="integral-banner" autoplay="true" indicator-dots="true" wx:if="{{phone === '********'}}">
     <block wx:for="{{bannerList}}" wx:key="key" data-id="{{item.id}}">
       <swiper-item>

+ 2 - 2
pages/integral/integral.wxss

@@ -24,7 +24,7 @@ page {
 }
 
 .integral-banner {
-  width: 750rpx;
+  width: 720rpx;
   height: 256rpx;
   border-radius: 8px;
   overflow: hidden;
@@ -141,7 +141,7 @@ page {
 .my-card {
   position: absolute;
   right: -2rpx;
-  top: 0;
+  top: 30rpx;
   width: 120rpx;
   height: 50rpx;
   line-height: 50rpx;