Compare commits

..

No commits in common. "19066833336c0f6ae0c55af5d9b2113baa8491b4" and "2647831d1249317e14a7f1cabfbcd18fbdcafe9a" have entirely different histories.

11 changed files with 35 additions and 183 deletions

View File

@ -1,131 +0,0 @@
<template>
<view>
<uni-popup ref="activityPopup" :is-mask-click="false">
<view class="a_c_home">
<view class="c_card">
<view class="c_content">
<scroll-view style="height: 100%;" scroll-y>
<view v-if="info.content" v-html="info.content.content"></view>
</scroll-view>
</view>
</view>
<image class="head_img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/ab014202402291802294524.png" info="活动标题"></image>
<view class="head_title">增收销售补贴</view>
<image class="close_img" @click="close" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/close.png" info="关闭按钮"></image>
</view>
</uni-popup>
</view>
</template>
<script>
import { getArticleList } from "@/api/api.js"
export default {
data(){
return {
info: '',
userInfo: {}
}
},
created() {
let user = this.$store.state.app.userInfo;
if(typeof user =='string') user = JSON.parse(user);
this.userInfo = user;
this.getArticleList();
},
watch:{
},
methods:{
close(){
this.$refs.activityPopup.close();
},
getArticleList(){
getArticleList(28).then(res=>{
if(this.userInfo.mer_info.type_code=='PersonalStore'){
this.info = res.data.list[0];
this.$refs.activityPopup.open();
}
else {
this.info = res.data.list[1];
this.$refs.activityPopup.open();
}
})
}
}
}
</script>
<style lang="scss">
.a_c_home{
width: 600rpx;
/* #ifdef H5 */
height: 75vh;
/* #endif */
/* #ifndef H5 */
height: 90vh;
/* #endif */
// border: 1px solid red;
position: relative;
.head_img{
width: 419rpx;
height: 86rpx;
position: absolute;
top: 130rpx;
left: 50%;
transform: translate(-50%);
}
.head_title{
width: 419rpx;
height: 86rpx;
position: absolute;
top: 130rpx;
left: 50%;
transform: translate(-50%);
display: flex;
justify-content: center;
align-items: center;
color: #9C3922;
font-weight: bold;
font-size: 34rpx;
}
.c_card{
height: calc(100% - 300rpx);
width: 100%;
background-color: #fff;
position: absolute;
border-radius: 50rpx;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 30rpx;
padding-top: 70rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
.c_content{
height: 100%;
width: 100%;
// background-color: #eee;
}
.btn_box{
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
.btn_img{
width: 461rpx;
height: 100rpx;
}
}
}
.close_img{
position: absolute;
bottom: 60rpx;
left: 50%;
transform: translate(-50%);
width: 60rpx;
height: 60rpx;
}
}
</style>

View File

@ -2,8 +2,8 @@
"name" : "惠农商户平台",
"appid" : "__UNI__1EE148C",
"description" : "",
"versionName" : "1.2.2",
"versionCode" : 122,
"versionName" : "1.2.1",
"versionCode" : 121,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -151,6 +151,7 @@
getSubsidy(this.mer_id, {
type: this.type
}).then(res=>{
console.log(res);
this.info = res.data;
})
},
@ -166,14 +167,13 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
page{
background-color: #fff;
}
.page {
position: relative;
font-size: 28rpx;
background-color: #fff;
}
.bg {

View File

@ -1,7 +1,7 @@
<template>
<view class="page">
<view class="OrderCancellation">
<view class="header":style="{ 'background-image': `url(https://lihai001.oss-cn-chengdu.aliyuncs.com/public/static/cancellation-header.png)`}">
<view class="header":style="{ 'background-image': `url(${domain}/static/images/cancellation-header.png)`}">
</view>
<view class="scan_count">
<view class="scan_bg"></view>

View File

@ -33,13 +33,12 @@
} = option;
wechat.auth(code, state)
.then(() => {
console.log(decodeURIComponent(decodeURIComponent(option.back_url)),'back_url')
// console.log(decodeURIComponent(decodeURIComponent(option.back_url)),'back_url')
const href = decodeURIComponent(decodeURIComponent(option.back_url))
location.replace(href)
})
.catch((err) => {
console.log();
location.replace("/pages/users/login/index_copy");
location.replace("/");
});
}
};

View File

@ -403,7 +403,6 @@
</form>
</view>
</uni-popup>
<activePopup v-if="userInfoData.mer_info.type_id"></activePopup>
</view>
</template>
@ -411,7 +410,6 @@
import authorize from '@/components/Authorize';
import ordertime from './component/timelist.vue'
import retuntop from '@/components/content-top/index.vue';
import activePopup from '@/components/activePopup.vue';
import {
setAdminOrderRemark
@ -441,8 +439,8 @@ import { Toast } from '../../libs/uniApi';
components: {
authorize,
ordertime,
retuntop,
activePopup
retuntop
},
data() {
return {
@ -450,7 +448,10 @@ import { Toast } from '../../libs/uniApi';
isShowAuth: false, //
loadEndFlag: false,
list: [{
name: '账户总金额',
name: '今日成交额',
value: 0
}, {
name: '今日订单数',
value: 0
}, {
name: '本月订单数',
@ -551,13 +552,11 @@ import { Toast } from '../../libs/uniApi';
name: '入库管理',
type: 13,
image: require('@/static/images/index9.png')
},
{
}, {
name: '订单管理',
type: 2,
image: require('@/static/images/index1.png')
},
{
}, {
name: '提现管理',
type: 5,
image: require('@/static/images/index8.png')
@ -622,11 +621,6 @@ import { Toast } from '../../libs/uniApi';
type: 16,
image: require('@/static/images/index23.png')
},
{
name: '全部',
type: 8,
image: require('@/static/images/index3.png')
}
],
refundInfo: {},
company: '',
@ -634,6 +628,7 @@ import { Toast } from '../../libs/uniApi';
show: false,
refundMark: false,
where: {
page: 1,
limit: 3,
status: 2
@ -1103,7 +1098,9 @@ import { Toast } from '../../libs/uniApi';
this.order[2].value = res.data.order.untake
this.order[3].value = res.data.order.unevaluate
this.order[4].value = res.data.order.refund
this.list[1].value = res.data.data.month.orderNum
this.list[0].value = res.data.data.today.payPrice
this.list[1].value = res.data.data.today.orderNum
this.list[2].value = res.data.data.month.orderNum
},
err => {
that.$util.Tips({
@ -1145,7 +1142,6 @@ import { Toast } from '../../libs/uniApi';
res.data.mer_info.is_company?res.data.mer_info.is_company=1:res.data.mer_info.is_company=0
this.userid = res.data.uid
this.userInfoData = res.data;
this.list[0].value = res.data.now_money;
this.$store.commit('SET_USERINFO', res.data);
this.merchantData.phone = res.data.phone;
if(res.data.mer_info.is_company==0) !this.merchantData.company_name ? this.merchantData.company_name = "" : null;
@ -2058,9 +2054,7 @@ import { Toast } from '../../libs/uniApi';
margin-top: 61rpx;
.content-middlea {
// width: 161rpx;
flex: 1;
flex-shrink: 0;
width: 161rpx;
text-align: center;
.content-middlea-one {

View File

@ -96,17 +96,6 @@
</image>
<text class="text">委托订单</text>
</view>
<view class="examine" @click="navigator(`/pages/activeCode/subsidy`)">
<image class="icon_img" src="@/static/images/index23.png" mode="aspectFit">
</image>
<text class="text">补贴进度</text>
</view>
<view class="examine" @click="navigator(`/pages/payment/qrcode`)">
<image class="icon_img" src="@/static/images/index24.png" mode="aspectFit">
</image>
<text class="text">面对面收款</text>
</view>
<!-- <view class="examine" @click="navigator(`/pages/nongKe/teach_video/teach_video`)">
<image class="icon_img"
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/spjs.png" mode="aspectFit">
@ -128,7 +117,7 @@
</view>
<view class="business com"
v-if="userInfoData.mer_info.type_code === 'TypeStore'||userInfoData.mer_info.type_code === 'TypeTownSupplyChain'||userInfoData.mer_info.type_code === 'PersonalStore'">
v-if="userInfoData.mer_info.type_code === 'TypeStore'||userInfoData.mer_info.type_code === 'TypeTownSupplyChain'">
<view class="business com" v-if="true">
<view class="special_work com">
<view class="title">我的店铺</view>
@ -170,11 +159,11 @@
<image class="icon_img" src="@/static/images/index13.png" mode="aspectFit"></image>
<text class="text">转账订单</text>
</view>
<!-- <view class="examine" @click="navigator(`/pages/admin/stockOut/index?mer_id=${mer_id}`)">
<view class="examine" @click="navigator(`/pages/admin/stockOut/index?mer_id=${mer_id}`)">
<image class="icon_img" src="@/static/images/index10.png" mode="aspectFit">
</image>
<text class="text">扫码出库</text>
</view> -->
</view>
<view class="examine"
@click="navigator(`/pages/nongKe/gather/select_warehouse?mer_id=${mer_id}&stype=2`)">
<image class="icon_img" src="@/static/images/index9.png" mode="aspectFit">
@ -268,7 +257,7 @@
<view class="examine" @click="navigator(`/pages/payment/qrcode`)">
<image class="icon_img" src="@/static/images/index24.png" mode="aspectFit">
</image>
<text class="text">面对面收款</text>
<text class="text">面对面交易</text>
</view>
<!-- <view class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">
@ -312,11 +301,11 @@
<image class="icon_img" src="@/static/images/index5.png" mode="aspectFit"></image>
<text class="text">进货管理</text>
</view>
<!-- <view class="examine" @click="navigator(`/pages/admin/stockOut/index?mer_id=${mer_id}`)">
<view class="examine" @click="navigator(`/pages/admin/stockOut/index?mer_id=${mer_id}`)">
<image class="icon_img" src="@/static/images/index10.png" mode="aspectFit">
</image>
<text class="text">扫码出库</text>
</view> -->
</view>
<view class="examine"
@click="navigator(`/pages/nongKe/gather/select_warehouse?mer_id=${mer_id}&stype=2`)">
<image class="icon_img" src="@/static/images/index9.png" mode="aspectFit">
@ -369,7 +358,7 @@
<view class="examine" @click="navigator(`/pages/payment/qrcode`)">
<image class="icon_img" src="@/static/images/index24.png" mode="aspectFit">
</image>
<text class="text">面对面收款</text>
<text class="text">面对面交易</text>
</view>
@ -457,7 +446,7 @@
<view class="examine" @click="navigator(`/pages/payment/qrcode`)">
<image class="icon_img" src="@/static/images/index24.png" mode="aspectFit">
</image>
<text class="text">面对面收款</text>
<text class="text">面对面交易</text>
</view>
</view>
@ -724,6 +713,7 @@ export default {
created () { },
onLoad () {
this.Fheight = uni.getSystemInfoSync().windowHeight + 'px';
console.log(this.Fheight)
if(ENV!='prod') this.no_prod = true;
},
onShow () {
@ -738,6 +728,8 @@ export default {
this.codelist()
this.list()
},

View File

@ -296,7 +296,7 @@
}
},
onShow() {
},
methods: {
addGoods(item={}) {

View File

@ -110,9 +110,7 @@
}
},
onLoad(opt) {
let user = this.$store.state.app.userInfo;
if(typeof user =='string') user = JSON.parse(user);
this.getQrcode(user.service.mer_id)
this.getQrcode(opt.mer_id)
},
methods: {
//

View File

@ -641,7 +641,7 @@
}
if (!t.price || +t.price <= 0) showFlag = '零售价不能小于0';
if (!t.stock || +t.stock <= 0) showFlag = '库存不能小于0';
// if (!t.cost || +t.cost <= 0) showFlag = '0';
if (!t.cost || +t.cost <= 0) showFlag = '成本价不能小于0';
})
if (showFlag) {
if (this.setFormData.spec_type == 1) showFlag += ', 请点击设置多规格设置';

View File

@ -274,7 +274,7 @@
if(userInfo?.mer_info?.type_code=="TypeSupplyChain" && (!postData.attrValue[0]?.procure_price||postData.attrValue[0]?.procure_price<=0) )return Toast('批发价不能小于0');
if(!postData.attrValue[0]?.price||postData.attrValue[0]?.price<=0)return Toast('零售价不能小于0');
if(!postData.stock||postData.stock<0)return Toast('库存不能小于0');
// if(!postData.attrValue[0]?.cost||postData.attrValue[0]?.cost<=0)return Toast('0');
if(!postData.attrValue[0]?.cost||postData.attrValue[0]?.cost<=0)return Toast('成本价不能小于0');
// if(!postData.content.title||postData.content.title?.trim().length<=0)return Toast('');
// if(!postData.content.image||postData.content.image?.length<=0)return Toast('');
// return Toast('');