Commit ea35192c by 胡悦

修改

1 parent eb45aed8
......@@ -43,6 +43,7 @@ const domain = {
const pathEnum = {
sso: '/rop-scrm-sso/',
wechant: 'rop-scrm-wechant'
}
module.exports = {
index,
......
import api from './request'
const path = 'scrm.api.wechat.'
module.exports = {
/**根据openId获取用户信息 */
getUserInfo(data) {
return api.post({
method: `${path}auth.userProfile.getUserInfo`,
...data
}, true)
},
}
......@@ -20,6 +20,7 @@ Component({
* 组件的方法列表
*/
methods: {
// 添加微信
addWechat() {
console.log(112, this.data.showWechant)
this.setData({
......@@ -27,6 +28,7 @@ Component({
})
console.log(this.data.showWechant)
},
// 保存名片
addPhone() {
let _this = this,
{
......@@ -53,7 +55,8 @@ Component({
}
})
},
/**授权位置成功 */
/**授权通讯录成功 */
authSuccess() {
this.setData({
flag: true,
......@@ -68,5 +71,11 @@ Component({
flag: true
})
},
/** 拨打电话 */
callPhone() {
wx.makePhoneCall({
phoneNumber: '18925261040',
})
}
}
})
\ No newline at end of file
......@@ -32,7 +32,7 @@
<view class="btn-group">
<view class="phone-btn">
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png"></image>
<view class="phone-text">拨打电话</view>
<view class="phone-text" bindtap="callPhone">拨打电话</view>
</view>
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
<button class="btn-primary btn" open-type="share">分享名片</button>
......
......@@ -12,7 +12,7 @@ module.exports = Behavior({
const curIntroduceIndex = e.currentTarget.dataset.index;
switch(curIntroduceIndex) {
case 3:
wx.$router.go('pages.addTransform');
wx.$router.go('addTransform');
break
default:
this.setData({
......
......@@ -41,7 +41,7 @@
</block>
</view>
<!-- <view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view> -->
<view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
<!-- 服务咨询 -->
<view bindtap="goConsult">
<image mode="widthFix" class="icon-consult" webp src="{{IMGURL}}home/custom.png"></image>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!