jiangping
2024-07-22 b0fa7738316f0075bdf7282eed5bd394ca3a7584
提交
已修改7个文件
55 ■■■■■ 文件已修改
server/service/src/main/java/com/doumee/config/annotation/UserLoginRequired.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/api/index.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/client/index.js 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/client/index.wxml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/sets/protocol.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/store/staff.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/utils/config.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/service/src/main/java/com/doumee/config/annotation/UserLoginRequired.java
@@ -7,4 +7,6 @@
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface UserLoginRequired {}
public @interface UserLoginRequired {
}
wechat_staff/api/index.js
@@ -182,3 +182,10 @@
    data
  })
}
// 小程序注销
export const getCrmAuthUrl = (data) => {
  return request({
    url: '/web/customer/getCrmAuthUrl',
    data
  })
}
wechat_staff/pages/client/index.js
@@ -1,20 +1,26 @@
// pages/client/index.js
Page({
import { getCrmAuthUrl, getDictData } from '../../api/index'
Page({
  /**
   * 页面的初始数据
   */
  data: {
  },
    url:''
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
  onLoad(options) {
    this.loadData()
  },
  loadData(){
    wx.showToast()
    getCrmAuthUrl({type:0}).then(res => {
      console.log(res.data)
      this.setData({ url: res.data })
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
@@ -25,8 +31,10 @@
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
  onShow() {
    // if(this.data.url ==null || this.data.url ==''){
    //   this.loadData()
    // }
  },
  /**
wechat_staff/pages/client/index.wxml
@@ -1,2 +1,3 @@
<!--pages/client/index.wxml-->
<text>pages/client/index.wxml</text>
<web-view wx:if="{{url !=null && url !=''}}" src="{{url}}"> </web-view>
<button wx:else style="margin-top: 50%;width: 200rpx;font-size: 14px;" bind:tap="loadData">重新加载</button>
wechat_staff/pages/sets/protocol.js
@@ -15,9 +15,9 @@
  onLoad(options) {
    console.log(options.type)
    if(options.type == 1){
      wx.setNavigationBarTitle({title:'隐私协议'})
      wx.setNavigationBarTitle({title:'用户隐私协议'})
    }else{
      wx.setNavigationBarTitle({title:'用户协议'})
      wx.setNavigationBarTitle({title:'用户服务协议'})
    }
    this.loadDict(options.type); 
  },
wechat_staff/pages/store/staff.wxml
@@ -75,4 +75,4 @@
      <button class="btn2" bind:tap="saveCard">保持到相册</button>
    </view>
  </van-popup>
</view>
</view>prod
wechat_staff/utils/config.js
@@ -1,11 +1,8 @@
// export const baseUrl = 'https://jiaxuan.zbom.com/jx/wechat/' //正式服务器
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/'
// export const baseUrl = 'https://dmtest.ahapp.net/web_interface/' // 测试服
export const baseUrl = 'http://192.168.0.135:10027' // 本地
// 腾讯地图开发者 key
export const qqMapKey = 'HIDBZ-2QXL4-TAWUD-XET6Q-EKTJE-CCBSQ'