调用后可以跳转到地图页
- uni.openLocation({
- latitude: res.data.data.latitude, //到达的纬度
- longitude: res.data.data.longitude, //到达的经度
- name: res.data.data.address, // 到达的名字
- scale: 12, // 缩放倍数
- success() { // 成功回调
- console.log('success')
- }
- })
这个可以用在 联系售后 或联系商家/平台的时候 可以用到
- uni.makePhoneCall({
- phoneNumber: res.data.data.mobile, // 电话号码
- // 成功回调
- success: (res) => {
- console.log('调用成功!')
- },
- // 失败回调
- fail: (res) => {
- console.log('调用失败!')
- }
- });
- uni.setClipboardData({
- data: '点击并复制这句话',
- success: function(res) {
- wx.showToast({
- title: '复制成功',
- icon: "none",
- mask: "true"
- })
- }
- })
未完待续...