Commit 59783790 authored by xieyishang's avatar xieyishang

‘addxx

parent 1a09da2f
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"type": "uniCloud",
"default": {
"launchtype": "remote"
}
}
]
}
<template>
<!-- 空空如也的组件 -->
<view class="kkruycomponents">
<view class="onlistimgbox" >
<image class="onimgs" :src="uploadurl+'/static/applet5/images/uts/meiyoule.png'" mode=""></image>
<view class="onlistimgbox">
<image class="onimgs" :src="joinurl+'/images/wm/meiyou.png'" mode=""></image>
<view class="nulltext">{{msgs}}</view>
</view>
</view>
</template>
<script>
export default {
data(){
export default {
props: {
msgs: {
type: String,
default: "空空如也"
}
},
data() {
return {
}
},
computed: {
staticUrl () {//静态资源地址
staticUrl() { //静态资源地址
return this.$store.state.staticUrl;
},
staticUrl1 () {//静态资源地址
staticUrl1() { //静态资源地址
return this.$store.state.staticUrl1;
},
uploadurl(){
return this.$store.state.uploadurl;
joinurl() {
return this.$store.state.joinurl;
}
},
methods:{
methods: {
}
}
</script>
......@@ -37,11 +44,18 @@
margin-top: 190upx;
.onimgs{
width:250px;
height:225px;
height:180px;
}
.names{
font-size:39upx;
color:rgba(167,166,171,1);
}
.nulltext{
margin-top: 16px;
padding: 0 60px;
color: #969799;
font-size: 14px;
line-height: 20px;
}
}
</style>
<template>
<view class="select-container" v-show="show" @touchmove.stop.prevent>
<view class="mask" :class="activeClass ? 'mask-show' : ''" @tap="onCancel(true)"></view>
<view class="select-box" :class="activeClass ? 'select-box-show' : ''">
<view class="header">
<text class="cancel" @tap="onCancel">{{cancelText}}</text>
<view class="all" @tap="onAllToggle" v-if="allShow">
<text :class="isAll ? 'all-active' : ''">全选</text>
</view>
<text class="confirm" @tap="onConfirm">{{confirmText}}</text>
</view>
<view class="body-warp">
<scroll-view class="body" scroll-y="true">
<slot v-if="!data.length" name="tips">
<view class="empty-tips">暂无数据~</view>
</slot>
<view
class="select-item"
:class="[item.disabled ? 'disabled' : '',selectedArr[index] ? 'selected' : '']"
v-for="(item,index) in data"
:key="item[valueName]"
@tap="onSelected(index)"
>
<view class="label">{{item[labelName]}}</view>
<text v-show="selectedArr[index]" class="selected-icon"></text>
</view>
</scroll-view>
</view>
</view>
</view>
</template>
<!-- 多选组件 -->
<script>
export default {
model: {
prop: "value",
event: ["input"]
},
data() {
return {
show: false, //是否显示
activeClass: false, //激活样式状态
selectedArr: [], //选择对照列表
selectedArrOld: [] //选择对照列表上一次的数据
};
},
onShow() {
this.show = this.value;
},
computed: {
// 返回是否全选
isAll() {
let wipeDisabledList = this.returnWipeDisabledList();
if (!wipeDisabledList.length) return false;
return !wipeDisabledList.includes(false);
}
},
props: {
// 双向绑定
value: {
type: Boolean,
default: false
},
// 取消按钮文字
cancelText: {
type: String,
default: "取消"
},
// 确认按钮文字
confirmText: {
type: String,
default: "确认"
},
// label对应的key名称
labelName: {
type: String,
default: "label"
},
// value对应的key名称
valueName: {
type: String,
default: "value"
},
// 是否允许点击遮罩层关闭
maskCloseAble: {
type: Boolean,
default: true
},
// 是否显示全选
allShow: {
type: Boolean,
default: true
},
// 模式
mode: {
type: String,
default: "multiple"
},
// 默认选中值
defaultSelected: {
type: Array,
default: function() {
return [];
}
},
// 数据源
data: {
type: Array,
required: true,
default: () => {
return [];
}
}
},
watch: {
async value(newVal) {
this.show = newVal;
await this.$nextTick();
this.activeClass = newVal;
if (newVal) {
this.selectedArrOld = JSON.parse(JSON.stringify(this.selectedArr));
}
},
show(newVal) {
this.$emit("input", newVal);
this.$emit("change", newVal);
},
data: {
// 设置初始选择对照列表
handler(list) {
this.selectedArr = list.map(el => false);
this.setItemActiveState();
},
deep: true,
immediate: true
},
defaultSelected: {
handler() {
this.setItemActiveState();
},
deep: true,
immediate: true
}
},
methods: {
// 设置默认选中通用办法
setItemActiveState() {
if (this.data.length && this.defaultSelected.length) {
this.data.forEach((item, i) => {
for (let n = 0; n < this.defaultSelected.length; n++) {
if (
!item.disabled &&
item[this.valueName] === this.defaultSelected[n]
) {
this.selectedArr.splice(i, 1, true);
break;
}
}
});
}
},
/**
* 选择事件
* @index {Number} 点击下标
*/
onSelected(index) {
if (this.data[index].disabled) return;
let index2Active = this.selectedArr[index];
this.selectedArr.splice(index, 1, !index2Active);
},
// 取消事件
onCancel(isMask) {
if (!isMask || this.maskCloseAble) {
this.show = false;
this.selectedArr = JSON.parse(JSON.stringify(this.selectedArrOld));
} else {
return;
}
this.$emit("cancel");
},
// 返回去除了disabled状态后的对照列表
returnWipeDisabledList() {
let arr = [];
this.selectedArr.forEach((el, index) => {
if (!this.data[index].disabled) arr.push(el);
});
return arr;
},
// 全选/非全选事件
onAllToggle() {
let wipeDisabledList = this.returnWipeDisabledList();
// 如果去除了disabled的对照列表有false的数据,代表未全选
if (wipeDisabledList.includes(false)) {
this.selectedArr.forEach((el, index) => {
if (!this.data[index].disabled)
this.selectedArr.splice(index, 1, true);
});
} else {
this.selectedArr.forEach((el, index) => {
if (!this.data[index].disabled)
el = this.selectedArr.splice(index, 1, false);
});
}
},
// 确定事件
onConfirm() {
this.show = false;
let selectedData = [];
this.selectedArr.forEach((el, index) => {
if (el) {
selectedData.push(this.data[index]);
}
});
if (this.mode === "multiple") {
this.$emit("confirm", selectedData);
} else {
let backData = selectedData[0] || {};
this.$emit("confirm", backData);
}
}
}
};
</script>
<style lang="scss" scoped>
.select-container {
width: 100vw;
height: 100vh;
position: fixed;
left: 0;
top: 0;
z-index: 999;
$paddingLR: 18rpx;
.mask {
width: 100%;
height: 100%;
background-color: $uni-bg-color-mask;
opacity: 0;
transition: opacity 0.3s;
&.mask-show {
opacity: 1;
}
}
// 选择器内容区域
.select-box {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
transform: translate3d(0px, 100%, 0px);
background-color: $uni-bg-color;
transition: all 0.3s;
&.select-box-show {
transform: translateZ(0);
}
.header {
display: flex;
box-sizing: border-box;
width: 100%;
justify-content: space-between;
border-bottom: 1px solid $uni-border-color;
line-height: 76rpx;
font-size: 30rpx;
padding: 0 $paddingLR;
.cancel {
color: $uni-text-color-grey;
}
.all {
color: $uni-color-success;
.all-active {
&::after {
display: inline-block;
content: "✔";
padding-left: 8rpx;
}
}
}
.confirm {
color: $uni-color-primary;
}
}
.body-warp {
width: 100%;
height: 30vh;
box-sizing: border-box;
padding: 20rpx $paddingLR;
}
.body {
width: 100%;
height: 100%;
overflow-y: auto;
.empty-tips {
margin-top: 25%;
text-align: center;
font-size: 26rpx;
color: $uni-color-error;
}
.select-item {
display: flex;
font-size: 26rpx;
line-height: 58rpx;
color: #303133;
position: relative;
transition: all 0.3s;
&.selected {
color: $uni-color-primary;
}
&.disabled {
color: $uni-text-color-disable;
}
> .label {
flex: 1;
text-align: center;
}
> .selected-icon {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
}
}
}
}
</style>
\ No newline at end of file
......@@ -517,7 +517,20 @@
"enablePullDownRefresh": true
}
}
},
{
"path": "pages/myStockRight/myStockRight",
"style": {
"navigationBarTitleText": "我的股票",
"navigationBarBackgroundColor": "#F64F15",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"app-plus": {
"scrollIndicator": "none"
}
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
......
......@@ -88,17 +88,17 @@
<view class="shuju_01_s" v-if="countdata.yesterday_cash">¥ {{ countdata.yesterday_cash }}</view>
<view class="shuju_01_s" v-else>¥0</view>
</view>
</navigator>
<!-- <navigator url="/pages" class="shuju">
<view class="shuju_01">
<!-- <view class="flex" v-if="amount_piao!=0 && amount_piao!='0.00' && amount_piao!=''&& amount_piao!=null">
<view class="shuju_01 " >
<view>我的股票</view>
<view class="shuju_01_s">{{amount_piao}}</view>
</view>
<view class="shuju_01 no">
<view>我的股权</view>
</view>
</navigator> -->
</view> -->
<view class="BH"></view>
......@@ -345,8 +345,19 @@
</navigator>
</view>
<view class="jiu_max" v-if="amount_piao!=0 && amount_piao!='0.00' && amount_piao!=''&& amount_piao!=null" >
<navigator url="/pages/myStockRight/myStockRight">
<view class="jiu_min">
<view>
<image class="img" src="/static/thighicon.png" mode=""></image>
</view>
<view>我的股票</view>
</view>
</navigator>
</view>
<view class="jiu_max " v-if="shop_type == 'ele'">
<!-- <view class="jiu_max " v-if="shop_type == 'ele'">
<navigator url="/pages/table_code/manageTableCode/manageTableCode">
<view class="jiu_min">
<view>
......@@ -355,7 +366,7 @@
<view>餐台码</view>
</view>
</navigator>
</view>
</view> -->
</view>
......@@ -378,7 +389,8 @@
import Welcome from "@/components/Welcome/Welcome.vue"; //欢迎回来
import {
storeIndex,
excel
excel,
getLmguPiao,
} from "@/utils/api/api.js";
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue'; //升级组件
export default {
......@@ -392,7 +404,9 @@
is_luck_draw: "",
money_type: "",
activity_type: 0,
is_bld: ''
is_bld: '',
amount_piao:0,
}
},
components: {
......@@ -457,6 +471,8 @@
}
})
this.storeIndexfun();
this.getLmguPiao();//获取商家股票信息
if (uni.getStorageSync('dwstatus') == '') {
getApp().getnewsRemind().then(res => {
......@@ -492,6 +508,17 @@
}
},
methods: {
//获取商家的股票信息
async getLmguPiao(){
let res = await getLmguPiao({
});
if(res.code==0){
this.amount_piao = res.data.amount_piao;
}else{
this.amount_piao = 0;
}
},
saoma(e) {
uni.scanCode({
success: res => {
......
/* pages/personal//stock_rightstwo/stock_rightstwo.wxss */
page {
position: relative;
background-color: #fff !important;
}
.stock_rightstwo {}
.stock_tabbox {
border-bottom: 1px solid #F0F0F0;
background-color: #fff;
height: 100upx;
}
.stock_rightstwo .tabactives {
color: #F64F15;
}
.stock_tabitem {
height: 100upx;
text-align: center;
color: #000000;
font-size: 32upx;
position: relative;
font-weight: 550;
}
.stock_tabbox .stock_tabitem:nth-child(1) {
border-right: 1px solid #E8E8E8;
}
.stock_tabitem.actives {
color: #F64F15;
}
.stock_tabitem.actives::after {
content: "";
height: 5upx;
width: 150upx;
background-color: #F64F15;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -75upx;
}
/* 我的股权 */
.mystock_tab {
padding: 50upx 0 0 0;
background-color: #fff;
}
.stocktiit {
color: #F64F15;
font-size: 42upx;
text-align: center;
margin-bottom: 36upx;
font-weight: bold;
}
/* 股权主要内容 */
.stock_rightmains {
height: 533upx;
width: 748upx;
background-color: #fff;
background-size: 100%;
background-repeat: no-repeat;
padding-top: 160upx;
padding-left: 50upx;
padding-right: 50upx;
box-sizing: border-box;
}
.srickleftest {
/* width: 385upx; */
width: 320upx;
}
.srickrighttest {
margin-left: auto;
}
.srickleftest .testitems,
.srickrighttest .testitems {
font-size: 18upx;
color: #040000;
margin-bottom: 8upx;
}
.stockpstest {
margin-top: 22upx;
color: #040000;
font-size: 18upx;
}
.chapterinfo {
margin-top: -20upx;
}
.officialseal text,
.printbox text {
color: #040000;
font-size: 17upx;
}
.officialseal .officialsealicon {
width: 136upx;
height: 136upx;
}
.printbox {
margin-left: 18upx;
}
.printbox .printicon {
width: 69upx;
height: 69upx;
}
/* 股权的ends */
/* 版权信息 */
.copyrightinfo {
margin-top: 60upx;
text-align: center;
}
.copyrightinfo .copyrighttest {
color: #000;
font-size: 24upx;
margin-top: 10upx;
}
.copyrightinfo .wechatqrcode {
width: 175upx;
height: 174upx;
margin: 0 auto;
}
/* 版权信息end */
/* 股票信息 */
.sharesmain {
height: 536upx;
width: 750upx;
background-repeat: no-repeat;
background-size: cover;
padding: 64upx 32upx;
box-sizing: border-box;
}
.sharesmain .sharestit {
color: #FFFFFF;
font-size: 36upx;
text-align: center;
margin-bottom: 20upx;
}
.stocknum {
color: #fff;
font-size: 36upx;
text-align: center;
}
.stocknum .num {
font-size: 90upx;
color: #fff;
font-weight: bold;
text-decoration: underline;
}
.mystockinfos {
margin-top: 72upx;
}
.mystockinfos .infositme {
color: #FFFFFF;
font-size: 32upx;
margin-bottom: 8upx;
}
/* 股票信息end */
/* 保存图片 */
.preservationbtn {
position: fixed;
bottom: 200upx;
right: 0;
width: 60upx;
height: 220upx;
background-color: #F8C586;
color: #E70000;
text-align: center;
font-size: 34upx;
font-weight: bold;
border-radius: 10upx 0 0 10upx;
}
/* 画布 */
.hideCanvasView {
position: relative;
}
.hideCanvas {
position: fixed;
top: -99999upx;
left: -99999upx;
z-index: -99999;
}
.custom-image{
margin: 80upx;
}
/* 提示窗 */
.stockmsgs {
width: 100%;
height: 100rpx;
line-height: 100rpx;
padding: 0 24rpx;
box-sizing: border-box;
position: fixed;
left: 0;
bottom: 0;
/* background: rgba(225, 64, 23, 0.7); */
background: #C70015;
z-index: 99999999999;
color: #F4C278;
font-weight: bold;
font-size: 30rpx;
text-align: center;
// animation: 1s ease 0.8s 1 normal both running fadeInUp;
}
.stockmsgs .textnum{
font-size: 36rpx;
font-weight: bold;
}
@keyframes fadeInUp{
0% {
opacity: 0;
-webkit-transform: translate3d(0,400rpx,0);
transform: translate3d(0,400rpx,0);
}
100% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -562,3 +562,9 @@ export function deleteTable(data)
}
//获取鹿马股票
export function getLmguPiao(data)
{
return request.post("store/getLmguPiao",data,{ noAuth : false});
}
\ No newline at end of file
......@@ -4,8 +4,8 @@ module.exports = {
//是否为开发调试环境 true为本地环境 false 为正式环境
// isdebug:false,//正式
isdebug:true,//测试
isdebug:false,//正式
// isdebug:true,//测试
// xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment