Browse Source

新增公众号,文档问题部分修改

master
杨豪 3 years ago
parent
commit
f5d63af524
  1. 157
      App.vue
  2. 4
      config/index.js
  3. 1
      main.js
  4. 5
      pages/Loading/index.vue
  5. 2
      pages/demandHall/needsDetail/index.vue
  6. 86
      pages/life/addGoods/index.vue
  7. 120
      pages/release/companyAuth/index.vue
  8. 6
      pages/release/index.vue
  9. 4
      pages/shop/GoodsCon/index.vue
  10. 13
      pages/user/editNeeds/index.vue
  11. 18
      pages/user/goodsManage/index.vue
  12. 19
      pages/user/index.vue
  13. 107
      pages/user/mine/index.vue
  14. 46
      pages/user/openStore/index.vue
  15. 2
      tabbarComponent/tabbar.vue

157
App.vue

@ -5,7 +5,6 @@ import {
export default { export default {
onLaunch: function (e) { onLaunch: function (e) {
var that = this; // var that = this; //
this.setMenuHeight(); this.setMenuHeight();
this.autoUpdate(); this.autoUpdate();
uni.hideTabBar() uni.hideTabBar()
@ -24,13 +23,16 @@ export default {
inviterId: null, inviterId: null,
// //
systemInfo: null, systemInfo: null,
scene: null, //
}, },
onShow(e) { onShow(e) {
this.globalData.scene = e.scene
console.log(this.globalData.scene,'this.globalData.scene')
//tabbar //tabbar
uni.hideTabBar(); uni.hideTabBar();
var query = {}; var query = {};
if (e.query.q) { if (e.query.q) {
//storage //storage
let urlSpread = e.query.q; let urlSpread = e.query.q;
@ -56,6 +58,157 @@ export default {
}, },
methods: { methods: {
sceneInfo(s) {
console.log(s)
var scene = [];
switch (s) {
case 1001:
scene.push(s, "发现栏小程序主入口");
break;
case 1005:
scene.push(s, "顶部搜索框的搜索结果页");
break;
case 1006:
scene.push(s, "发现栏小程序主入口搜索框的搜索结果页");
break;
case 1007:
scene.push(s, "单人聊天会话中的小程序消息卡片");
break;
case 1008:
scene.push(s, "群聊会话中的小程序消息卡片");
break;
case 1011:
scene.push(s, "扫描二维码");
break;
case 1012:
scene.push(s, "长按图片识别二维码");
break;
case 1014:
scene.push(s, "手机相册选取二维码");
break;
case 1017:
scene.push(s, "前往体验版的入口页");
break;
case 1019:
scene.push(s, "微信钱包");
break;
case 1020:
scene.push(s, "公众号profile页相关小程序列表");
break;
case 1022:
scene.push(s, "聊天顶部置顶小程序入口");
break;
case 1023:
scene.push(s, "安卓系统桌面图标");
break;
case 1024:
scene.push(s, "小程序profile页");
break;
case 1025:
scene.push(s, "扫描一维码");
break;
case 1026:
scene.push(s, "附近小程序列表");
break;
case 1027:
scene.push(s, "顶部搜索框搜索结果页“使用过的小程序”列表");
break;
case 1028:
scene.push(s, "我的卡包");
break;
case 1029:
scene.push(s, "卡券详情页");
break;
case 1031:
scene.push(s, "长按图片识别一维码");
break;
case 1032:
scene.push(s, "手机相册选取一维码");
break;
case 1034:
scene.push(s, "微信支付完成页");
break;
case 1035:
scene.push(s, "公众号自定义菜单");
break;
case 1036:
scene.push(s, "App分享消息卡片");
break;
case 1037:
scene.push(s, "小程序打开小程序");
break;
case 1038:
scene.push(s, "从另一个小程序返回");
break;
case 1039:
scene.push(s, "摇电视");
break;
case 1042:
scene.push(s, "添加好友搜索框的搜索结果页");
break;
case 1044:
scene.push(s, "带shareTicket的小程序消息卡片");
break;
case 1047:
scene.push(s, "扫描小程序码");
break;
case 1048:
scene.push(s, "长按图片识别小程序码");
break;
case 1049:
scene.push(s, "手机相册选取小程序码");
break;
case 1052:
scene.push(s, "卡券的适用门店列表");
break;
case 1053:
scene.push(s, "搜一搜的结果页");
break;
case 1054:
scene.push(s, "顶部搜索框小程序快捷入口");
break;
case 1056:
scene.push(s, "音乐播放器菜单");
break;
case 1058:
scene.push(s, "公众号文章");
break;
case 1059:
scene.push(s, "体验版小程序绑定邀请页");
break;
case 1064:
scene.push(s, "微信连Wifi状态栏");
break;
case 1067:
scene.push(s, "公众号文章广告");
break;
case 1068:
scene.push(s, "附近小程序列表广告");
break;
case 1072:
scene.push(s, "二维码收款页面");
break;
case 1073:
scene.push(s, "客服消息列表下发的小程序消息卡片");
break;
case 1074:
scene.push(s, "公众号会话下发的小程序消息卡片");
break;
case 1089:
scene.push(s, "微信聊天主界面下拉");
break;
case 1090:
scene.push(s, "长按小程序右上角菜单唤出最近使用历史");
break;
case 1092:
scene.push(s, "城市服务入口");
break;
default:
scene.push("未知入口");
break;
}
return scene;
},
autoUpdate: function () { autoUpdate: function () {
// console.log(new Date()); // console.log(new Date());
var self = this; // var self = this; //

4
config/index.js

@ -1,8 +1,8 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
// export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api'
// export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api' export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';

1
main.js

@ -115,5 +115,6 @@ Vue.mixin({
store.commit('updateDevicetype', deviceType) store.commit('updateDevicetype', deviceType)
Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL
Vue.component('cu-custom', cuCustom) Vue.component('cu-custom', cuCustom)
app.$mount(); app.$mount();

5
pages/Loading/index.vue

@ -49,7 +49,10 @@ export default {
if (this.$store.getters.token) { if (this.$store.getters.token) {
// token // token
console.log('登录状态存在,直接进页面') console.log('登录状态存在,直接进页面')
this.toLaunch() // this.toLaunch()
this.$yrouter.switchTab({
path: '/pages/home/index',
})
return return
} }
console.log('进行登录操作') console.log('进行登录操作')

2
pages/demandHall/needsDetail/index.vue

@ -28,7 +28,7 @@
<view class="col-line"></view> <view class="col-line"></view>
<text>发布公司</text> <text>发布公司</text>
</view> </view>
<view class="company-card-box acea-row-nowrap row-middle"> <view class="company-card-box acea-row-nowrap row-middle" @click="toCompanyDetail()">
<image :src="detail.enterprise.enterpriseLogo" class="company-logo" mode="aspectFill"></image> <image :src="detail.enterprise.enterpriseLogo" class="company-logo" mode="aspectFill"></image>
<view class="info"> <view class="info">
<view class="company-name">{{detail.enterprise.enterpriseName}}</view> <view class="company-name">{{detail.enterprise.enterpriseName}}</view>

86
pages/life/addGoods/index.vue

@ -96,16 +96,11 @@
<view class="sku img-sku acea-row row-middle row-between"> <view class="sku img-sku acea-row row-middle row-between">
<text>库存<text class="colR">*</text></text> <text>库存<text class="colR">*</text></text>
<input type="number" v-model="attrs[0].stock" @input="changeStock" placeholder="请输入库存" /> <input type="number" v-model="attrs[0].stock" @input="changeStock" placeholder="请输入库存" />
<!-- <view class="acea-row row-middle">
<switch :checked="!infinite" @change="stockChange" style="transform: scale(0.8);" />
<view>{{infinite ? '不限' : '有限'}}</view>
</view>
<view class="colB">批量设置</view> -->
</view> </view>
</view> </view>
</view> </view>
<!-- 批量操作 --> <!-- 批量操作 -->
<view class="batch-set-box" v-if="batchData.titleStr"> <view class="batch-set-box" v-if="batchData.titleStr != ''">
<view class="box-top acea-row row-between-wrapper"> <view class="box-top acea-row row-between-wrapper">
<view class="name">{{batchData.titleStr}}</view> <view class="name">{{batchData.titleStr}}</view>
<view class="attr-name w15">库存</view> <view class="attr-name w15">库存</view>
@ -136,7 +131,7 @@
<radio :value="0" :checked="state == 0" /><text>上架</text> <radio :value="0" :checked="state == 0" /><text>上架</text>
</label> </label>
<label> <label>
<radio :value="1" :checked="state == 1" /><text></text> <radio :value="1" :checked="state == 1" /><text>不上</text>
</label> </label>
</radio-group> </radio-group>
</view> </view>
@ -200,9 +195,9 @@
maskShow: false, maskShow: false,
addOptionsDialog: false, addOptionsDialog: false,
infinite: false, infinite: false,
batchData: {}, batchData: {titleStr: '',priceArr: []},
editattr: false, editattr: false,
priceArr: [],
} }
}, },
onLoad() { onLoad() {
@ -332,10 +327,15 @@
getFormatAttr(data).then((res)=>{ getFormatAttr(data).then((res)=>{
if(res.success){ if(res.success){
this.$set(this.batchData,'priceArr',res.data.value) this.$set(this.batchData,'priceArr',res.data.value)
if(res.data.attr){
let strArr = res.data.attr.map(item=>{ let strArr = res.data.attr.map(item=>{
return item.value return item.value
}) })
this.$set(this.batchData,'titleStr',strArr.join('/')) this.$set(this.batchData,'titleStr',strArr.join('/'))
} else{
this.$set(this.batchData,'titleStr','')
}
} else{ } else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
@ -344,32 +344,6 @@
} }
}) })
}, },
//
setBatchData(arr){
var titleArr = []
for (var i in arr) {
titleArr.push(arr[i].value)
}
var titleStr = titleArr.join('/')
var attrArr = this.setData(arr)
var branchList = []
var hash = {}
attrArr.forEach((item,idx)=>{
branchList.push({
sku: item.join('/'),
pic: '', //" --",
price: '', //" ",
ot_orice: '', //" --",
stock: '', //"",
weight: '', //" --",
volume: '', //" --"
})
})
console.log(attrArr,'attrArr')
this.priceArr = branchList
this.batchData.attrArr = attrArr
console.log(this.batchData)
},
// //
setData(attrArr){ setData(attrArr){
var tmp = [] var tmp = []
@ -393,44 +367,22 @@
// //
changePrice(e){ changePrice(e){
const price = e.detail.value const price = e.detail.value
if(this.batchData.priceArr && this.batchData.priceArr.length > 0){
this.batchData.priceArr.forEach((item,i)=>{ this.batchData.priceArr.forEach((item,i)=>{
item.price = price item.price = price
}) })
}
this.attrs[0].price = price this.attrs[0].price = price
// console.log(this.batchData.priceArr,'this.batchData.priceArr') // console.log(this.batchData.priceArr,'this.batchData.priceArr')
}, },
changeStock(e){ changeStock(e){
const stock = e.detail.value const stock = e.detail.value
if(this.batchData.priceArr && this.batchData.priceArr.length > 0){
this.batchData.priceArr.forEach((item,i)=>{ this.batchData.priceArr.forEach((item,i)=>{
item.stock = stock item.stock = stock
}) })
this.attrs[0].stock = stock
},
//
addSku(){
let item = {
pic: '', //" --",
price: '', //" ",
ot_orice: '', //" --",
stock: '', //"",
weight: '', //" --",
volume: '', //" --"
} }
this.attrs.push(item) this.attrs[0].stock = stock
uni.pageScrollTo({
scrollTop: 999999
})
},
delSku(idx){
this.attrs.splice(idx,1)
},
//
stockChange(e){
// console.log(e)
this.infinite = !e.detail.value
},
radioChange(e){
this.state = e.detail.value
}, },
submit(){ submit(){
// console.log(this.batchData) // console.log(this.batchData)
@ -446,7 +398,7 @@
image: this.slider_image[0], // image: this.slider_image[0], //
slider_image: this.slider_image , // slider_image: this.slider_image , //
description: this.description, // description: this.description, //
tempId: 1, // tempId: this.tempId, //
attrs: arrtsArr, attrs: arrtsArr,
state: this.state, state: this.state,
items: this.items, items: this.items,
@ -484,9 +436,9 @@
duration: 1500 duration: 1500
}) })
setTimeout((res)=>{ setTimeout((res)=>{
uni.navigateTo({ uni.redirectTo({
url: '/pages/user/goodsManage/index' url: '/pages/user/goodsManage/index'
}) });
},1500) },1500)
} else{ } else{
uni.showToast({ uni.showToast({
@ -503,9 +455,9 @@
duration: 1500 duration: 1500
}) })
setTimeout((res)=>{ setTimeout((res)=>{
uni.navigateTo({ uni.redirectTo({
url: '/pages/user/goodsManage/index' url: '/pages/user/goodsManage/index'
}) });
},1500) },1500)
} else{ } else{
uni.showToast({ uni.showToast({
@ -515,8 +467,6 @@
} }
}) })
} }
console.log(form,'form')
}, },
alertMessage(msg){ alertMessage(msg){
uni.showToast({ uni.showToast({

120
pages/release/companyAuth/index.vue

@ -16,7 +16,8 @@
<view class="authbook-box" v-if="form.isLegalPerson == 0"> <view class="authbook-box" v-if="form.isLegalPerson == 0">
<view class="tips">非法人申请需上传加盖公章的申请授权书</view> <view class="tips">非法人申请需上传加盖公章的申请授权书</view>
<view class="upload-box acea-row row-between"> <view class="upload-box acea-row row-between">
<image src="https://download.cyjyyjy.com/sq.png" v-if="form.authorizationPath == ''" @tap="upCard" data-type="ap"></image> <image src="https://download.cyjyyjy.com/sq.png" v-if="form.authorizationPath == ''" @tap="upCard"
data-type="ap"></image>
<image :src="form.authorizationPath" v-else @tap="upCard" data-type="ap"></image> <image :src="form.authorizationPath" v-else @tap="upCard" data-type="ap"></image>
<image src="https://download.cyjyyjy.com/sqs.png" @tap="prevImg"></image> <image src="https://download.cyjyyjy.com/sqs.png" @tap="prevImg"></image>
</view> </view>
@ -34,13 +35,15 @@
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">企业名称</view> <view class="label">企业名称</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.enterpriseName" @input="inpChange" data-type="enterpriseName" placeholder="请填写企业名称"> <input type="text" :value="form.enterpriseName" @input="inpChange" data-type="enterpriseName"
placeholder="请填写企业名称">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">信用代码</view> <view class="label">信用代码</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.creditCode" @input="inpChange" data-type="creditCode" placeholder="13位或18位数字及大写字母"> <input type="text" :value="form.creditCode" @input="inpChange" data-type="creditCode"
placeholder="13位或18位数字及大写字母">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
@ -48,7 +51,8 @@
<view class="inp-box acea-row row-right row-middle"> <view class="inp-box acea-row row-right row-middle">
<!-- <input type="text" value="{{form.profession}}" disabled="true" placeholder="请选择" /> <!-- <input type="text" value="{{form.profession}}" disabled="true" placeholder="请选择" />
<image src="https://download.cyjyyjy.com/home/arrow-r.png" class="arrorR"></image> --> <image src="https://download.cyjyyjy.com/home/arrow-r.png" class="arrorR"></image> -->
<picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList" :range-key="'cagetoryName'" mode="selector"> <picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList"
:range-key="'cagetoryName'" mode="selector">
<view class="picker">{{resourcesList[resourcesIdx].cagetoryName || '请选择'}}</view> <view class="picker">{{resourcesList[resourcesIdx].cagetoryName || '请选择'}}</view>
</picker> </picker>
</view> </view>
@ -64,7 +68,8 @@
<view class="form-item noBorder"> <view class="form-item noBorder">
<view class="label">营业执照</view> <view class="label">营业执照</view>
<view class="inp-box yyzz"> <view class="inp-box yyzz">
<image src="https://download.cyjyyjy.com/yyzz.png" v-if="form.businessLicense == ''" @tap="upCard" data-type="bl"></image> <image src="https://download.cyjyyjy.com/yyzz.png" v-if="form.businessLicense == ''" @tap="upCard"
data-type="bl"></image>
<image :src="form.businessLicense" v-else @tap="upCard" data-type="bl"></image> <image :src="form.businessLicense" v-else @tap="upCard" data-type="bl"></image>
</view> </view>
</view> </view>
@ -75,19 +80,22 @@
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">银行账号</view> <view class="label">银行账号</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.bankAccount" @input="inpChange" @blur="checkBank" data-type="bankAccount" placeholder="银行账号"> <input type="text" :value="form.bankAccount" @input="inpChange" @blur="checkBank"
data-type="bankAccount" placeholder="银行账号">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">开户银行</view> <view class="label">开户银行</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.bankName" @input="inpChange" data-type="bankName" placeholder="请填写开户银行"> <input type="text" :value="form.bankName" @input="inpChange" data-type="bankName"
placeholder="请填写开户银行">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">开户网点</view> <view class="label">开户网点</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.bankBranch" @input="inpChange" data-type="bankBranch" placeholder="请填写开户网点"> <input type="text" :value="form.bankBranch" @input="inpChange" data-type="bankBranch"
placeholder="请填写开户网点">
</view> </view>
</view> </view>
</view> </view>
@ -97,19 +105,22 @@
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">姓名</view> <view class="label">姓名</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" placeholder="请填写姓名"> <input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name"
placeholder="请填写姓名">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">手机号</view> <view class="label">手机号</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.legalPhone" @input="inpChange" data-type="phone" placeholder="请填写手机号"> <input type="text" :value="form.legalPhone" @input="inpChange" data-type="phone"
placeholder="请填写手机号">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">身份证号</view> <view class="label">身份证号</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.legalPersonIdcard" @input="inpChange" data-type="idcard" placeholder="请填写身份证号"> <input type="text" :value="form.legalPersonIdcard" @input="inpChange" data-type="idcard"
placeholder="请填写身份证号">
</view> </view>
</view> </view>
<!-- <view class="form-item noBorder"> <!-- <view class="form-item noBorder">
@ -197,41 +208,23 @@ export default {
if (options.authInfo) { if (options.authInfo) {
let authInfo = JSON.parse(decodeURIComponent(options.authInfo)); let authInfo = JSON.parse(decodeURIComponent(options.authInfo));
//try fix
this.form.authorizationType = 1; this.form.authorizationType = 1;
//try fix
this.form.id = authInfo.id; this.form.id = authInfo.id;
//try fix
this.form.enterpriseId = authInfo.enterpriseId; this.form.enterpriseId = authInfo.enterpriseId;
//try fix
this.form.idcardPicHold = authInfo.idcardPicHold || ''; this.form.idcardPicHold = authInfo.idcardPicHold || '';
//try fix
this.form.idcardPicBehind = authInfo.idcardPicBehind || ''; this.form.idcardPicBehind = authInfo.idcardPicBehind || '';
//try fix
this.form.idcardPicFront = authInfo.idcardPicFront || ''; this.form.idcardPicFront = authInfo.idcardPicFront || '';
//try fix
this.form.legalPersonIdcard = authInfo.legalPersonIdcard || ''; this.form.legalPersonIdcard = authInfo.legalPersonIdcard || '';
//try fix
this.form.legalPhone = authInfo.legalPhone || ''; this.form.legalPhone = authInfo.legalPhone || '';
//try fix
this.form.legalPersonName = authInfo.legalPersonName || ''; this.form.legalPersonName = authInfo.legalPersonName || '';
//try fix
this.form.bankBranch = authInfo.bankBranch || ''; this.form.bankBranch = authInfo.bankBranch || '';
//try fix
this.form.bankName = authInfo.bankName || ''; this.form.bankName = authInfo.bankName || '';
//try fix
this.form.bankAccount = authInfo.bankAccount || ''; this.form.bankAccount = authInfo.bankAccount || '';
//try fix
this.form.businessLicense = authInfo.businessLicense || ''; this.form.businessLicense = authInfo.businessLicense || '';
//try fix
this.form.enterpriseScale = authInfo.enterpriseScale || '请选择'; this.form.enterpriseScale = authInfo.enterpriseScale || '请选择';
//try fix
this.form.creditCode = authInfo.creditCode; this.form.creditCode = authInfo.creditCode;
//try fix
this.form.enterpriseName = authInfo.enterpriseName; this.form.enterpriseName = authInfo.enterpriseName;
//try fix
this.form.authorizationPath = authInfo.authorizationPath || ''; this.form.authorizationPath = authInfo.authorizationPath || '';
//try fix
this.form.isLegalPerson = 0; this.form.isLegalPerson = 0;
} }
}, },
@ -254,7 +247,6 @@ export default {
this.setData({ //['form.industryId']: this.data.resourcesList[idx].id this.setData({ //['form.industryId']: this.data.resourcesList[idx].id
resourcesIdx: idx, resourcesIdx: idx,
}); });
//try fix
this.form.industryId = this.resourcesList[idx].id; this.form.industryId = this.resourcesList[idx].id;
}, },
@ -284,58 +276,27 @@ export default {
switch (type) { switch (type) {
case 'enterpriseName': case 'enterpriseName':
this.setData({//['form.enterpriseName']: value
});
//try fix
this.form.enterpriseName = value; this.form.enterpriseName = value;
break; break;
case 'creditCode': case 'creditCode':
this.setData({//['form.creditCode']: value
});
//try fix
this.form.creditCode = value; this.form.creditCode = value;
break; break;
case 'bankAccount': case 'bankAccount':
this.setData({//['form.bankAccount']: value
});
//try fix
this.form.bankAccount = value; this.form.bankAccount = value;
break; break;
case 'bankName': case 'bankName':
this.setData({//['form.bankName']: value
});
//try fix
this.form.bankName = value; this.form.bankName = value;
break; break;
case 'bankBranch': case 'bankBranch':
this.setData({//['form.bankBranch']: value
});
//try fix
this.form.bankBranch = value; this.form.bankBranch = value;
break; break;
case 'name': case 'name':
this.setData({//['form.legalPersonName']: value
});
//try fix
this.form.legalPersonName = value; this.form.legalPersonName = value;
break; break;
case 'phone': case 'phone':
this.setData({//['form.legalPhone']: value
});
//try fix
this.form.legalPhone = value; this.form.legalPhone = value;
break; break;
case 'idcard': case 'idcard':
this.setData({//['form.legalPersonIdcard']: value
});
//try fix
this.form.legalPersonIdcard = value; this.form.legalPersonIdcard = value;
break; break;
} }
@ -345,45 +306,24 @@ export default {
let type = e.currentTarget.dataset.type; let type = e.currentTarget.dataset.type;
util.chooseImages(img => { util.chooseImages(img => {
if (type == 'f') { if (type == 'f') {
this.setData({//['form.idcardPicFront']: img
});
//try fix
this.form.idcardPicFront = img; this.form.idcardPicFront = img;
} else if (type == 'b') { } else if (type == 'b') {
this.setData({//.form.idcardPicBehind: img
});
//try fix
this.form.idcardPicBehind = img; this.form.idcardPicBehind = img;
} else if (type == 'h') { } else if (type == 'h') {
this.setData({//.form.idcardPicHold: img
});
//try fix
this.form.idcardPicHold = img; this.form.idcardPicHold = img;
} else if (type == 'ap') { } else if (type == 'ap') {
this.setData({//.form.authorizationPath: img
});
//try fix
this.form.authorizationPath = img; this.form.authorizationPath = img;
} else if (type == 'bl') { } else if (type == 'bl') {
this.setData({//.form.businessLicense: img
});
//try fix
this.form.businessLicense = img; this.form.businessLicense = img;
} }
}); });
}, },
bindPickerChange(e) { bindPickerChange(e) {
this.setData({//['form.enterpriseScale']: this.data.scaleArr[e.detail.value]
});
//try fix
this.form.enterpriseScale = this.scaleArr[e.detail.value]; this.form.enterpriseScale = this.scaleArr[e.detail.value];
}, },
radioClick(e) { radioClick(e) {
this.setData({//.form.isLegalPerson: e.detail.value
});
//try fix
this.form.isLegalPerson = e.detail.value; this.form.isLegalPerson = e.detail.value;
}, },
@ -470,7 +410,6 @@ export default {
uni.showModal({ uni.showModal({
title: '提示!', title: '提示!',
content: '提交成功!请等待审核', content: '提交成功!请等待审核',
success(res) { success(res) {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
@ -520,62 +459,76 @@ export default {
width: 100%; width: 100%;
padding: 30rpx 40rpx; padding: 30rpx 40rpx;
} }
.is-legal-box label { .is-legal-box label {
margin-right: 40rpx; margin-right: 40rpx;
} }
.authbook-box { .authbook-box {
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
} }
.tips { .tips {
margin: 40rpx 0; margin: 40rpx 0;
} }
.upload-box image { .upload-box image {
width: 332rpx; width: 332rpx;
height: 204rpx; height: 204rpx;
} }
.splitLine { .splitLine {
width: 100%; width: 100%;
height: 20rpx; height: 20rpx;
background-color: #eee; background-color: #eee;
} }
.company-info-box { .company-info-box {
width: 100%; width: 100%;
padding: 32rpx 40rpx; padding: 32rpx 40rpx;
} }
.title { .title {
font-size: 32rpx; font-size: 32rpx;
color: #1D1D1D; color: #1D1D1D;
margin-bottom: 38rpx; margin-bottom: 38rpx;
font-weight: 500; font-weight: 500;
} }
.form-item { .form-item {
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #666666;
padding: 16rpx 0; padding: 16rpx 0;
border-bottom: 2rpx solid #EEEEEE; border-bottom: 2rpx solid #EEEEEE;
} }
.form-item .inp-box { .form-item .inp-box {
width: 70%; width: 70%;
text-align: right; text-align: right;
} }
.yyzz image { .yyzz image {
width: 670rpx; width: 670rpx;
height: 368rpx; height: 368rpx;
margin-top: 26rpx; margin-top: 26rpx;
} }
.noBorder { .noBorder {
border: none; border: none;
} }
.form-item .sfz { .form-item .sfz {
width: 100%; width: 100%;
margin-top: 26rpx; margin-top: 26rpx;
} }
.sfz image { .sfz image {
width: 332rpx; width: 332rpx;
height: 205rpx; height: 205rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.submit-btn { .submit-btn {
width: 670rpx; width: 670rpx;
height: 76rpx; height: 76rpx;
@ -587,6 +540,7 @@ export default {
text-align: center; text-align: center;
margin: 40rpx auto; margin: 40rpx auto;
} }
.arrorR { .arrorR {
width: 14rpx; width: 14rpx;
height: 24rpx; height: 24rpx;

6
pages/release/index.vue

@ -11,7 +11,7 @@
<!-- <view class="icon">!</view> --> <!-- <view class="icon">!</view> -->
<view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view> <view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view>
</view> </view>
<view class="tips acea-row row-middle" v-if="authStatus == 0 || authStatus == 3"> <view class="tips acea-row row-middle" v-if="authStatus == 0">
<view class="icon">!</view> <view class="icon">!</view>
<view>请先完成认证</view> <view>请先完成认证</view>
</view> </view>
@ -26,6 +26,7 @@
<view class="tips acea-row row-middle" v-if="authStatus == 3"> <view class="tips acea-row row-middle" v-if="authStatus == 3">
<view class="icon">!</view> <view class="icon">!</view>
<view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view> <view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>
<view>未通过理由{{reason}}</view>
</view> </view>
</view> </view>
<view class="btn-box acea-row row-between"> <view class="btn-box acea-row row-between">
@ -159,7 +160,8 @@ export default {
authStatus: res.data.data.authenticationState, authStatus: res.data.data.authenticationState,
authType: res.data.data.authorizationType, authType: res.data.data.authorizationType,
completeState: res.data.data.completeState, completeState: res.data.data.completeState,
authInfo: res.data.data.authInfo authInfo: res.data.data.authInfo,
reason: res.data.data.authInfo.reason
}); });
} }
}); });

4
pages/shop/GoodsCon/index.vue

@ -984,7 +984,9 @@ export default {
-ms-filter: blur(2px); -ms-filter: blur(2px);
filter: blur(2px); filter: blur(2px);
} }
.product-con .product-intro .conter{
text-align: center;
}
.product-con .product-intro .conter view { .product-con .product-intro .conter view {
width: 100% !important; width: 100% !important;
} }

13
pages/user/editNeeds/index.vue

@ -72,8 +72,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="btn-box acea-row row-center">
<button class="submit-btn default-btn" form-type="submit" data-type="0">保存到草稿箱</button>
<button class="submit-btn" form-type="submit" data-type="1">保存并提交</button> <button class="submit-btn" form-type="submit" data-type="1">保存并提交</button>
<button class="submit-btn" form-type="submit" data-type="0">保存到草稿箱</button> </view>
</form> </form>
</view> </view>
@ -387,7 +389,7 @@ export default {
color:#666666; color:#666666;
} }
.form-item{ .form-item{
margin-bottom: 60rpx; margin-bottom: 20rpx;
} }
.red{ .red{
@ -402,7 +404,7 @@ export default {
padding: 10rpx 22rpx; padding: 10rpx 22rpx;
background: #eee; background: #eee;
color: #666; color: #666;
margin-top: 36rpx; margin-top: 26rpx;
} }
.pick-box{ .pick-box{
width: 92%; width: 92%;
@ -481,7 +483,7 @@ export default {
margin: 0 14rpx; margin: 0 14rpx;
} }
.submit-btn{ .submit-btn{
width: 670rpx !important; width: 240rpx !important;
height: 76rpx !important; height: 76rpx !important;
background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%);
border-radius: 38rpx; border-radius: 38rpx;
@ -492,4 +494,7 @@ export default {
margin:40rpx auto 20rpx !important; margin:40rpx auto 20rpx !important;
padding: 0 !important; padding: 0 !important;
} }
.default-btn{
background: #BFBFBF;
}
</style> </style>

18
pages/user/goodsManage/index.vue

@ -11,11 +11,11 @@
<view class="goods-list-box"> <view class="goods-list-box">
<view class="no-order" v-if="goodsList.length == 0"><image src="https://download.cyjyyjy.com/no-goods.png"></image></view> <view class="no-order" v-if="goodsList.length == 0"><image src="https://download.cyjyyjy.com/no-goods.png"></image></view>
<view class="goods-item" v-else v-for="item in goodsList" :key="item" @click="goGoodsCon(item)"> <view class="goods-item" v-else v-for="item in goodsList" :key="item" @click="goGoodsCon(item)">
<view class="review-box acea-row row-between" v-if="type == 0"> <view class="review-box acea-row row-right">
<view class="status" v-if="item.status == 0">等待审核</view> <view class="info" v-if="item.status == 0">等待审核</view>
<view class="status" v-if="item.status == 1">审核通过</view> <view class="succsess" v-if="item.status == 1">审核通过</view>
<view class="status" v-if="item.status == -1">审核不通过</view> <view class="status" v-if="item.status == -1">审核不通过</view>
<view class="message line1" v-if="item.status == -1">商品有问题</view> <view class="message" v-if="item.status == -1">{{item.refuseMessage}}</view>
</view> </view>
<view class="item-top acea-row"> <view class="item-top acea-row">
<image class="goods-img" :src="item.image" mode="aspectFill"></image> <image class="goods-img" :src="item.image" mode="aspectFill"></image>
@ -61,6 +61,8 @@
}, },
onShow() { onShow() {
this.getProducts() this.getProducts()
let pages = getCurrentPages();
console.log(pages)
}, },
onReachBottom() { onReachBottom() {
this.getProducts() this.getProducts()
@ -189,7 +191,7 @@
padding: 90rpx 40rpx 126rpx; padding: 90rpx 40rpx 126rpx;
.goods-item{ .goods-item{
width: 100%; width: 100%;
padding: 32rpx 22rpx 16rpx; padding: 16rpx 22rpx 16rpx;
border-radius: 12rpx; border-radius: 12rpx;
background: #fff; background: #fff;
font-size: 28rpx; font-size: 28rpx;
@ -253,6 +255,7 @@
} }
.review-box{ .review-box{
font-size: 24rpx; font-size: 24rpx;
margin: 0rpx 0 16rpx;
.status{ .status{
color: #ff4949; color: #ff4949;
} }
@ -263,9 +266,8 @@
color: #409eff; color: #409eff;
} }
.message{ .message{
font-size: 22rpx;
color:#ff4949; color:#ff4949;
width: 60%; // width: 60%;
} }
} }
.add-btn{ .add-btn{

19
pages/user/index.vue

@ -51,15 +51,14 @@
</view> </view>
</view> </view>
</view> </view>
<view style="padding: 58rpx 40rpx 0; border-radius: 12rpx; overflow: hidden;" v-if="(userInfo.mpOpenId == 0 || !userInfo.mpOpenId) && scene == 1011">
<official-account></official-account>
</view>
<view class="menu-list-box"> <view class="menu-list-box">
<!-- 需求管理 --> <!-- 需求管理 -->
<view class="needs-menu-list"> <view class="needs-menu-list">
<view class="title-box acea-row row-between-wrapper"> <view class="title-box acea-row row-between-wrapper">
<view>需求管理</view> <view>需求管理</view>
<!-- <view class="acea-row row-middle seemore">
<text>查看全部</text>
<image src="../../images/user/arror-r.png"></image>
</view> -->
</view> </view>
<view class="menu-list acea-row row-between"> <view class="menu-list acea-row row-between">
<view class="menu-item acea-row row-column row-center-wrapper" @tap="toNeedsManage" data-type="1"> <view class="menu-item acea-row row-column row-center-wrapper" @tap="toNeedsManage" data-type="1">
@ -238,10 +237,10 @@ export default {
authStatus: 0, authStatus: 0,
authType: 0, authType: 0,
completeState: "", completeState: "",
currentTabIndex: 4 currentTabIndex: 4,
scene: app.globalData.scene
}; };
}, },
components: { components: {
tabbar tabbar
}, },
@ -300,7 +299,6 @@ export default {
}, },
toAuthInfo() { toAuthInfo() {
let type = this.authType; let type = this.authType;
if (type == 1) { if (type == 1) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/perfectCompanyInfo/index?isEdit=' + 1 url: '/pages/release/perfectCompanyInfo/index?isEdit=' + 1
@ -313,6 +311,7 @@ export default {
}, },
toAuth() { toAuth() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/index' url: '/pages/release/index'
}); });
@ -424,7 +423,13 @@ export default {
this.$yrouter.push('/pages/user/openStore/index') this.$yrouter.push('/pages/user/openStore/index')
}, },
toMyShop(){ toMyShop(){
if(this.userInfo.store.status == 0 || this.userInfo.store.status == -1){
this.$yrouter.push('/pages/user/openStore/index')
} else{
this.$yrouter.push('/pages/user/myShop/index') this.$yrouter.push('/pages/user/myShop/index')
}
}, },
} }
}; };

107
pages/user/mine/index.vue

@ -3,9 +3,13 @@
<view class="user-index-box"> <view class="user-index-box">
<view class="user-index-top"> <view class="user-index-top">
<image src="https://download.cyjyyjy.com/userIndex-top-bg.png" class="top-bg"></image> <image src="https://download.cyjyyjy.com/userIndex-top-bg.png" class="top-bg"></image>
<!-- <view class="back-btn" bindtap="backUserIndex" style="top: {{CustomBar}}rpx;"><image src="../../../images/icon-home.png"></image></view> --> <view class="back-btn" :style="'top:' + navTopHeight + 'rpx'" @tap="backUserIndex">
<image src="/static/images/back.png" mode></image>
</view>
<view class="user-info-box acea-row"> <view class="user-info-box acea-row">
<view class="header-img"><image :src="pageData.avatar"></image></view> <view class="header-img">
<image :src="pageData.avatar"></image>
</view>
<view class="user-info acea-row row-column row-around"> <view class="user-info acea-row row-column row-around">
<view class="user-name line1">{{pageData.nickname}}</view> <view class="user-name line1">{{pageData.nickname}}</view>
<view class="user-title acea-row row-middle"> <view class="user-title acea-row row-middle">
@ -63,7 +67,9 @@
<image src="/static/images/no2-bg.png" class="medal-bg"></image> <image src="/static/images/no2-bg.png" class="medal-bg"></image>
<image src="/static/images/no2.png" class="medal-icon"></image> <image src="/static/images/no2.png" class="medal-icon"></image>
<view class="medal-content"> <view class="medal-content">
<view class="user-header"><image :src="pageData.userProfitList[1].avatar || '/static/images/no2.png'"></image></view> <view class="user-header">
<image :src="pageData.userProfitList[1].avatar || '/static/images/no2.png'"></image>
</view>
<view class="user-name line2">{{pageData.userProfitList[1].nickname || '暂无'}}</view> <view class="user-name line2">{{pageData.userProfitList[1].nickname || '暂无'}}</view>
<view>已邀请{{pageData.userProfitList[1].inviterCount || 0}}</view> <view>已邀请{{pageData.userProfitList[1].inviterCount || 0}}</view>
<view>获得收益</view> <view>获得收益</view>
@ -74,7 +80,9 @@
<image src="/static/images/no1-bg.png" class="medal-bg"></image> <image src="/static/images/no1-bg.png" class="medal-bg"></image>
<image src="/static/images/no1.png" class="medal-icon"></image> <image src="/static/images/no1.png" class="medal-icon"></image>
<view class="medal-content"> <view class="medal-content">
<view class="user-header"><image :src="pageData.userProfitList[0].avatar || '/static/images/no1.png'"></image></view> <view class="user-header">
<image :src="pageData.userProfitList[0].avatar || '/static/images/no1.png'"></image>
</view>
<view class="user-name line2">{{pageData.userProfitList[0].nickname}}</view> <view class="user-name line2">{{pageData.userProfitList[0].nickname}}</view>
<view>已邀请{{pageData.userProfitList[0].inviterCount}}</view> <view>已邀请{{pageData.userProfitList[0].inviterCount}}</view>
<view>获得收益</view> <view>获得收益</view>
@ -85,7 +93,9 @@
<image src="/static/images/no3-bg.png" class="medal-bg"></image> <image src="/static/images/no3-bg.png" class="medal-bg"></image>
<image src="/static/images/no3.png" class="medal-icon"></image> <image src="/static/images/no3.png" class="medal-icon"></image>
<view class="medal-content"> <view class="medal-content">
<view class="user-header"><image :src="pageData.userProfitList[2].avatar || '/static/images/no3.png'"></image></view> <view class="user-header">
<image :src="pageData.userProfitList[2].avatar || '/static/images/no3.png'"></image>
</view>
<view class="user-name line2">{{pageData.userProfitList[2].nickname || '暂无'}}</view> <view class="user-name line2">{{pageData.userProfitList[2].nickname || '暂无'}}</view>
<view>已邀请{{pageData.userProfitList[2].inviterCount || 0}}</view> <view>已邀请{{pageData.userProfitList[2].inviterCount || 0}}</view>
<view>获得收益</view> <view>获得收益</view>
@ -94,7 +104,8 @@
</view> </view>
</view> </view>
<view class="rank-list-box"> <view class="rank-list-box">
<view v-for="(item, index) in rankList" :key="index" class="rank-item acea-row-nowrap row-middle row-between"> <view v-for="(item, index) in rankList" :key="index"
class="rank-item acea-row-nowrap row-middle row-between">
<view class="num">{{index+4}}</view> <view class="num">{{index+4}}</view>
<view class="item-right acea-row row-between row-middle"> <view class="item-right acea-row row-between row-middle">
<view class="item-right-l acea-row-nowrap row-middle"> <view class="item-right-l acea-row-nowrap row-middle">
@ -124,6 +135,7 @@ const app = getApp();
export default { export default {
data() { data() {
return { return {
navTopHeight: app.globalData.menuTop + app.globalData.navTopHeight + 10,
userInfo: {}, userInfo: {},
pageData: {}, pageData: {},
rankList: [], rankList: [],
@ -175,36 +187,11 @@ export default {
uni.hideShareMenu(); uni.hideShareMenu();
}, },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function() {}, onPullDownRefresh: function() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
@ -287,57 +274,69 @@ export default {
page { page {
background: #212226; background: #212226;
} }
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.user-index-box { .user-index-box {
min-height: 100vh; min-height: 100vh;
color: #EFDACA; color: #EFDACA;
position: relative; position: relative;
} }
.user-index-top { .user-index-top {
width: 100%; width: 100%;
height: 1070rpx; height: 1070rpx;
position: relative; position: relative;
} }
.user-index-top .top-bg { .user-index-top .top-bg {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
} }
.user-info-box { .user-info-box {
position: absolute; position: absolute;
top: 160rpx; top: 160rpx;
left: 40rpx; left: 40rpx;
z-index: 2; z-index: 2;
} }
.header-img { .header-img {
width: 134rpx; width: 134rpx;
height: 134rpx; height: 134rpx;
margin-right: 34rpx; margin-right: 34rpx;
} }
.header-img image { .header-img image {
width: 134rpx; width: 134rpx;
height: 134rpx; height: 134rpx;
border-radius: 50%; border-radius: 50%;
} }
.user-info { .user-info {
width: 450rpx; width: 450rpx;
} }
.user-title { .user-title {
/* width: 242rpx; */ /* width: 242rpx; */
/* height: 56rpx; */ /* height: 56rpx; */
} }
.user-title image { .user-title image {
width: 242rpx; width: 242rpx;
height: 56rpx; height: 56rpx;
} }
.user-title .backhome { .user-title .backhome {
width: 146rpx; width: 146rpx;
height: 56rpx; height: 56rpx;
margin-left: 14rpx; margin-left: 14rpx;
} }
.menu-box { .menu-box {
width: 670rpx; width: 670rpx;
height: 244rpx; height: 244rpx;
@ -348,33 +347,40 @@ image{
left: 40rpx; left: 40rpx;
padding: 20rpx 0 16rpx 16rpx; padding: 20rpx 0 16rpx 16rpx;
} }
.menu-title-box { .menu-title-box {
font-size: 32rpx; font-size: 32rpx;
line-height: 44rpx; line-height: 44rpx;
font-weight: bold; font-weight: bold;
} }
.fz20 { .fz20 {
font-size: 20rpx; font-size: 20rpx;
font-weight: normal; font-weight: normal;
} }
.see-more image { .see-more image {
width: 10rpx; width: 10rpx;
height: 18rpx; height: 18rpx;
display: block; display: block;
margin-left: 10rpx; margin-left: 10rpx;
} }
.scroll-view_H { .scroll-view_H {
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
} }
.menu-list { .menu-list {
margin-top: 36rpx; margin-top: 36rpx;
} }
.menu-item { .menu-item {
display: inline-block; display: inline-block;
text-align: center; text-align: center;
margin-right: 30rpx; margin-right: 30rpx;
} }
.menu-item image { .menu-item image {
width: 70rpx; width: 70rpx;
height: 70rpx; height: 70rpx;
@ -387,6 +393,7 @@ image{
top: 620rpx; top: 620rpx;
left: 40rpx; left: 40rpx;
} }
.income-box { .income-box {
width: 670rpx; width: 670rpx;
height: 208rpx; height: 208rpx;
@ -394,6 +401,7 @@ image{
margin-top: 10rpx; margin-top: 10rpx;
position: relative; position: relative;
} }
.income-box image { .income-box image {
width: 670rpx; width: 670rpx;
height: 208rpx; height: 208rpx;
@ -401,6 +409,7 @@ image{
top: 0; top: 0;
left: 0; left: 0;
} }
.income-l { .income-l {
width: 50%; width: 50%;
height: 100%; height: 100%;
@ -410,11 +419,13 @@ image{
color: #946F46; color: #946F46;
padding: 30rpx 0 20rpx; padding: 30rpx 0 20rpx;
} }
.num { .num {
color: #363636; color: #363636;
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
} }
.btn { .btn {
width: 124rpx; width: 124rpx;
height: 44rpx; height: 44rpx;
@ -424,14 +435,17 @@ image{
border-radius: 62rpx; border-radius: 62rpx;
font-size: 26rpx; font-size: 26rpx;
} }
.income-r { .income-r {
left: 50%; left: 50%;
} }
.invitation-list-box { .invitation-list-box {
position: relative; position: relative;
z-index: 99; z-index: 99;
top: -140rpx; top: -140rpx;
} }
.invi-title { .invi-title {
padding-left: 40rpx; padding-left: 40rpx;
font-size: 32rpx; font-size: 32rpx;
@ -439,15 +453,16 @@ image{
line-height: 40rpx; line-height: 40rpx;
margin-bottom: 12rpx; margin-bottom: 12rpx;
} }
.list-box { .list-box {
width: 100%; width: 100%;
background: #212226; background: #212226;
border-radius: 40rpx 40rpx 0px 0px; border-radius: 40rpx 40rpx 0px 0px;
padding-top: 36rpx; padding-top: 36rpx;
} }
.medal-box{
} .medal-box {}
.medal { .medal {
width: 224rpx; width: 224rpx;
height: 336rpx; height: 336rpx;
@ -460,11 +475,13 @@ image{
text-align: center; text-align: center;
line-height: 38rpx; line-height: 38rpx;
} }
.medal .medal-bg { .medal .medal-bg {
width: 224rpx; width: 224rpx;
height: 336rpx; height: 336rpx;
position: absolute; position: absolute;
} }
.medal-content { .medal-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -472,6 +489,7 @@ image{
top: 0; top: 0;
z-index: 22; z-index: 22;
} }
.user-header { .user-header {
width: 86rpx; width: 86rpx;
height: 86rpx; height: 86rpx;
@ -482,6 +500,7 @@ image{
top: -43rpx; top: -43rpx;
transform: translateX(-50%); transform: translateX(-50%);
} }
.medal-content .user-name { .medal-content .user-name {
color: #363636; color: #363636;
font-size: 24rpx; font-size: 24rpx;
@ -489,12 +508,14 @@ image{
margin-bottom: 16rpx; margin-bottom: 16rpx;
margin-top: 56rpx; margin-top: 56rpx;
} }
.income-money { .income-money {
font-size: 28rpx; font-size: 28rpx;
color: #363636; color: #363636;
font-weight: bold; font-weight: bold;
/* margin-top: 16rpx; */ /* margin-top: 16rpx; */
} }
.medal-icon { .medal-icon {
width: 136rpx; width: 136rpx;
height: 136rpx; height: 136rpx;
@ -502,33 +523,42 @@ image{
right: -68rpx; right: -68rpx;
bottom: -10rpx; bottom: -10rpx;
} }
.medal1 { .medal1 {
margin: 0 22rpx; margin: 0 22rpx;
z-index: 99; z-index: 99;
} }
.medal2,.medal3{
.medal2,
.medal3 {
width: 202rpx; width: 202rpx;
height: 303rpx; height: 303rpx;
margin-top: 80rpx; margin-top: 80rpx;
} }
.medal3 { .medal3 {
margin-top: 100rpx; margin-top: 100rpx;
} }
.medal2 .medal-icon { .medal2 .medal-icon {
width: 112rpx; width: 112rpx;
height: 112rpx; height: 112rpx;
bottom: -20rpx; bottom: -20rpx;
right: -20rpx; right: -20rpx;
} }
.medal2 .medal-bg,.medal3 .medal-bg{
.medal2 .medal-bg,
.medal3 .medal-bg {
width: 202rpx; width: 202rpx;
height: 303rpx; height: 303rpx;
} }
.medal3 .medal-icon { .medal3 .medal-icon {
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
right: -20rpx; right: -20rpx;
} }
.rank-list-box { .rank-list-box {
width: 100%; width: 100%;
max-height: 780rpx; max-height: 780rpx;
@ -536,29 +566,35 @@ image{
font-size: 24rpx; font-size: 24rpx;
overflow-y: scroll; overflow-y: scroll;
} }
.rank-item .num { .rank-item .num {
min-width: 50rpx; min-width: 50rpx;
color: #E4C6B0; color: #E4C6B0;
} }
.item-right-l image { .item-right-l image {
width: 74rpx; width: 74rpx;
height: 74rpx; height: 74rpx;
border-radius: 50%; border-radius: 50%;
margin-right: 16rpx; margin-right: 16rpx;
} }
.item-right-l { .item-right-l {
width: 70%; width: 70%;
} }
.item-right-l .name { .item-right-l .name {
font-size: 24rpx; font-size: 24rpx;
color: #fff; color: #fff;
width: 80%; width: 80%;
} }
.item-right { .item-right {
width: 618rpx; width: 618rpx;
height: 132rpx; height: 132rpx;
border-bottom: 1px solid #6B6158; border-bottom: 1px solid #6B6158;
} }
.item-right-r { .item-right-r {
text-align: right; text-align: right;
} }
@ -575,6 +611,7 @@ image{
margin-left: -162rpx !important; margin-left: -162rpx !important;
z-index: 999; z-index: 999;
} }
.share-btn image { .share-btn image {
width: 334rpx; width: 334rpx;
height: 132rpx; height: 132rpx;

46
pages/user/openStore/index.vue

@ -1,5 +1,10 @@
<template> <template>
<view class="openshop-box"> <view class="openshop-box">
<view class="status info" v-if="status == 0">等待审核</view>
<view class="status message" v-if="status == -1">
<text>审核不通过</text>
<text class="reason">{{message}}</text>
</view>
<view class="form-box"> <view class="form-box">
<view class="form-item"> <view class="form-item">
<view class="label">店铺名称:<text class="colR">*</text></view> <view class="label">店铺名称:<text class="colR">*</text></view>
@ -20,13 +25,13 @@
<view class="label">详细地址:<text class="colR">*</text></view> <view class="label">详细地址:<text class="colR">*</text></view>
<input type="text" v-model="detailedAddress" placeholder="请输入详细地址"/> <input type="text" v-model="detailedAddress" placeholder="请输入详细地址"/>
</view> </view>
<view class="form-item"> <!-- <view class="form-item">
<view class="label">店铺类型:</view> <view class="label">店铺类型:</view>
<picker mode="selector"> <picker mode="selector">
<view>{{region[0]}}</view> <view>{{region[0]}}</view>
</picker> </picker>
<image src="../../../static/images/arrow-d-g.png" class="arrow"></image> <image src="../../../static/images/arrow-d-g.png" class="arrow"></image>
</view> </view> -->
<view class="form-item"> <view class="form-item">
<view class="label">店铺logo:<text class="colR">*</text></view> <view class="label">店铺logo:<text class="colR">*</text></view>
<view class="img-box"> <view class="img-box">
@ -39,6 +44,7 @@
<textarea v-model="introduction" placeholder="请输入店铺简介" /> <textarea v-model="introduction" placeholder="请输入店铺简介" />
</view> </view>
</view> </view>
<view class="add-btn" @click="addShop">提交</view> <view class="add-btn" @click="addShop">提交</view>
</view> </view>
</template> </template>
@ -55,7 +61,9 @@
introduction: '', introduction: '',
address: ['湖北省','武汉市','洪山区'], address: ['湖北省','武汉市','洪山区'],
image: '', image: '',
id: '' id: '',
status: null,
message: ''
} }
}, },
onLoad(){ onLoad(){
@ -69,11 +77,12 @@
this.introduction = store.introduction this.introduction = store.introduction
this.image = store.image this.image = store.image
this.id = store.id this.id = store.id
this.status = store.status
this.message = store.refuseMessage
} }
}, },
methods:{ methods:{
regionChange(e){ regionChange(e){
console.log(e)
this.address = e.detail.value this.address = e.detail.value
}, },
uploadImg(){ uploadImg(){
@ -107,7 +116,10 @@
duration: 1500 duration: 1500
}) })
setTimeout((res)=>{ setTimeout((res)=>{
this.$yrouter.push('/pages/user/myShop/index') // this.$yrouter.push('/pages/user/myShop/index')
uni.redirectTo({
url: '/pages/user/myShop/index'
});
},1500) },1500)
} else{ } else{
uni.showToast({ uni.showToast({
@ -134,7 +146,7 @@
min-height: 100vh; min-height: 100vh;
background: #eee; background: #eee;
.form-box{ .form-box{
padding: 30rpx 40rpx; padding: 0rpx 40rpx;
.form-item{ .form-item{
width: 100%; width: 100%;
padding: 30rpx 28rpx; padding: 30rpx 28rpx;
@ -192,5 +204,27 @@
border-radius: 40rpx; border-radius: 40rpx;
margin: 110rpx auto 30rpx; margin: 110rpx auto 30rpx;
} }
.status{
text-align: center;
font-size: 38rpx;
font-weight: bold;
padding-top: 32rpx;
}
.info{
color: #67c23a;
}
.succsess{
color: #409eff;
}
.message{
color:#ff4949;
display: flex;
flex-direction: column;
align-items: center;
.reason{
font-size: 26rpx;
font-weight: normal;
}
}
} }
</style> </style>

2
tabbarComponent/tabbar.vue

@ -69,7 +69,7 @@ export default {
}, },
methods: { methods: {
switchTab(index){ switchTab(index){
console.log(index) // console.log(index)
// this.currentTabIndex = index // this.currentTabIndex = index
this.$emit('click', index) this.$emit('click', index)
} }

Loading…
Cancel
Save