Compare commits

...

5 Commits

Author SHA1 Message Date
Tuzki 0e250d8eaf feat(manifest): 更新微信小程序 appid 并添加启动屏配置- 更新微信小程序 appid 为 wxc2531538ecd3f593- 在 manifest.json 中添加 splashscreen 配置,使用 common 样式 1 month ago
Tuzki f79d4c8346 fix(components/f-login): 更新微信小程序登录配置 8 months ago
Tuzki f1779aaab6 Merge remote-tracking branch '鹿泉/lu_quan_dev' into lu_quan_dev 8 months ago
Tuzki 50b1c70a40 refactor(app): 重构获取 appId 方法 8 months ago
han e8fa5cbdfd fix:添加userID 8 months ago
  1. 5
      components/f-login/f-login.js
  2. 4
      components/f-login/f-login.vue
  3. 6
      ext.json
  4. 7
      manifest.json
  5. 2
      subPageA/components/sy-audio/utils/jweixin.js
  6. 21
      subPageC/Ai/index.vue
  7. 4
      subPageC/bookHomestay/bookHomestay.vue
  8. 4
      subPageC/bookShop/bookShop.vue
  9. 4
      subPageC/bookTicket/bookTicket.vue
  10. 5
      subPageC/order/order.vue
  11. 4
      subPageC/orderHomestay/orderList.vue
  12. 4
      subPageC/orderShop/orderList.vue

@ -6,10 +6,11 @@ import HttpConfig from '@/common/config'
function getPhoneInfo(info, successCallback, errCallback) {
let httpData = {}
// #ifdef MP-WEIXIN
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
// const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : uni.getAccountInfoSync();//创巨圆商户平台管理
const extConfig = uni.getAccountInfoSync().miniProgram;
console.log(extConfig,'获取appiod')
httpData = {
appId: extConfig.app_id,
appId: extConfig.appId,
code: info.code, //小程序code
iv: info.iv, //小程序加密算法的初始向量
encryptedData: info.encryptedData, //包括敏感数据在内的完整用户信息的加密数据

@ -105,8 +105,8 @@ export default {
// token
let phone = res.phone;
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
uni.login({
success: (ras) => {
HttpRequest.post(

@ -1,8 +1,8 @@
{
"extEnable": true,
"extEnable": false,
"extAppid": "wx43f2232676218ce3",
"directCommit": true,
"directCommit": false,
"ext": {
"app_id": "wx43f2232676218ce3"
"appId": "wx43f2232676218ce3"
}
}

@ -50,14 +50,17 @@
/* ios */
"ios" : {},
/* SDK */
"sdkConfigs" : {}
"sdkConfigs" : {},
"splashscreen" : {
"androidStyle" : "common"
}
}
},
/* */
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxdad89d17cba4bf1c",
"appid" : "wxc2531538ecd3f593",
"setting" : {
"urlCheck" : false,
"es6" : true,

File diff suppressed because one or more lines are too long

@ -107,7 +107,7 @@
//
islongPress: false,
timer: null, //
param: {
pageSize: 10,
pageNo: 1,
@ -117,6 +117,7 @@
openid: undefined,
appid: undefined,
},
nowUserId:null
}
},
onUnload() {
@ -150,8 +151,8 @@
userInfo.refreshToken = newRefreshToken;
store.commit('setUserInfo', userInfo)
this.Token = newAccessToken
this.nowUserId = response.data.userId
this.getUserInfo(response.data.userId)
this.connectWs()
})
.catch(error => {
store.commit('setUserInfo', null)
@ -166,7 +167,7 @@
})
});
}
},
created: function() {
const res = uni.getSystemInfoSync();
@ -183,7 +184,8 @@
"identity": this.generateRandomString(8),
"userId": userId
};
console.log(this.querUserInfo)
console.log('querUserInfo',this.querUserInfo)
this.connectWs()
},
// websocket
connectWs() {
@ -252,7 +254,7 @@
//
handlerMessage(data) {
let $this = this
if (Number(data.userId) == Number(this.querUserInfo.userId)) {
if (Number(data.userId) == Number(this.querUserInfo.userId)) {
if (data.identity == this.querUserInfo.identity) {
if (data.context !== null) {
this.list[this.list.length - 1].content += data.context
@ -302,7 +304,8 @@
//
sendMsg() {
const $this = this
this.getUserInfo()
console.log('$this.nowUserId',$this.nowUserId)
this.getUserInfo($this.nowUserId)
this.list.push({
content: this.content,
userType: 'friend',
@ -378,12 +381,12 @@
}
})
},
//
//
longpress() {
const $this = this
this.islongPress = true;
if (this.islongPress == true && this.inputDisabled == false) {
//
//
const _permission = 'scope.record'
uni.getSetting({
success: (res) => {
@ -759,4 +762,4 @@
.loading-dot:nth-child(3) {
animation-delay: 0.4s;
}
</style>
</style>

@ -158,8 +158,8 @@
orderSubmit() {
this.$refs.form.validate().then(res => {
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
var data = {
"hotelId": this.orderInfo.hotelId,

@ -119,8 +119,8 @@
orderSubmit() {
this.$refs.form.validate().then(res => {
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
console.log("|this.formData", this.formData, this.orderInfo)
var data = {

@ -1238,8 +1238,8 @@ export default {
}
// }
const userInfo = uni.getStorageSync("userInfo");
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
const params = {
openid: userInfo.openid,
appid: appId,

@ -354,9 +354,8 @@ export default {
loadData(pageNo) {
let that = this
const userInfo = uni.getStorageSync("userInfo");
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
console.log(uni.getExtConfigSync(), 'extConfigextConfigextConfig')
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
let httpData = {
openid: userInfo.openid,

@ -165,8 +165,8 @@
loadData() {
// TODO: appId openId
const userInfo = uni.getStorageSync("userInfo");
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
this.param.openid = userInfo.openid
this.param.appid = appId

@ -141,8 +141,8 @@ export default {
loadData() {
// TODO: appId openId
const userInfo = uni.getStorageSync("userInfo");
const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
const extConfig = uni.getAccountInfoSync().miniProgram;
let appId = extConfig.appId
this.param.openid = userInfo.openid
this.param.appid = appId
// this.param.openid = "oohzD5b7g4hNA1qJyAwlSA5H4NCY"

Loading…
Cancel
Save