Compare commits

..

No commits in common. "de5e1be49f3e43b202de725e21f1b0f60fc8a33e" and "27c06ebf78ca3758ad26f559f502ee5a9152abd7" have entirely different histories.

6 changed files with 90 additions and 92 deletions

75
App.vue
View File

@ -95,42 +95,43 @@ export default {
}, },
methods: { methods: {
onRequestPermissionListener() { onRequestPermissionListener() {
// this.permissionListener = uni.createRequestPermissionListener(); this.permissionListener = uni.createRequestPermissionListener();
// this.permissionListener.onRequest(async (e) => { this.permissionListener.onRequest(async (e) => {
// console.log(e); console.log(e);
// if (this.flag) { if (this.flag) {
// return; return;
// } }
// this.flag = true; this.flag = true;
// console.log('-1', e); console.log('权限-1', e);
// var item = e[0]; var item = e[0];
// const { isSuc, msg } = await requestPermissions({ const { isSuc, msg } = await requestPermissions({
// title: PermissionTips[item].title, // title: PermissionTips[item].title, //
// content: PermissionTips[item].content, // content: PermissionTips[item].content, //
// permissionID: item // ID permissionID: item // ID
// }); });
// console.log(msg); console.log(msg);
// if (!isSuc) { if (!isSuc) {
// if (msg != 'close') { if (msg != 'close') {
// this.popupView = showModal({ this.popupView = showModal({
// title: PermissionTips[item].title, // title: PermissionTips[item].title, //
// content: PermissionTips[item].content, // content: PermissionTips[item].content, //
// permissionID: item // ID permissionID: item // ID
// }); });
// } else { } else {
// console.log(''); console.log('用户永久拒绝');
// } }
// } }
// }); });
// this.permissionListener.onComplete((e) => { this.permissionListener.onComplete((e) => {
// console.log('-2', e); console.log('权限-2', e);
// if (this.popupView) { if (this.popupView) {
// this.popupView.close(); this.popupView.close();
// } }
// setTimeout(() => { setTimeout(() => {
// this.flag = false; this.flag = false;
// }, 5000); }, 5000);
// }); });
// #ifndef APP-HARMONY // #ifndef APP-HARMONY
// //
// APP使APIapp.vue // APP使APIapp.vue
@ -174,7 +175,9 @@ export default {
// }); // });
// } // }
// #endif // #endif
// { isSuc : true} , // { isSuc : true} ,
// if (!isSuc) { // if (!isSuc) {
// return false // return false
// } // }

View File

@ -1005,7 +1005,7 @@ export default {
tozuozhe(userId) { tozuozhe(userId) {
var myInfo = storage.getVlogUserInfo(); var myInfo = storage.getVlogUserInfo();
var myId = ''; var myId = '';
if (myInfo != null) { if (myId != null) {
myId = myInfo.id; myId = myInfo.id;
} }
if (userId == myId) { if (userId == myId) {

View File

@ -869,12 +869,7 @@ export default {
if (myUserInfo != null) { if (myUserInfo != null) {
userId = myUserInfo.id; userId = myUserInfo.id;
} }
let cityCode = storage.getCityCode(); const res = await vlogList(this.page, 10, userId);
if (cityCode == '') {
this.noData = '获取位置信息失败';
return;
}
const res = await vlogList(this.page, 10, userId, cityCode);
console.log(res); console.log(res);
if (res.data.status == 200) { if (res.data.status == 200) {
var msg = res.data.data.rows; var msg = res.data.data.rows;
@ -1016,7 +1011,7 @@ export default {
tozuozhe(userId) { tozuozhe(userId) {
var myInfo = storage.getVlogUserInfo(); var myInfo = storage.getVlogUserInfo();
var myId = ''; var myId = '';
if (myInfo != null) { if (myId != null) {
myId = myInfo.id; myId = myInfo.id;
} }
if (userId == myId) { if (userId == myId) {

View File

@ -25,7 +25,7 @@ const dev = {
const prod = { const prod = {
// common: "http://192.168.1.40:8890", // common: "http://192.168.1.40:8890",
// buyer: "http://192.168.1.40:8888", // buyer: "http://192.168.1.40:8888",
// vlog: "http://192.168.1.7:8099", // vlog: "http://192.168.1.40:8099",
// web: "http://192.168.1.40:8099", // web: "http://192.168.1.40:8099",
// seller: "http://192.168.1.40:8889", // seller: "http://192.168.1.40:8889",

View File

@ -2,14 +2,14 @@
"name": "无终街", "name": "无终街",
"appid": "__UNI__6DB512D", "appid": "__UNI__6DB512D",
"description": "admin", "description": "admin",
"versionName": "4.0.1", "versionName": "4.0.0",
"versionCode": 406, "versionCode": 405,
"transformPx": false, "transformPx": false,
"sassImplementationName": "node-sass", "sassImplementationName": "node-sass",
"app-plus": { "app-plus": {
"android": { "android": {
"versionCode": 406, // Android "versionCode": 405, // Android
"versionName": "4.0.1" // "versionName": "4.0.0" //
}, },
"compatible": { "compatible": {
"ignoreVersion": true //trueHBuilderX1.9.0 "ignoreVersion": true //trueHBuilderX1.9.0

View File

@ -6,8 +6,8 @@
</template> </template>
<script> <script>
// import QRCode from 'qrcodejs2'; import QRCode from 'qrcodejs2';
import config from '@/config/config.js'; import config from "@/config/config.js";
export default { export default {
data() { data() {
@ -16,7 +16,7 @@ export default {
}; };
}, },
onReady() { onReady() {
// this.generateQRCode(); this.generateQRCode();
}, },
methods: { methods: {
generateQRCode() { generateQRCode() {
@ -25,8 +25,8 @@ export default {
text: config.downloadLink, text: config.downloadLink,
width: 200, width: 200,
height: 200, height: 200,
colorDark: '#000000', colorDark : "#000000",
colorLight: '#ffffff', colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H correctLevel : QRCode.CorrectLevel.H
}); });
} }