Commit 61d6bc60 authored by 罗超's avatar 罗超

修改样式

parent 0921e6af
......@@ -387,10 +387,11 @@
onLoad(options){
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId ? uni.getStorageSync("mall_UserInfo").MallBaseId : 1;
this.action = this.host2 + '/api/File/UploadTencent?MallBaseId=' + MallBaseId
this.mainColor = this.$uiConfig.mainColor;
},
created() {
this.mainColor = this.$uiConfig.mainColor;
this.GetProjectTypeEnumList()//载体性质
this.getbrandList()
this.model.CompanyId = this.datas.CompanyId
......
......@@ -501,10 +501,10 @@ export default {
: 1;
this.action =
this.host2 + "/api/File/UploadTencent?MallBaseId=" + MallBaseId;
this.mainColor = this.$uiConfig.mainColor;
},
created() {
console.log(289, this.datas);
this.mainColor = this.$uiConfig.mainColor;
this.GetAuthenticationCategoryEnumList(); //首店类别
this.GetProjectTypeEnumList(); //载体性质
this.model.CompanyId = this.datas.CompanyId;
......@@ -897,7 +897,7 @@ export default {
if (res.resultCode == 1) {
this.shenList = res.data;
if (this.model.FirstShopNumList.length === 0) {
if (this.model.FirstShopNumList && this.model.FirstShopNumList.length === 0) {
this.shenList.map((item) => {
let obj = {
Id: item.Id,
......
......@@ -608,10 +608,10 @@ export default {
: 1;
this.action =
this.host2 + "/api/File/UploadTencent?MallBaseId=" + MallBaseId;
this.mainColor = this.$uiConfig.mainColor;
},
created() {
console.log(289, this.datas);
this.mainColor = this.$uiConfig.mainColor;
this.GetAuthenticationCategoryEnumList(); //首店类别
this.GetProjectTypeEnumList(); //载体性质
this.model.CompanyId = this.datas.CompanyId;
......
......@@ -443,10 +443,10 @@
onLoad(options){
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId ? uni.getStorageSync("mall_UserInfo").MallBaseId : 1;
this.action = this.host2 + '/api/File/UploadTencent?MallBaseId=' + MallBaseId
this.mainColor = this.$uiConfig.mainColor;
},
created() {
this.mainColor = this.$uiConfig.mainColor;
this.GetProjectTypeEnumList()//载体性质
this.getbrandList()
this.model.CompanyId = this.datas.CompanyId
......
......@@ -396,6 +396,7 @@ export default {
filePath: res.tempFilePaths[0],
encoding: "base64", //编码格式
success: (ans) => {
console.log('in')
that.getImgInfo(ans.data, that.access_token, (_res) => {
console.log("getImgInfo", _res);
if (_res.data.direction == 1) {
......@@ -428,17 +429,26 @@ export default {
getImgInfo(data, token, resCall) {
let that = this;
uni.request({
url: "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=uHc6N5qsYBfZs3jrM0DOLXCc&client_secret=8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", // 百度获取token接口地址
url:
"https://aip.baidubce.com/rest/2.0/ocr/v1/business_license?access_token=" +
token,
method: "POST",
header: {
"Content-Type": "application/x-www-form-urlencoded",
},
data: {
grant_type: "client_credentials", // 固定写死
client_id: "uHc6N5qsYBfZs3jrM0DOLXCc",
client_secret: "8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J",
image: data,
},
method: "POST",
success(res) {
that.access_token = res.data.access_token;
resCall(res);
},
fail(res) {
wx.showToast({
title: "图片类型错误!",
icon: "none",
duration: 1000,
});
},
fail(e) {},
});
},
//图片上传
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment