整改跳转

main
123456 2 months ago
parent d3656eb65d
commit 1f94b45e21
  1. 78
      pages/index/index.vue
  2. 18
      pages/login/avatar.vue
  3. 4
      pages/login/index.vue
  4. 15
      pages/login/mima.vue
  5. 96
      pages/peiwan/index.vue
  6. 78
      pages/users/chat/index.vue
  7. 6
      unpackage/dist/build/app-plus/app-service.js
  8. 6
      unpackage/dist/build/app-plus/app-view.js
  9. 2
      unpackage/dist/build/app-plus/manifest.json
  10. 2
      unpackage/dist/build/app-plus/pages/pipei/shipin/detail.js
  11. 2
      unpackage/dist/build/app-plus/pages/users/renzheng/camera.js
  12. 2836
      unpackage/dist/dev/app-plus/app-service.js
  13. 3868
      unpackage/dist/dev/app-plus/app-view.js

@ -3,8 +3,11 @@
<view class="home-navbar">
<u-navbar :is-back="false">
<view class="slot-wrap">
<view class="address" @click="openPage(5)">
<view class="address" v-if="city" @click="openPage(5)">
<image src="@/static/dingwei.png"></image>{{city}}
</view>
<view class="address" v-else @click="getLocation()">
<image src="@/static/dingwei.png"></image>获取定位
</view>
<view class="search" @click="openPage(4)">
<image src="@/static/icon-search.png"></image>
@ -69,6 +72,13 @@
<image src="@/static/empty.png"></image>
<view class="txt">暂无数据</view>
</view>
</view>
<view style="padding: 250rpx 0 0;">
<u-empty v-if="!city" text="请开启定位权限" mode="data">
<view slot="bottom" style="margin-top: 30rpx;">
<u-button @click="getLocation()">获取定位</u-button>
</view>
</u-empty>
</view>
<u-popup v-model="show" mode="top" :mask-close-able='false' :zIndex="5">
<view class="permissions_box">
@ -110,6 +120,9 @@
const that = this;
if(uni.getStorageSync("userInfo").id){
uni.$emit("openSocket");
}
if(!that.city){
return ;
}
setTimeout(()=>{
if(that.current == 0){
@ -130,33 +143,7 @@
uni.stopPullDownRefresh();
},2000)
},
onLoad() {
const that = this;
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
'android.permission.ACCESS_FINE_LOCATION',
granted => {
if (granted.checkResult==-1){
that.show = true
that.getLocation();
}else{
that.show=false
// uView"-JS"uniuni.navigateTo
that.getLocation();
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
that.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION')
return ;
}else{
that.getLocation();
}
},
onLoad() {},
onReady() {
const that = this;
uni.$on("clickTap", res=>{
@ -216,7 +203,34 @@
}
}
},
methods: {
methods: {
getLocation() {
const that = this;
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
'android.permission.ACCESS_FINE_LOCATION',
granted => {
if (granted.checkResult==-1){
that.show = true
uni.removeStorageSync("jingweiInfo")
// that.getLocation();
}else{
that.show=false
// uView"-JS"uniuni.navigateTo
that.getLocation();
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
that.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION')
return ;
}else{
that.getLocation();
}
},
//
async trackUpload(res,type){
const {code, data,} = await this.$api.trackUpload({
@ -395,7 +409,11 @@
})
},
openPage(index,id){
const that = this;
const that = this;
if(!that.city){
that.getLocation();
return ;
}
if(index == 1){
console.log(this.userInfo.realnameFlag)
if(this.userInfo.realnameFlag == 0 || this.userInfo.faceFlag == 0 || this.userInfo.phoneFlag == 0){

@ -54,9 +54,7 @@
let userInfo = uni.getStorageSync("userInfo");
userInfo.img = url
uni.setStorageSync("userInfo", userInfo);
that.avatar = url;
console.log(path)
}else{
uni.showToast({
icon: "error",
@ -165,14 +163,14 @@
})
},
async toNext() {
if(!this.avatar){
uni.showToast({
icon: "none",
position: "bottom",
title: "请上传头像"
})
return ;
}
// if(!this.avatar){
// uni.showToast({
// icon: "none",
// position: "bottom",
// title: ""
// })
// return ;
// }
const { code, data, mssg } = await this.$api.registerEditUser({
id: uni.getStorageSync("userInfo").id,
phone: uni.getStorageSync("userInfo").account,

@ -21,7 +21,9 @@
<image src="@/static/wx.png" @click="wxLogin()"></image>
</view>
<view class="c">
<image @click="clickCheck()" v-if="isCheck" src="@/static/icon-select.png"></image><image @click="clickCheck()" v-else src="@/static/icon-select-on.png"></image>我已阅读并同意<text @click="openPages(1)">《APP用户协议》</text><text@click="openPages(2)">APP隐私条款</text>
<image @click="clickCheck()" v-if="isCheck" src="@/static/icon-select.png"></image>
<image @click="clickCheck()" v-else src="@/static/icon-select-on.png"></image>
我已阅读并同意<text @click="openPages(1)">《APP用户协议》</text><text@click="openPages(2)">APP隐私条款</text>
</view>
</view>
</view>

@ -25,7 +25,9 @@
<image src="@/static/wx.png" @click="wxLogin()"></image>
</view>
<view class="c">
<image @click="clickCheck()" v-if="isCheck" src="@/static/icon-select.png"></image><image @click="clickCheck()" v-else src="@/static/icon-select-on.png"></image>我已阅读并同意<text>APP用户协议</text><text>APP隐私条款</text>
<image @click="clickCheck()" v-if="isCheck" src="@/static/icon-select.png"></image>
<image @click="clickCheck()" v-else src="@/static/icon-select-on.png"></image>
我已阅读并同意<text @click="openPages(1)">《APP用户协议》</text><text@click="openPages(2)">APP隐私条款</text>
</view>
</view>
</view>
@ -53,6 +55,17 @@
this.getDictDataByType();
},
methods: {
openPages(index) {
if(index == 1){
uni.navigateTo({
url: "/pages/users/about/index?type=CONFIG_USER_AGREEMENT"
})
}else{
uni.navigateTo({
url: "/pages/users/about/index?type=CONFIG_PRIVACY_POLICY"
})
}
},
async getDictDataByType() {
const { code, data } = await this.$api.getConfigData({dictType:'CONFIG_LOGIN_SWITCH'});
if(code == 200){

@ -3,8 +3,11 @@
<view class="home-navbar">
<u-navbar :is-back="false">
<view class="slot-wrap">
<view class="address" @click="openPage(2)">
<view class="address" v-if="city" @click="openPage(2)">
<image src="@/static/dingwei.png"></image>{{city}}
</view>
<view class="address" v-else @click="getLocation()">
<image src="@/static/dingwei.png"></image>获取定位
</view>
<view class="search" @click="openPage(3)">
<image src="@/static/icon-search.png"></image>
@ -39,10 +42,17 @@
<view class="empty" v-if="total == 0 ">
<image src="@/static/empty.png"></image>
<view class="txt">暂无数据</view>
</view>
<view style="padding: 250rpx 0 0;">
<u-empty v-if="!city" text="请开启定位权限" mode="data">
<view slot="bottom" style="margin-top: 30rpx;">
<u-button @click="getLocation()">获取定位</u-button>
</view>
</u-empty>
</view>
<unverified :isPopup="isPopup" />
<u-popup v-model="show" mode="top" :mask-close-able='false' :zIndex="5">
<view class="permissions_box">
<view class="permissions_box" :style="{'padding-top': (statusBarHeight+64)+'px'}">
当您使用APP时应用程序可以提供基于位置的服务定位导航附近搜索等功能
</view>
</u-popup>
@ -51,7 +61,9 @@
</view>
</template>
<script>
<script>
const systemInfoSync = uni.getSystemInfoSync()
import permision from "@/js_sdk/wa-permission/permission.js"
export default {
data() {
return {
@ -68,7 +80,8 @@
show: false,
total: 1,
sellerUserList: [],
userInfo: {}
userInfo: {},
statusBarHeight: 0
}
},
onPullDownRefresh() {
@ -80,42 +93,10 @@
uni.stopPullDownRefresh();
},2000)
},
onLoad() {
const that = this;
that.city = uni.getStorageSync("jingweiInfo")?uni.getStorageSync("jingweiInfo").formatted:""
if(!that.city){
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
'android.permission.ACCESS_FINE_LOCATION',
granted => {
if (granted.checkResult==-1){
that.show=true
that.getLocation();
}else{
that.show=false
// uView"-JS"uniuni.navigateTo
that.getLocation();
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
that.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION')
return ;
}else{
that.getLocation();
}
}else{
that.getList();
that.getsellerUserList();
}
},
onLoad() {},
onShow() {
if(uni.getStorageSync("userInfo").id){
that.getUserInfo();
this.getUserInfo();
}
},
onReady() {
@ -148,6 +129,39 @@
}, 1000);
},
methods: {
getLocation() {
const that = this;
that.statusBarHeight = systemInfoSync.statusBarHeight;
that.city = uni.getStorageSync("jingweiInfo")?uni.getStorageSync("jingweiInfo").formatted:""
if(!that.city){
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
'android.permission.ACCESS_FINE_LOCATION',
granted => {
if (granted.checkResult==-1){
that.show=true
that.getLocation();
}else{
that.show=false
// uView"-JS"uniuni.navigateTo
that.getLocation();
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
that.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION')
return ;
}else{
that.getLocation();
}
}else{
that.getList();
that.getsellerUserList();
}
},
//
trackUpload(res){
this.$api.trackUpload({
@ -262,7 +276,11 @@
this.sellerUserList = this.arrayUnique([...this.sellerUserList,...data.list],'id')
}
},
openPage(index,id){
openPage(index,id){
if(!that.city){
that.getLocation();
return ;
}
if(index == 1){
uni.navigateTo({
url: "/pages/peiwan/detail?id="+id

@ -125,10 +125,10 @@
</view>
</view>
<view class="b" v-if="isOpen">
<view class="dt" @click="uploadImg()">
<view class="dt" @click="chooseAvatar(1)">
<image src="@/static/chat-zhaopian.png"></image>
</view>
<view class="dt" @click="uploadVideo()">
<view class="dt" @click="chooseAvatar(2)">
<image src="@/static/chat-xiangji.png"></image>
</view>
<view class="dt" v-if="userInfo.operrole == 0" @click="openShiping()">
@ -143,8 +143,11 @@
</view>
</view>
<u-popup v-model="show" mode="top" :mask-close-able='false' :zIndex="5">
<view class="permissions_box">
<view class="permissions_box" :style="{'padding-top': (statusBarHeight+64)+'px'}" v-if="showType == 2">
当您使用APP时为了使用录音的功能我们需要申请麦克风权限
</view>
<view class="permissions_box" :style="{'padding-top': (statusBarHeight+64)+'px'}" v-if="showType == 1">
当您使用APP时为了提供图片/视频上传的功能我们需要申请相机/存储权限
</view>
</u-popup>
<u-popup v-model="show1" mode="bottom" :mask-close-able='false'>
@ -197,6 +200,7 @@
export default {
data() {
return {
showType: 1,//1xiangce 2
isSvga: false,
canvasId:'myCanvas',
svgaSrcList: [],
@ -533,9 +537,11 @@
'android.permission.RECORD_AUDIO',
granted => {
if (granted.checkResult==-1){
that.show=true
that.show=true
that.showType = 2
}else{
that.show=false
that.show=false
that.showType = 1
that.toLuyin();
}
},
@ -573,6 +579,21 @@
}
}
})
},
recorderAuthModal1: function () {
const that = this;
uni.showModal({
title: '温馨提示',
content: '为了提供图片/视频上传的功能,我们需要申请相机/存储权限,请您确认授权,否则无法使用该功能~',
cancelText: '关闭',
confirmText: '去授权',
success(res) {
that.show=false
if (res.confirm) {
permision.gotoAppPermissionSetting()
}
}
})
},
async requestAndroidPermission(permisionID) {
const that = this;
@ -667,6 +688,53 @@
console.log("fail",err)
}
});
},
//
chooseAvatar(index){
const that = this;
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
'android.permission.WRITE_EXTERNAL_STORAGE',
granted => {
if (granted.checkResult==-1){
that.show=true
that.showType = 1
}else{
that.show=false
that.showType = 1;
if(index == 1){
that.uploadImg();
}else{
that.uploadVideo();
}
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
that.requestAndroidPermission1('android.permission.WRITE_EXTERNAL_STORAGE',index)
return ;
}
if(index == 1){
that.uploadImg();
}else{
that.uploadVideo();
}
},
async requestAndroidPermission1(permisionID,index) {
const that = this;
var result = await permision.requestAndroidPermission(permisionID);
if(result != 1){
that.recorderAuthModal1();
}else{
if(index == 1){
that.uploadImg();
}else{
that.uploadVideo();
}
}
},
//
uploadImg() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save