Authored by 李奇

配置文件只保留一处

/* eslint-disable */
export default {
"domains": {
"api": "https://api.yoho.cn",
// "api": 'http://api-test2.dev.yohocorp.com',
"service": "https://api.yoho.cn",
"yas": "https://analysis.yohobuy.com/yas_mobile",
"report": "https://app.yoho.cn/collect/v3"
},
"appid": "wx7678b61d1e6702fe",
"payment_code": "45",
"private_key": "b43890b0a296ff3c7b8c260ca763980b",
"jump": {
"brand": "go.brand",
"detail": "go.detail",
"productpool": "go.poollist"
},
"mini_app_type": "29",
"client_type": "miniapp",
"business_line": "minappLuck",
"os_version": "yohobuy:h5",
"app_version": "2.8.3",
"app_build": "1032",
"mini_qr_type": 16
}
\ No newline at end of file
... ... @@ -5,12 +5,12 @@
*
*/
import { GET } from '../../../libs/request';
import config from '../../../config.js';
import {API_HOST} from '../../../libs/config.js';
import regeneratorRuntime from '../../libs/regenerator-runtime/index.js';
export default class BaseService {
constructor() {
this.url = config.domains.service;
this.url = API_HOST;
}
async GET(params, options) {
... ...
import BaseService from './base-service.js';
import config from '../../../config.js';
import {MINI_APP_TYPE} from '../../../libs/config.js';
import regeneratorRuntime from '../../libs/regenerator-runtime/index.js';
const WECHAT_SMALLPROGRAM_ONLOGIN = 'wechat.smallProgram.onLogin';
... ... @@ -16,7 +16,7 @@ export default class LoginService extends BaseService {
return await this.GET({
method: WECHAT_SMALLPROGRAM_ONLOGIN,
jsCode: code,
miniapp_type: config.mini_app_type
miniapp_type: MINI_APP_TYPE
}, {
path: WechatPath
})
... ...
... ... @@ -70,7 +70,7 @@ Component({
show: true,
code: result.data.prizeCode
});
this.triggerEvent('gaincodesuccess', this.properties.actPrizeId);
} else {
this.setData({
error: true,
... ...
... ... @@ -21,7 +21,8 @@ import {formatImageUrl} from '../../utils/util'
import {jumpByUrl} from '../../libs/urlRoute';
import {
yasReport,
YB_PAGE_OPEN_L
YB_PAGE_OPEN_L,
YB_LUCK_DT_JOIN_C
} from '../../libs/yas';
const ACTIVITY = {
... ... @@ -544,6 +545,9 @@ Page(Object.assign({
goList() {
router.go('index');
},
reportSuccess({detail}) {
yasReport(YB_LUCK_DT_JOIN_C, {MAIN_SKN: detail})
},
getUserInfo: function (e) {
var that = this;
... ...
... ... @@ -52,6 +52,7 @@
<view class="action-bar">
<action-bar wx:if="{{isLogin}}" status="{{actionStatus}}" num="{{myPrizeCount}}" share-uid="{{shareUid}}"
act-prize-id="{{actPrizeId}}" bindgetcode="changeActionStatus" bindshare="share"
bindgaincodesuccess="reportSuccess"
></action-bar>
<block wx:else>
... ...