WIN-20230912WHV\Administrator 1 жил өмнө
parent
commit
c236275455

+ 3 - 3
manifest.json

@@ -1,5 +1,5 @@
 {
-    "name" : "大连中山万汇",
+    "name" : "万汇融通云",
     "appid" : "__UNI__E870E93",
     "description" : "",
     "versionName" : "1.0.13",
@@ -8,7 +8,7 @@
     /* 5+App特有相关 */
     "app-plus" : {
         "usingComponents" : true,
-        "nvueStyleCompiler" : "uni-app",
+        "nvueStyleCompiler" : "万汇融通云",
         "compilerVersion" : 3,
         "splashscreen" : {
             "alwaysShowBeforeRender" : true,
@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxe041e2fba8e6599f",
+        "appid" : "wx26b6136cd5860186",
         "setting" : {
             "urlCheck" : false,
             "minified" : true

+ 1 - 1
package-lock.json

@@ -1,5 +1,5 @@
 {
-  "name": "wh-wap",
+  "name": "wh-new-xcx",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {

+ 3 - 32
pages/index/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="box-data" @click="chooseMessageFile">
+	<view class="box-data" >
     测试环境开始
 	</view>
 
@@ -7,9 +7,6 @@
 <script>
 
 
-	import tools from "@/service/tools";
-  import jWeixin from "wecomjsdk"
-  import wxJs from "jweixin-module"
   export default {
 		components: {
 
@@ -25,36 +22,10 @@
 		},
 
 		mounted() {
-      tools.wxInitialize(['chooseImage'])
-      tools.wxAgentInitialize(['chooseMessageFile','invoke'])
+
 		},
 		methods: {
-      chooseMessageFile(){
-        console.log('chooseMessageFile:事件开始触发')
-        wxJs.chooseImage({
-          count: 1, // 默认9
-          sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
-          sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
-          defaultCameraMode: "batch", //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
-          isSaveToAlbum: 1, //整型值,0表示拍照时不保存到系统相册,1表示自动保存,默认值是1
-          success: function (res) {
-            let localIds = res.localIds; // 返回选定照片的本地ID列表,
-            console.log(localIds)
-            // andriod中localId可以作为img标签的src属性显示图片;
-            // iOS应当使用 getLocalImgData 获取图片base64数据,从而用于img标签的显示(在img标签内使用 wx.chooseImage 的 localid 显示可能会不成功)
-          }
-        });
-        // jWeixin.invoke('chooseMessageFile', {
-        //   count: 10,
-        //   type: 'image',
-        // }, function(res) {
-        //   console.log(res)
-        //   // 这里是回调函数
-        //   if (res.err_msg == "chooseMessageFile:ok"){
-        //     const tempFiles = res.tempFiles
-        //   }
-        // });
-      }
+
 
 		},
 	}

+ 1 - 1
service/router.js

@@ -28,7 +28,7 @@ router.beforeEach((to, from, next) => {
     console.log('userToken:'+userToken)
 
     if(whiteList.indexOf(to.path)<0 && !userToken){
-        tools.wxLogin()
+        next('/pages/login/index');
     }else {
         next();
     }

+ 2 - 80
service/tools.js

@@ -1,9 +1,8 @@
-import wxJs from "jweixin-module"
-import jWeixin from "wecomjsdk"
+
 import {
     Base64
 } from '@/js_sdk/js-base64/base64';
-import {getWxJsSign} from "@/api/weChat";
+
 
 let tools = {}
 /**
@@ -233,84 +232,7 @@ tools.setLoginData = function (data) {
 }
 
 
-/**
- * 微信JSDK授权
- * @param jsApiList
- * @returns {Promise<*>}
- */
-tools.wxInitialize = async function (jsApiList) {
-
-    return await getWxJsSign({ 'url': window.location.href,'type':1 }).then((ret) => {
-        if (ret.code === 1) {
-            wxJs.config({
-                beta: true,// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
-                debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
-                appId: ret.data.appId, // 必填,企业微信的corpID,必须是本企业的corpID,不允许跨企业使用
-                timestamp: ret.data.timestamp * 1, // 必填,生成签名的时间戳
-                nonceStr: ret.data.noncestr, // 必填,生成签名的随机串
-                signature: ret.data.signature,// 必填,签名,见 附录-JS-SDK使用权限签名算法
-                jsApiList: jsApiList,// 必填,需要使用的JS接口列表
-                success: function(res) {
-                    console.log(res)
-                    console.log('config:---------------OK')
-                    tools.success('成功')
-                },
-                fail: function(res) {
-                    console.log('config-error')
-                    console.log(res)
-                }
-            });
-            return true;
-        } else {
-            return false;
-        }
-    })
-}
 
-/**
- * 企业微信信息授权
- * @param jsApiList
- * @returns {Promise<unknown>}
- */
-tools.wxAgentInitialize=async function (jsApiList){
-
-    return await getWxJsSign({ 'url': window.location.href ,'type':2}).then((ret) => {
-        if (ret.code === 1) {
-            jWeixin.agentConfig({
-                corpid: ret.data.appId, // 必填,企业微信的corpID,必须是本企业的corpID,不允许跨企业使用
-                agentid: ret.data.agentid, // 必填,企业微信的应用id (e.g. 1000247)
-                timestamp: ret.data.timestamp * 1, // 必填,生成签名的时间戳
-                nonceStr: ret.data.noncestr, // 必填,生成签名的随机串
-                signature: ret.data.signature,// 必填,签名,见 附录-JS-SDK使用权限签名算法
-                jsApiList: jsApiList,// 必填,需要使用的JS接口列表
-                success: function(res) {
-                    console.log('agentConfig:---------------OK')
-                    console.log(res)
-
-                },
-                fail: function(res) {
-                    console.log('agentConfig-error')
-                    console.log(res)
-                    if(res.errMsg.indexOf('function not exist') > -1){
-                        alert('版本过低请升级')
-                    }
-                }
-
-            });
-
-            return true;
-        } else {
-            return false;
-        }
-    })
-}
-
-tools.wxLogin = function () {
-    console.log(Base64.encode('aaa'));
-    // 微信浏览器
-    let url = encodeURIComponent(window.location.href);
-    window.location.href = `https://test-api.wealfavor.cn/api/weChat/wx?redirect_url=${Base64.encode(url)}`
-}
 
 
 export default tools

BIN
static/img/login/login-bg.png


BIN
static/img/logo.png


BIN
static/img/tabBar/home-default.png


BIN
static/img/tabBar/home-select.png


BIN
static/img/tabBar/loan-default.png


BIN
static/img/tabBar/loan-select.png


BIN
static/img/tabBar/statistics-default.png


BIN
static/img/tabBar/statistics-select.png


BIN
static/img/tabBar/task-default.png


BIN
static/img/tabBar/task-select.png