| | |
| | | // const apiHost = 'http://123.56.89.63:8080/user-server' |
| | | // 上面地址不管用,下面的地址才用 |
| | | // const apiHost = 'http://221.182.45.100:7894/user'; //本地 |
| | | const apiHost = 'https://rideapi.yuekeduo.com.cn/user' //线上 |
| | | const SOCKET_URL = "ws://115.159.42.164:8888/websocket"; |
| | | const apiHost = 'http://192.168.110.11:5000/user' //线上 |
| | | const SOCKET_URL = "ws://192.168.110.11:8887/websocket"; |
| | | const SOCKET_HEARTBEAT_INTERVAL = 10000; |
| | | const SOCKET_RECONNECT_DELAY = 3000; |
| | | |
| | |
| | | |
| | | // 上面地址不管用,下面的地址才用 |
| | | // Url: 'http://221.182.45.100:7894/user', //本地 |
| | | Url : 'https://rideapi.yuekeduo.com.cn/user', |
| | | Url : 'http://192.168.110.11:5000/user', |
| | | |
| | | |
| | | localSocket: {}, |
| | |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTitleText": "约客多", |
| | | "navigationBarTitleText": "放心行", |
| | | "navigationBarTextStyle": "black", |
| | | "enablePullDownRefresh": true |
| | | }, |
| | |
| | | <view class="inform"> |
| | | <view>未成年乘车需由监护人陪同</view> |
| | | <view>乘车人行程中违反平台规则,代叫人需承担连带责任</view> |
| | | <view class="success" catchtap="userHelp">《约客多服务协议》</view> |
| | | <view class="success" catchtap="userHelp">《放心行服务协议》</view> |
| | | <view class="ok_other" catchtap="ok_other">确认代叫</view> |
| | | </view> |
| | | |
| | |
| | | name: "设置", |
| | | imgSrc: "../../img/newSet.png", |
| | | }, |
| | | // { |
| | | // name: "顺风车账户", |
| | | // imgSrc: "../../img/newSet.png", |
| | | // }, |
| | | { |
| | | name: "顺风车账户", |
| | | imgSrc: "../../img/newSet.png", |
| | | name: "我的余额", |
| | | imgSrc: "../../img/balance-icon.png", |
| | | }, |
| | | |
| | | ], |
| | |
| | | url: "/pages/feedback/feedback", |
| | | }); |
| | | break; |
| | | case "顺风车账户": |
| | | wx.getLocalIPAddress({ |
| | | success: (resIp) => { |
| | | unit.post(app.globalData.Url + "/api/driver/getZLToken", { |
| | | ip: resIp.localip, |
| | | mac: '08:00:20:0A:8C:6D', |
| | | type: '04' |
| | | }) |
| | | .then((res) => { |
| | | console.log('wqeqweqweqw', res); |
| | | if (res.data.code == 200) { |
| | | wx.navigateToMiniProgram({ |
| | | appId: "wx301841f1449ff2e7", |
| | | path: `pages/splash?token=${res.data.data}&appId=3e06da1751ec1626b30f7703a088f298`, |
| | | extraData: { |
| | | foo: "bar", |
| | | }, |
| | | envVersion: "release", |
| | | success(res) { |
| | | // 打开成功 |
| | | }, |
| | | }); |
| | | } else { |
| | | console.log('/////////////////', res); |
| | | wx.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | mask: true |
| | | }) |
| | | } |
| | | // case "顺风车账户": |
| | | // wx.getLocalIPAddress({ |
| | | // success: (resIp) => { |
| | | // unit.post(app.globalData.Url + "/api/driver/getZLToken", { |
| | | // ip: resIp.localip, |
| | | // mac: '08:00:20:0A:8C:6D', |
| | | // type: '04' |
| | | // }) |
| | | // .then((res) => { |
| | | // console.log('wqeqweqweqw', res); |
| | | // if (res.data.code == 200) { |
| | | // wx.navigateToMiniProgram({ |
| | | // appId: "wx301841f1449ff2e7", |
| | | // path: `pages/splash?token=${res.data.data}&appId=3e06da1751ec1626b30f7703a088f298`, |
| | | // extraData: { |
| | | // foo: "bar", |
| | | // }, |
| | | // envVersion: "release", |
| | | // success(res) { |
| | | // // 打开成功 |
| | | // }, |
| | | // }); |
| | | // } else { |
| | | // console.log('/////////////////', res); |
| | | // wx.showToast({ |
| | | // title: res.data.msg, |
| | | // icon: 'none', |
| | | // mask: true |
| | | // }) |
| | | // } |
| | | |
| | | }); |
| | | } |
| | | }) |
| | | break; |
| | | // }); |
| | | // } |
| | | // }) |
| | | // break; |
| | | default: |
| | | } |
| | | }, |
| | |
| | | onShareAppMessage: function (e) { |
| | | if (e.from === "button") {} |
| | | return { |
| | | title: "”约客多“隆重上线,安全规范,价格透明", |
| | | title: "”放心行“隆重上线,安全规范,价格透明", |
| | | imageUrl: "/versionOne/image/share_img.png", |
| | | path: "/pages/home/home", |
| | | success: function (res) { |
| | |
| | | <image src='../../img/back@3x.png' style=""></image> |
| | | </view> |
| | | <view class='nav-title'> |
| | | <text style="height:{{navHeight}}px;line-height:{{navHeight}}px;font-size:30rpx;">约客多</text> |
| | | <text style="height:{{navHeight}}px;line-height:{{navHeight}}px;font-size:30rpx;">放心行</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="from_where from_go"> |
| | | <view class="from__incon2"></view> |
| | | <view class="from_name {{nextCityName!=='您要去哪儿'?'':'go'}}" catchtap="goWhere">{{nextCityName}}</view> |
| | | <view class="from_where_box"> |
| | | <view class="from_name {{nextCityName!=='您要去哪儿'?'':'go'}}" catchtap="goWhere">{{nextCityName}}</view> |
| | | <view class="from_where_fast_btn">快捷叫车</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view style="background:white" class="box"> |
| | |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .red-right{ |
| | | .red-right { |
| | | right: 72rpx !important; |
| | | } |
| | | |
| | |
| | | margin-left: 28.85rpx; |
| | | position: absolute; |
| | | line-height: 70rpx; |
| | | padding:0 33.62rpx; |
| | | padding: 0 33.62rpx; |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | .from_name { |
| | | width: 645rpx; |
| | | flex: 1; |
| | | height: 112rpx; |
| | | border-bottom: 4rpx solid rgba(215, 215, 215, 0.1); |
| | | float: right; |
| | |
| | | text-align: center; |
| | | } |
| | | |
| | | .flex-column{ |
| | | .flex-column { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | |
| | | .checkCell{ |
| | | .checkCell { |
| | | border-bottom: 1rpx solid rgba(0, 0, 0, .1) !important; |
| | | } |
| | | |
| | | /* .showNo{ |
| | | display: none; |
| | | } */ |
| | |
| | | background: rgba(0, 0, 0, 0.5); |
| | | z-index: 1100; |
| | | top: 0; |
| | | } |
| | | |
| | | .new_close_view { |
| | | } |
| | | |
| | | .new_close_view { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100vh; |
| | | background: rgba(0, 0, 0, 0.5); |
| | | z-index: 1100; |
| | | top: 0; |
| | | } |
| | | |
| | | .new_close_content { |
| | | } |
| | | |
| | | .new_close_content { |
| | | width: 615rpx; |
| | | height: 500rpx; |
| | | background: #FFFFFF; |
| | |
| | | flex-direction: column; |
| | | align-items: center; |
| | | padding: 38rpx; |
| | | } |
| | | |
| | | .close_btn_close { |
| | | } |
| | | |
| | | .close_btn_close { |
| | | width: 600rpx; |
| | | height: 412rpx; |
| | | background: white; |
| | |
| | | margin: auto; |
| | | border-radius: 12rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .new_close_closeImg { |
| | | } |
| | | |
| | | .new_close_closeImg { |
| | | width: 32rpx; |
| | | height: 32rpx; |
| | | } |
| | | |
| | | .new_close_img { |
| | | } |
| | | |
| | | .new_close_img { |
| | | width: 134.62rpx; |
| | | height: 134.62rpx; |
| | | margin-bottom: 34rpx; |
| | | } |
| | | |
| | | .new_close_button { |
| | | } |
| | | |
| | | .new_close_button { |
| | | margin-top: 42rpx; |
| | | width: 538rpx; |
| | | height: 96rpx; |
| | | background: var(--themeColor); |
| | | border-radius: 48rpx; |
| | | |
| | | |
| | | font-weight: 500; |
| | | font-size: 31rpx; |
| | | color: #FFFFFF; |
| | | line-height: 96rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .close_title { |
| | | } |
| | | |
| | | .close_title { |
| | | font-size: 36rpx; |
| | | font-family: PingFangSC-Medium, PingFang SC; |
| | | font-weight: 500; |
| | | color: rgba(39, 40, 45, 1); |
| | | padding: 54rpx 0 45rpx 0; |
| | | } |
| | | |
| | | .close_other { |
| | | } |
| | | |
| | | .close_other { |
| | | font-size: 30rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: rgba(102, 102, 102, 1); |
| | | } |
| | | |
| | | .close_button { |
| | | } |
| | | |
| | | .close_button { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | |
| | | |
| | | margin-top: 76rpx; |
| | | } |
| | | |
| | | .close_no { |
| | | } |
| | | |
| | | .close_no { |
| | | width: 260rpx; |
| | | height: 80rpx; |
| | | background: rgba(240, 240, 246, 1); |
| | |
| | | font-weight: 500; |
| | | color: rgba(152, 155, 176, 1); |
| | | line-height: 80rpx; |
| | | } |
| | | |
| | | .close_y { |
| | | } |
| | | |
| | | .close_y { |
| | | width: 260rpx; |
| | | height: 80rpx; |
| | | background: var(--themeColor); |
| | |
| | | font-weight: 500; |
| | | color: rgba(255, 255, 255, 1); |
| | | line-height: 80rpx; |
| | | } |
| | | |
| | | } |
| | | |
| | | .from_where_box { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .from_where_fast_btn { |
| | | margin-right: 33rpx; |
| | | width: 240rpx; |
| | | border-radius: 50rpx; |
| | | background: linear-gradient(0deg, #d33233 0%, #ff8183 100%); |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | line-height: 80rpx; |
| | | text-align: center; |
| | | letter-spacing: 0rpx; |
| | | color: #FFFFFF; |
| | | } |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText":"约客多", |
| | | "navigationBarTitleText":"放心行", |
| | | "enablePullDownRefresh": false |
| | | } |
| | |
| | | <!--阅读协议--> |
| | | <!-- <view class="radio_button"> |
| | | <radio color="rgba(255, 129, 131, 1)" class="radio_style" catchtap="changeRadio" checked="{{checked}}"></radio> |
| | | <view class="radio_text">我已阅读并同意<span class="radio_blue" catchtap="userHelp">《约客多用户服务协议》</span><span class="radio_blue" catchtap="userHelps">《隐私政策》</span> |
| | | <view class="radio_text">我已阅读并同意<span class="radio_blue" catchtap="userHelp">《放心行用户服务协议》</span><span class="radio_blue" catchtap="userHelps">《隐私政策》</span> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | |
| | | <!-- <view class="Pop" wx:if="{{showPop}}"> |
| | | <view class="pop_view"> |
| | | <view class="pop_title">提示</view> |
| | | <view class="pop_center">"约客多"小程序想获取您的微信信息</view> |
| | | <view class="pop_center">"放心行"小程序想获取您的微信信息</view> |
| | | <view class="prp_btn_bottom"> |
| | | <button class="share" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" catchtap="go_share">确认</button> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="radio_button" style="display: flex;align-items: center;"> |
| | | <radio color="rgba(255, 129, 131, 1)" class="radio_style" catchtap="changeRadio" checked="{{checked}}"></radio> |
| | | <view class="radio_text">我已阅读并同意<span class="radio_blue" catchtap="userHelp">《约客多用户服务协议》</span><span class="radio_blue" catchtap="userHelps">《隐私政策》</span> |
| | | <view class="radio_text">我已阅读并同意<span class="radio_blue" catchtap="userHelp">《放心行用户服务协议》</span><span class="radio_blue" catchtap="userHelps">《隐私政策》</span> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="Pop" wx:if="{{showPop}}"> |
| | | <view class="pop_view"> |
| | | <view class="pop_title">提示</view> |
| | | <view class="pop_center">"约客多"小程序想获取您的微信信息</view> |
| | | <view class="pop_center">"放心行"小程序想获取您的微信信息</view> |
| | | <view class="prp_btn_bottom"> |
| | | <button class="share" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" catchtap="go_share">确认</button> |
| | | </view> |
| | |
| | | // 上面地址不管用,下面的地址才用 |
| | | |
| | | // baseURL:"http://221.182.45.100:7894/user" |
| | | baseURL: "https://rideapi.yuekeduo.com.cn/user" |
| | | baseURL: "http://192.168.110.11:5000/user" |
| | | }); |
| | | |
| | | /** |