|
@@ -272,7 +272,7 @@
|
|
|
}
|
|
|
if (opthios.userId) {
|
|
|
console.log(opthios);
|
|
|
- console.log('opthios',opthios.userId);
|
|
|
+ console.log('opthios', opthios.userId);
|
|
|
uni.setStorageSync('shareUid', opthios.userId != 'undefined' ? opthios.userId : null)
|
|
|
if (opthios.userId === undefined || opthios.userId === 'undefined') {
|
|
|
uni.getSystemInfo({
|
|
@@ -360,17 +360,28 @@
|
|
|
exChange() {
|
|
|
//弹出层打开
|
|
|
// this.popupShow = true
|
|
|
- uni.requestSubscribeMessage({
|
|
|
- tmplIds: ['3y_My-yRmqmGd3-f-vAwNaK4LQeehzXBSNDi_5wcnFI',
|
|
|
- 'FGcPOV1j9ApESr3VUlWjFr6E1vF4X_h0LLN82T2CLL0',
|
|
|
- '92xxL8XTRPLROyNUtmN04OT0kyq4iwSCH3sz-j6zbZs'
|
|
|
- ],
|
|
|
- success(res) {}
|
|
|
- })
|
|
|
+ if (appId == 1) {
|
|
|
+ //微信盲票小程序
|
|
|
+ uni.requestSubscribeMessage({
|
|
|
+ tmplIds: ['9nEWOqAiu9VujgFyQT0jeGI2xTNHm9cbJB8d7cY_dVg',
|
|
|
+ 'aRcsZ69DlAdXKml7ciXMFIX2BJFyXpiytI2sQyk4Dmw',
|
|
|
+ ],
|
|
|
+ success(res) {}
|
|
|
+ })
|
|
|
+ }else if (appId == 2) {
|
|
|
+ //微信码上快购小程序
|
|
|
+ uni.requestSubscribeMessage({
|
|
|
+ tmplIds: ['b2mMyGHeNQ03D3CZl3iUkDxY0F94ytRAUWgoCKq2Nik',
|
|
|
+ 'bEdEYrjbE6r0647j8o9bgWqSrIqcRJLmaiqqxYkg1-Y',
|
|
|
+ ],
|
|
|
+ success(res) {}
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
//立即参与抽奖
|
|
|
exChangeCode() {
|
|
|
- $http.post(`/api/v1/mp/user/marketing/generateCode/${this.id}`, {}).then(res => {
|
|
|
+ $http.post(`/api/v1/mp/user/marketing/generateCode/${this.id}`, { appSource: appId }).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
this.getDetail()
|
|
|
setTimeout(() => {
|
|
@@ -396,7 +407,9 @@
|
|
|
},
|
|
|
|
|
|
getBaseInfo() {
|
|
|
- $http.post('/api/v1/mp/user/getLoginUserinfo', { appSource: appId }).then(res => {
|
|
|
+ $http.post('/api/v1/mp/user/getLoginUserinfo', {
|
|
|
+ appSource: appId
|
|
|
+ }).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
this.userInfo = res.data
|