Commit 0904d153 by 前端

bug修复

1 parent 74d46032
...@@ -89,3 +89,7 @@ ...@@ -89,3 +89,7 @@
.scene-box { .scene-box {
padding-bottom: 50rpx; padding-bottom: 50rpx;
} }
.cooperate-left {
margin-right: 16rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<text class="info-lable">合作方式<text class="require">*</text> <text class="info-lable">合作方式<text class="require">*</text>
</text> </text>
<radio-group name="applyType" class="radio-wrap" bindchange="applyChange"> <radio-group name="applyType" class="radio-wrap" bindchange="applyChange">
<label> <label class="cooperate-left">
<radio value="1" checked />门店合作 <radio value="1" checked />门店合作
</label> </label>
<label> <label>
......
...@@ -14,7 +14,7 @@ Component({ ...@@ -14,7 +14,7 @@ Component({
}, },
selectApply: { selectApply: {
type: Number, type: Number,
value: 1 value: 0
} }
}, },
...@@ -226,9 +226,9 @@ Component({ ...@@ -226,9 +226,9 @@ Component({
selectScenePro(e) { selectScenePro(e) {
console.log(e.currentTarget.dataset, this.properties.selectApply); console.log(e.currentTarget.dataset, this.properties.selectApply);
var index = e.currentTarget.dataset.index; var index = e.currentTarget.dataset.index;
var item = this.properties.selectApply == 1 ? this.data.productList[this.data.sceneName][index] : this.data.productSubscibList[this.data.sceneName][index]; var item = this.properties.selectApply == 0 ? this.data.productList[this.data.sceneName][index] : this.data.productSubscibList[this.data.sceneName][index];
item.isSelect = !item.isSelect; item.isSelect = !item.isSelect;
if (this.properties.selectApply == 1) { if (this.properties.selectApply == 0) {
// let newProductList = `productListt.${this.data.sceneName}[0]` // let newProductList = `productListt.${this.data.sceneName}[0]`
// console.log(newProductList, item); // console.log(newProductList, item);
this.setData({ this.setData({
...@@ -246,7 +246,7 @@ Component({ ...@@ -246,7 +246,7 @@ Component({
resetScene() { resetScene() {
if (!this.data.sceneName) return if (!this.data.sceneName) return
console.log(this.properties.selectApply, this.data.sceneName, this.data.sceneNum); console.log(this.properties.selectApply, this.data.sceneName, this.data.sceneNum);
if (this.properties.selectApply == 2) { if (this.properties.selectApply == 1) {
this.data.productList[this.data.sceneName].map((item) => { this.data.productList[this.data.sceneName].map((item) => {
if (item.isSelect) item.isSelect = false if (item.isSelect) item.isSelect = false
}) })
...@@ -277,7 +277,7 @@ Component({ ...@@ -277,7 +277,7 @@ Component({
let selectFlag = 0; let selectFlag = 0;
let productItems = []; let productItems = [];
let businessItem let businessItem
if (this.properties.selectApply == 1) { if (this.properties.selectApply == 0) {
this.data.productList[this.data.sceneName].forEach((item) => { this.data.productList[this.data.sceneName].forEach((item) => {
if (item.isSelect) { if (item.isSelect) {
selectFlag = selectFlag + 1; selectFlag = selectFlag + 1;
......
...@@ -101,6 +101,8 @@ ...@@ -101,6 +101,8 @@
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: linear-gradient(180deg, #65DDCE 0%, #406DFB 51%, #3666FE 100%); background-image: linear-gradient(180deg, #65DDCE 0%, #406DFB 51%, #3666FE 100%);
-webkit-background-clip: text;
color: transparent;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
<view> <view>
<view class="jump-title">生意助手</view> <view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view> <view class="jump-text">立即前往 ></view>
</view> </view>
<view> <view>
</view> </view>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</view> </view>
<view> <view>
<view class="jump-title">生意助手</view> <view class="jump-title">生意助手</view>
<view class="jump-text">立即前往</view> <view class="jump-text">立即前往 ></view>
</view> </view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!