|
@@ -137,57 +137,18 @@ export default {
|
|
|
this.show = true
|
|
|
}
|
|
|
},
|
|
|
- handleGetPointsConfig(type) {
|
|
|
- // if(this.isLogin === 'loginDenied') return
|
|
|
- kipGetPointsConfig().then(resp => {
|
|
|
- const result = resp;
|
|
|
- // codes,wxAuth,aliAuth
|
|
|
- console.log(111222, resp)
|
|
|
- this.pointsConfig = result
|
|
|
- if (result) {
|
|
|
- if (result && result.codes) {
|
|
|
- // codes,wxAuth,aliAuth
|
|
|
- this.pointsConfig = result
|
|
|
- console.log(111)
|
|
|
- if (!this.pointsConfig.wxAuth && this.pointsConfig.codes.indexOf('wxpay') != -1) {
|
|
|
- console.log(222)
|
|
|
- this.checkShowFlag()
|
|
|
- }
|
|
|
- } else {
|
|
|
- // this.$store.commit('setPointsModalFlag', false);
|
|
|
- if (result.code && result.code === '300000') {
|
|
|
- // this.checkoutLogin()
|
|
|
- } else {
|
|
|
- // console.log(222222)
|
|
|
- // 非南昌办公楼展示自助积分功能接口请求出错
|
|
|
- if (this.$store.state?.lbsId !== '8a84834088f11119018949444636000c' && this.$store.state?.lbsId !== '8a88817a8a629b5f018a838a0f6e001f') {
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- mask: true,
|
|
|
- duration: 2000,
|
|
|
- title: result.errorMessage || result.message || '出错了,请稍后再试'
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- // this.$store.commit('setPointsModalFlag', false);
|
|
|
- if (resp.code && resp.code === '300000') {
|
|
|
- // this.checkoutLogin()
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- mask: true,
|
|
|
- duration: 2000,
|
|
|
- title: resp.message
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }).catch(e => {
|
|
|
- // this.$store.commit('setPointsModalFlag', false);
|
|
|
- })
|
|
|
+ async handleGetPointsConfig() {
|
|
|
+ try {
|
|
|
+ const result = await kipGetPointsConfig()
|
|
|
+ if (result && result.codes) {
|
|
|
+ this.pointsConfig = result
|
|
|
+ if (!this.pointsConfig.wxAuth && this.pointsConfig.codes.indexOf('wxpay') != -1) {
|
|
|
+ this.checkShowFlag()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (err) {
|
|
|
+ console.log(err)
|
|
|
+ }
|
|
|
},
|
|
|
async toWxPointsAuth(type) {
|
|
|
if (!type) {
|