|
@@ -97,6 +97,11 @@
|
|
|
<editor placeholder="请输入个人爱好" v-model="hobbies" id="editor" @ready="onEditorReadyH" @input="bindHobbies" class="textarea hobbies"></editor>
|
|
<editor placeholder="请输入个人爱好" v-model="hobbies" id="editor" @ready="onEditorReadyH" @input="bindHobbies" class="textarea hobbies"></editor>
|
|
|
</view>
|
|
</view>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
|
|
+ <view class="agree dflex" @click="agree" v-if="config.CONFIG_PRIVACY_AGREEMENT">
|
|
|
|
|
+ <image :src="'../static/images/' + (isAgree ? 'gou1_h.png' : 'gou1.png')" class="gou"></image>
|
|
|
|
|
+ 已阅读并同意
|
|
|
|
|
+ <text @click.stop="jumpUrl('/pages/web/web?url='+it.url)" v-for="it,idx in JSON.parse(config.CONFIG_PRIVACY_AGREEMENT)"><block v-if="idx!=0">、</block>{{it.name}}</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="height: 200rpx;"></view>
|
|
<view style="height: 200rpx;"></view>
|
|
|
<button class="submit" @tap="confirm">确定</button>
|
|
<button class="submit" @tap="confirm">确定</button>
|
|
@@ -125,21 +130,30 @@
|
|
|
cityCode: '',
|
|
cityCode: '',
|
|
|
morCity: [],
|
|
morCity: [],
|
|
|
brief: '',
|
|
brief: '',
|
|
|
- hobbies: ''
|
|
|
|
|
|
|
+ hobbies: '',
|
|
|
|
|
+ isAgree:false,
|
|
|
|
|
+ config:{}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
components: {},
|
|
components: {},
|
|
|
props: {},
|
|
props: {},
|
|
|
- onLoad: function() {
|
|
|
|
|
|
|
+ onLoad:async function() {
|
|
|
let _ts = this;
|
|
let _ts = this;
|
|
|
QQMapWX.initMap('3OJBZ-EQEKO-PFNWC-SHHEK-CGWAJ-KRBF7');
|
|
QQMapWX.initMap('3OJBZ-EQEKO-PFNWC-SHHEK-CGWAJ-KRBF7');
|
|
|
app.globalData.getCheckSessoin(json => {
|
|
app.globalData.getCheckSessoin(json => {
|
|
|
_ts.sessionKey = json.session_key;
|
|
_ts.sessionKey = json.session_key;
|
|
|
});
|
|
});
|
|
|
this.getInfo();
|
|
this.getInfo();
|
|
|
|
|
+ this.config = await req.getsysConfig()
|
|
|
|
|
+ if(!this.config.CONFIG_PRIVACY_AGREEMENT) this.isAgree = true
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ jumpUrl(url){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:url
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getInfo() {
|
|
getInfo() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let isShowLoading = false;
|
|
let isShowLoading = false;
|
|
@@ -276,6 +290,7 @@
|
|
|
// if(!d.birthday) return req.msg("请选择出生日期");
|
|
// if(!d.birthday) return req.msg("请选择出生日期");
|
|
|
// if(!d.district) return req.msg("请选择地区");
|
|
// if(!d.district) return req.msg("请选择地区");
|
|
|
// if(!d.address) return req.msg("请填写详细地址");
|
|
// if(!d.address) return req.msg("请填写详细地址");
|
|
|
|
|
+ if(!this.isAgree) return req.msg("请阅读并同意以下协议");
|
|
|
let isShowLoading = false;
|
|
let isShowLoading = false;
|
|
|
if (!isShowLoading) {
|
|
if (!isShowLoading) {
|
|
|
req.loadIng('保存中');
|
|
req.loadIng('保存中');
|
|
@@ -334,7 +349,9 @@
|
|
|
});
|
|
});
|
|
|
}).exec()
|
|
}).exec()
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ agree(){
|
|
|
|
|
+ this.isAgree = !this.isAgree
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|