Merge remote-tracking branch 'remotes/origin/old'
@ -305,3 +305,8 @@ export function paymerchant() {
|
|||||||
export function merchant(data) {
|
export function merchant(data) {
|
||||||
return request.get(`store/merchant/margin`, data);
|
return request.get(`store/merchant/margin`, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取保证金缴纳列表
|
||||||
|
export function marginlist(data) {
|
||||||
|
return request.get(`user/margin/list`,data);
|
||||||
|
}
|
||||||
|
@ -8,59 +8,32 @@ let httpApiTwo
|
|||||||
let httpApiThree
|
let httpApiThree
|
||||||
|
|
||||||
// 在打包之前请检查当前环境是否正确
|
// 在打包之前请检查当前环境是否正确
|
||||||
const env = 'dev'; // 开发
|
// const env = 'dev'; // 开发
|
||||||
// const env = 'prod'; // 生产
|
const env = 'prod'; // 生产
|
||||||
// const env = 'prew'; // 预上线
|
// const env = 'prew'; // 预上线
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'prod':
|
case 'prod':
|
||||||
httpApi = 'https://shop.lihaink.cn' // 生产
|
httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
httpApiTwo = 'https://nk.lihaink.cn'
|
httpApiTwo = 'https://nk.lihaink.cn'
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
httpApiFour = 'https://worker-task.lihaink.cn'
|
||||||
break;
|
break;
|
||||||
case 'prew':
|
case 'prew':
|
||||||
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
||||||
httpApiTwo = "https://nk.lihaink.cn"
|
httpApiTwo = "https://nk.lihaink.cn"
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
httpApiFour = 'https://preview-worker-task.lihaink.cn'
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
httpApi = "https://crmeb-test.shop.lihaink.cn" // 生产
|
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
|
||||||
httpApiTwo = "https://nk.lihaink.cn"
|
httpApiTwo = "https://nk.lihaink.cn"
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
httpApiFour = 'https://ceshi-worker-task.lihaink.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// // 网络接口修改此字符 小程序域名要求https
|
|
||||||
// // let httpApi = 'http://192.168.31.110:8324' // 测试
|
|
||||||
// if (process.env.NODE_ENV === "development") {
|
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
|
||||||
// // httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
|
||||||
|
|
||||||
// // httpApi = "https://crmeb-test.shop.lihaink.cn"
|
|
||||||
// // httpApi = "http://192.168.0.222"
|
|
||||||
// // httpApi = "http://192.168.0.108:8325"
|
|
||||||
// // httpApi = 'http://192.168.0.108:8325'
|
|
||||||
// // #ifdef MP-WEIXIN
|
|
||||||
// httpApiTwo = "https://nk.lihaink.cn"
|
|
||||||
// httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
|
||||||
// // #endif
|
|
||||||
// // #ifdef H5
|
|
||||||
// // httpApiTwo = "baseUrl" // h5跨域配置
|
|
||||||
// httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置
|
|
||||||
// // httpApiThree = 'baseUrlTest' // h5跨域配置
|
|
||||||
|
|
||||||
// // #endif
|
|
||||||
// } else if (process.env.NODE_ENV === 'production') {
|
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
|
||||||
|
|
||||||
// // httpApi ='https://test.shop.lihaink.cn' //预发布环境
|
|
||||||
|
|
||||||
// // httpApi = "https://crmeb-test.shop.lihaink.cn"
|
|
||||||
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
|
||||||
// httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
|
|
||||||
// }
|
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
|
||||||
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
|
||||||
|
|
||||||
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
|
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
|
||||||
// let wsApi = 'ws://192.168.3.20:8324'
|
// let wsApi = 'ws://192.168.3.20:8324'
|
||||||
@ -73,11 +46,13 @@ module.exports = {
|
|||||||
HTTP_REQUEST_URL: httpApi,
|
HTTP_REQUEST_URL: httpApi,
|
||||||
HTTP_REQUEST_URL_TWO: httpApiTwo,
|
HTTP_REQUEST_URL_TWO: httpApiTwo,
|
||||||
HTTP_REQUEST_URL_THREE: httpApiThree,
|
HTTP_REQUEST_URL_THREE: httpApiThree,
|
||||||
|
HTTP_REQUEST_URL_FOUR: httpApiFour,
|
||||||
VUE_APP_WS_URL: `${wsApi}?type=user`,
|
VUE_APP_WS_URL: `${wsApi}?type=user`,
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
//H5接口是浏览器地址
|
//H5接口是浏览器地址
|
||||||
|
HTTP_REQUEST_URL_FOUR: httpApiFour|| window.location.protocol + "//" + window.location.host,
|
||||||
HTTP_REQUEST_URL: httpApi || window.location.protocol + "//" + window.location.host,
|
HTTP_REQUEST_URL: httpApi || window.location.protocol + "//" + window.location.host,
|
||||||
HTTP_REQUEST_URL_TWO: httpApiTwo || window.location.protocol + "//" + window.location.host,
|
HTTP_REQUEST_URL_TWO: httpApiTwo || window.location.protocol + "//" + window.location.host,
|
||||||
// 聊天长连接地址
|
// 聊天长连接地址
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "惠农生活",
|
"name" : "惠农生活",
|
||||||
"appid" : "__UNI__3A527D1",
|
"appid" : "__UNI__3A527D1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.4.1",
|
"versionName" : "1.4.4",
|
||||||
"versionCode" : 141,
|
"versionCode" : 144,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
}, {
|
}, {
|
||||||
"path": "pages/moreProject/moreProject",
|
"path": "pages/moreProject/moreProject",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "更多功能",
|
"navigationBarTitleText": "商户平台",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,6 @@
|
|||||||
},
|
},
|
||||||
prefix: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/11/',
|
prefix: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/11/',
|
||||||
isShow: false,
|
isShow: false,
|
||||||
|
|
||||||
isFshow: false,
|
isFshow: false,
|
||||||
street: '',
|
street: '',
|
||||||
// 编辑中标记
|
// 编辑中标记
|
||||||
@ -159,6 +158,15 @@
|
|||||||
data: '__UNI__B5B1EDD',
|
data: '__UNI__B5B1EDD',
|
||||||
type: 1,
|
type: 1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '农业咨询',
|
||||||
|
icon: '/static/applet/ny.png',
|
||||||
|
data: {
|
||||||
|
id: '__UNI__9620511',
|
||||||
|
url: '/static/wgt/__UNI__9620511.wgt',
|
||||||
|
},
|
||||||
|
type: 1,
|
||||||
|
}
|
||||||
],
|
],
|
||||||
nowMenuList: [],
|
nowMenuList: [],
|
||||||
street: '',
|
street: '',
|
||||||
@ -225,9 +233,7 @@
|
|||||||
} else if (scrollTop > 100) {
|
} else if (scrollTop > 100) {
|
||||||
this.backColor = 'rgba(252, 252, 252, 1)'
|
this.backColor = 'rgba(252, 252, 252, 1)'
|
||||||
this.isFshow = true
|
this.isFshow = true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
@ -291,7 +297,6 @@
|
|||||||
this.getUniMp(data);
|
this.getUniMp(data);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
||||||
this.navigator(data);
|
this.navigator(data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -315,10 +320,13 @@
|
|||||||
this.editFlag = false;
|
this.editFlag = false;
|
||||||
uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList));
|
uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList));
|
||||||
},
|
},
|
||||||
getUniMp(appid) {
|
getUniMp(data) {
|
||||||
console.log('点击供销平台');
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
uniMP.loadMP(appid);
|
console.log(data, typeof data == 'string');
|
||||||
|
if(typeof data == 'string') uniMP.loadMP(data);
|
||||||
|
else uniMP.loadMPurl(data);
|
||||||
|
// uniMP.loadMPurl(data);
|
||||||
|
// uniMP.open(data.id);
|
||||||
return;
|
return;
|
||||||
// #endif
|
// #endif
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<view class="title">店铺保证金信息</view>
|
<view class="title">店铺保证金信息</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text>已缴纳保证金</text>
|
<text>已缴纳保证金</text>
|
||||||
<text>{{merchant_Data.margin}}</text>
|
<text>{{merchant_Data.paid_margin}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text>缴纳店铺账户</text>
|
<text>缴纳店铺账户</text>
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<view class="price">
|
<view class="price">
|
||||||
<view class="title">缴纳金额</view>
|
<view class="title">缴纳金额</view>
|
||||||
<view class="tab">
|
<view class="tab">
|
||||||
<view class="item active" style="margin: 0;">{{merchant_Data.recharge_margin}}元</view>
|
<view class="item active" style="margin: 0;">{{merchant_Data.margin}}元</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="btn" @click="paydecimal">缴纳</button>
|
<button class="btn" @click="paydecimal">缴纳</button>
|
||||||
</view>
|
</view>
|
||||||
@ -26,27 +26,82 @@
|
|||||||
<view class="text">充值后帐户的金额不能提现,可用于商城消费使用佣金导入账户之后不能再次导出、不可提现账户充值出现问题可联系商城客服,也可拨打商城客服热线<text @click="copyPhone('4008888888')">4008888888</text>
|
<view class="text">充值后帐户的金额不能提现,可用于商城消费使用佣金导入账户之后不能再次导出、不可提现账户充值出现问题可联系商城客服,也可拨打商城客服热线<text @click="copyPhone('4008888888')">4008888888</text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
|
<view class="content-order" v-for="(item,i ) in productList">
|
||||||
|
<view class="">订单编号:{{item.order_sn}}</view>
|
||||||
|
<view class="">支付金额:{{item.total_price}}</view>
|
||||||
|
<view class="">支付状态:{{item.pay_type==1?'已支付':'待支付'}}</view>
|
||||||
|
<view class="">支付时间:{{item.pay_time}}</view>
|
||||||
|
</view>
|
||||||
|
<view class='loadingicon acea-row row-center-wrapper' v-if='productList.length > 0'>
|
||||||
|
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
merchant,
|
merchant,
|
||||||
paymerchant
|
paymerchant,
|
||||||
|
marginlist
|
||||||
} from '@/api/api.js'
|
} from '@/api/api.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mer_id:0,
|
mer_id:0,
|
||||||
merchant_Data: {},
|
merchant_Data: {},
|
||||||
|
where:{
|
||||||
|
page:1,
|
||||||
|
limit:10
|
||||||
|
},
|
||||||
|
productList:[],
|
||||||
|
loadend: false,
|
||||||
|
loading: false,
|
||||||
|
loadTitle: '加载更多',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.mer_id = e.mer_id
|
this.mer_id = e.mer_id
|
||||||
this.decimal()
|
this.decimal()
|
||||||
|
this.list(false)
|
||||||
|
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.productList.length > 0) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.list(false);
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
list(isPage){
|
||||||
|
let that = this;
|
||||||
|
if (that.loadend) return;
|
||||||
|
if (that.loading) return;
|
||||||
|
if (isPage === true) that.$set(that, 'productList', []);
|
||||||
|
|
||||||
|
that.loading = true;
|
||||||
|
that.loadTitle = '';
|
||||||
|
marginlist(that.where).then(res => {
|
||||||
|
let list = res.data.list;
|
||||||
|
let productList = that.$util.SplitArray(list, that.productList);
|
||||||
|
let loadend = list.length < that.where.limit;
|
||||||
|
that.loadend = loadend;
|
||||||
|
that.loading = false;
|
||||||
|
that.loadTitle = loadend ? '已全部加载' : '加载更多';
|
||||||
|
setTimeout(() => {
|
||||||
|
that.$set(that, 'productList', productList);
|
||||||
|
}, 500)
|
||||||
|
|
||||||
|
// console.log(that.productList)
|
||||||
|
that.$set(that.where, 'page', that.where.page + 1);
|
||||||
|
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
|
||||||
|
}).catch(err => {
|
||||||
|
that.loading = false;
|
||||||
|
that.loadTitle = '加载更多';
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
//获取保证金信息
|
//获取保证金信息
|
||||||
decimal() {
|
decimal() {
|
||||||
merchant({
|
merchant({
|
||||||
@ -105,7 +160,24 @@
|
|||||||
page {
|
page {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
.content-order{
|
||||||
|
|
||||||
|
|
||||||
|
background: #F4F4F4;
|
||||||
|
border-radius: 21rpx 21rpx ;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
padding: 10rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
view{
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-family: PingFang SC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
margin: 20rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
.info {
|
.info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -183,7 +183,7 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="examine" @click="margin(`/pages/margin/margin`)">
|
<view class="examine" @click="margin(`/pages/margin/margin`)">
|
||||||
<image class="icon_img" src="@/static/images/jy.png">
|
<image class="icon_img" src="@/static/images/jy.png">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">保证缴纳金</text>
|
<text class="text">保证缴纳金</text>
|
||||||
@ -302,7 +302,8 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="examine" @click="navigator(`/pages/margin/margin`)">
|
|
||||||
|
<view class="examine" @click="navigator(`/pages/margin/margin`)">
|
||||||
<image class="icon_img" src="@/static/images/jy.png">
|
<image class="icon_img" src="@/static/images/jy.png">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">保证缴纳金</text>
|
<text class="text">保证缴纳金</text>
|
||||||
@ -373,7 +374,7 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="examine" @click="navigator(`/pages/margin/margin`)">
|
<view class="examine" @click="navigator(`/pages/margin/margin`)">
|
||||||
<image class="icon_img" src="@/static/images/jy.png">
|
<image class="icon_img" src="@/static/images/jy.png">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">保证缴纳金</text>
|
<text class="text">保证缴纳金</text>
|
||||||
@ -398,11 +399,6 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="examine" @click="navigator(`/pages/margin/margin`)">
|
|
||||||
<image class="icon_img" src="@/static/images/jy.png" >
|
|
||||||
</image>
|
|
||||||
<text class="text">保证缴纳金</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -415,7 +411,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="settlementAgreement" v-if="isFshow">
|
<view class="settlementAgreement" v-if="isFshow">
|
||||||
<view class="setAgCount" style="width: 100%;height: 100%;">
|
<view class="setAgCount" style="width: 100%;height: 100%;">
|
||||||
<i class="icon iconfont icon-cha" @click="recuo"></i>
|
<!-- <i class="icon iconfont icon-cha" @click="recuo"></i> -->
|
||||||
|
<view class="" style="width: 60rpx;height: 60rpx; position: absolute;right: 30rpx; top:20rpx"
|
||||||
|
@click="recuo">
|
||||||
|
<image src="@/static/images/close.png" mode="aspectFit" style="width: 60rpx;height: 60rpx;"></image>
|
||||||
|
</view>
|
||||||
<div class="title">{{detail.title}}</div>
|
<div class="title">{{detail.title}}</div>
|
||||||
<view style="margin: 20rpx 0;">甲方公司:{{company?company:"暂无公司信息"}}</view>
|
<view style="margin: 20rpx 0;">甲方公司:{{company?company:"暂无公司信息"}}</view>
|
||||||
<view style="margin: 20rpx 0;">机构代码:{{organization_code?organization_code:"暂无公司信息"}}</view>
|
<view style="margin: 20rpx 0;">机构代码:{{organization_code?organization_code:"暂无公司信息"}}</view>
|
||||||
@ -428,7 +428,6 @@
|
|||||||
拒绝
|
拒绝
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
<button :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" :disabled="num!=0" @click="agree">
|
<button :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" :disabled="num!=0" @click="agree">
|
||||||
<text v-if="num>0">请仔细阅读协议{{num}}S</text>
|
<text v-if="num>0">请仔细阅读协议{{num}}S</text>
|
||||||
<text v-else>同意</text>
|
<text v-else>同意</text>
|
||||||
@ -443,8 +442,9 @@
|
|||||||
<view class="userpage-icon" @click="close">
|
<view class="userpage-icon" @click="close">
|
||||||
<image src="@/static/images/close.png" mode=""></image>
|
<image src="@/static/images/close.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<form report-submit='true'>
|
|
||||||
<view class='merchantsSettled'>
|
<form report-submit='true' style="height: 90%;">
|
||||||
|
<view class='merchantsSettled' :style="{'height':Fheight}">
|
||||||
<view class="title">填写信息</view>
|
<view class="title">填写信息</view>
|
||||||
<view class='list'>
|
<view class='list'>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@ -570,7 +570,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
company: '',
|
company: '',
|
||||||
organization_code:'',
|
organization_code: '',
|
||||||
locationArr: ({}),
|
locationArr: ({}),
|
||||||
emptyText: '暂无可用应用',
|
emptyText: '暂无可用应用',
|
||||||
jurisdiction: false, // 是否有权限
|
jurisdiction: false, // 是否有权限
|
||||||
@ -605,6 +605,7 @@
|
|||||||
cardno_front: '',
|
cardno_front: '',
|
||||||
cardno_back: ''
|
cardno_back: ''
|
||||||
},
|
},
|
||||||
|
Fheight: 0,
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -612,7 +613,10 @@
|
|||||||
...mapGetters(['userInfo', 'isLogin'])
|
...mapGetters(['userInfo', 'isLogin'])
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
onLoad() {},
|
onLoad() {
|
||||||
|
this.Fheight = uni.getSystemInfoSync().windowHeight + 'px';
|
||||||
|
console.log(this.Fheight)
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.emptyText = '暂无可用应用'
|
this.emptyText = '暂无可用应用'
|
||||||
@ -626,6 +630,7 @@
|
|||||||
this.list()
|
this.list()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -643,7 +648,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
//提交
|
//提交
|
||||||
formSubmit: function(e) {
|
formSubmit: function(e) {
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -682,24 +687,6 @@
|
|||||||
this.$refs.popup.open()
|
this.$refs.popup.open()
|
||||||
this.isFshow = false
|
this.isFshow = false
|
||||||
|
|
||||||
// intentionbus({
|
|
||||||
// "status": 1
|
|
||||||
// }).then((res) => {
|
|
||||||
// if (res.status == 200) {
|
|
||||||
// this.$util.Tips({
|
|
||||||
// title: res.message,
|
|
||||||
// icon: 'success',
|
|
||||||
// })
|
|
||||||
// this.getUserInfo()
|
|
||||||
// this.isFshow = false
|
|
||||||
// }
|
|
||||||
// }).catch((err) => {
|
|
||||||
// this.isFshow = false
|
|
||||||
// this.$util.Tips({
|
|
||||||
// title: err,
|
|
||||||
// icon: 'error',
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
//拒绝
|
//拒绝
|
||||||
refuse() {
|
refuse() {
|
||||||
@ -842,10 +829,31 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
//保证金缴纳
|
||||||
margin(url) {
|
margin(url) {
|
||||||
uni.navigateTo({
|
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) {
|
||||||
url: url+`?mer_id=` + this.mer_id
|
|
||||||
})
|
if (this.codenote.length == 0) {
|
||||||
|
this.isFshow = true
|
||||||
|
this.countDown()
|
||||||
|
} else {
|
||||||
|
if (this.codenote[0].status == 0) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '申请正在审核中,请勿重复提交'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.isFshow = true
|
||||||
|
this.countDown()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
uni.navigateTo({
|
||||||
|
url: url + `?mer_id=` + this.mer_id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//商户设置
|
//商户设置
|
||||||
buyserset() {
|
buyserset() {
|
||||||
@ -854,10 +862,27 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
navigator(url, t) {
|
navigator(url, t) {
|
||||||
|
|
||||||
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) {
|
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) {
|
||||||
this.isFshow = true
|
// console.log(this.codenote)
|
||||||
this.countDown()
|
|
||||||
|
|
||||||
|
if (this.codenote.length == 0) {
|
||||||
|
this.isFshow = true
|
||||||
|
this.countDown()
|
||||||
|
} else {
|
||||||
|
if (this.codenote[0].status == 0) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '申请正在审核中,请勿重复提交'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.isFshow = true
|
||||||
|
this.countDown()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: url
|
||||||
})
|
})
|
||||||
@ -868,20 +893,20 @@
|
|||||||
getUserInfo().then(res => {
|
getUserInfo().then(res => {
|
||||||
this.userInfoData = res.data;
|
this.userInfoData = res.data;
|
||||||
this.merchantData.phone = res.data.phone
|
this.merchantData.phone = res.data.phone
|
||||||
merstreet({
|
merstreet({
|
||||||
street_code: res.data.mer_info.street_id
|
street_code: res.data.mer_info.street_id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if(res.code==0){
|
if (res.code == 0) {
|
||||||
this.$util.Tips({
|
// this.$util.Tips({
|
||||||
title: res.msg
|
// title: res.msg
|
||||||
});
|
// });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.company=res.data.title
|
this.company = res.data.title
|
||||||
this.organization_code=res.data.organization_code
|
this.organization_code = res.data.organization_code
|
||||||
}).catch(res=>{
|
}).catch(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
})
|
})
|
||||||
if (res.data.service == null) {
|
if (res.data.service == null) {
|
||||||
// console.log('123');
|
// console.log('123');
|
||||||
this.isShow = false
|
this.isShow = false
|
||||||
@ -896,7 +921,7 @@
|
|||||||
// console.log(that.userInfoData);
|
// console.log(that.userInfoData);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取协议内容
|
//获取协议内容
|
||||||
list() {
|
list() {
|
||||||
business({
|
business({
|
||||||
@ -916,8 +941,8 @@
|
|||||||
|
|
||||||
.userpage {
|
.userpage {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1368rpx;
|
|
||||||
padding-top: 150rpx;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
@ -926,7 +951,7 @@
|
|||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 60rpx;
|
top: 65rpx;
|
||||||
right: 60rpx;
|
right: 60rpx;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
@ -940,7 +965,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.merchantsSettled {
|
.merchantsSettled {
|
||||||
height: 1368rpx;
|
height: 100%;
|
||||||
|
padding-top: 80rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.merchantsSettled .title {
|
.merchantsSettled .title {
|
||||||
@ -953,12 +979,8 @@
|
|||||||
.merchantsSettled .list {
|
.merchantsSettled .list {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
||||||
margin: 0 15px;
|
margin: 0 15px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
width: calc(100% - 30px);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.application-record {
|
.application-record {
|
||||||
@ -1133,6 +1155,7 @@
|
|||||||
width: 588rpx;
|
width: 588rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: 86rpx;
|
height: 86rpx;
|
||||||
|
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 86rpx;
|
line-height: 86rpx;
|
||||||
@ -1203,27 +1226,15 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settlementAgreement .setAgCount .content {
|
|
||||||
margin-top: 32rpx;
|
|
||||||
color: #333;
|
|
||||||
font-size: 26rpx;
|
|
||||||
line-height: 22px;
|
|
||||||
text-align: justify;
|
|
||||||
text-justify: distribute-all-lines;
|
|
||||||
height: 1050rpx;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.settlementAgreement .setAgCount .contenta {
|
.settlementAgreement .setAgCount .contenta {
|
||||||
margin-top: 32rpx;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
text-justify: distribute-all-lines;
|
text-justify: distribute-all-lines;
|
||||||
|
height: 75%;
|
||||||
height: 1050rpx;
|
|
||||||
|
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- <view class="cloud_entrepot" :style="{'min-height': winHeight + 'px'}">
|
|
||||||
<view class="head-wrapper"></view>
|
|
||||||
<view class="town-title">{{town}}里海云仓</view>
|
|
||||||
<view class="body-wrapper">
|
|
||||||
<block v-for="(item,index) in cloudList" :key="index">
|
|
||||||
<navigator class="item"
|
|
||||||
:url="`/pages/nongKe/goods_list/index?cate_id=${item.category_id}&street=${street_code}&name=${item.category_name}`"
|
|
||||||
:style="{'background-image': `url(${item.background})`}">
|
|
||||||
<text class="item-title">{{item.category_name}}云仓服务</text>
|
|
||||||
<text>{{item.description}}</text>
|
|
||||||
<view class="chakan-btn">查看</view>
|
|
||||||
</navigator>
|
|
||||||
</block>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="">
|
<view class="">
|
||||||
@ -25,24 +10,14 @@
|
|||||||
width="50.82rpx" height="50.82rpx" @click='goBack'></u--image>
|
width="50.82rpx" height="50.82rpx" @click='goBack'></u--image>
|
||||||
<u--image v-else :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
|
<u--image v-else :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
|
||||||
height="50.82rpx" @click='goBack'></u--image>
|
height="50.82rpx" @click='goBack'></u--image>
|
||||||
<view class="head_tit" :style="{color:cloudList.length>0?'':'black'}">
|
<view class="head_tit" v-if="cloudList.length"
|
||||||
|
style="font-size: 40rpx;transform: skewX(-10deg);font-weight: bold;"
|
||||||
|
:style="{color:cloudList.length>0?'':'black'}">
|
||||||
{{town}}里海云仓
|
{{town}}里海云仓
|
||||||
</view>
|
</view>
|
||||||
<view class="sl" :class="{actsl:showSelect}" @click="showSelect=!showSelect">
|
|
||||||
<u--image :showLoading="true" src="/static/images/GXSC/BSL.png" width="33.29rpx"
|
|
||||||
height="33.29rpx"></u--image>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="display: flex;align-items: center;">
|
<view class="" style="display: flex;align-items: center;">
|
||||||
<view style="display: flex;align-items: center;z-index: 999999;">
|
<view class="head_r" @click="showPop=true" v-if="cloudList.length>0">
|
||||||
<u--image :showLoading="true" v-if="cloudList.length>0"
|
|
||||||
src="/static/images/LHYC/DWB.png" width="50.82rpx" height="50.82rpx"></u--image>
|
|
||||||
<u--image :showLoading="true" v-else src="/static/images/LHYC/DWB1.png" width="50.82rpx"
|
|
||||||
height="50.82rpx"></u--image>
|
|
||||||
<view class="town_name" :style="{color:cloudList.length>0?'':'black'}"
|
|
||||||
@click="showpick">{{street}}</view>
|
|
||||||
</view>
|
|
||||||
<view class="head_r" @click="showPop=true">
|
|
||||||
<u--image v-if="cloudList.length>0" :showLoading="true" src="/static/images/LHYC/QB.png"
|
<u--image v-if="cloudList.length>0" :showLoading="true" src="/static/images/LHYC/QB.png"
|
||||||
width="50.82rpx" height="50.82rpx"></u--image>
|
width="50.82rpx" height="50.82rpx"></u--image>
|
||||||
<u--image v-else :showLoading="true" src="/static/images/LHYC/QB1.png" width="50.82rpx"
|
<u--image v-else :showLoading="true" src="/static/images/LHYC/QB1.png" width="50.82rpx"
|
||||||
@ -50,22 +25,9 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="selected-list" :style="`top:${headtop}px`" :class="{actSel:showSelect}">
|
|
||||||
<div class="triangle-up"></div>
|
|
||||||
<view
|
|
||||||
@click="navgo(`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_code}&townName=${street}`)">
|
|
||||||
供销综合云市场 <text></text>
|
|
||||||
</view>
|
|
||||||
<view class="selected-li">
|
|
||||||
供销综合云商品 <text> <u--image style="margin-left: 40rpx;" :showLoading="true"
|
|
||||||
src="/static/images/GXSC/XZ.png" width="24.53rpx" height="24.53rpx"></u--image>
|
|
||||||
</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@ -80,7 +42,7 @@
|
|||||||
<u--image :showLoading="true" src="/static/images/LHYC/FH.png" width="50.82rpx"
|
<u--image :showLoading="true" src="/static/images/LHYC/FH.png" width="50.82rpx"
|
||||||
height="50.82rpx" @click='goBack'></u--image>
|
height="50.82rpx" @click='goBack'></u--image>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="font-size: 40rpx;transform: skewX(-10deg);">
|
<view class="" style="font-size: 40rpx;transform: skewX(-10deg);font-weight: 700;">
|
||||||
供销综合云市场
|
供销综合云市场
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -285,8 +247,17 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="empty" style="" v-if="cloudList.length<=0">
|
<view class="empty" style="" v-if="cloudList.length<=0">
|
||||||
|
|
||||||
<view style="height: var(--status-bar-height);"></view>
|
<view style="height: var(--status-bar-height);"></view>
|
||||||
|
|
||||||
|
|
||||||
<view style="padding: 10rpx;">
|
<view style="padding: 10rpx;">
|
||||||
|
|
||||||
<view class="info">
|
<view class="info">
|
||||||
@ -298,16 +269,21 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 多规格购物车 -->
|
<!-- 多规格购物车 -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse">
|
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse">
|
||||||
</authorize>
|
</authorize>
|
||||||
<view class="" :style="`height:${appInfo.bottom}px;background-color:white`">
|
<view class="" :style="`height:${appInfo.bottom}px;`">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<u-picker :defaultIndex="defaInd" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
<u-picker :defaultIndex="defaInd" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
@ -549,7 +525,11 @@
|
|||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
let that = this
|
let that = this
|
||||||
|
// if (e.scrollTop > 0) {
|
||||||
this.showtit = !Boolean(e.scrollTop)
|
this.showtit = !Boolean(e.scrollTop)
|
||||||
|
// }
|
||||||
|
// console.log(e)
|
||||||
|
|
||||||
uni.createSelectorQuery()
|
uni.createSelectorQuery()
|
||||||
.in(this)
|
.in(this)
|
||||||
.select('.content')
|
.select('.content')
|
||||||
@ -786,7 +766,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
navgo(url) {
|
navgo(url) {
|
||||||
uni.navigateTo({
|
uni.redirectTo({
|
||||||
url
|
url
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -4,70 +4,88 @@
|
|||||||
<view class='productList' :style="viewColor">
|
<view class='productList' :style="viewColor">
|
||||||
<!-- 顶部 -->
|
<!-- 顶部 -->
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view style="height: 10px;">
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
<view class="head_tit">
|
<view class="head_tit">
|
||||||
<view class="" style="display: flex;align-items: center;">
|
<view class="" style="display: flex;align-items: center;">
|
||||||
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
<u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
|
||||||
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
height="50.82rpx" @click='backjJump'></u--image>
|
||||||
</view>
|
<view class=""
|
||||||
<view class="" style="font-size: 40rpx;">
|
style="font-size: 36.8rpx;font-weight: 700;transform: skewX(-10deg);margin-left: 20rpx;color: #F84221;">
|
||||||
供销综合云市场
|
供销综合云市场
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-left: 20rpx;transition: 0.3s;" @click="showSelect=!showSelect"
|
<view class=""
|
||||||
|
@click="navGoto(`/pages/nongKe/cloud_entrepot/indexa?street=${street_id}&town=${street}`)"
|
||||||
|
style="font-size: 36.8rpx;font-weight: 700;transform: skewX(-10deg);margin-left: 60rpx;">
|
||||||
|
供销综合云商品
|
||||||
|
</view>
|
||||||
|
<!-- <view style="margin-left: 20rpx;transition: 0.3s;" @click="showSelect=!showSelect"
|
||||||
:class="{selects:showSelect}">
|
:class="{selects:showSelect}">
|
||||||
<u--image :showLoading="true" src="/static/images/GXSC/XL.png" width="33.29rpx"
|
<u--image :showLoading="true" src="/static/images/GXSC/XL.png" width="33.29rpx"
|
||||||
height="33.29rpx"></u--image>
|
height="33.29rpx"></u--image>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<view style="position: relative;width: 289.14rpx;" v-if="showSerch">
|
<!-- <view style="position: relative;width: 289.14rpx;" v-if="showSerch">
|
||||||
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
||||||
placeholder="请输入..." v-model="sotreParam.keyword" @search="onInputConfirm"
|
placeholder="请输入..." v-model="sotreParam.keyword" @search="onInputConfirm"
|
||||||
class="serch_cls"></u-search>
|
class="serch_cls"></u-search>
|
||||||
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
||||||
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
|
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- 位置 -->
|
<!-- 位置 -->
|
||||||
<view v-else style="display: flex;align-items: center;" @click="showPicker=!showPicker">
|
<!-- <view v-else style="display: flex;align-items: center;">
|
||||||
<u--image @tap="showSerch=!showSerch" style="margin-right: 30rpx;" :showLoading="true"
|
<u--image @tap="showSerch=!showSerch" style="margin-right: 30rpx;" :showLoading="true"
|
||||||
src="/static/images/GXSC/SS.png" width="49rpx" height="49rpx"></u--image>
|
src="/static/images/GXSC/SS.png" width="49rpx" height="49rpx"></u--image>
|
||||||
|
<u--image @click="showPicker=!showPicker" :showLoading="true" src="/static/images/GXSC/DW1.png"
|
||||||
|
width="50.82rpx" height="50.82rpx"></u--image>
|
||||||
|
<view class="town_name">{{street}}</view>
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="sswz">
|
||||||
|
<view style="position: relative;width: 501.17rpx;">
|
||||||
|
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
||||||
|
placeholder="搜索店铺或者名称" v-model="sotreParam.keyword" @search="onInputConfirm"
|
||||||
|
class="serch_cls"></u-search>
|
||||||
|
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
||||||
|
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
|
||||||
|
</view>
|
||||||
|
<view style="display: flex;align-items: center;" @click="showPicker=!showPicker">
|
||||||
<u--image :showLoading="true" src="/static/images/GXSC/DW1.png" width="50.82rpx"
|
<u--image :showLoading="true" src="/static/images/GXSC/DW1.png" width="50.82rpx"
|
||||||
height="50.82rpx"></u--image>
|
height="50.82rpx"></u--image>
|
||||||
<view class="town_name">{{street}}</view>
|
<view class="town_name">{{street}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="selected-list" :class="{actSel:showSelect}">
|
<!-- <view class="selected-list" :class="{actSel:showSelect}">
|
||||||
<div class="triangle-up"></div>
|
<div class="triangle-up"></div>
|
||||||
<view class="selected-li">
|
<view class="selected-li">
|
||||||
供销综合云市场 <text> <u--image style="margin-left: 40rpx;" :showLoading="true"
|
供销综合云市场 <text> <u--image style="margin-left: 40rpx;" :showLoading="true"
|
||||||
src="/static/images/GXSC/XZ.png" width="24.53rpx" height="24.53rpx"></u--image> </text>
|
src="/static/images/GXSC/XZ.png" width="24.53rpx" height="24.53rpx"></u--image> </text>
|
||||||
</view>
|
</view>
|
||||||
<view class=""
|
<view class=""
|
||||||
@click="navGoto(`/pages/nongKe/cloud_entrepot/index?street=${street_id}&town=${street}`)">
|
@click="navGoto(`/pages/nongKe/cloud_entrepot/indexa?street=${street_id}&town=${street}`)">
|
||||||
供销综合云商品
|
供销综合云商品
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
|
<view class="flags">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view style="height: 10px">
|
<view class="" :style="`height:${headTop}px`">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="hot_serch">
|
<view class="hot_serch">
|
||||||
<text>热搜:</text>
|
<!-- <text>热搜:</text>
|
||||||
<text @click="hotSerchFn('小张副食')">小张副食</text>
|
<text @click="hotSerchFn('小张副食')">小张副食</text>
|
||||||
<text @click="hotSerchFn('正新酒店')">正新酒店</text>
|
<text @click="hotSerchFn('正新酒店')">正新酒店</text>
|
||||||
<text @click="hotSerchFn('麻辣鸡')">麻辣鸡</text>
|
<text @click="hotSerchFn('麻辣鸡')">麻辣鸡</text>
|
||||||
<text @click="hotSerchFn('手撕椒麻鸡')">手撕椒麻鸡</text>
|
<text @click="hotSerchFn('手撕椒麻鸡')">手撕椒麻鸡</text> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu_cls">
|
<view class="menu_cls">
|
||||||
@ -356,6 +374,7 @@
|
|||||||
defaInd: [0, 0],
|
defaInd: [0, 0],
|
||||||
columnData: [],
|
columnData: [],
|
||||||
showSerch: false,
|
showSerch: false,
|
||||||
|
headTop: 0,
|
||||||
imgList: [
|
imgList: [
|
||||||
"/static/images/GXSC/BBY.png",
|
"/static/images/GXSC/BBY.png",
|
||||||
"/static/images/GXSC/NYSC.png",
|
"/static/images/GXSC/NYSC.png",
|
||||||
@ -473,6 +492,19 @@
|
|||||||
this.menuList = res.data
|
this.menuList = res.data
|
||||||
})
|
})
|
||||||
this.Area()
|
this.Area()
|
||||||
|
let that = this
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.createSelectorQuery()
|
||||||
|
.in(this)
|
||||||
|
.select('.flags')
|
||||||
|
.boundingClientRect(rect => {
|
||||||
|
// console.log(this.cartTagInfo, 6666)
|
||||||
|
// that.cartTagInfo = rect
|
||||||
|
that.headTop = rect.top
|
||||||
|
console.log(that.headTop)
|
||||||
|
})
|
||||||
|
.exec();
|
||||||
|
}, 100)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
downMenus: function() {
|
downMenus: function() {
|
||||||
@ -531,7 +563,7 @@
|
|||||||
city_code: 510500
|
city_code: 510500
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.$refs.uPicker.setColumnValues(0, res.data);
|
this.$refs.uPicker.setColumnValues(0, res.data);
|
||||||
// this.Street(res.data[0]['code']);
|
this.Street(res.data[0]['code']);
|
||||||
// console.log(res.data, 66666)
|
// console.log(res.data, 66666)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -587,10 +619,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
if (this.sotreParam.keyword.length > 3) {
|
// if (this.sotreParam.keyword.length > 3) {
|
||||||
this.sotreParam.keyword.slice(0, 3)
|
// this.sotreParam.keyword.slice(0, 3)
|
||||||
this.sotreParam.keyword = this.sotreParam.keyword.slice(0, 3) + "..."
|
// this.sotreParam.keyword = this.sotreParam.keyword.slice(0, 3) + "..."
|
||||||
}
|
// }
|
||||||
// console.log(this.sotreParam.keyword.length)
|
// console.log(this.sotreParam.keyword.length)
|
||||||
},
|
},
|
||||||
hotSerchFn(keywords) {
|
hotSerchFn(keywords) {
|
||||||
@ -933,6 +965,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.productList {
|
.productList {
|
||||||
@ -941,9 +974,7 @@
|
|||||||
|
|
||||||
.top {
|
.top {
|
||||||
padding-top: var(--status-bar-height);
|
padding-top: var(--status-bar-height);
|
||||||
/* #ifdef H5 */
|
|
||||||
padding-top: 30rpx;
|
|
||||||
/* #endif */
|
|
||||||
// padding-top: 80rpx;
|
// padding-top: 80rpx;
|
||||||
background-color: #F0F2F5;
|
background-color: #F0F2F5;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -954,6 +985,7 @@
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu_cls {
|
.menu_cls {
|
||||||
@ -1066,24 +1098,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hot_serch {
|
.hot_serch {
|
||||||
color: #B3B3B3;
|
height: 20rpx;
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
margin-top: 40rpx;
|
|
||||||
|
|
||||||
flex-wrap: wrap;
|
|
||||||
// margin-top: 50rpx;
|
|
||||||
// padding-top: 100rpx;
|
|
||||||
padding-top: var(--status-bar-height);
|
|
||||||
// margin-top: 10px;
|
|
||||||
/* #ifdef H5 */
|
|
||||||
padding-top: 50rpx;
|
|
||||||
/* #endif */
|
|
||||||
// margin-top: 200rpx;
|
|
||||||
|
|
||||||
text {
|
|
||||||
margin: 10rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.productList .search .input {
|
.productList .search .input {
|
||||||
@ -1577,4 +1592,12 @@
|
|||||||
.pop {
|
.pop {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sswz {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -15,7 +15,8 @@
|
|||||||
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
||||||
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="font-size: 40rpx;">
|
<view class=""
|
||||||
|
style="font-size: 36.8rpx;font-weight: 700;transform: skewX(-10deg);margin-left: 20rpx;">
|
||||||
{{titName}}
|
{{titName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
<view class="store_bg">
|
<view class="store_bg">
|
||||||
<view class="text flex_a_c"><i class="iconfont icon-xinghao"></i>上传店铺背景图</view>
|
<view class="text flex_a_c"><i class="iconfont icon-xinghao"></i>上传店铺背景图</view>
|
||||||
<block v-if="images[0].img">
|
<block v-if="images[0].img">
|
||||||
<u--image :showLoading="true" :src="images[0].img" width="388px" height="210.53rpx" radius="4px"
|
<!-- <u--image :showLoading="true" :src="images[0].img" width="388px" height="210.53rpx" radius="4px"
|
||||||
@click="delImg(0)" mode="aspectFit"></u--image>
|
@click="delImg(0)" mode="aspectFit"></u--image> -->
|
||||||
|
<u--image :showLoading="true" :src="images[0].img" width="360px" height="210.53rpx" radius="4px"
|
||||||
|
@click="delImg(2)"></u--image>
|
||||||
</block>
|
</block>
|
||||||
<view v-else class="upload" @click="seleckImage(0)">
|
<view v-else class="upload" @click="seleckImage(0)">
|
||||||
<view class="iconfont icon-tupian1"></view>
|
<view class="iconfont icon-tupian1"></view>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
恭喜,您的申请已通过!
|
恭喜,您的申请已通过!
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="msg" v-if="mer_id > 0 && resData.login_url">
|
<!-- <view class="msg" v-if="mer_id > 0 && resData.login_url">
|
||||||
<view class="url">
|
<view class="url">
|
||||||
<text class="head">登录地址:</text>
|
<text class="head">登录地址:</text>
|
||||||
<text class="content">{{resData.login_url}}</text>
|
<text class="content">{{resData.login_url}}</text>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="cope" @click="copyTBL()">复制</text>
|
<text class="cope" @click="copyTBL()">复制</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="btn" v-if="mer_id > 0">
|
<view class="btn" v-if="mer_id > 0">
|
||||||
<view class="">
|
<view class="">
|
||||||
温馨提示:初始密码默认为手机号后六位,请初次登录后及时修改
|
温馨提示:初始密码默认为手机号后六位,请初次登录后及时修改
|
||||||
|
@ -182,7 +182,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
<view class="settlementAgreement" v-if="showProtocol">
|
<view class="settlementAgreement" v-if="showProtocol">
|
||||||
<view class="setAgCount">
|
<view class="setAgCount" style="width: 656rpx;height: 458px;">
|
||||||
<i class="icon iconfont icon-cha" @click="showProtocol = false"></i>
|
<i class="icon iconfont icon-cha" @click="showProtocol = false"></i>
|
||||||
<div class="title">{{isType ? '店铺类型说明' : '商户入驻协议'}}</div>
|
<div class="title">{{isType ? '店铺类型说明' : '商户入驻协议'}}</div>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@ -194,6 +194,11 @@
|
|||||||
<view class="settlementAgreement" v-if="isshow">
|
<view class="settlementAgreement" v-if="isshow">
|
||||||
<view class="setAgCount" style="width: 100%;height: 100%;">
|
<view class="setAgCount" style="width: 100%;height: 100%;">
|
||||||
<!-- <i class="icon iconfont icon-cha" @click="recuo"></i> -->
|
<!-- <i class="icon iconfont icon-cha" @click="recuo"></i> -->
|
||||||
|
<view class="" style="width: 60rpx;height: 60rpx; position: absolute;right: 30rpx; top:20rpx"
|
||||||
|
@click="recuo">
|
||||||
|
<image src="@/static/images/close.png" mode="aspectFit" style="width: 60rpx;height: 60rpx;"></image>
|
||||||
|
</view>
|
||||||
|
|
||||||
<div class="title">{{detail.title}}</div>
|
<div class="title">{{detail.title}}</div>
|
||||||
<view style="margin: 20rpx 0;">甲方公司:{{company?company:"暂无公司信息"}}</view>
|
<view style="margin: 20rpx 0;">甲方公司:{{company?company:"暂无公司信息"}}</view>
|
||||||
<view style="margin: 20rpx 0;">机构代码:{{organization_code?organization_code:"暂无公司信息"}}</view>
|
<view style="margin: 20rpx 0;">机构代码:{{organization_code?organization_code:"暂无公司信息"}}</view>
|
||||||
@ -285,7 +290,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
company: '',
|
company: '',
|
||||||
organization_code:'',
|
organization_code: '',
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
cartId: '', //购物车id
|
cartId: '', //购物车id
|
||||||
pinkId: 0, //拼团id
|
pinkId: 0, //拼团id
|
||||||
@ -380,7 +385,7 @@
|
|||||||
this.shoplist()
|
this.shoplist()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
methods: {
|
methods: {
|
||||||
@ -570,15 +575,15 @@
|
|||||||
merstreet({
|
merstreet({
|
||||||
street_code: this.street_id
|
street_code: this.street_id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if(res.code==0){
|
if (res.code == 0) {
|
||||||
this.$util.Tips({
|
this.$util.Tips({
|
||||||
title: res.msg
|
title: res.msg
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.company=res.data.title
|
this.company = res.data.title
|
||||||
this.organization_code=res.data.organization_code
|
this.organization_code = res.data.organization_code
|
||||||
}).catch(res=>{
|
}).catch(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -752,10 +757,11 @@
|
|||||||
formSubmit: function(e) {
|
formSubmit: function(e) {
|
||||||
|
|
||||||
|
|
||||||
if (this.num == 0) {
|
|
||||||
|
|
||||||
let that = this;
|
|
||||||
if (that.validateForm() && that.validate) {
|
let that = this;
|
||||||
|
if (that.validateForm() && that.validate) {
|
||||||
|
if (this.num == 0) {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
phone: that.merchantData.phone,
|
phone: that.merchantData.phone,
|
||||||
mer_name: that.merchantData.enterprise_name,
|
mer_name: that.merchantData.enterprise_name,
|
||||||
@ -809,14 +815,15 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.isshow = true
|
||||||
|
this.countDown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
|
||||||
this.isshow = true
|
|
||||||
this.countDown()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
validateBtn: function() {
|
validateBtn: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
@ -1303,25 +1310,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settlementAgreement .setAgCount .content {
|
.settlementAgreement .setAgCount .content {
|
||||||
margin-top: 32rpx;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
text-justify: distribute-all-lines;
|
text-justify: distribute-all-lines;
|
||||||
height: 756rpx;
|
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.settlementAgreement .setAgCount .contenta {
|
.settlementAgreement .setAgCount .contenta {
|
||||||
margin-top: 32rpx;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
text-justify: distribute-all-lines;
|
text-justify: distribute-all-lines;
|
||||||
height: 1000rpx;
|
height: 75%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
|
||||||
|
@ -594,6 +594,7 @@
|
|||||||
that.is_promoter = res.data.is_promoter;
|
that.is_promoter = res.data.is_promoter;
|
||||||
that.extension_status = res.data.extension_status;
|
that.extension_status = res.data.extension_status;
|
||||||
that.getMyMenus();
|
that.getMyMenus();
|
||||||
|
that.$store.commit('SET_USERINFO', that.userInfo);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 订单数字
|
// 订单数字
|
||||||
|
@ -103,13 +103,13 @@
|
|||||||
<text class='iconfont icon-you'></text>
|
<text class='iconfont icon-you'></text>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class='item acea-row row-between-wrapper'>
|
<view class='item acea-row row-between-wrapper'>
|
||||||
<view>注销账号</view>
|
<view>注销账号</view>
|
||||||
<view class='input acea-row row-between-wrapper' @click="changeCancel">
|
<view class='input acea-row row-between-wrapper' @click="changeCancel">
|
||||||
<input type='text' placeholder="账号注销后不能恢复" disabled='true' class='id'></input>
|
<input type='text' placeholder="账号注销后不能恢复" disabled='true' class='id'></input>
|
||||||
<text class='iconfont icon-you'></text>
|
<text class='iconfont icon-you'></text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
<!--#ifdef APP-PLUS-->
|
<!--#ifdef APP-PLUS-->
|
||||||
<view class='item acea-row row-between-wrapper'>
|
<view class='item acea-row row-between-wrapper'>
|
||||||
<view>当前版本</view>
|
<view>当前版本</view>
|
||||||
|
BIN
static/applet/fl.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
static/applet/jy.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
static/applet/ny.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
static/applet/qg.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
static/applet/yz.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
static/applet/zz.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
static/images/LHYC/DWBG.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 6.0 KiB |
BIN
static/wgt/__UNI__9620511.wgt
Normal file
@ -4,12 +4,10 @@ import {
|
|||||||
} from "../../api/user.js";
|
} from "../../api/user.js";
|
||||||
import {
|
import {
|
||||||
LOGIN_STATUS,
|
LOGIN_STATUS,
|
||||||
UID
|
UID,
|
||||||
|
USER_INFO
|
||||||
} from '../../config/cache';
|
} from '../../config/cache';
|
||||||
import Cache from '../../utils/cache';
|
import Cache from '../../utils/cache';
|
||||||
import {
|
|
||||||
USER_INFO
|
|
||||||
} from '../../config/cache';
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
import Updater from '@/uni_modules/guyue-updater/index';
|
import Updater from '@/uni_modules/guyue-updater/index';
|
||||||
// #endif
|
// #endif
|
||||||
@ -18,7 +16,7 @@ const state = {
|
|||||||
location: Cache.get('LOCATION_DATA', true) || {},
|
location: Cache.get('LOCATION_DATA', true) || {},
|
||||||
token: Cache.get(LOGIN_STATUS) || null,
|
token: Cache.get(LOGIN_STATUS) || null,
|
||||||
backgroundColor: "#fff",
|
backgroundColor: "#fff",
|
||||||
userInfo: null,
|
userInfo: Cache.get(USER_INFO)||null,
|
||||||
uid: Cache.get(UID) || null,
|
uid: Cache.get(UID) || null,
|
||||||
globalData: uni.getStorageSync('GLOBAL_DATA') || {},
|
globalData: uni.getStorageSync('GLOBAL_DATA') || {},
|
||||||
homeActive: false,
|
homeActive: false,
|
||||||
@ -39,6 +37,10 @@ const mutations = {
|
|||||||
Cache.set(LOGIN_STATUS, opt.token, opt.time);
|
Cache.set(LOGIN_STATUS, opt.token, opt.time);
|
||||||
uni.removeStorageSync('auth_token');
|
uni.removeStorageSync('auth_token');
|
||||||
},
|
},
|
||||||
|
SET_USERINFO(state, opt){
|
||||||
|
state.userInfo = opt;
|
||||||
|
Cache.set(USER_INFO, opt);
|
||||||
|
},
|
||||||
SETUID(state, val) {
|
SETUID(state, val) {
|
||||||
state.uid = val;
|
state.uid = val;
|
||||||
Cache.set(UID, val);
|
Cache.set(UID, val);
|
||||||
@ -123,7 +125,7 @@ const actions = {
|
|||||||
phone_brand:os.brand
|
phone_brand:os.brand
|
||||||
|
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
if (Object.keys(res.data.appInfo).length > 0) {
|
if (Object.keys(res.data.appInfo).length > 0) {
|
||||||
// if(res.data.appInfo.version) uni.showLoading({
|
// if(res.data.appInfo.version) uni.showLoading({
|
||||||
// title: '检查更新中'
|
// title: '检查更新中'
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
import {
|
import {
|
||||||
HTTP_REQUEST_URL,
|
HTTP_REQUEST_URL,
|
||||||
|
HTTP_REQUEST_URL_FOUR,
|
||||||
HEADER,
|
HEADER,
|
||||||
TOKENNAME
|
TOKENNAME
|
||||||
} from '@/config/app';
|
} from '@/config/app';
|
||||||
@ -18,6 +19,7 @@ import {
|
|||||||
import store from '../store';
|
import store from '../store';
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(HTTP_REQUEST_URL_FOUR)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发送请求
|
* 发送请求
|
||||||
@ -27,7 +29,7 @@ function baseRequest(url, method, data, {
|
|||||||
noVerify = false
|
noVerify = false
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
let Url = 'https://preview-worker-task.lihaink.cn',
|
let Url = HTTP_REQUEST_URL_FOUR,
|
||||||
header = HEADER;
|
header = HEADER;
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +46,7 @@ function baseRequest(url, method, data, {
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// console.log('app', Url + '/api/' + url, res.data);
|
// console.log('app', Url + '/api/' + url, res.data);
|
||||||
// #endif
|
// #endif
|
||||||
console.log(res.data.code)
|
// console.log(res.data.code)
|
||||||
if (noVerify)
|
if (noVerify)
|
||||||
reslove(res.data, res);
|
reslove(res.data, res);
|
||||||
else if (res.data.status == 200)
|
else if (res.data.status == 200)
|
||||||
@ -58,7 +60,6 @@ function baseRequest(url, method, data, {
|
|||||||
})
|
})
|
||||||
reject(res.data);
|
reject(res.data);
|
||||||
} else if (res.statusCode==200) {
|
} else if (res.statusCode==200) {
|
||||||
console.log(res)
|
|
||||||
reslove(res.data,res.data);
|
reslove(res.data,res.data);
|
||||||
} else
|
} else
|
||||||
reject(res.data.message || '系统错误');
|
reject(res.data.message || '系统错误');
|
||||||
|
@ -5,6 +5,7 @@ import {
|
|||||||
HTTP_REQUEST_URL
|
HTTP_REQUEST_URL
|
||||||
} from '@/config/app';
|
} from '@/config/app';
|
||||||
const mp = uni.requireNativePlugin('uniMP');
|
const mp = uni.requireNativePlugin('uniMP');
|
||||||
|
import store from "@/store/modules/app.js"
|
||||||
|
|
||||||
let appid = ''; // 应用id
|
let appid = ''; // 应用id
|
||||||
let wgtFile = ''; // 应用文件地址
|
let wgtFile = ''; // 应用文件地址
|
||||||
@ -84,6 +85,23 @@ const loadMP = async (id) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 按URL加载小程序
|
||||||
|
const loadMPurl = async (e) => {
|
||||||
|
appid = e.id;
|
||||||
|
mp.getUniMPVersion(appid, (ret) => {
|
||||||
|
console.log('当前版本', ret);
|
||||||
|
wgtFile = e.url;
|
||||||
|
doInstallMP();
|
||||||
|
// if (0 != ret.code) {
|
||||||
|
// wgtFile = e.url;
|
||||||
|
// installMP();
|
||||||
|
// } else {
|
||||||
|
// open()
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// 小程序版本信息
|
// 小程序版本信息
|
||||||
const getVersion = (id) => {
|
const getVersion = (id) => {
|
||||||
appid = id;
|
appid = id;
|
||||||
@ -117,7 +135,7 @@ const doInstallMP = () => {
|
|||||||
showCancel: false
|
showCancel: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log('初始化供销: ' + JSON.stringify(r));
|
console.log('初始化: ' + JSON.stringify(r));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -127,11 +145,13 @@ const open = (id = null) => {
|
|||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '请先登录'
|
title: '请先登录'
|
||||||
})
|
})
|
||||||
|
let avatar = store?.state?.userInfo?.avatar;
|
||||||
mp.openUniMP({
|
mp.openUniMP({
|
||||||
appid: id || appid,
|
appid: id || appid,
|
||||||
extraData: {
|
extraData: {
|
||||||
uniMP: true,
|
uniMP: true,
|
||||||
token: token,
|
token: token,
|
||||||
|
avatar: avatar,
|
||||||
}
|
}
|
||||||
}, (ret) => {
|
}, (ret) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
@ -148,6 +168,7 @@ const open = (id = null) => {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
loadMP,
|
loadMP,
|
||||||
|
loadMPurl,
|
||||||
installMP,
|
installMP,
|
||||||
doInstallMP,
|
doInstallMP,
|
||||||
getVersion,
|
getVersion,
|
||||||
|