|
|
@@ -118,28 +118,8 @@ export default {
|
|
|
url: "/pages/selfCenter/with_house",
|
|
|
});
|
|
|
},
|
|
|
- goWithHouse(){
|
|
|
- if (this.isWith == 0)
|
|
|
- {
|
|
|
- this.goHouse();
|
|
|
- return;
|
|
|
- }
|
|
|
- //解除绑定
|
|
|
- let md5Sign = md5(
|
|
|
- "method=" +
|
|
|
- "user" +
|
|
|
- "×tamp=" +
|
|
|
- getApp().globalData.globalTimestamp +
|
|
|
- "&secret=" +
|
|
|
- getApp().globalData.secret
|
|
|
- );
|
|
|
- let url =
|
|
|
- getApp().globalData.shareUrl +
|
|
|
- "api/api.php" +
|
|
|
- "?method=user&action=unband_owner×tamp=" +
|
|
|
- getApp().globalData.globalTimestamp +
|
|
|
- "&sign=" +
|
|
|
- md5Sign;
|
|
|
+ withoutHouse(){
|
|
|
+ let url = getApp().makeApiUrl("user","user","unband_owner");
|
|
|
uni.request({
|
|
|
url: url,
|
|
|
method: "POST",
|
|
|
@@ -167,6 +147,28 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ goWithHouse(){
|
|
|
+ if (this.isWith == 0)
|
|
|
+ {
|
|
|
+ this.goHouse();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let that = this;
|
|
|
+ uni.showModal({
|
|
|
+ title: "确定解除绑定?",
|
|
|
+ success(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ //确定继续后续操作。
|
|
|
+ that.withoutHouse();
|
|
|
+ } else if (res.cancel) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ //解除绑定
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
goDetailFn(index, url) {
|
|
|
let that = this;
|
|
|
if(!that.isAuth){
|