| | |
| | | |
| | | @Target({ElementType.METHOD,ElementType.TYPE}) |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | public @interface UserLoginRequired {} |
| | | public @interface UserLoginRequired { |
| | | |
| | | } |
| | |
| | | data |
| | | }) |
| | | } |
| | | // 小程序注销 |
| | | export const getCrmAuthUrl = (data) => { |
| | | return request({ |
| | | url: '/web/customer/getCrmAuthUrl', |
| | | data |
| | | }) |
| | | } |
| | |
| | | // 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 }) |
| | | }) |
| | | }, |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | onShow() { |
| | | // if(this.data.url ==null || this.data.url ==''){ |
| | | // this.loadData() |
| | | // } |
| | | }, |
| | | |
| | | /** |
| | |
| | | <!--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> |
| | |
| | | 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); |
| | | }, |
| | |
| | | <button class="btn2" bind:tap="saveCard">保持到相册</button> |
| | | </view> |
| | | </van-popup> |
| | | </view> |
| | | </view>prod |
| | |
| | | |
| | | |
| | | // 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' |
| | | |