jiangping
2024-07-26 7cede2696df830f56a1f7edc4cff4ca483c8aeb8
提交
已修改6个文件
40 ■■■■ 文件已修改
server/service/src/main/java/com/doumee/core/utils/GeneratePicUtil.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/api/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/index/index.wxml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/index/index.wxss 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/store/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/utils/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/service/src/main/java/com/doumee/core/utils/GeneratePicUtil.java
@@ -1,6 +1,7 @@
package com.doumee.core.utils;
import com.google.zxing.common.BitMatrix;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
@@ -21,6 +22,7 @@
import java.math.RoundingMode;
import java.net.URL;
@Slf4j
public class GeneratePicUtil {
    static String bg="https://shoeslxkj.oss-cn-beijing.aliyuncs.com/file/20230404/SysBaseBackGround/D56231512C0B4A4C9D06B02F9566B0B0.png";
@@ -391,11 +393,16 @@
        }return null;
    }
    private static BufferedImage getImgIO(InputStream is) {
        if(is ==null){
          log.error("=============================qrcode error 小程序码为空");
        }
        try {
             return     ImageIO.read(is);
        }catch (Exception e){
            log.error("=============================qrcode error 小程序码为空11111111111:"+e.getMessage());
        }return null;
        }
        return null;
    }
    public static InputStream generateShareImg(String imgurl, InputStream mpCode, String title) {
wechat_staff/api/index.js
@@ -13,7 +13,7 @@
export const loginByPhone = (data) => {
  return request({
    url: '/web/personnel/loginByPhone',
    datas
    data
  })
}
// 发送验证码
wechat_staff/pages/index/index.wxml
@@ -1,10 +1,12 @@
<view class="container">
  <view style="height: {{clientTop - 2}}px;"></view>
  <view class="search_wrap">
    <image class="icon" src="../../static/home_ic_search@2x.png" mode="widthFix"></image>
    <input model:value="{{ searchValue }}" placeholder="搜索" type="text" />
<view class="container" >
  <view class="search_fix">
    <view style="height: {{clientTop - 2}}px;"></view>
    <view class="search_wrap">
      <image class="icon" src="../../static/home_ic_search@2x.png" mode="widthFix"></image>
      <input model:value="{{ searchValue }}" placeholder="搜索" type="text" />
    </view>
  </view>
  <view class="everyday">
  <view class="everyday"  >
    <view class="header" bindtap="promotionClick">
      <view class="title">每日上新</view>
      <view class="more">
wechat_staff/pages/index/index.wxss
@@ -1,3 +1,10 @@
.search_fix{
   position: fixed;
   z-index: 10000;
   width: 100%;
   height: 206rpx;
   background-color: white;
}
.search_wrap {
  display: flex;
  align-items: center;
@@ -15,7 +22,7 @@
.everyday {
  width: 670rpx;
  height: 466rpx;
  margin: 40rpx;
  margin: 206rpx 40rpx;
  background: linear-gradient(180deg, #F2E7E1 0%, #FEFEFD 30%, #FFFFFF 100%), #FFFFFF;
  box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(176, 135, 113, 0.2);
  border-radius: 8rpx;
wechat_staff/pages/store/index.js
@@ -9,7 +9,7 @@
      shopId: null,
      shopInfo:{},
      shopList:[]
  },buo
  },
  /**
   * 生命周期函数--监听页面加载
wechat_staff/utils/config.js
@@ -1,5 +1,5 @@
// export const baseUrl = 'http://192.168.0.135:10027'
export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // 本地
export const baseUrl = 'http://192.168.0.135:10027'
// export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // 本地
// export const baseUrl = 'http://zbtest.ahapp.net/zbom_interface/jx/wechat/' //测试服务器
// export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/'