fix: 修改弹窗
This commit is contained in:
@@ -5,8 +5,13 @@ const common_assets = require("../../../../../common/assets.js");
|
||||
require("../../offlinePushInfoManager/index.js");
|
||||
const stores_counter = require("../../../../../stores/counter.js");
|
||||
const components_request = require("../../../../../components/request.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
_easycom_uni_popup2();
|
||||
}
|
||||
const _easycom_uni_popup = () => "../../../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
ToolbarItemContainer();
|
||||
(ToolbarItemContainer + _easycom_uni_popup)();
|
||||
}
|
||||
const ToolbarItemContainer = () => "../toolbar-item-container/index.js";
|
||||
const _sfc_main = {
|
||||
@@ -65,11 +70,14 @@ const _sfc_main = {
|
||||
popup.value.open("center");
|
||||
list.value = mylist.value;
|
||||
}
|
||||
common_vendor.ref(null);
|
||||
const selectedId = common_vendor.ref(null);
|
||||
function Select(item, index) {
|
||||
selectedId.value = item;
|
||||
}
|
||||
const submitEvaluate = () => {
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o$1(onyourChoose),
|
||||
b: common_vendor.o$1(onmyChoose),
|
||||
c: common_vendor.o$1(submitEvaluate),
|
||||
@@ -84,8 +92,32 @@ const _sfc_main = {
|
||||
needBottomPopup: true,
|
||||
iconWidth: _ctx.isUniFrameWork ? "36px" : "30px",
|
||||
iconHeight: _ctx.isUniFrameWork ? "36px" : "30px"
|
||||
}),
|
||||
h: list.value.length !== 0
|
||||
}, list.value.length !== 0 ? {
|
||||
i: common_vendor.f(list.value, (item, index, i0) => {
|
||||
return {
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
c: common_vendor.t(item.coin),
|
||||
d: common_vendor.o$1(($event) => Select(item.id), index),
|
||||
e: selectedId.value === item.id ? "#b8ff8c74" : "#ffffff",
|
||||
f: index
|
||||
};
|
||||
})
|
||||
};
|
||||
} : {}, {
|
||||
j: list.value.length === 0
|
||||
}, list.value.length === 0 ? {} : {}, {
|
||||
k: common_vendor.o$1(($event) => _ctx.invite()),
|
||||
l: common_vendor.o$1(($event) => _ctx.close()),
|
||||
m: common_vendor.sr(popup, "241228dc-1", {
|
||||
"k": "popup"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "../../../../../uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"toolbar-item-container": "../toolbar-item-container/index"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<toolbar-item-container wx:if="{{g}}" class="r data-v-241228dc" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{e}}" bindonDialogClose="{{f}}" u-i="241228dc-0" bind:__l="__l" u-p="{{g}}"><view class="popup data-v-241228dc"><view class="container data-v-241228dc"><view class="title data-v-241228dc">PK邀请</view><view class="yourChoose data-v-241228dc" bindtap="{{a}}"><view class="yourChoose-item data-v-241228dc">选择你要邀请的对手</view></view><view class="vstext data-v-241228dc"><view class="Vtext data-v-241228dc">V</view><view class="Stext data-v-241228dc">S</view></view><view class="myChoose data-v-241228dc" bindtap="{{b}}"><view class="yourChoose-item data-v-241228dc">选择你要参与PK的信息</view></view></view><button class="send-btn data-v-241228dc" bindtap="{{c}}">发送邀请</button></view></toolbar-item-container>
|
||||
<toolbar-item-container wx:if="{{g}}" class="r data-v-241228dc" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{e}}" bindonDialogClose="{{f}}" u-i="241228dc-0" bind:__l="__l" u-p="{{g}}"><view class="popup data-v-241228dc"><view class="container data-v-241228dc"><view class="title data-v-241228dc">PK邀请</view><view class="yourChoose data-v-241228dc" bindtap="{{a}}"><view class="yourChoose-item data-v-241228dc">选择你要邀请的对手</view></view><view class="vstext data-v-241228dc"><view class="Vtext data-v-241228dc">V</view><view class="Stext data-v-241228dc">S</view></view><view class="myChoose data-v-241228dc" bindtap="{{b}}"><view class="yourChoose-item data-v-241228dc">选择你要参与PK的信息</view></view></view><button class="send-btn data-v-241228dc" bindtap="{{c}}">发送邀请</button></view></toolbar-item-container><uni-popup wx:if="{{n}}" u-s="{{['d']}}" class="popupcss r data-v-241228dc" u-r="popup" u-i="241228dc-1" bind:__l="__l" u-p="{{n}}"><view class="popup-content data-v-241228dc"><view class="popup-title data-v-241228dc"><view class="popup-text data-v-241228dc">点击选择您要参与的主播</view><view wx:if="{{h}}" class="data-v-241228dc"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-241228dc"><view wx:for="{{i}}" wx:for-item="item" wx:key="f" class="card data-v-241228dc"><view class="card-content data-v-241228dc" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-241228dc"><image class="avatar data-v-241228dc" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-241228dc"><view class="TimeMoney data-v-241228dc"><view class="NameMoney_Name data-v-241228dc">{{item.b}}</view></view><view class="TimeMoney_Time data-v-241228dc"><view class="pkTimeimg data-v-241228dc"><image class="data-v-241228dc" style="width:31.49rpx;height:31.49rpx;margin-top:3rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/time.png" mode="scaleToFill"/></view><view class="goldimg data-v-241228dc"><image class="data-v-241228dc" style="width:31.49rpx;height:31.49rpx;margin-top:4rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/species.png" mode="scaleToFill"/></view><view class="goldnb data-v-241228dc">{{item.c}}K</view></view></view></view></view></scroll-view></view><view wx:if="{{j}}" class="noData data-v-241228dc">您还没有可参与的主播PK,快去新建一个吧!</view></view><view class="popup-btn data-v-241228dc"><button class="invite data-v-241228dc" type="primary" bindtap="{{k}}">邀请</button><button class="cancel data-v-241228dc" type="default" bindtap="{{l}}">取消</button></view></view></uni-popup>
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
.popupcss.data-v-241228dc {
|
||||
}
|
||||
.popup.data-v-241228dc{
|
||||
height: 750rpx;
|
||||
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
//确定邀请
|
||||
invite() {
|
||||
},
|
||||
//关闭弹窗
|
||||
close() {
|
||||
popup.value.close();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
_easycom_uni_popup2();
|
||||
}
|
||||
const _easycom_uni_popup = () => "../../../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_popup();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: _ctx.list.length !== 0
|
||||
}, _ctx.list.length !== 0 ? {
|
||||
b: common_vendor.f(_ctx.list, (item, index, i0) => {
|
||||
return {
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
c: common_vendor.t(item.coin),
|
||||
d: common_vendor.o$1(($event) => _ctx.Select(item.id, index), index),
|
||||
e: _ctx.selectedId === item.id ? "#b8ff8c74" : "#ffffff",
|
||||
f: index
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
c: _ctx.list.length === 0
|
||||
}, _ctx.list.length === 0 ? {} : {}, {
|
||||
d: common_vendor.o$1(($event) => $options.invite()),
|
||||
e: common_vendor.o$1(($event) => $options.close()),
|
||||
f: common_vendor.sr("popup", "40f5b60d-0"),
|
||||
g: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
})
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-40f5b60d"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIChat/message-input-toolbar/evaluate/popupinvite.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "../../../../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<uni-popup wx:if="{{g}}" u-s="{{['d']}}" class="popupcss r data-v-40f5b60d" u-r="popup" u-i="40f5b60d-0" bind:__l="__l" u-p="{{g}}"><view class="popup-content data-v-40f5b60d"><view class="popup-title data-v-40f5b60d"><view class="popup-text data-v-40f5b60d">点击选择您要参与的主播</view><view wx:if="{{a}}" class="data-v-40f5b60d"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-40f5b60d"><view wx:for="{{b}}" wx:for-item="item" wx:key="f" class="card data-v-40f5b60d"><view class="card-content data-v-40f5b60d" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-40f5b60d"><image class="avatar data-v-40f5b60d" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-40f5b60d"><view class="TimeMoney data-v-40f5b60d"><view class="NameMoney_Name data-v-40f5b60d">{{item.b}}</view></view><view class="TimeMoney_Time data-v-40f5b60d"><view class="pkTimeimg data-v-40f5b60d"><image class="data-v-40f5b60d" style="width:31.49rpx;height:31.49rpx;margin-top:3rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/time.png" mode="scaleToFill"/></view><view class="goldimg data-v-40f5b60d"><image class="data-v-40f5b60d" style="width:31.49rpx;height:31.49rpx;margin-top:4rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/species.png" mode="scaleToFill"/></view><view class="goldnb data-v-40f5b60d">{{item.c}}K</view></view></view></view></view></scroll-view></view><view wx:if="{{c}}" class="noData data-v-40f5b60d">您还没有可参与的主播PK,快去新建一个吧!</view></view><view class="popup-btn data-v-40f5b60d"><button class="invite data-v-40f5b60d" type="primary" bindtap="{{d}}">邀请</button><button class="cancel data-v-40f5b60d" type="default" bindtap="{{e}}">取消</button></view></view></uni-popup>
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
/* 样式定义 */
|
||||
Reference in New Issue
Block a user